crypto/sha256-buffer: Use 'restrict'.
[gnulib.git] / ChangeLog
blob6e782e1be0aabb91b3d55400504b422f4b93fcf8
1 2020-02-23  Bruno Haible  <bruno@clisp.org>
3         crypto/sha256-buffer: Use 'restrict'.
4         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
5         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
6         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
8         crypto/sha1-buffer: Use 'restrict'.
9         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
10         'restrict'.
11         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
13         crypto/md5-buffer: Use 'restrict'.
14         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
15         'restrict'.
16         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
18         crypto/md4: Use 'restrict'.
19         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
20         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
22         crypto/md2: Use 'restrict'.
23         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
24         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
26         crypto/rijndael: Use 'restrict'.
27         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
28         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
29         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
31         crypto/arctwo: Use 'restrict'.
32         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
33         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
35         crypto/arcfour: Use 'restrict'.
36         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
37         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
39         careadlinkat: Use 'restrict'.
40         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
41         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
42         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
44         regex-quote: Use 'restrict'.
45         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
46         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
48         system-quote: Use 'restrict'.
49         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
50         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
52         sh-quote: Use 'restrict'.
53         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
54         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
56         quotearg: Use 'restrict'.
57         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
58         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
60         parse-datetime: Use 'restrict'.
61         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
62         'restrict'.
63         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
65         nstrftime: Use 'restrict'.
66         * lib/strftime.h (nstrftime): Use 'restrict'.
67         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
69         mbstok_r: Use 'restrict'.
70         * lib/string.in.h (mbstok_r): Use 'restrict'.
72         xmemcoll: Use 'restrict'.
73         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
74         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
76         memcoll: Use 'restrict'.
77         * lib/memcoll.h (memcoll): Use 'restrict'.
78         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
80         vasnprintf: Use 'restrict'.
81         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
82         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
84         c-vasnprintf: Use 'restrict'.
85         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
86         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
88         c-vsnprintf: Use 'restrict'.
89         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
90         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
92         c-snprintf: Use 'restrict'.
93         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
94         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
96         astrxfrm: Use 'restrict'.
97         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
98         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
100         amemxfrm: Use 'restrict'.
101         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
102         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
104 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
106         fchmodat, lchmod: simplify
107         It appears that we may have overengineered lchmod and fchmodat,
108         in that the code was prepared for some hypothetical platforms but
109         was so complicated that it was hard to understand.  I attempted to
110         improve the situation by simplifying the code when this
111         simplification should not hurt on real platforms; we can re-add
112         complexity later to port to platforms I didn’t know about.
113         * lib/fchmodat.c (fchmodat):
114         * lib/lchmod.c (lchmod):
115         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
116         around the /proc code that needs it.
117         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
118         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
119         Do not include <config.h> twice.
120         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
121         lchmod on any known hosts.
122         (lchmod): Do not defer to fchmodat, so that the lchmod module
123         need not depend on the fchmodat module (which is a circular
124         dependency).  Do not use openat, since ‘open’ suffices.
125         Coalesce calls to lchmod/chmod.
126         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
127         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
128         * modules/lchmod (Depends-on, configure.ac):
129         * modules/sys_stat (Depends-on):
130         Do not worry about replacing lchmod, since that shouldn’t happen.
131         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
132         Do not worry about whether lchmod works on non-symlinks,
133         since every known lchmod works on non-symlinks.
134         * modules/lchmod (Depends-on):
135         Remove circular dependency on fchmodat.
137 2020-02-22  Bruno Haible  <bruno@clisp.org>
139         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
140         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
141         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
143 2020-02-22  Bruno Haible  <bruno@clisp.org>
145         Use 'restrict' in all POSIX function declarations.
146         * lib/iconv.in.h (iconv): Use 'restrict'.
147         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
148         * lib/monetary.in.h (strfmon_l): Likewise.
149         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
150         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
151         pthread_mutex_timedlock, pthread_rwlock_init,
152         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
153         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
154         * lib/search.in.h (tdelete): Likewise.
155         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
156         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
157         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
158         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
159         Likewise.
160         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
161         strtoull): Likewise.
162         * lib/string.in.h (strncat): Likewise.
163         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
164         recvfrom): Likewise.
165         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
166         * lib/time.in.h (strftime): Likewise.
167         * lib/unistd.in.h (readlink, readlinkat): Likewise.
168         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
169         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
170         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
171         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
172         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
173         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
174         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
175         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
176         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
177         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
178         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
179         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
180         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
181         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
182         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
183         other *_h.m4 files.
184         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
186 2020-02-22  Bruno Haible  <bruno@clisp.org>
188         Update NEWS.
189         * NEWS: Mention the last change.
191 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
193         chmodat, chownat: new modules
194         These are split from fchmodat, fchownat.  GNU Emacs needs the
195         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
196         lchmodat.  Split the latter two into a new module chmodat.
197         Similarly for fchownat.  This the same basic idea for why statat
198         was split from fstatat on 2013-01-23.
199         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
200         Rename from FCHMODAT_INLINE.  All uses changed.
201         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
202         Rename from FCHOWNAT_INLINE.  All uses changed.
203         * lib/openat.h:
204         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
205         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
206         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
207         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
208         (configure.ac): Remove fchmodat module indicator.
209         (Makefile.am): Omit chmodat.c.
210         (Maintainer): Add self.
211         * modules/fchownat: Similarly, but for chown.
212         * tests/test-fchownat.c (BASE): Don't define if already defined.
213         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
215 2020-02-22  Bruno Haible  <bruno@clisp.org>
217         users.txt: Add groff.
218         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
219         * users.txt: Add groff.
221 2020-02-22  Bruno Haible  <bruno@clisp.org>
223         gnulib-tool: Ensure copied files are writable.
224         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
225         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
226         * gnulib-tool (func_ensure_writable): New function.
227         (func_ln_s, func_hardlink, func_lookup_file, func_import,
228         func_create_testdir, copy-file): Invoke it after copying a file.
230 2020-02-22  Bruno Haible  <bruno@clisp.org>
232         users.txt: Update.
233         * users.txt: Update URLs to projects that have moved or switched to git.
234         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
235         over the summary view. Add gawk.
237 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
239         largefile: remove _DARWIN_USE_64_BIT_INODE
240         It’s not needed in currently-supported macOS versions, and was
241         problematic anyway in MacOS X 10.5 which was the only version that
242         could use it.  Problem reported by Peter Eisentraut in:
243         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
244         * m4/largefile.m4 (AC_SYS_LARGEFILE):
245         Don’t define _DARWIN_USE_64_BIT_INODE.
246         This syncs with Autoconf master.
248         Add ‘extern "C"’ to count-one-bits.h etc.
249         This ports these .h files to C++.
250         Problem reported by Simon Marchi in:
251         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
252         * lib/count-leading-zeros.h, lib/count-one-bits.h:
253         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
255 2020-02-19  Bruno Haible  <bruno@clisp.org>
257         uninorm/decompose-internal: Avoid "no previous prototype" warning.
258         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
259         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
260         * lib/array-mergesort.h: Accept an optional macro definition
261         STATIC_FROMTO.
262         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
264 2020-02-16  Bruno Haible  <bruno@clisp.org>
266         fchmodat: Make more future-proof.
267         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
268         NEED_FCHMODAT_NONSYMLINK_FIX.
269         (gl_PREREQ_FCHMODAT): New macro.
270         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
271         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
272         without lchmod function.
273         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
275 2020-02-16  Bruno Haible  <bruno@clisp.org>
277         lchmod: Make more future-proof.
278         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
279         (gl_PREREQ_LCHMOD): New macro.
280         * lib/lchmod.c (orig_lchmod): New function.
281         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
282         Return EOPNOTSUPP only on Linux and on platforms without lchmod
283         function.
284         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
286         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
287         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
289 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
291         xnanosleep: prefer pause, and get remaining time
292         Problem reported by Vladimir Panteleev in:
293         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
294         * lib/xnanosleep.c: Include intprops.h, unistd.h.
295         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
296         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
297         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
298         * modules/xnanosleep (Depends-on): Add intprops, unistd.
300 2020-02-16  Bruno Haible  <bruno@clisp.org>
302         lchmod: Improve cross-compilation guess.
303         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
304         cross-compiling, guess depending on the platform.
306 2020-02-16  Bruno Haible  <bruno@clisp.org>
308         fstrcmp: Add API to clean up resources.
309         Reported by Akim Demaille <akim@lrde.epita.fr> in
310         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
311         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
312         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
314 2020-02-14  Bruno Haible  <bruno@clisp.org>
316         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
317         Reported by Christian Biesinger in
318         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
319         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
320         corresponding module is not enabled.
321         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
322         prototype if the corresponding module is not enabled.
324 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
326         fchmodat, lchmod: port to buggy Linux filesystems
327         Problem reported by Florian Weimer in:
328         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
329         * lib/fchmodat.c (fchmodat):
330         * lib/lchmod.c (lchmod):
331         Don’t assume that chmod on the O_PATH-opened fd will do
332         the right thing on a symbolic link.
333         * lib/fchmodat.c (fchmodat):
334         Don’t attempt to special-case
335         any flag value other than AT_SYMLINK_NOFOLLOW.
337 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
339         lchmod: pacify Coverity CID 1491216
340         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
341         not complain about unreachable code at the ‘struct stat st;’
342         declaration.
344 2020-02-10  Bruno Haible  <bruno@clisp.org>
346         copysignf: Fix link error on HP-UX with cc.
347         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
348         HP-UX, set COPYSIGNF_LIBM to -lm.
350 2020-02-10  Bruno Haible  <bruno@clisp.org>
352         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
353         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
354         with $(LIB_SEMAPHORE).
355         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
356         with $(LIB_SEMAPHORE).
358 2020-02-10  Bruno Haible  <bruno@clisp.org>
360         ptsname_r-tests: Avoid unused function warning.
361         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
363 2020-02-08  Bruno Haible  <bruno@clisp.org>
365         lchmod: Add tests.
366         * tests/test-lchmod.c: New file.
367         * modules/lchmod-tests: New file.
369 2020-02-08  Bruno Haible  <bruno@clisp.org>
371         lchmod: Ensure declaration on HP-UX.
372         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
373         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
375 2020-02-08  Bruno Haible  <bruno@clisp.org>
377         fchmodat: Strengthen tests.
378         * tests/test-fchmodat.c (BASE): New macro.
379         (main): Use it, to avoid conflicts with other unit tests. Verify that
380         fchmodat changed the file permission bits.
382 2020-02-08  Bruno Haible  <bruno@clisp.org>
384         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
385         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
386         '#undef __need_system_sys_stat_h'.
388 2020-02-08  Bruno Haible  <bruno@clisp.org>
390         fchmodat: Improve cross-compilation guesses.
391         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
392         cross-compiling, guess depending on the platform.
393         * doc/posix-functions/fchmodat.texi: Clarify.
395 2020-02-08  Bruno Haible  <bruno@clisp.org>
397         Fix compilation errors in a testdir created with --with-c++-tests.
398         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
399         since it does not work any more with g++ >= 4.4.
401 2020-02-08  Bruno Haible  <bruno@clisp.org>
403         doc: Update for glibc 2.31.
404         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
405         * doc/gnulib.texi: Include it.
406         * doc/pastposix-functions/h_errno.texi: Update.
407         * doc/posix-functions/*.texi: Likewise.
409 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
411         mountlist: consider smb3 file systems as remote
412         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
413         "smb3" as remote.
415 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
417         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
418         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
419         they act like chmod on non-symlinks.
420         * NEWS:
421         * doc/glibc-functions/lchmod.texi (lchmod):
422         * doc/posix-functions/fchmodat.texi (fchmodat):
423         Mention this.
424         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
425         config.h, and undef it after including sys/stat.h the first time.
426         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
427         sys/stat.h a second time after defining orig_fchmodat.
428         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
429         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
430         * lib/lchmod.c: New file.
431         * lib/sys_stat.in.h (fchmodat, lchmod):
432         Support replacing these functions.
433         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
434         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
435         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
436         Test that lchmod works on non-symlinks.
437         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
438         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
439         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
440         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
441         * modules/lchmod (Files): Add lib/lchmod.c.
442         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
443         (configure.ac): Compile lchmod.c if needed.
444         (lib_SOURCES): Add lchmod.c.
445         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
446         and REPLACE_LCHMOD.
447         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
448         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
450 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
452         mountlist: Consider AFS filesystems as remote
453         df --local relies on the ME_REMOTE macro to determine if a given
454         mount entry should be considered "local".  There is special logic
455         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
456         kernel's kafs module or AuriStorFS is treated as a local mount.
457         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
458         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
460 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
462         Port _Noreturn to older Clang
463         Problem reported by Jeffery Walton in:
464         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
465         * lib/_Noreturn.h (_Noreturn):
466         * m4/gnulib-common.m4 (gl_COMMON_BODY):
467         Assume _Noreturn works in Clang 3.5 and later.
468         It is documented to work in Clang 3.5:
469         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
470         and is not documented in Clang 3.4:
471         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
472         Apple sets __clang_version__ to a different value, so use
473         __apple_build_version__ there.  See:
474         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
476 2020-02-04  Pádraig Brady  <P@draigBrady.com>
478         test-canonicalize: avoid unused function warning
479         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
480         with the same guard as that used to protect usage of the null_ptr
481         function, so that one doesn't get a -Wunused warning.
482         * tests/test-canonicalize-lgpl.c: Likewise.
484 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
486         libc-config: port to Apple’s Clang variant
487         * lib/libc-config.h (__glibc_clang_prereq):
488         Port to Apple’s Clang variant, which uses a different
489         numbering scheme for __clang_major__.
491 2020-02-02  Bruno Haible  <bruno@clisp.org>
493         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
494         * doc/containers.texi: Document these new modules.
496 2020-02-02  Bruno Haible  <bruno@clisp.org>
498         omap-c++: Add tests.
499         * tests/test-omap-c++.cc: New file.
500         * modules/omap-c++-tests: New file.
502         omap-c++: New module.
503         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
504         * modules/omap-c++: New file.
506 2020-02-02  Bruno Haible  <bruno@clisp.org>
508         map-c++: Add tests.
509         * tests/test-map-c++.cc: New file.
510         * modules/map-c++-tests: New file.
512         map-c++: New module.
513         * lib/gl_map.hh: New file, based on lib/gl_map.h.
514         * modules/map-c++: New file.
516 2020-02-02  Bruno Haible  <bruno@clisp.org>
518         oset-c++: Add tests.
519         * tests/test-oset-c++.cc: New file.
520         * modules/oset-c++-tests: New file.
522         oset-c++: New module.
523         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
524         * modules/oset-c++: New file.
526 2020-02-02  Bruno Haible  <bruno@clisp.org>
528         set-c++: Add tests.
529         * tests/test-set-c++.cc: New file.
530         * modules/set-c++-tests: New file.
532         set-c++: New module.
533         * lib/gl_set.hh: New file, based on lib/gl_set.h.
534         * modules/set-c++: New file.
536 2020-02-02  Bruno Haible  <bruno@clisp.org>
538         list-c++: Add tests.
539         * tests/test-list-c++.cc: New file.
540         * modules/list-c++-tests: New file.
542         list-c++: New module.
543         * lib/gl_list.hh: New file, based on lib/gl_list.h.
544         * modules/list-c++: New file.
546 2020-02-02  Bruno Haible  <bruno@clisp.org>
548         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
549         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
550         '_Noreturn'.
551         * lib/sigpipe-die.h (sigpipe_die): Likewise.
553 2020-02-02  Pádraig Brady  <P@draigBrady.com>
555         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
556         On x86_64 with glibc-2.30, gcc 9.2 is giving:
557           error: argument 2 value '18446744073709551615'
558           exceeds maximum object size 9223372036854775807
559           [-Werror=alloc-size-larger-than=]
560         The details of this restriction are discussed at:
561         https://stackoverflow.com/q/42574890/4421
562         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
564 2020-02-02  Pádraig Brady  <P@draigBrady.com>
566         sysctl.h: avoid including on glibc
567         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
568         * lib/physmem.c: Likewise.
570 2020-02-02  Bruno Haible  <bruno@clisp.org>
572         list, set, oset, map, omap: Avoid imperative voice in documentation.
573         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
574         in the specification of functions.
575         * lib/gl_set.h: Likewise.
576         * lib/gl_oset.h: Likewise.
577         * lib/gl_map.h: Likewise.
578         * lib/gl_omap.h: Likewise.
579         * lib/gl_*.h: Likewise.
581 2020-02-01  Bruno Haible  <bruno@clisp.org>
583         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
584         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
585         does.
587 2020-01-29  Bruno Haible  <bruno@clisp.org>
589         array-map, hash-map, linkedhash-map: Fix module description.
590         * modules/array-map (Description): Fix description.
591         * modules/hash-map (Description): Likewise.
592         * modules/linkedhash-map (Description): Likewise.
594 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
596         dfa: do not depend on isblank
597         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
598         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
599         * modules/dfa (Depends-on): Remove isblank.
600         * modules/isblank: Add a module indicator, for lib/dfa.c.
602         dfa: do not assume 64-bit int
603         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
604         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
605         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
606         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
607         Fall back to 32-bit words.
608         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
609         of 4 64-bit args.  All uses changed.
611 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
613         regex: remove limits-h dependency
614         * modules/regex (Depends-on): Remove limits-h, since the
615         code no longer depends on ULONG_WIDTH already being defined.
617         regex: port to non-GCC pre-IEC-60559
618         Problem reported by Arnold Robbins in:
619         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
620         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
622 2020-01-25  Bruno Haible  <bruno@clisp.org>
624         c32isxdigit: Add tests.
625         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
626         * tests/test-c32isxdigit.sh: New file.
627         * modules/c32isxdigit-tests: New file.
629         c32isxdigit: New module.
630         * lib/c32isxdigit.c: New file.
631         * modules/c32isxdigit: New file.
632         * doc/posix-functions/iswxdigit.texi: Mention the new module.
634 2020-01-25  Bruno Haible  <bruno@clisp.org>
636         c32isupper: Add tests.
637         * tests/test-c32isupper.c: New file.
638         * tests/test-c32isupper.sh: New file.
639         * modules/c32isupper-tests: New file.
641         c32isupper: New module.
642         * lib/c32isupper.c: New file.
643         * modules/c32isupper: New file.
644         * doc/posix-functions/iswupper.texi: Mention the new module.
646 2020-01-25  Bruno Haible  <bruno@clisp.org>
648         c32isspace: Add tests.
649         * tests/test-c32isspace.c: New file.
650         * tests/test-c32isspace.sh: New file.
651         * modules/c32isspace-tests: New file.
653         c32isspace: New module.
654         * lib/c32isspace.c: New file.
655         * modules/c32isspace: New file.
656         * doc/posix-functions/iswspace.texi: Mention the new module.
658 2020-01-25  Bruno Haible  <bruno@clisp.org>
660         c32ispunct: Add tests.
661         * tests/test-c32ispunct.c: New file.
662         * tests/test-c32ispunct.sh: New file.
663         * modules/c32ispunct-tests: New file.
665         c32ispunct: New module.
666         * lib/c32ispunct.c: New file.
667         * modules/c32ispunct: New file.
668         * doc/posix-functions/iswpunct.texi: Mention the new module.
670 2020-01-25  Bruno Haible  <bruno@clisp.org>
672         c32isprint: Add tests.
673         * tests/test-c32isprint.c: New file.
674         * tests/test-c32isprint.sh: New file.
675         * modules/c32isprint-tests: New file.
677         c32isprint: New module.
678         * lib/c32isprint.c: New file.
679         * modules/c32isprint: New file.
680         * doc/posix-functions/iswprint.texi: Mention the new module.
682 2020-01-25  Bruno Haible  <bruno@clisp.org>
684         c32islower: Add tests.
685         * tests/test-c32islower.c: New file.
686         * tests/test-c32islower.sh: New file.
687         * modules/c32islower-tests: New file.
689         c32islower: New module.
690         * lib/c32islower.c: New file.
691         * modules/c32islower: New file.
692         * doc/posix-functions/iswlower.texi: Mention the new module.
694 2020-01-25  Bruno Haible  <bruno@clisp.org>
696         c32isgraph: Add tests.
697         * tests/test-c32isgraph.c: New file.
698         * tests/test-c32isgraph.sh: New file.
699         * modules/c32isgraph-tests: New file.
701         c32isgraph: New module.
702         * lib/c32isgraph.c: New file.
703         * modules/c32isgraph: New file.
704         * doc/posix-functions/iswgraph.texi: Mention the new module.
706 2020-01-25  Bruno Haible  <bruno@clisp.org>
708         c32isdigit: Add tests.
709         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
710         * tests/test-c32isdigit.sh: New file.
711         * modules/c32isdigit-tests: New file.
713         c32isdigit: New module.
714         * lib/c32isdigit.c: New file.
715         * modules/c32isdigit: New file.
716         * doc/posix-functions/iswdigit.texi: Mention the new module.
718 2020-01-25  Bruno Haible  <bruno@clisp.org>
720         c32iscntrl: Add tests.
721         * tests/test-c32iscntrl.c: New file.
722         * tests/test-c32iscntrl.sh: New file.
723         * modules/c32iscntrl-tests: New file.
725         c32iscntrl: New module.
726         * lib/c32iscntrl.c: New file.
727         * modules/c32iscntrl: New file.
728         * doc/posix-functions/iswcntrl.texi: Mention the new module.
730 2020-01-25  Bruno Haible  <bruno@clisp.org>
732         c32isblank: Add tests.
733         * tests/test-c32isblank.c: New file.
734         * tests/test-c32isblank.sh: New file.
735         * modules/c32isblank-tests: New file.
737         c32isblank: New module.
738         * lib/c32isblank.c: New file.
739         * modules/c32isblank: New file.
740         * doc/posix-functions/iswblank.texi: Mention the new module.
742 2020-01-25  Bruno Haible  <bruno@clisp.org>
744         c32isalpha: Add tests.
745         * tests/test-c32isalpha.c: New file.
746         * tests/test-c32isalpha.sh: New file.
747         * modules/c32isalpha-tests: New file.
749         c32isalpha: New module.
750         * lib/c32isalpha.c: New file.
751         * modules/c32isalpha: New file.
752         * doc/posix-functions/iswalpha.texi: Mention the new module.
754 2020-01-25  Bruno Haible  <bruno@clisp.org>
756         c32isalnum: Add tests.
757         * tests/test-c32isalnum.c: New file.
758         * tests/test-c32isalnum.sh: New file.
759         * modules/c32isalnum-tests: New file.
761         c32isalnum: New module.
762         * lib/c32isalnum.c: New file.
763         * lib/c32is-impl.h: New file.
764         * modules/c32isalnum: New file.
765         * doc/posix-functions/iswalnum.texi: Mention the new module.
767 2020-01-25  Bruno Haible  <bruno@clisp.org>
769         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
770         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
771         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
772         c32isupper, c32isxdigit): New declarations.
773         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
774         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
775         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
776         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
777         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
778         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
779         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
780         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
781         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
782         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
783         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
784         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
785         c32ispunct, c32isspace, c32isupper, c32isxdigit.
787 2020-01-25  Bruno Haible  <bruno@clisp.org>
789         mbchar, wctype: Use the corrected iswxdigit function.
790         * modules/mbchar (Depends-on): Add iswxdigit.
791         * modules/wctype (Depends-on): Likewise.
793         iswxdigit: Add tests.
794         * tests/test-iswxdigit.c: New file.
795         * tests/test-iswxdigit.sh: New file.
796         * modules/iswxdigit-tests: New file.
798         iswxdigit: New module.
799         * m4/iswxdigit.m4: New file.
800         * lib/wctype.in.h (iswxdigit): Potentially override.
801         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
802         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
803         * lib/iswxdigit.c: New file.
804         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
805         REPLACE_ISWXDIGIT.
806         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
807         REPLACE_ISWXDIGIT.
808         * modules/iswxdigit: New file.
809         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
811 2020-01-25  Bruno Haible  <bruno@clisp.org>
813         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
814         Reported by John Donoghue <john.david.donoghue@gmail.com> in
815         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
816         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
817         off_t on mingw, invoke _lseeki64 instead of lseek.
819 2020-01-25  Bruno Haible  <bruno@clisp.org>
821         iswdigit tests: Avoid test failure on Cygwin.
822         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
823         byte sequence, return 0.
825         iswdigit: Fix test failure on native Windows.
826         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
828         mbchar, wctype: Use the corrected iswdigit function.
829         * modules/mbchar (Depends-on): Add iswdigit.
830         * modules/wctype (Depends-on): Likewise.
832         iswdigit: Add tests.
833         * tests/test-iswdigit.c: New file.
834         * tests/test-iswdigit.sh: New file.
835         * modules/iswdigit-tests: New file.
837         iswdigit: New module.
838         * m4/iswdigit.m4: New file.
839         * lib/wctype.in.h (iswdigit): Potentially override.
840         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
841         * lib/iswdigit.c: New file.
842         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
843         REPLACE_ISWDIGIT.
844         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
845         REPLACE_ISWDIGIT.
846         * modules/iswdigit: New file.
847         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
849 2020-01-25  Bruno Haible  <bruno@clisp.org>
851         hard-locale tests: Make it easy to reuse the musl test.
852         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
853         * modules/hard-locale-tests (Files): Add it.
854         (configure.ac): Invoke gl_MUSL_LIBC.
856 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
858         regex: port to Gawk on nonstandard platforms
859         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
860         This is useful for Gawk, which does not use the Gnulib stdlib-h
861         module.  Problem reported by Arnold Robbins in:
862         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
864 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
866         regex: fix bug with >=16 subexpressions
867         * lib/regex_internal.h (struct re_backref_cache_entry):
868         Use bitset_word_t as the type of eps_reachable_subexps_map,
869         instead of unsigned short int.  This fixes a bug I introduced
870         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
871         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
872         Remove unused member 'unused'.
874         regex: simplify definition of BITSET_WORD_BITS
875         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
876         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
877         * lib/regex_internal.h (BITSET_WORD_BITS):
878         * modules/regex (Depends-on): Add limits-h.
879         Simplify now that we can use ULONG_WIDTH.
881 2020-01-20  Bruno Haible  <bruno@clisp.org>
883         mbrtoc32: Add note about FreeBSD 12.
884         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
885         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
886         affected.
888 2020-01-20  Bruno Haible  <bruno@clisp.org>
890         unistr/u8-uctomb: Fix warning.
891         Reported by Andreas Schwab <schwab@suse.de> in
892         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
893         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
894         (u8_uctomb): Add FALLTHROUGH markers.
896 2020-01-20  Bruno Haible  <bruno@clisp.org>
898         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
899         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
900         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
901         (glthread_once): Use it.
903 2020-01-19  Bruno Haible  <bruno@clisp.org>
905         threadlib: Disable use of weak symbols on FreeBSD 11.
906         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
907         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
908         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
909         against a bug in FreeBSD 11.
911 2020-01-19  Bruno Haible  <bruno@clisp.org>
913         iconv_open: Improve z/OS support.
914         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
915         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
916         Remove mapping for EUC-TW.
918 2020-01-18  Bruno Haible  <bruno@clisp.org>
920         Rename ~~gnulib.m4 to zzgnulib.m4.
921         Suggested by Paul Eggert.
922         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
923         * gnulib-tool (func_get_filelist): Update.
924         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
926 2020-01-18  Bruno Haible  <bruno@clisp.org>
928         doc: Update license notices.
929         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
930         reference to a section or to a "file as part of this distribution".
932 2020-01-18  Bruno Haible  <bruno@clisp.org>
934         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
935         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
936         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
937         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
938         AC_EGREP_CPP.
940 2020-01-18  Bruno Haible  <bruno@clisp.org>
942         Ensure Automake does not drop ~~gnulib.m4.
943         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
944         * m4/gnulib-common.m4 (gl_COMMON): Require it.
946 2020-01-18  Bruno Haible  <bruno@clisp.org>
948         Fix major regression from 2020-01-10.
949         Reported by Paul Eggert in
950         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
951         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
952         Don't AC_REQUIRE anything.
953         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
954         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
955         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
956         use ac_compile instead.
957         (AC_CHECK_DECL): Remove override.
958         * m4/~~gnulib.m4: New file.
959         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
960         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
962 2020-01-17  Bruno Haible  <bruno@clisp.org>
963             Paul Eggert  <eggert@cs.ucla.edu>
965         glob: Fix use-after-free bug.
966         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
967         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
968         * lib/glob.c (__glob): Delay freeing dirname until after the use of
969         end_name.
971 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
973         vcs-to-changelog: Fix parsing of fndecl without args.
974         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
975         for empty arguments.
977 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
979         vcs-to-changelog: Add documentation.
980         * doc/vcs-to-changelog.texi: New file.
981         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
982         section.
984 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
986         vcs-to-changelog: Allow loading of custom quirks file.
987         * build-aux/vcs_to_changelog.py: New commandline option -q.
989 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
991         vcs-to-changelog: Fix formatting of ChangeLog output.
992         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
993         output.
995 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
997         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
998         Reported in
999         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
1000         * build-aux/vcstocl/frontend_c.py: Remove shebang.
1002 2020-01-15  Simon Josefsson  <simon@josefsson.org>
1004         crypto/gc-pbkdf2: New module.
1005         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
1006         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
1007         * lib/gc-pbkdf2.c: New file.
1008         * lib/gc-pbkdf2-sha1.c: Use new interface.
1009         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
1010         * modules/crypto/gc-pbkdf2: New file.
1011         * modules/crypto/gc-pbkdf2-tests: New file.
1012         * tests/test-gc-pbkdf2.c: New file.
1014 2020-01-12  Bruno Haible  <bruno@clisp.org>
1016         c32stombs: Add tests.
1017         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
1018         * tests/test-c32stombs-1.sh: New file, based on
1019         tests/test-c32srtombs-1.sh.
1020         * tests/test-c32stombs-2.sh: New file, based on
1021         tests/test-c32srtombs-2.sh.
1022         * tests/test-c32stombs-3.sh: New file, based on
1023         tests/test-c32srtombs-3.sh.
1024         * tests/test-c32stombs-4.sh: New file, based on
1025         tests/test-c32srtombs-4.sh.
1026         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
1028         c32stombs: New module.
1029         * lib/uchar.in.h (c32stombs): New declaration.
1030         * lib/c32stombs.c: New file.
1031         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
1032         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
1033         * modules/c32stombs: New file.
1034         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
1035         * doc/posix-functions/wcstombs.texi: Mention the new module.
1037 2020-01-11  Jim Meyering  <meyering@fb.com>
1039         perl: require the "warnings" module
1040         * m4/perl.m4: Also "use warnings", so we reject the perl found
1041         on at least one IRIX 6.5 system. Reported by Bruno Haible in
1042         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
1044 2020-01-10  Bruno Haible  <bruno@clisp.org>
1046         Fix major regression from 2020-01-04.
1047         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
1048         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
1049         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
1050         AC_DEFUN_ONCE.
1051         (AC_CHECK_DECL): Invoke, not require, it.
1053 2020-01-10  Bruno Haible  <bruno@clisp.org>
1055         c32snrtombs: Add tests.
1056         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
1057         * tests/test-c32snrtombs-1.sh: New file, based on
1058         tests/test-wcsnrtombs1.sh.
1059         * tests/test-c32snrtombs-2.sh: New file, based on
1060         tests/test-wcsnrtombs2.sh.
1061         * tests/test-c32snrtombs-3.sh: New file, based on
1062         tests/test-wcsnrtombs3.sh.
1063         * tests/test-c32snrtombs-4.sh: New file, based on
1064         tests/test-wcsnrtombs4.sh.
1065         * modules/c32snrtombs-tests: New file, based on
1066         modules/wcsnrtombs-tests.
1068         c32snrtombs: New module.
1069         * lib/uchar.in.h (c32snrtombs): New declaration.
1070         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
1071         INTERNAL_STATE, WCRTOMB.
1072         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
1073         * lib/c32snrtombs.c: New file.
1074         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
1075         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
1076         * modules/c32snrtombs: New file.
1077         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
1078         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
1080 2020-01-09  Bruno Haible  <bruno@clisp.org>
1082         c32srtombs: Add tests.
1083         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
1084         * tests/test-c32srtombs-1.sh: New file, based on
1085         tests/test-wcsrtombs1.sh.
1086         * tests/test-c32srtombs-2.sh: New file, based on
1087         tests/test-wcsrtombs2.sh.
1088         * tests/test-c32srtombs-3.sh: New file, based on
1089         tests/test-wcsrtombs3.sh.
1090         * tests/test-c32srtombs-4.sh: New file, based on
1091         tests/test-wcsrtombs4.sh.
1092         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
1094         c32srtombs: New module.
1095         * lib/uchar.in.h (c32srtombs): New declaration.
1096         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
1097         INTERNAL_STATE, WCRTOMB.
1098         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
1099         * lib/c32srtombs.c: New file.
1100         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
1101         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
1102         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
1103         * modules/c32srtombs: New file.
1104         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
1105         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
1107 2020-01-08  Bruno Haible  <bruno@clisp.org>
1109         c32tob: Make consistent with mbrtoc32.
1110         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
1111         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
1112         use c32rtomb, not wctob.
1113         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
1114         (Depends-on): Add c32rtomb.
1115         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
1117 2020-01-08  Bruno Haible  <bruno@clisp.org>
1119         c32rtomb: Add tests.
1120         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
1121         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
1122         * tests/test-c32rtomb-w32.c: New file, based on
1123         tests/test-wcrtomb-w32.c.
1124         * tests/test-c32rtomb-w32-1.sh: New file, based on
1125         tests/test-wcrtomb-w32-1.sh.
1126         * tests/test-c32rtomb-w32-2.sh: New file, based on
1127         tests/test-wcrtomb-w32-2.sh.
1128         * tests/test-c32rtomb-w32-3.sh: New file, based on
1129         tests/test-wcrtomb-w32-3.sh.
1130         * tests/test-c32rtomb-w32-4.sh: New file, based on
1131         tests/test-wcrtomb-w32-4.sh.
1132         * tests/test-c32rtomb-w32-5.sh: New file, based on
1133         tests/test-wcrtomb-w32-5.sh.
1134         * tests/test-c32rtomb-w32-6.sh: New file, based on
1135         tests/test-wcrtomb-w32-6.sh.
1136         * tests/test-c32rtomb-w32-7.sh: New file, based on
1137         tests/test-wcrtomb-w32-7.sh.
1138         * modules/c32rtomb-tests: New file.
1140         c32rtomb: New module.
1141         * lib/uchar.in.h (c32rtomb): New declaration.
1142         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
1143         * m4/c32rtomb.m4: New file.
1144         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
1145         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
1146         REPLACE_C32RTOMB.
1147         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
1148         HAVE_C32RTOMB, REPLACE_C32RTOMB.
1149         * modules/c32rtomb: New file.
1150         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
1151         * doc/posix-functions/c32rtomb.texi: Document the new module.
1152         * doc/posix-functions/wcrtomb.texi: Mention the new module.
1154 2020-01-08  Bruno Haible  <bruno@clisp.org>
1156         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
1157         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
1158         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
1159         but is not working.
1160         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
1161         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
1162         differ, use the system's mbrtoc32, adding workarounds.
1163         * modules/mbrtoc32 (Depends-on): Add hard-locale.
1164         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
1165         Windows problem.
1166         * lib/btoc32.c: Include <stdio.h>, <string.h>.
1167         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
1168         use mbrtoc32, not btowc.
1169         * modules/btoc32 (Depends-on): Add mbrtoc32.
1170         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
1171         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
1172         * modules/mbsrtoc32s (Depends-on): Update conditions.
1173         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
1174         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
1175         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
1176         * modules/mbsnrtoc32s (Depends-on): Update conditions.
1177         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
1179 2020-01-07  Bruno Haible  <bruno@clisp.org>
1181         wcrtomb: Make multithread-safe, except possibly on IRIX.
1182         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
1183         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
1184         WCRTOMB_RETVAL_BUG.
1185         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
1186         wctomb only on IRIX.
1188 2020-01-05  Jim Meyering  <meyering@fb.com>
1190         tests: skip thread-using tests when threading is disabled
1191         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
1192         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
1193         of those, so they are skipped in this case.
1194         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
1195         * tests/test-setlocale_null-mt-all.c (main): Likewise.
1196         * tests/test-setlocale_null-mt-one.c (main): Likewise.
1198 2020-01-05  Bruno Haible  <bruno@clisp.org>
1200         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
1201         Reported by Jim Meyering in
1202         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
1203         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
1204         (GNULIB_defined_ptsname_r): New macro.
1205         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
1206         (main): Disable the NULL argument test if canonicalize_file_name does
1207         not come from gnulib.
1208         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
1209         (main): Disable the NULL argument test if canonicalize_file_name does
1210         not come from gnulib.
1211         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
1212         (test_errors): Disable the NULL argument test if ptsname_r does not come
1213         from gnulib.
1215 2020-01-04  Jim Meyering  <meyering@fb.com>
1217         update-copyright: reenable its always-skipped test
1218         * tests/test-update-copyright.sh: Restore the "-pi" options removed
1219         on 2019-06-15. Without those, an internal preliminary test would
1220         fail, causing this test always to be skipped.
1221         Verify that the test is now run and passes via this:
1222           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
1224 2020-01-05  Bruno Haible  <bruno@clisp.org>
1226         mbstoc32s: Add tests.
1227         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
1228         * tests/test-mbstoc32s-1.sh: New file, based on
1229         tests/test-mbsrtoc32s-1.sh.
1230         * tests/test-mbstoc32s-2.sh: New file, based on
1231         tests/test-mbsrtoc32s-2.sh.
1232         * tests/test-mbstoc32s-3.sh: New file, based on
1233         tests/test-mbsrtoc32s-3.sh.
1234         * tests/test-mbstoc32s-4.sh: New file, based on
1235         tests/test-mbsrtoc32s-4.sh.
1236         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
1238         mbstoc32s: New module.
1239         * lib/uchar.in.h (mbstoc32s): New declaration.
1240         * lib/mbstoc32s.c: New file.
1241         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
1242         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
1243         * modules/mbstoc32s: New file.
1244         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
1245         * doc/posix-functions/mbstowcs.texi: Mention the new module.
1247 2020-01-05  Bruno Haible  <bruno@clisp.org>
1249         Tweak recently added tests.
1250         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
1251         * tests/test-mbsrtoc32s.c: Likewise.
1252         * tests/test-mbsnrtoc32s.c: Likewise.
1254 2020-01-04  Bruno Haible  <bruno@clisp.org>
1256         mbsnrtoc32s: Add tests.
1257         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
1258         * tests/test-mbsnrtoc32s-1.sh: New file, based on
1259         tests/test-mbsnrtowcs1.sh.
1260         * tests/test-mbsnrtoc32s-2.sh: New file, based on
1261         tests/test-mbsnrtowcs2.sh.
1262         * tests/test-mbsnrtoc32s-3.sh: New file, based on
1263         tests/test-mbsnrtowcs3.sh.
1264         * tests/test-mbsnrtoc32s-4.sh: New file, based on
1265         tests/test-mbsnrtowcs4.sh.
1266         * modules/mbsnrtoc32s-tests: New file, based on
1267         modules/mbsnrtowcs-tests.
1269         mbsnrtoc32s: New module.
1270         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
1271         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
1272         INTERNAL_STATE, MBRTOWC.
1273         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
1274         * lib/mbsnrtoc32s.c: New file.
1275         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
1276         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
1277         * modules/mbsnrtoc32s: New file.
1278         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
1279         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
1281 2020-01-04  Bruno Haible  <bruno@clisp.org>
1283         mbsrtoc32s tests: Enhance test.
1284         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
1285         test strings for UTF-8 and GB18030.
1287 2020-01-04  Bruno Haible  <bruno@clisp.org>
1289         mbsrtoc32s: Fix bug.
1290         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
1291         that SMALL_WCHAR_T is defined.
1293 2020-01-04  Bruno Haible  <bruno@clisp.org>
1295         mbsrtoc32s: Add tests.
1296         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
1297         * tests/test-mbsrtoc32s-1.sh: New file, based on
1298         tests/test-mbsrtowcs1.sh.
1299         * tests/test-mbsrtoc32s-2.sh: New file, based on
1300         tests/test-mbsrtowcs2.sh.
1301         * tests/test-mbsrtoc32s-3.sh: New file, based on
1302         tests/test-mbsrtowcs3.sh.
1303         * tests/test-mbsrtoc32s-4.sh: New file, based on
1304         tests/test-mbsrtowcs4.sh.
1305         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
1307         mbsrtoc32s: New module.
1308         * lib/uchar.in.h (mbsrtoc32s): New declaration.
1309         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
1310         INTERNAL_STATE, MBRTOWC.
1311         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
1312         * lib/mbsrtoc32s.c: New file.
1313         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
1314         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
1315         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
1316         * modules/mbsrtoc32s: New file.
1317         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
1318         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
1320 2020-01-04  Bruno Haible  <bruno@clisp.org>
1322         mbrtowc, mbrtoc32: Tighten dependendies.
1323         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
1324         REPLACE_MBSTATE_T is 1.
1325         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
1326         REPLACE_MBSTATE_T is 0.
1327         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
1328         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
1329         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
1330         REPLACE_MBSTATE_T is 0.
1332 2020-01-04  Bruno Haible  <bruno@clisp.org>
1334         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
1335         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
1336         * modules/uchar (Files): Add stdint.m4.
1337         (Makefile.am): Substitute SMALL_WCHAR_T.
1338         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
1340 2020-01-04  Bruno Haible  <bruno@clisp.org>
1342         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
1343         Reported by Martin Storsjö <martin@martin.st> in
1344         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
1345         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
1346         New macros.
1347         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
1349 2020-01-04  Bruno Haible  <bruno@clisp.org>
1351         btoc32: Add tests.
1352         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
1353         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
1354         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
1355         * modules/btoc32-tests: New file, based on modules/btowc-tests.
1357         btoc32: New module.
1358         * lib/uchar.in.h (btoc32): New declaration.
1359         * lib/btoc32.c: New file.
1360         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
1361         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
1362         * modules/btoc32: New file.
1363         * tests/test-uchar-c++.cc: Test the signature of btoc32.
1364         * doc/posix-functions/btowc.texi: Mention the new module.
1366 2020-01-03  Bruno Haible  <bruno@clisp.org>
1368         uchar tests: Avoid compilation error with HP cc.
1369         * tests/test-uchar.c: Disable a test when HP cc is in use.
1371 2020-01-03  Bruno Haible  <bruno@clisp.org>
1373         mbrtoc32: Add tests.
1374         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
1375         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
1376         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
1377         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
1378         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
1379         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
1380         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
1381         * tests/test-mbrtoc32-w32-1.sh: New file, based on
1382         tests/test-mbrtowc-w32-1.sh.
1383         * tests/test-mbrtoc32-w32-2.sh: New file, based on
1384         tests/test-mbrtowc-w32-2.sh.
1385         * tests/test-mbrtoc32-w32-3.sh: New file, based on
1386         tests/test-mbrtowc-w32-3.sh.
1387         * tests/test-mbrtoc32-w32-4.sh: New file, based on
1388         tests/test-mbrtowc-w32-4.sh.
1389         * tests/test-mbrtoc32-w32-5.sh: New file, based on
1390         tests/test-mbrtowc-w32-5.sh.
1391         * tests/test-mbrtoc32-w32-6.sh: New file, based on
1392         tests/test-mbrtowc-w32-6.sh.
1393         * tests/test-mbrtoc32-w32-7.sh: New file, based on
1394         tests/test-mbrtowc-w32-7.sh.
1395         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
1397         mbrtoc32: New module.
1398         * lib/uchar.in.h (mbrtoc32): New declaration.
1399         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
1400         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
1401         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
1402         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
1403         REPLACE_MBRTOC32.
1404         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
1405         HAVE_MBRTOC32, REPLACE_MBRTOC32.
1406         * modules/mbrtoc32: New file, based on modules/mbrtowc.
1407         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
1408         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
1409         $(LIB_MBRTOWC).
1410         * doc/posix-functions/mbrtoc32.texi: Document the new module.
1411         * doc/posix-functions/mbrtowc.texi: Mention the new module.
1413 2020-01-03  Bruno Haible  <bruno@clisp.org>
1415         mbrtowc: Refactor to share code with mbrtoc32.
1416         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
1417         * lib/mbrtowc-impl-utf8.h: Likewise.
1418         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
1419         mbrtowc-impl.h.
1420         * modules/mbrtowc (Files): Add the new files.
1422 2020-01-03  Jim Meyering  <meyering@fb.com>
1424         doc: fix time.texi wording
1425         * doc/posix-headers/time.texi (time.h): Typo.
1427 2020-01-03  Bruno Haible  <bruno@clisp.org>
1429         mbrtowc: Refactor locale charset dispatching.
1430         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
1431         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
1432         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
1433         localcharset.h, streq.h.
1434         (enc_t): Remove type.
1435         (locale_enc): Remove function.
1436         (cached_locale_enc): Remove variable.
1437         (locale_enc_cached): Remove function.
1438         (mbrtowc): Invoke locale_encoding_classification.
1439         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
1440         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
1441         lc-charset-dispatch.c.
1442         (configure.ac): Arrange to compile lc-charset-dispatch.c.
1444 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
1446         doc: mention 32-bit time_t issue
1447         * doc/posix-headers/sys_stat.texi (sys/stat.h):
1448         * doc/posix-headers/time.texi (time.h): Mention 2038.
1450 2020-01-03  Bruno Haible  <bruno@clisp.org>
1452         mbrtowc: Ensure the mbtowc_lock is unique.
1453         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
1454         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
1455         lib/setlocale_null.c.
1456         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
1457         glthread/lock.h. Include mbtowc-lock.h.
1458         (mbtowc_lock): Remove declaration.
1459         (mbrtowc): Use mbtowc_with_lock.
1460         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
1461         threads.h. Set LIB_MBRTOWC.
1462         (gl_PREREQ_MBTOWC_LOCK): New macro.
1463         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
1464         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
1465         (Depends-on): Remove lock.
1466         (configure.ac): Arrange to compile mbtowc-lock.c.
1467         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
1468         * modules/acl (Link): Likewise.
1469         * modules/argmatch (Link): Likewise.
1470         * modules/backup-rename (Link): Likewise.
1471         * modules/backupfile (Link): Likewise.
1472         * modules/closein (Link): Likewise.
1473         * modules/closeout (Link): Likewise.
1474         * modules/copy-file (Link): Likewise.
1475         * modules/csharpcomp (Link): Likewise.
1476         * modules/csharpexec (Link): Likewise.
1477         * modules/dfa (Link): Likewise.
1478         * modules/exclude (Link): Likewise.
1479         * modules/fnmatch (Link): Likewise.
1480         * modules/fnmatch-gnu (Link): Likewise.
1481         * modules/fnmatch-posix (Link): Likewise.
1482         * modules/glob (Link): Likewise.
1483         * modules/human (Link): Likewise.
1484         * modules/javacomp (Link): Likewise.
1485         * modules/javaexec (Link): Likewise.
1486         * modules/javaversion (Link): Likewise.
1487         * modules/mbfile (Link): Likewise.
1488         * modules/mbiter (Link): Likewise.
1489         * modules/mbmemcasecmp (Link): Likewise.
1490         * modules/mbmemcasecoll (Link): Likewise.
1491         * modules/mbrlen (Link): Likewise.
1492         * modules/mbscasecmp (Link): Likewise.
1493         * modules/mbscasestr (Link): Likewise.
1494         * modules/mbschr (Link): Likewise.
1495         * modules/mbscspn (Link): Likewise.
1496         * modules/mbsinit (Link): Likewise.
1497         * modules/mbslen (Link): Likewise.
1498         * modules/mbsncasecmp (Link): Likewise.
1499         * modules/mbsnlen (Link): Likewise.
1500         * modules/mbsnrtowcs (Link): Likewise.
1501         * modules/mbspbrk (Link): Likewise.
1502         * modules/mbspcasecmp (Link): Likewise.
1503         * modules/mbsrchr (Link): Likewise.
1504         * modules/mbsrtowcs (Link): Likewise.
1505         * modules/mbssep (Link): Likewise.
1506         * modules/mbsspn (Link): Likewise.
1507         * modules/mbsstr (Link): Likewise.
1508         * modules/mbstok_r (Link): Likewise.
1509         * modules/mbswidth (Link): Likewise.
1510         * modules/mbuiter (Link): Likewise.
1511         * modules/mkdir-p (Link): Likewise.
1512         * modules/propername (Link): Likewise.
1513         * modules/quote (Link): Likewise.
1514         * modules/quotearg (Link): Likewise.
1515         * modules/quotearg-simple (Link): Likewise.
1516         * modules/regex-quote (Link): Likewise.
1517         * modules/rpmatch (Link): Likewise.
1518         * modules/sh-quote (Link): Likewise.
1519         * modules/system-quote (Link): Likewise.
1520         * modules/trim (Link): Likewise.
1521         * modules/unistdio/ulc-asnprintf (Link): Likewise.
1522         * modules/unistdio/ulc-fprintf (Link): Likewise.
1523         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
1524         * modules/unistdio/ulc-vasprintf (Link): Likewise.
1525         * modules/unistdio/ulc-vfprintf (Link): Likewise.
1526         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
1527         * modules/unistdio/ulc-vsprintf (Link): Likewise.
1528         * modules/xfreopen (Link): Likewise.
1529         * modules/xmemcoll (Link): Likewise.
1530         * modules/yesno (Link): Likewise.
1531         * modules/regex (Link): Add $(LIB_MBRTOWC).
1532         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
1533         instead of $(LIBTHREAD).
1534         * modules/argmatch-tests (Makefile.am): Likewise.
1535         * modules/closein-tests (Makefile.am): Likewise.
1536         * modules/copy-file-tests (Makefile.am): Likewise.
1537         * modules/dfa-tests (Makefile.am): Likewise.
1538         * modules/fnmatch-tests (Makefile.am): Likewise.
1539         * modules/glob-tests (Makefile.am): Likewise.
1540         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
1541         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
1542         * modules/mbrtowc-tests (Makefile.am): Likewise.
1543         * modules/mbscasecmp-tests (Makefile.am): Likewise.
1544         * modules/mbscasestr-tests (Makefile.am): Likewise.
1545         * modules/mbschr-tests (Makefile.am): Likewise.
1546         * modules/mbscspn-tests (Makefile.am): Likewise.
1547         * modules/mbsinit-tests (Makefile.am): Likewise.
1548         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1549         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
1550         * modules/mbspbrk-tests (Makefile.am): Likewise.
1551         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1552         * modules/mbsrchr-tests (Makefile.am): Likewise.
1553         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
1554         * modules/mbsspn-tests (Makefile.am): Likewise.
1555         * modules/mbsstr-tests (Makefile.am): Likewise.
1556         * modules/quotearg-simple-tests (Makefile.am): Likewise.
1557         * modules/quotearg-tests (Makefile.am): Likewise.
1558         * modules/readtokens-tests (Makefile.am): Likewise.
1559         * modules/sh-quote-tests (Makefile.am): Likewise.
1560         * modules/system-quote-tests (Makefile.am): Likewise.
1561         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
1562         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1563         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
1564         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
1565         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
1566         * modules/yesno-tests (Makefile.am): Likewise.
1567         * modules/exclude-tests (Makefile.am): Link the programs with
1568         $(LIB_MBRTOWC).
1569         * modules/regex-tests (Makefile.am): Likewise.
1570         * modules/regex-quote-tests (Makefile.am): Likewise.
1572 2020-01-03  Bruno Haible  <bruno@clisp.org>
1574         getopt-posix: Fix compilation failure in testdirs.
1575         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
1576         when the gnulib module 'getopt-posix' is enabled.
1577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
1578         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
1579         module indicator.
1580         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
1582 2020-01-03  Bruno Haible  <bruno@clisp.org>
1584         doc: Mention the 64-bit inode number problem.
1585         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
1586         64-bit inode number problem.
1587         * doc/posix-functions/stat.texi: Mention that this module fixes the
1588         64-bit inode number problem.
1589         * doc/posix-functions/lstat.texi: Likewise.
1590         * doc/posix-functions/fstat.texi: Likewise.
1591         * doc/posix-functions/readdir.texi: Add more details.
1592         * doc/posix-functions/readdir_r.texi: Likewise.
1594 2020-01-02  Bruno Haible  <bruno@clisp.org>
1596         wcrtomb: Add more tests.
1597         * tests/test-wcrtomb-w32.c: Include localcharset.h.
1598         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
1599         locale_charset() returns the expected value; otherwise, skip the test.
1600         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
1601         * tests/test-wcrtomb-w32-7.sh: Likewise.
1602         * modules/wcrtomb-tests (Files): Add these files.
1603         (Depends-on): Add localcharset.
1604         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
1606 2020-01-02  Bruno Haible  <bruno@clisp.org>
1608         mbrtowc: Add more tests.
1609         * tests/test-mbrtowc-w32.c: Include localcharset.h.
1610         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
1611         locale_charset() returns the expected value; otherwise, skip the test.
1612         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
1613         * tests/test-mbrtowc-w32-7.sh: Likewise.
1614         * modules/mbrtowc-tests (Files): Add these files.
1615         (Depends-on): Add localcharset.
1616         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
1618 2020-01-02  Bruno Haible  <bruno@clisp.org>
1620         mbrtowc: Fix test failures on MSVC (regression by previous commit).
1621         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
1622         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
1623         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
1624         MBRTOWC_STORES_INCOMPLETE_BUG.
1625         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
1627 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
1629         doc: mention glibc bug 24269
1630         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
1631         Reformat slightly so that it looks nicer in the Grep manual.
1633 2020-01-02  Bruno Haible  <bruno@clisp.org>
1635         mbrtowc: Don't replace mbstate_t on MSVC.
1636         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
1637         a missing mbsinit function on native Windows.
1638         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
1639         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
1640         MSVC bug.
1641         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
1643 2020-01-02  Bruno Haible  <bruno@clisp.org>
1645         setlocale-null: Avoid crashing the MSVC linker.
1646         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
1647         MSVC.
1649 2020-01-02  Bruno Haible  <bruno@clisp.org>
1651         wchar: Make the HP-UX workaround work on HP-UX 11.31.
1652         * modules/wchar (Depends-on): Add inttypes-incomplete.
1653         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
1654         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
1655         of strtoimax.
1657 2020-01-02  Bruno Haible  <bruno@clisp.org>
1659         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
1660         * lib/mbrtowc.c: Include <stdint.h>.
1661         * modules/mbrtowc (Depends-on): Add stdint.
1663 2020-01-01  Pádraig Brady  <P@draigBrady.com>
1665         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
1666         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
1667         which will auto enable use of openssl, only for >= version 3,
1668         which is newly licensed under the Apache Software License.
1670 2020-01-01  Bruno Haible  <bruno@clisp.org>
1672         mbrtowc: Include function name in macro names.
1673         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
1674         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
1675         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
1676         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
1677         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
1678         C_LOCALE_MAYBE_EILSEQ.
1680 2020-01-01  Bruno Haible  <bruno@clisp.org>
1682         c32tob: New module.
1683         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
1684         (c32tob): New declaration.
1685         * lib/c32tob.c: New file.
1686         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
1687         macros.
1688         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
1689         * modules/uchar (Depends-on): Add snippet/c++defs.
1690         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
1691         uchar.h.
1692         * modules/c32tob: New file.
1693         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
1694         defined.
1695         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
1696         c32tob.
1697         * modules/uchar-c++-tests (Files): Add tests/signature.h.
1698         * doc/posix-functions/wctob.texi: Mention the new module.
1700 2020-01-01  Bruno Haible  <bruno@clisp.org>
1702         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
1703         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
1704         $(LIB_SETLOCALE).
1706 2020-01-01  Bruno Haible  <bruno@clisp.org>
1708         hard-locale tests: Fix a conflict with the C++ tests.
1709         * modules/hard-locale-tests (Makefile.am): Build a program named
1710         'current-locale', not 'locale'.
1712 2020-01-01  Bruno Haible  <bruno@clisp.org>
1714         doc: Update documentation about wchar_t.
1715         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
1716         wchar_t type.
1718 2020-01-01  Bruno Haible  <bruno@clisp.org>
1720         mbrtowc tests: Fix typos.
1721         * tests/test-mbrtowc.c (main): Fix typo.
1722         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
1724 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
1726         maint: update copyright notices
1727         Before doing the following changes done by hand, I also ran ‘make
1728         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
1729         to do most of the copyright years automatically.  A few upstream
1730         sources are still in 2019 but these should eventually be changed
1731         automatically too.
1732         * build-aux/declared.sh (func_version):
1733         * build-aux/libtool-next-version (func_version):
1734         * build-aux/run-test (func_version):
1735         Update these notices by hand.  Put just the last year
1736         in output of programs, as per GNU coding standards.
1738 2019-12-31  Bruno Haible  <bruno@clisp.org>
1740         uchar: Add C++ tests.
1741         * tests/test-uchar-c++.cc: New file.
1742         * tests/test-uchar-c++2.cc: New file.
1743         * modules/uchar-c++-tests: New file.
1745         uchar: Add tests.
1746         * tests/test-uchar.c: New file.
1747         * modules/uchar-tests: New file.
1749         uchar: New module.
1750         * lib/uchar.in.h: New file.
1751         * m4/uchar.m4: New file.
1752         * modules/uchar: New file.
1753         * doc/posix-headers/uchar.texi: Mention the new module.
1755 2019-12-30  Jim Meyering  <meyering@fb.com>
1757         localeinfo: ->simple would be wrong for LC_ALL=C
1758         That would lead to using unnecessary and expensive code paths in dfa.c.
1759         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
1760         error that would have made grep many times slower in the C locale.
1761         With this change, and a file created like this:
1762           yes 00 | head -10000000 > in
1763         Running grep as follows becomes more than 40 times faster:
1764           LC_ALL=C grep -Fw 0 in
1766 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1768         doc: document trouble with back-references
1769         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
1771 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1773         doc: use “back-reference” for \1 etc.
1774         * doc/regex.texi: Consistently spell “back-reference” with
1775         a hyphen, since that’s how POSIX does it.
1777 2019-12-26  Jim Meyering  <meyering@fb.com>
1779         test-framework-sh: tighten an internal grep regexp
1780         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
1781         that helps test for a working printf.
1783 2019-12-26  Bruno Haible  <bruno@clisp.org>
1785         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
1786         Reported by Paul Eggert in
1787         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
1788         Simplification by Jim Meyering.
1789         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
1790         octal escape sequence in a UTF-8 locale.
1792 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
1794         mbrtowc: port better to narrow-wchar_t platforms
1795         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
1796         wchar_t is too narrow to represent all the Unicode characters,
1797         consider a byte sequence for an out-of-wchar_t-range character to
1798         be an encoding error.  This fixes grep’s surrogate-pair test
1799         failure on AIX 7.2.
1801 2019-12-24  Bruno Haible  <bruno@clisp.org>
1803         localcharset: Avoid referencing rpl_setlocale on native Windows.
1804         * lib/localcharset.c (setlocale): Undefine.
1806 2019-12-24  Bruno Haible  <bruno@clisp.org>
1808         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
1809         * m4/semaphore.m4: New file.
1810         * modules/lock-tests (Files): Add it.
1811         (configure.ac): Require gl_SEMAPHORE.
1812         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
1814 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
1816         strptime: fix typo in previous patch
1817         Problem and fix reported by Bruno Haible in:
1818         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
1819         * lib/strptime.c (day_of_the_week): Fix paren bug.
1821 2019-12-24  Bruno Haible  <bruno@clisp.org>
1823         setlocale-null: Make it easy to rely on the lock in another library.
1824         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
1825         defined.
1827 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1829         gethrxtime, mktime, nstrftime, strptime: tweak division performance
1830         Performanced analyzed by Bruno Haible in:
1831         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
1832         * config/srclist.txt: Do not sync mktime.c for now.
1833         * lib/mktime.c (shr, ydhms_diff):
1834         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
1835         * lib/strptime.c (day_of_the_week):
1836         * lib/xtime.h (xtime_sec):
1837         Redo with neither ‘%’ nor conditional branches.
1839 2019-12-23  Bruno Haible  <bruno@clisp.org>
1841         setlocale-null: Export the lock function also on non-Windows platforms.
1842         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
1843         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
1844         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
1845         * modules/setlocale-null (configure.ac): Invoke it.
1846         (Files): Add m4/visibility.m4.
1848 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1850         gethrxtime: fix rounding bug with negative args
1851         Problem reported by Bruno Haible in:
1852         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
1853         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
1854         with negative rounding.  Common platforms can compute / and % with
1855         a single instruction, so the simplified code should be shorter and
1856         faster on these platforms anyway.
1858 2019-12-22  Bruno Haible  <bruno@clisp.org>
1860         gethrxtime: remove incorrect overflow detection
1861         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
1862         integer overflow, as it didn’t suffice.  This reverts the xtime.h
1863         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
1864         cannot now see the need for anyway (even in cases where it works),
1865         as the patch is helpful only when the signs of S and NS disagree,
1866         and all callers pass nonnegative values for S and NS.
1868 2019-12-22  Bruno Haible  <bruno@clisp.org>
1870         setlocale-null: Add standalone include file.
1871         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
1872         * lib/locale.in.h: Include setlocale_null.h.
1873         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
1874         setlocale_null): Remove declarations.
1875         * lib/setlocale_null.c: Include setlocale_null.h.
1876         * lib/localename.c: Likewise.
1877         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
1878         (Depends-on): Add snippet/arg-nonnull.
1879         (Include): Allow either "setlocale_null.h" or <locale.h>.
1881 2019-12-22  Bruno Haible  <bruno@clisp.org>
1883         strfmon_l: Fix test failures on FreeBSD and Cygwin.
1884         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
1885         AC_RUN_IFELSE test.
1886         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
1887         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
1888         problem.
1890 2019-12-22  Bruno Haible  <bruno@clisp.org>
1892         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
1893         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
1894         unconditional AC_LIBOBJ.
1895         * modules/selinux-at: Likewise.
1896         * modules/xmemdup0: Likewise.
1897         * modules/xstrtoll: Likewise.
1899 2019-12-22  Bruno Haible  <bruno@clisp.org>
1901         longlong: Mark module obsolete.
1902         * modules/longlong (Status, Notice): New sections.
1904         stdint: Assume that the compiler supports 'long long'.
1905         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
1906         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
1907         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
1908         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
1909         AC_TYPE_UNSIGNED_LONG_LONG_INT.
1910         * modules/stdint (Files): Remove longlong.m4.
1911         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
1912         HAVE_UNSIGNED_LONG_LONG_INT.
1914         inttypes-incomplete: Assume that the compiler supports 'long long'.
1915         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
1916         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
1917         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
1918         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
1919         HAVE_LONG_LONG_INT to be 1.
1920         * modules/inttypes-incomplete (Makefile.am): Don't substitute
1921         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
1923         malloca: Assume that the compiler supports 'long long'.
1924         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
1925         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
1926         * modules/malloca (Files): Remove longlong.m4.
1927         * modules/relocatable-prog-wrapper (Files): Likewise.
1929         atoll: Assume that the compiler supports 'long long'.
1930         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
1931         * modules/atoll (Files): Remove longlong.m4.
1933         strtoll: Assume that the compiler supports 'long long'.
1934         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
1935         * modules/strtoll (Files): Remove longlong.m4.
1937         strtoull: Assume that the compiler supports 'long long'.
1938         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
1939         AC_TYPE_UNSIGNED_LONG_LONG_INT.
1940         * modules/strtoull (Files): Remove longlong.m4.
1942         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
1943         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
1944         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
1945         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
1946         AC_TYPE_LONG_LONG_INT.
1947         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
1948         AC_TYPE_UNSIGNED_LONG_LONG_INT.
1949         * modules/strtoimax (Files): Remove longlong.m4.
1950         * modules/strtoumax (Files): Likewise.
1952         xstrtoll: Assume that the compiler supports 'long long'.
1953         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
1954         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
1956         vasnprintf: Assume that the compiler supports 'long long'.
1957         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
1958         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
1959         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
1960         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
1961         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
1962         require AC_TYPE_LONG_LONG_INT.
1963         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
1964         gl_PREREQ_VASNPRINTF): Likewise.
1965         * modules/vasnprintf (Files): Remove longlong.m4.
1966         * modules/c-vasnprintf (Files): Likewise.
1967         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1968         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1969         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1970         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1971         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1972         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1973         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1975         gethrxtime: Assume that the compiler supports 'long long'.
1976         * lib/xtime.h (xtime_t): Define to 'long long int' always.
1977         (XTIME_PRECISION): Define to 1000000000 always.
1978         (xtime_make, xtime_sec): Optimize accordingly.
1979         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
1980         * modules/gethrxtime (Files): Remove longlong.m4.
1982         integer_length*: Assume that the compiler supports 'long long'.
1983         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
1984         * modules/integer_length (Files): Remove longlong.m4.
1985         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
1986         * modules/integer_length_l (Files): Remove longlong.m4.
1987         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
1988         * modules/integer_length_ll (Files): Remove longlong.m4.
1989         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
1991         count-one-bits: Assume that the compiler supports 'long long'.
1992         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
1993         * m4/count-one-bits.m4: Remove file.
1994         * modules/count-one-bits (Files): Remove it.
1995         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
1996         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
1997         unconditionally.
1999         count-trailing-zeros: Assume that the compiler supports 'long long'.
2000         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
2001         unconditionally.
2002         * m4/count-trailing-zeros.m4: Remove file.
2003         * modules/count-trailing-zeros (Files): Remove it.
2004         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
2005         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
2006         unconditionally.
2008         count-leading-zeros: Assume that the compiler supports 'long long'.
2009         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
2010         unconditionally.
2011         * m4/count-leading-zeros.m4: Remove file.
2012         * modules/count-leading-zeros (Files): Remove it.
2013         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
2014         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
2015         unconditionally.
2017 2019-12-22  Bruno Haible  <bruno@clisp.org>
2019         localcharset: Update support for OpenBSD.
2020         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
2022 2019-12-21  Bruno Haible  <bruno@clisp.org>
2024         pthread_sigmask: Avoid test failure on NetBSD 8.0.
2025         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
2026         NetBSD.
2027         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
2029 2019-12-21  Bruno Haible  <bruno@clisp.org>
2031         threadlib: Improve code structure.
2032         * m4/threadlib.m4: Reorder macros. Add comments.
2034 2019-12-21  Bruno Haible  <bruno@clisp.org>
2036         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
2037         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
2038         here from m4/threads.m4).
2039         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
2040         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
2041         (gl_STDTHREADLIB): New macro.
2042         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
2043         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
2045 2019-12-21  Bruno Haible  <bruno@clisp.org>
2047         sched_yield: Don't depend on threadlib and yield.
2048         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
2049         LIB_SCHED_YIELD.
2050         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
2051         m4/yield.m4).
2052         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
2053         gl_THREADLIB and gl_YIELD.
2054         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
2055         based on $(LIB_SCHED_YIELD).
2056         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
2057         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
2058         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
2059         (Depends-on): Remove threadlib.
2060         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
2061         * modules/threads-h (Files): Remove m4/yield.m4.
2062         * modules/pthread-cond-tests (Makefile.am): Link the programs against
2063         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
2064         * modules/pthread-mutex-tests (Makefile.am): Likewise.
2065         * modules/pthread-once-tests (Makefile.am): Likewise.
2066         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
2067         * modules/pthread-tss-tests (Makefile.am): Likewise.
2069 2019-12-21  Bruno Haible  <bruno@clisp.org>
2071         threads-h: Don't depend on threadlib.
2072         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
2073         not gl_THREADLIB_EARLY.
2075 2019-12-21  Bruno Haible  <bruno@clisp.org>
2077         nl_langinfo tests: Fix link error (regression from 2019-12-18).
2078         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
2079         with $(LIB_SETLOCALE).
2081 2019-12-21  Bruno Haible  <bruno@clisp.org>
2083         threadlib: Remove unused dependency (left over from 2019-07-06).
2084         * modules/threadlib (Depends-on): Remove havelib.
2086 2019-12-21  Bruno Haible  <bruno@clisp.org>
2088         New convention for multithread-safety tests.
2089         * tests/test-setlocale_null-mt-one.c: Renamed from
2090         tests/test-setlocale_null-one.c.
2091         * tests/test-setlocale_null-mt-all.c: Renamed from
2092         tests/test-setlocale_null-all.c.
2093         * modules/setlocale-null-tests (Files, Makefile.am): Update.
2095 2019-12-21  Bruno Haible  <bruno@clisp.org>
2097         quotearg tests: Fix conflict with hard-locale tests.
2098         * tests/testlocale: Renamed from tests/locale.
2099         * modules/quotearg-tests (Files): Update.
2100         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
2102 2019-12-21  Bruno Haible  <bruno@clisp.org>
2104         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
2105         Reported by Daniel Richard G. in
2106         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
2107         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
2108         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
2109         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
2110         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
2111         alternative to PTHREAD_RWLOCK_INITIALIZER.
2112         * lib/glthread/lock.c: Likewise.
2114 2019-12-21  Bruno Haible  <bruno@clisp.org>
2116         memcmp tests: Work around the clang bug.
2117         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
2118         the clang optimization.
2120 2019-12-20  Bruno Haible  <bruno@clisp.org>
2122         localcharset: Add support for z/OS encoding names.
2123         * lib/localcharset.h: Mention which encodings are used as locale
2124         encodings on z/OS.
2126 2019-12-20  Bruno Haible  <bruno@clisp.org>
2128         iconv_open: Add support for z/OS encoding names.
2129         Reported by Daniel Richard G. in
2130         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
2131         * lib/iconv_open-zos.gperf: New file.
2132         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
2133         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
2134         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
2135         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
2136         * doc/posix-functions/iconv_open.texi: Mention z/OS.
2138 2019-12-20  Bruno Haible  <bruno@clisp.org>
2140         doc: Document the problem of the per-thread locale functions on z/OS.
2141         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
2142         * doc/posix-functions/newlocale.texi: Likewise.
2143         * doc/posix-functions/duplocale.texi: Likewise.
2144         * doc/posix-functions/freelocale.texi: Likewise.
2146 2019-12-20  Bruno Haible  <bruno@clisp.org>
2148         localename, gettext: Fix host_os value for z/OS.
2149         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
2150         cross-configuration code.
2152 2019-12-19  Jim Meyering  <meyering@fb.com>
2154         nstrftime: avoid a shadowing warning
2155         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
2156         to avoid shadowing an "i" declared hundreds of lines above.
2158 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
2160         dfa: struct dfamust now uses flexible array
2161         * lib/dfa.c: Include flexmember.h.
2162         (dfamust, dfamustfree): Adjust to struct dfamust change.
2163         This saves a call to malloc+free.
2164         * lib/dfa.h (struct dfamust): Make the final member a
2165         flexible array member.
2166         * modules/dfa (Depends-on): Add flexmember.
2168         dfa: fast->small for array elements
2169         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
2170         since this type is used in arrays.  This change is more for
2171         documentation than for any practical effect, since the two types
2172         are the same on all known platforms.
2174 2019-12-19  Bruno Haible  <bruno@clisp.org>
2176         iconv tests: Test canonicalized, not system-dependent, encoding names.
2177         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
2178         * modules/iconv-tests (Depends-on): Add iconv_open.
2180 2019-12-18  Bruno Haible  <bruno@clisp.org>
2182         localename: Fix test failure on AIX 7.2.
2183         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
2184         locales on AIX.
2185         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
2186         locales on AIX.
2188 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2190         Improve port of AC_C_RESTRICT to Oracle C++
2191         Problem reported by Christian Biesinger in:
2192         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
2193         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
2194         Oracle Developer Studio C++ 12.5 or later.
2196 2019-12-18  Bruno Haible  <bruno@clisp.org>
2198         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
2199         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
2201 2019-12-18  Bruno Haible  <bruno@clisp.org>
2203         localename: Ensure multithread-safety in future changes.
2204         * lib/localename.c (setlocale): Reference the system's setlocale().
2205         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
2206         (gl_locale_name_posix): Likewise.
2207         * modules/localename (Depends-on): Add setlocale-null.
2209 2019-12-18  Bruno Haible  <bruno@clisp.org>
2211         setlocale-null: Make API more useful.
2212         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
2213         callers changed.
2214         (setlocale_null): New declaration.
2215         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
2216         extracted from setlocale_null_unlocked.
2217         (setlocale_null_unlocked): Invoke it.
2218         (setlocale_null_r): Renamed from setlocale_null.
2219         (setlocale_null): New function, extracted from setlocale_mtsafe in
2220         setlocale.c.
2221         * lib/setlocale.c: Don't include <errno.h>.
2222         (setlocale_mtsafe): Invoke setlocale_null.
2223         * lib/setlocale-lock.c: Update comments.
2224         * doc/posix-functions/setlocale.texi: Mention both functions.
2226 2019-12-18  Bruno Haible  <bruno@clisp.org>
2228         localename: Optimize code for native Windows.
2229         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
2230         category (not allowed here).
2232 2019-12-18  Bruno Haible  <bruno@clisp.org>
2234         setlocale: Make calls with NULL argument multithread-safe.
2235         * lib/setlocale.c: Include <errno.h>.
2236         (setlocale_mtsafe): New function.
2237         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
2238         (setlocale_improved): Renamed from rpl_setlocale.
2239         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
2240         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
2241         LIB_SETLOCALE.
2242         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
2243         (Link): New section.
2244         * tests/locale.c: Undefine setlocale.
2245         * tests/test-setlocale_null-one.c: Likewise.
2246         * tests/test-setlocale_null-all.c: Likewise.
2247         * modules/setlocale-tests (Makefile.am): Link the test programs with
2248         $(LIB_SETLOCALE).
2249         * modules/astrxfrm-tests (Makefile.am): Likewise.
2250         * modules/btowc-tests (Makefile.am): Likewise.
2251         * modules/c-ctype-tests (Makefile.am): Likewise.
2252         * modules/c-snprintf-tests (Makefile.am): Likewise.
2253         * modules/c-strcase-tests (Makefile.am): Likewise.
2254         * modules/c-vasprintf-tests (Makefile.am): Likewise.
2255         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
2256         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
2257         * modules/dfa-tests (Makefile.am): Likewise.
2258         * modules/duplocale-tests (Makefile.am): Likewise.
2259         * modules/hard-locale-tests (Makefile.am): Likewise.
2260         * modules/localcharset-tests (Makefile.am): Likewise.
2261         * modules/localename-tests (Makefile.am): Likewise.
2262         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
2263         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
2264         * modules/mbrtowc-tests (Makefile.am): Likewise.
2265         * modules/mbscasecmp-tests (Makefile.am): Likewise.
2266         * modules/mbscasestr-tests (Makefile.am): Likewise.
2267         * modules/mbschr-tests (Makefile.am): Likewise.
2268         * modules/mbscspn-tests (Makefile.am): Likewise.
2269         * modules/mbsinit-tests (Makefile.am): Likewise.
2270         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
2271         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
2272         * modules/mbspbrk-tests (Makefile.am): Likewise.
2273         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
2274         * modules/mbsrchr-tests (Makefile.am): Likewise.
2275         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
2276         * modules/mbsspn-tests (Makefile.am): Likewise.
2277         * modules/mbsstr-tests (Makefile.am): Likewise.
2278         * modules/nl_langinfo-tests (Makefile.am): Likewise.
2279         * modules/quotearg-tests (Makefile.am): Likewise.
2280         * modules/regex-tests (Makefile.am): Likewise.
2281         * modules/strfmon_l-tests (Makefile.am): Likewise.
2282         * modules/strtod-tests (Makefile.am): Likewise.
2283         * modules/strtold-tests (Makefile.am): Likewise.
2284         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
2285         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
2286         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
2287         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
2288         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
2289         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
2290         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
2291         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
2292         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
2293         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
2294         * modules/wcrtomb-tests (Makefile.am): Likewise.
2295         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
2296         * modules/wcsrtombs-tests (Makefile.am): Likewise.
2297         * modules/wcwidth-tests (Makefile.am): Likewise.
2298         * doc/posix-functions/setlocale.texi: Mention that the multithread-
2299         safety fix is also available in module 'setlocale'.
2301 2019-12-18  Bruno Haible  <bruno@clisp.org>
2303         hard-locale: Make multithread-safe.
2304         * lib/hard-locale.h (hard_locale): Move documentation to here.
2305         * lib/hard-locale.c: Don't include <stdlib.h>.
2306         (GLIBC_VERSION): Remove macro.
2307         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
2308         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
2309         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
2310         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
2311         (Link): New section.
2312         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
2313         $(LIB_HARD_LOCALE).
2315 2019-12-18  Bruno Haible  <bruno@clisp.org>
2317         hard-locale: Avoid test failure on Haiku.
2318         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
2320 2019-12-18  Bruno Haible  <bruno@clisp.org>
2322         setlocale-null: Handle NULL result from setlocale.
2323         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
2324         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
2325         from setlocale or _wsetlocale.
2327 2019-12-18  Bruno Haible  <bruno@clisp.org>
2329         hard-locale: Add test.
2330         * tests/test-hard-locale.c: New file.
2331         * tests/locale.c: New file.
2332         * modules/hard-locale-tests: New file.
2334 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
2336         dfa: do not match invalid UTF-8
2337         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
2338         from 5 to 9 tokens; this is needed due to the changes to
2339         add_utf8_anychar.
2340         (charclass_index): 2nd arg is now pointer-to-const.
2341         (add_utf8_anychar): Match only valid UTF-8 byte sequences
2342         instead of allowing overlong encodings or surrogate halves.
2344         dfa: simplify charclass by assuming C99
2345         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
2346         (charclass_word): Now always uint_fast64_t.
2347         (CHARCLASS_PAIR): Remove.
2348         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
2350         fts: tune via calloc
2351         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
2353         dfa: tune via xzalloc
2354         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
2356 2019-12-17  Bruno Haible  <bruno@clisp.org>
2358         localcharset: Fix multithread-safety bug on Windows and OS/2.
2359         * lib/localcharset.h (locale_charset): Clarify when the result becomes
2360         invalid.
2361         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
2362         assemble the result.
2364 2019-12-17  Bruno Haible  <bruno@clisp.org>
2366         localcharset: Optimize code for native Windows.
2367         * lib/localcharset.c (locale_charset): Don't bother calling
2368         setlocale (LC_ALL, NULL) since we're not interested in its result.
2370 2019-12-17  Bruno Haible  <bruno@clisp.org>
2372         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
2373         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
2374         setlocale.
2375         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
2376         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
2377         * modules/nl_langinfo (Depends-on): Add setlocale-null.
2379 2019-12-17  Bruno Haible  <bruno@clisp.org>
2381         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
2382         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
2383         stack-allocated buffer to assemble each result and different static
2384         buffers to return it.
2385         * tests/test-nl_langinfo-mt.c: New file.
2386         * modules/nl_langinfo-tests (Files): Add it.
2387         (Depends-on): Add thread, nanosleep.
2388         (Makefile.am): Build test-nl_langinfo-mt test.
2390 2019-12-17  Bruno Haible  <bruno@clisp.org>
2392         langinfo: Document more details.
2393         * doc/posix-headers/langinfo.texi: List platform details.
2394         * doc/posix-functions/nl_langinfo.texi: Likewise.
2396 2019-12-17  Bruno Haible  <bruno@clisp.org>
2398         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
2399         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
2400         and Martin Storsjö <martin@martin.st>
2401         in <https://savannah.gnu.org/bugs/?57406>.
2402         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
2403         mingw.
2405 2019-12-17  Bruno Haible  <bruno@clisp.org>
2407         glob: Avoid warning on mingw.
2408         Reported by Christian Biesinger <cbiesinger@google.com> in
2409         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
2410         * lib/glob.c (__stat64): Undefine first.
2412 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
2414         xalloc: tune xzalloc for fresh allocations
2415         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
2416         because when the memory is freshly allocated from the OS via sbrk
2417         or mmap, calloc can avoid doing the memset.
2419         dfa: new function dfacopysyntax
2420         * lib/dfa.c (struct dfa): Move syntax member later so
2421         that dfacopysyntax can easily clear earlier members.
2422         (dfacopysyntax): New function, used by Gawk.
2424 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
2426         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
2427         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
2428         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
2429         if not already defined.
2431         dfa: remove one dependency on MB_CUR_MAX
2432         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
2434         dfa: remove struct lexer_state.cur_mb_len
2435         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
2436         as it’s not needed and the code is simpler without it.
2437         All uses removed.
2439 2019-12-16  Bruno Haible  <bruno@clisp.org>
2441         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
2442         Reported by Arnold Robbins <arnold@skeeve.com>.
2443         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
2444         copied from lib/glthread/lock.h.
2445         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
2446         (setlocale_null_with_lock): If pthread_in_use() is false, use
2447         setlocale_null_unlocked directly.
2448         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
2449         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
2450         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
2451         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
2452         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
2453         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
2455 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
2457         dfa: make dfasyntax thread-safe
2458         Problem reported by Bruno Haible in:
2459         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
2460         * lib/dfa.c: Do not include locale.h.
2461         (struct dfa): Remove simple_locale member.
2462         All uses replaced by localeinfo.simple.
2463         (using_simple_locale): Remove; now present (with some
2464         changes) in localeinfo.c.
2465         (dfasyntax): No need to initialize removed member.
2467         localeinfo: record whether locale is simple
2468         * lib/localeinfo.c (using_simple_locale): New function,
2469         copied here from lib/dfa.c but with a change: it uses
2470         strcoll for its heuristic, instead of using setlocale.
2471         This lets it be thread-safe.
2472         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
2474 2019-12-15  Bruno Haible  <bruno@clisp.org>
2476         duplocale: Fix multithread-safety bug on AIX.
2477         * lib/duplocale.c: Don't include <stdlib.h>.
2478         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
2479         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
2480         Set LIB_DUPLOCALE.
2481         * modules/duplocale (Depends-on): Add setlocale-null.
2482         (Link): New section.
2483         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
2484         $(LIB_DUPLOCALE).
2486 2019-12-15  Bruno Haible  <bruno@clisp.org>
2488         setlocale-null: Add tests.
2489         * tests/test-setlocale_null.c: New file.
2490         * tests/test-setlocale_null-one.c: New file.
2491         * tests/test-setlocale_null-all.c: New file.
2492         * modules/setlocale-null-tests: New file.
2494         setlocale-null: New module.
2495         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
2496         setlocale_null): New declarations.
2497         * lib/setlocale_null.c: New file.
2498         * lib/setlocale-lock.c: New file.
2499         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
2500         * m4/setlocale_null.m4: New file.
2501         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
2502         GNULIB_SETLOCALE_NULL.
2503         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
2504         * modules/setlocale-null: New file.
2505         * doc/posix-functions/setlocale.texi: Mention the new module.
2507 2019-12-15  Bruno Haible  <bruno@clisp.org>
2509         lock tests: Skip test when no multithreading is enabled.
2510         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
2512 2019-12-14  Bruno Haible  <bruno@clisp.org>
2514         locale, duplocale, localename: Fix last patch.
2515         Reported by Daniel Richard G. in
2516         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
2517         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
2518         Don't define if locale_t does not exist.
2520 2019-12-13  Bruno Haible  <bruno@clisp.org>
2522         locale, duplocale, localename: Fix errors if locale_t does not exist.
2523         Reported by Daniel Richard G. in
2524         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
2525         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
2526         macros.
2527         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
2528         HAVE_NEWLOCALE.
2529         * tests/test-localename.c: Likewise.
2530         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
2531         HAVE_DUPLOCALE.
2532         * tests/test-locale-c++.cc: Likewise.
2534 2019-12-13  Bruno Haible  <bruno@clisp.org>
2536         wcstok: Fix test failure on HP-UX.
2537         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
2538         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
2540 2019-12-12  Bruno Haible  <bruno@clisp.org>
2542         strtod, strtold tests: Avoid test failure on AIX 7.2.
2543         * tests/test-strtod1.c (main): Allow implementations in which ',' and
2544         '.' both are radix characters.
2545         * tests/test-strtold1.c (main): Likewise.
2547 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
2549         dfa: prefer ptrdiff_t for API, too
2550         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
2551         but do this only for internal use for now.
2552         * NEWS: Mention the API change.
2553         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
2554         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
2555         values known to be nonnegative.
2556         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
2557         Prefer idx_t or ptrdiff_t to size_t for API.
2558         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
2559         Prefer ptrdiff_t to size_t for API.
2561         stdalign: port to xlclang 16.01
2562         Problem reportd by Bruno Haible in:
2563         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
2564         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
2565         ((__aligned__ (...))) with xlclang, as a top-level
2566         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
2567         xlclang version 16.01.0000.0001; the alignment directive is ignored.
2569 2019-12-12  Bruno Haible  <bruno@clisp.org>
2571         duplocale: Fix test failure on AIX 7.2 with xlclang.
2572         * lib/duplocale.c: Include <stdlib.h>.
2573         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
2574         value.
2576 2019-12-12  Bruno Haible  <bruno@clisp.org>
2578         stddef: Document the AIX xlc issue.
2579         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
2581 2019-12-12  Bruno Haible  <bruno@clisp.org>
2583         duplocale: Don't attempt to override if locale_t does not exist.
2584         Reported by Daniel Richard G. in
2585         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
2586         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
2587         HAVE_DUPLOCALE to 0.
2589 2019-12-12  Bruno Haible  <bruno@clisp.org>
2591         wcwidth: Avoid test failure on AIX 7.2.
2592         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
2593         negative.
2594         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
2596 2019-12-12  Bruno Haible  <bruno@clisp.org>
2598         ilogbl: Work around Cygwin bug.
2599         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
2600         correct.
2601         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
2603 2019-12-12  Bruno Haible  <bruno@clisp.org>
2605         strtold: Work around Cygwin bug.
2606         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
2607         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
2608         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
2609         STRTOLD_HAS_UNDERFLOW_BUG is defined.
2610         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
2612 2019-12-12  Bruno Haible  <bruno@clisp.org>
2614         strtold: Fix autoconf test.
2615         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
2617 2019-12-11  Bruno Haible  <bruno@clisp.org>
2619         fsync tests: Skip test that is known to fail.
2620         * doc/posix-functions/fsync.texi: Update list of platforms.
2621         * tests/test-fsync.c (main): Skip test with read-only file descriptors
2622         that is known to fail on AIX and Cygwin.
2624 2019-12-11  Bruno Haible  <bruno@clisp.org>
2626         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
2627         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
2628         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
2629         HAVE_GETADDRINFO as a C macro.
2630         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
2631         declare as replacement functions.
2632         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
2633         define as no-op overrides.
2634         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
2635         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
2636         * modules/getaddrinfo (Depends-on, configure.ac): Test
2637         REPLACE_GETADDRINFO.
2638         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
2639         problem.
2640         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
2641         convention problems.
2643 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2645         dfa: prefer signed integers for internals
2646         Signed integers can be checked more easily for integer overflow.
2647         * lib/dfa.c (position, struct lexer_state, struct parser_state)
2648         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
2649         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
2650         (nsubtoks, copytoks, closure, alloc_position_set, delete)
2651         (replace, state_index, epsclosure, charclass_context)
2652         (state_separate_contexts, merge_nfa_state, dfaoptimize)
2653         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
2654         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
2655         (comsubs, inboth, allocmust):
2656         Prefer a signed to an unsigned integer when calculating indexes,
2657         unless the integer is part of the external API (a bigger deal,
2658         and to be done later).
2660         dfa: fix index overflow
2661         * lib/dfa.c (compare): Avoid integer overflow when analyzing
2662         very large regular expressions.
2664         dfa: update commentary for previous change
2665         * NEWS: Mention the change.
2666         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
2668 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2670         dfa: separate parse and compile phase
2671         ‘dfamust’ must be called after parsing and before tokens are
2672         reordered, but both are executed in the compilation phase.
2673         Token reordering was introduced in Gnulib commit
2674         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
2675         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
2676         * lib/dfa.c (dfaparse): Change it to global function.
2677         (dfacomp): If first argument is NULL, skip parse.
2678         * lib/dfa.h: (dfaparse): Add a prototype.
2680 2019-12-11  Bruno Haible  <bruno@clisp.org>
2682         unistd tests: Fix link error on MSVC.
2683         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
2684         $(LIB_GETLOGIN).
2686 2019-12-11  Bruno Haible  <bruno@clisp.org>
2688         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
2689         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
2690         and POSIX substitutes are supported in C++ mode.
2691         * NEWS: Likewise.
2693 2019-12-11  Bruno Haible  <bruno@clisp.org>
2695         stddef: Fix compilation error in C++ mode on MSVC.
2696         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
2697         instead, include <cstddef>.
2699 2019-12-11  Bruno Haible  <bruno@clisp.org>
2701         unistd: Fix compilation error in C++ mode on MSVC.
2702         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
2703         does not have <unistd.h>.
2705 2019-12-11  Bruno Haible  <bruno@clisp.org>
2707         locale: Fix compilation error in C++ mode on MSVC.
2708         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
2709         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
2710         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
2711         int_n_sep_by_space): Define as macros on MSVC.
2713 2019-12-11  Bruno Haible  <bruno@clisp.org>
2715         wchar: Fix compilation error in C++ mode on MSVC.
2716         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
2718 2019-12-11  Bruno Haible  <bruno@clisp.org>
2720         pthread-thread: Fix compilation error in C++ mode on MSVC.
2721         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
2722         _GL_CXXALIAS_RPL invocation.
2724 2019-12-08  Bruno Haible  <bruno@clisp.org>
2726         Fix compilation errors in C++ mode on Haiku.
2727         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
2728         non-glibc systems.
2729         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
2730         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
2731         posix_spawnattr_setschedparam): Likewise.
2732         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
2733         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
2734         * lib/unistd.in.h (usleep): Likewise.
2736 2019-12-08  Bruno Haible  <bruno@clisp.org>
2738         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
2739         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
2740         * modules/fseeko (configure.ac-early): Require it instead of
2741         AC_FUNC_FSEEKO.
2742         * modules/ftello (configure.ac-early): Likewise.
2743         * modules/fflush (configure.ac-early): Likewise.
2745 2019-12-08  Bruno Haible  <bruno@clisp.org>
2747         Fix compilation error in C++ mode on HP-UX 11.
2748         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
2749         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
2751 2019-12-08  Bruno Haible  <bruno@clisp.org>
2753         Fix compilation errors on HP-UX 11/ia64.
2754         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
2755         _GL_FUNCDECL_SYS.
2757 2019-12-08  Bruno Haible  <bruno@clisp.org>
2759         Fix compilation error in C++ mode on OpenBSD.
2760         * lib/signal.in.h (signal): Declare on OpenBSD.
2762 2019-12-08  Bruno Haible  <bruno@clisp.org>
2764         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
2765         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
2766         instead of #error.
2768 2019-12-08  Bruno Haible  <bruno@clisp.org>
2770         Fix compilation errors in C++ mode on FreeBSD.
2771         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
2772         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
2773         * lib/threads.in.h (thrd_exit): Likewise.
2774         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
2776 2019-12-08  Bruno Haible  <bruno@clisp.org>
2778         Fix compilation errors in C++ mode on macOS and FreeBSD.
2779         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
2780         or FreeBSD with clang, use the approach without C preprocessor macro.
2782 2019-12-07  Bruno Haible  <bruno@clisp.org>
2784         Fix compilation errors in C++ mode on AIX with xlclang++.
2785         Reported by Christian Biesinger <cbiesinger@google.com> in
2786         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
2787         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
2789 2019-12-07  Bruno Haible  <bruno@clisp.org>
2791         Document compilation error in C++ mode on NetBSD 8.0.
2792         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
2794 2019-12-07  Bruno Haible  <bruno@clisp.org>
2796         Fix compilation errors in C++ mode on Solaris 10.
2797         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
2798         to non-empty on Solaris with a non-GCC compiler.
2799         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
2801 2019-12-07  Bruno Haible  <bruno@clisp.org>
2803         Reword NEWS entry.
2804         * NEWS: Reword the latest NEWS entry.
2806 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
2808         Move xstrtol_fatal to a new xstrtol-error module.
2809         * lib/xstrtol.h: Stop including <getopt.h>.
2810         (xstrtol_fatal): Move ...
2811         * lib/xstrtol-error.h: ... here.  New file.
2812         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
2813         * tests/test-xstrtol.c: Likewise.
2814         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
2815         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
2816         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
2817         * modules/xstrtol-error: New file.
2818         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
2819         * MODULES.html.sh: Add xstrtol-error.
2820         * NEWS: Document the change.
2822 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
2824         nstrftime: better width support for %N, %z
2825         * lib/nstrftime.c (width_add, width_add1, width_cpy):
2826         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
2827         a new WIDTH parameter.
2828         (add, add1, cpy): Use these macros.
2829         (width_add): Do not treat digits == 0 as a special case,
2830         do not pad if padding is ‘-’, and do not use a negative width.
2831         (__strftime_internal): Redo formatting of nanoseconds and numeric
2832         timezones to avoid buffer misuse in unusual cases, and so that
2833         widths make more sense.  Add support for widths greater than 9 to
2834         the %N format; they are zero filled on the right.
2835         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
2837 2019-12-05  Bruno Haible  <bruno@clisp.org>
2839         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
2840         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
2841         set REPLACE_ISFINITE to 1.
2842         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
2843         REPLACE_ISINF to 1.
2844         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
2845         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
2846         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
2847         * lib/threads.in.h (call_once): Likewise.
2848         * lib/iconv.in.h (iconv): Likewise.
2850 2019-12-05  Bruno Haible  <bruno@clisp.org>
2852         wchar: Add more C++ tests.
2853         Reported by Christian Biesinger <cbiesinger@google.com> in
2854         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
2855         * tests/test-wchar-c++3.cc: New file.
2856         * modules/wchar-c++-tests (Files): Add it.
2857         (Makefile.am): Compile it.
2859 2019-12-05  Bruno Haible  <bruno@clisp.org>
2861         Add more C++ tests.
2863         assert-h: Add C++ tests.
2864         * tests/test-assert-h-c++.cc: New file.
2865         * tests/test-assert-h-c++2.cc: New file.
2866         * modules/assert-h-c++-tests: New file.
2867         * modules/assert-h-tests: New file.
2869         ctype: Add C++ tests.
2870         * tests/test-ctype-c++.cc: New file.
2871         * tests/test-ctype-c++2.cc: New file.
2872         * modules/ctype-c++-tests: New file.
2873         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
2875         errno: Add C++ tests.
2876         * tests/test-errno-c++.cc: New file.
2877         * tests/test-errno-c++2.cc: New file.
2878         * modules/errno-c++-tests: New file.
2879         * modules/errno-tests (Depends-on): Add errno-c++-tests.
2881         float: Add C++ tests.
2882         * tests/test-float-c++.cc: New file.
2883         * tests/test-float-c++2.cc: New file.
2884         * modules/float-c++-tests: New file.
2885         * modules/float-tests (Depends-on): Add float-c++-tests.
2887         inttypes: Add more C++ tests.
2888         * tests/test-inttypes-c++2.cc: New file.
2889         * modules/inttypes-c++-tests (Files): Add it.
2890         (Makefile.am): Compile it.
2892         limits-h: Add C++ tests.
2893         * tests/test-limits-h-c++.cc: New file.
2894         * tests/test-limits-h-c++2.cc: New file.
2895         * modules/limits-h-c++-tests: New file.
2896         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
2898         stdarg: Add C++ tests.
2899         * tests/test-stdarg-c++.cc: New file.
2900         * tests/test-stdarg-c++2.cc: New file.
2901         * modules/stdarg-c++-tests: New file.
2902         * modules/stdarg-tests: New file.
2904         stdbool: Add C++ tests.
2905         * tests/test-stdbool-c++.cc: New file.
2906         * tests/test-stdbool-c++2.cc: New file.
2907         * modules/stdbool-c++-tests: New file.
2908         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
2910         stddef: Add C++ tests.
2911         * tests/test-stddef-c++.cc: New file.
2912         * tests/test-stddef-c++2.cc: New file.
2913         * modules/stddef-c++-tests: New file.
2914         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
2916         stdint: Add C++ tests.
2917         * tests/test-stdint-c++.cc: New file.
2918         * tests/test-stdint-c++2.cc: New file.
2919         * modules/stdint-c++-tests: New file.
2920         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
2922         wchar: Add more C++ tests.
2923         * tests/test-wchar-c++2.cc: New file.
2924         * modules/wchar-c++-tests (Files): Add it.
2925         (Makefile.am): Compile it.
2927         wctype-h: Add more C++ tests.
2928         * tests/test-wctype-h-c++2.cc: New file.
2929         * modules/wctype-h-c++-tests (Files): Add it.
2930         (Makefile.am): Compile it.
2932 2019-12-04  Bruno Haible  <bruno@clisp.org>
2934         Fix compilation errors in C++ mode with xlclang++ on AIX.
2935         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
2936         C++ mode on AIX.
2937         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
2938         without C preprocessor macro.
2939         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
2940         _GL_CXXALIAS_SYS.
2941         * lib/threads.in.h (thrd_exit): Likewise.
2943 2019-12-04  Bruno Haible  <bruno@clisp.org>
2945         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
2946         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
2947         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
2949 2019-12-04  Bruno Haible  <bruno@clisp.org>
2951         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
2952         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
2953         _GL_CXXALIASWARN invocation on non-glibc systems.
2954         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
2955         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
2956         iswctype, towlower, towupper): Likewise.
2958 2019-12-03  Bruno Haible  <bruno@clisp.org>
2960         Avoid hassles caused by [[noreturn]] in C++.
2961         Reported by Christian Biesinger <cbiesinger@google.com> in
2962         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
2963         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
2964         * lib/_Noreturn.h: Likewise.
2966 2019-12-02  Bruno Haible  <bruno@clisp.org>
2968         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
2969         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
2970         LIBMULTITHREAD.
2971         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
2972         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
2973         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
2974         gl_THREADLIB.
2975         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
2977 2019-12-02  Bruno Haible  <bruno@clisp.org>
2979         Fix some more link errors with --enable-threads=isoc.
2980         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
2981         * modules/pthread-rwlock (Depends-on): Likewise.
2983 2019-12-02  Bruno Haible  <bruno@clisp.org>
2985         Fix link errors with --enable-threads=posix on AIX.
2986         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
2987         program with $(LIBTHREAD).
2988         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
2989         program with $(LIBTHREAD).
2991 2019-12-02  Bruno Haible  <bruno@clisp.org>
2993         Fix link errors with --enable-threads=posix on AIX.
2994         * modules/mbrtowc (Link): New section.
2995         * modules/acl (Link): Likewise.
2996         * modules/argmatch (Link): Likewise.
2997         * modules/backup-rename (Link): Likewise.
2998         * modules/backupfile (Link): Likewise.
2999         * modules/closein (Link): Likewise.
3000         * modules/closeout (Link): Likewise.
3001         * modules/copy-file (Link): Likewise.
3002         * modules/csharpcomp (Link): Likewise.
3003         * modules/csharpexec (Link): Likewise.
3004         * modules/dfa (Link): Likewise.
3005         * modules/exclude (Link): Likewise.
3006         * modules/fnmatch (Link): Likewise.
3007         * modules/fnmatch-gnu (Link): Likewise.
3008         * modules/fnmatch-posix (Link): Likewise.
3009         * modules/glob (Link): Likewise.
3010         * modules/human (Link): Likewise.
3011         * modules/javacomp (Link): Likewise.
3012         * modules/javaexec (Link): Likewise.
3013         * modules/javaversion (Link): Likewise.
3014         * modules/mbfile (Link): Likewise.
3015         * modules/mbiter (Link): Likewise.
3016         * modules/mbmemcasecmp (Link): Likewise.
3017         * modules/mbmemcasecoll (Link): Likewise.
3018         * modules/mbrlen (Link): Likewise.
3019         * modules/mbscasecmp (Link): Likewise.
3020         * modules/mbscasestr (Link): Likewise.
3021         * modules/mbschr (Link): Likewise.
3022         * modules/mbscspn (Link): Likewise.
3023         * modules/mbsinit (Link): Likewise.
3024         * modules/mbslen (Link): Likewise.
3025         * modules/mbsncasecmp (Link): Likewise.
3026         * modules/mbsnlen (Link): Likewise.
3027         * modules/mbsnrtowcs (Link): Likewise.
3028         * modules/mbspbrk (Link): Likewise.
3029         * modules/mbspcasecmp (Link): Likewise.
3030         * modules/mbsrchr (Link): Likewise.
3031         * modules/mbsrtowcs (Link): Likewise.
3032         * modules/mbssep (Link): Likewise.
3033         * modules/mbsspn (Link): Likewise.
3034         * modules/mbsstr (Link): Likewise.
3035         * modules/mbstok_r (Link): Likewise.
3036         * modules/mbswidth (Link): Likewise.
3037         * modules/mbuiter (Link): Likewise.
3038         * modules/mkdir-p (Link): Likewise.
3039         * modules/propername (Link): Likewise.
3040         * modules/quote (Link): Likewise.
3041         * modules/quotearg (Link): Likewise.
3042         * modules/quotearg-simple (Link): Likewise.
3043         * modules/regex-quote (Link): Likewise.
3044         * modules/rpmatch (Link): Likewise.
3045         * modules/sh-quote (Link): Likewise.
3046         * modules/system-quote (Link): Likewise.
3047         * modules/trim (Link): Likewise.
3048         * modules/unistdio/ulc-asnprintf (Link): Likewise.
3049         * modules/unistdio/ulc-fprintf (Link): Likewise.
3050         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
3051         * modules/unistdio/ulc-vasprintf (Link): Likewise.
3052         * modules/unistdio/ulc-vfprintf (Link): Likewise.
3053         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
3054         * modules/unistdio/ulc-vsprintf (Link): Likewise.
3055         * modules/xfreopen (Link): Likewise.
3056         * modules/xmemcoll (Link): Likewise.
3057         * modules/yesno (Link): Likewise.
3058         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
3059         * modules/argmatch-tests (Makefile.am): Likewise.
3060         * modules/closein-tests (Makefile.am): Likewise.
3061         * modules/copy-file-tests (Makefile.am): Likewise.
3062         * modules/dfa-tests (Makefile.am): Likewise.
3063         * modules/fnmatch-tests (Makefile.am): Likewise.
3064         * modules/glob-tests (Makefile.am): Likewise.
3065         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
3066         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
3067         * modules/mbrtowc-tests (Makefile.am): Likewise.
3068         * modules/mbscasecmp-tests (Makefile.am): Likewise.
3069         * modules/mbscasestr-tests (Makefile.am): Likewise.
3070         * modules/mbschr-tests (Makefile.am): Likewise.
3071         * modules/mbscspn-tests (Makefile.am): Likewise.
3072         * modules/mbsinit-tests (Makefile.am): Likewise.
3073         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
3074         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
3075         * modules/mbspbrk-tests (Makefile.am): Likewise.
3076         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
3077         * modules/mbsrchr-tests (Makefile.am): Likewise.
3078         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
3079         * modules/mbsspn-tests (Makefile.am): Likewise.
3080         * modules/mbsstr-tests (Makefile.am): Likewise.
3081         * modules/quotearg-tests (Makefile.am): Likewise.
3082         * modules/quotearg-simple-tests (Makefile.am): Likewise.
3083         * modules/readtokens-tests (Makefile.am): Likewise.
3084         * modules/regex-quote-tests (Makefile.am): Likewise.
3085         * modules/sh-quote-tests (Makefile.am): Likewise.
3086         * modules/system-quote-tests (Makefile.am): Likewise.
3087         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
3088         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
3089         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
3090         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
3091         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
3092         * modules/yesno-tests (Makefile.am): Likewise.
3094 2019-12-02  Bruno Haible  <bruno@clisp.org>
3096         Simplify link sections.
3097         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
3098         * modules/lock (Link): Likewise.
3099         * modules/cond (Link): Likewise.
3100         * modules/tls (Link): Likewise.
3101         * modules/yield (Link): Likewise.
3102         * modules/regex (Link): Likewise.
3103         * modules/localename (Link): Likewise.
3104         * modules/unicase/locale-language (Link): Likewise.
3105         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
3107 2019-12-02  Bruno Haible  <bruno@clisp.org>
3109         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
3110         * tests/test-thread_self.c (main): Disable test on AIX.
3112 2019-12-01  Bruno Haible  <bruno@clisp.org>
3114         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
3115         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
3116         gl_THREADLIB_EARLY_BODY.
3117         (gl_THREADLIB_EARLY_BODY): Invoke it.
3118         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
3119         (gl_THREADLIB_BODY): Invoke it.
3120         (gl_PTHREADLIB): New macro.
3121         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
3122         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
3123         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
3124         * modules/pthread-h (Files): Add threadlib.m4.
3125         (Depends-on): Remove threadlib.
3126         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
3127         and _THREAD_SAFE here.
3128         (Link): Use LIBPTHREAD, not LIBTHREAD.
3129         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
3130         LIBMULTITHREAD.
3131         * modules/pthread-once (Link): Likewise.
3132         * modules/pthread-mutex (Link): Likewise.
3133         * modules/pthread-rwlock (Link): Likewise.
3134         * modules/pthread-cond (Link): Likewise.
3135         * modules/pthread-tss (Link): Likewise.
3136         * modules/pthread-spin (Link): Likewise.
3137         * modules/pthread (Link): Likewise.
3138         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
3139         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
3140         * modules/pthread-once-tests (test_pthread_once1_LDADD,
3141         test_pthread_once2_LDADD): Likewise.
3142         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
3143         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
3144         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
3145         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
3147 2019-12-01  Bruno Haible  <bruno@clisp.org>
3149         cond: State linking requirements.
3150         * modules/cond (Link): New section.
3152 2019-12-01  Bruno Haible  <bruno@clisp.org>
3154         threadlib: Remove unnecessary file (left over from 2019-07-06).
3155         * modules/threadlib (Files): Remove config.rpath.
3157 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
3159         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
3160         Reported by Dagobert Michelsen <dam@opencsw.org> in
3161         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
3162         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
3163         list of strings instead of one string.
3164         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
3165         * pygnulib/GLImport.py (execute): Likewise.
3167 2019-11-27  Bruno Haible  <bruno@clisp.org>
3169         openpty, forkpty: Fix build error on Solaris 11.4.
3170         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
3171         also in <termios.h>.
3172         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
3173         of the function also in <termios.h>.
3174         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
3175         * doc/glibc-functions/forkpty.texi: Likewise.
3177 2019-11-27  Bruno Haible  <bruno@clisp.org>
3179         New options --enable-threads=isoc and --enable-threads=isoc+posix.
3180         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
3181         --enable-threads=isoc and --enable-threads=isoc+posix.
3182         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
3183         When both the ISO C and the POSIX threads API are available, choose
3184         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
3185         --enable-threads=isoc+posix was specified. When only the ISO C threads
3186         API is available and --enable-threads=iso was specified, choose
3187         USE_ISOC_THREADS.
3188         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
3189         USE_ISOC_AND_POSIX_THREADS.
3190         * lib/glthread/lock.c: Likewise.
3191         * lib/glthread/cond.h: Likewise.
3192         * lib/glthread/cond.c: Likewise.
3193         * lib/glthread/tls.h: Likewise.
3194         * lib/glthread/tls.c: Likewise.
3195         * lib/glthread/yield.h: Likewise.
3196         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
3197         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
3198         * lib/glthread/thread.c: Likewise.
3199         * lib/glthread/threadlib.c: Likewise.
3200         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
3201         USE_ISOC_AND_POSIX_THREADS.
3202         * tests/test-cond.c: Consider USE_ISOC_THREADS and
3203         USE_ISOC_AND_POSIX_THREADS.
3204         * tests/test-tls.c: Likewise.
3205         * tests/test-thread_create.c (main): Likewise.
3206         * tests/test-pthread-cond.c: Likewise.
3207         * tests/test-pthread-mutex.c: Likewise.
3208         * tests/test-pthread-once2.c: Likewise.
3209         * tests/test-pthread-rwlock.c: Likewise.
3210         * tests/test-pthread-tss.c: Likewise.
3211         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
3212         USE_POSIX_THREADS.
3214 2019-11-24  Bruno Haible  <bruno@clisp.org>
3216         mbrtowc: Modernize autoconf test.
3217         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
3218         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
3219         try a UTF-8 locale.
3220         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
3222 2019-11-24  Bruno Haible  <bruno@clisp.org>
3224         Fix errors in C++ mode on mingw.
3225         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
3226         instead of _GL_CXXALIAS_SYS.
3227         * lib/signal.in.h (pthread_sigmask): Likewise.
3228         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
3229         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
3230         Likewise.
3231         * lib/wchar.in.h (btowc): Likewise.
3233 2019-11-24  Bruno Haible  <bruno@clisp.org>
3235         sys_time: Fix errors in C++ mode on mingw.
3236         * lib/sys_time.in.h (timeval): Restore the redirection
3237         '#define timeval rpl_timeval', for when the symbol timeval is being used
3238         outside the 'gnulib' namespace.
3239         * lib/sys_select.in.h (select): In C++, write 'timeval', not
3240         'struct timeval'.
3242 2019-11-24  Bruno Haible  <bruno@clisp.org>
3244         iswctype: Fix errors in C++ mode on mingw.
3245         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
3246         is 1.
3247         * lib/iswctype.c (iswctype): Add another implementation, for the
3248         GNULIB_defined_wint_t case.
3249         * modules/iswctype (configure.ac): Compile iswctype.c also if
3250         GNULIB_OVERRIDES_WINT_T is 1.
3252 2019-11-24  Bruno Haible  <bruno@clisp.org>
3254         windows-timedmutex: Fix errors in C++ mode on mingw.
3255         * lib/windows-timedmutex.h: Add closing brace.
3257 2019-11-24  Bruno Haible  <bruno@clisp.org>
3259         Fix errors in C++ mode on Cygwin.
3260         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
3261         _GL_CXXALIAS_SYS.
3263 2019-11-24  Bruno Haible  <bruno@clisp.org>
3265         time_r: Fix for mingw (regression from 2019-11-16).
3266         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
3267         AC_LINK_IFELSE test only if the function does not appear to exist.
3269 2019-11-24  Bruno Haible  <bruno@clisp.org>
3271         wcstok: Add tests.
3272         * tests/test-wcstok.c: New file.
3273         * modules/wcstok-tests: New file.
3275 2019-11-24  Bruno Haible  <bruno@clisp.org>
3277         wcstok: Work around wrong signature on native Windows.
3278         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
3279         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
3280         REPLACE_WCSTOK.
3281         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
3282         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
3283         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
3284         * doc/posix-functions/wcstok.texi: Mention the problem.
3286 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
3288         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
3289         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
3290         remove workaround for GCC bug 91450 as the bug should be fixed
3291         there too.
3293 2019-11-21  Bruno Haible  <bruno@clisp.org>
3295         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
3296         Reported by Christian Biesinger <cbiesinger@google.com> in
3297         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
3298         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
3299         non-glibc systems.
3300         * lib/locale.in.h (localeconv, setlocale): Likewise.
3301         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
3302         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
3303         rint, round, trunc): Likewise.
3304         * lib/monetary.in.h (strfmon_l): Likewise.
3305         * lib/pthread.in.h (pthread_mutexattr_getrobust,
3306         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
3307         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
3308         pthread_spin_destroy): Likewise.
3309         * lib/signal.in.h (raise, signal): Likewise.
3310         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
3311         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
3312         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
3313         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
3314         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
3315         Likewise.
3316         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
3317         Likewise.
3318         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
3319         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
3320         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
3321         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
3322         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
3323         wcsftime): Likewise.
3324         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
3326 2019-11-21  Bruno Haible  <bruno@clisp.org>
3328         Fix various errors in _GL_CXXALIAS_SYS invocations.
3329         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
3330         _GL_CXXALIAS_SYS.
3331         * lib/pthread.in.h (pthread_mutexattr_gettype,
3332         pthread_mutexattr_getrobust): Likewise.
3333         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
3334         * lib/sys_socket.in.h (recv, send): Likewise.
3335         * lib/unistd.in.h (getdtablesize): Likewise.
3336         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
3337         'struct timeval'.
3339 2019-11-21  Bruno Haible  <bruno@clisp.org>
3341         math tests: Update after 2019-08-28 change.
3342         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
3343         return type of 'bool', not 'int'.
3345 2019-11-21  Bruno Haible  <bruno@clisp.org>
3347         pthread-spin: Fix errors in C++ mode.
3348         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
3349         functions as nonexistent when <pthread.h> exists but does not define
3350         the pthread_spinlock_t type.
3352 2019-11-21  Bruno Haible  <bruno@clisp.org>
3354         pthread-mutex: Fix errors in C++ mode.
3355         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
3356         pthread_mutexattr_getrobust exists. If not, define
3357         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
3358         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
3359         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
3360         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
3361         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
3362         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
3363         definition.
3365 2019-11-19  Bruno Haible  <bruno@clisp.org>
3367         threads-h tests: Fix typo.
3368         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
3370 2019-11-19  Bruno Haible  <bruno@clisp.org>
3372         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
3373         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
3374         to 'const pthread_attr_t *'.
3375         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
3376         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
3378 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
3380         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
3381         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
3382         work around GCC bug 91450 as the bug should be fixed there.
3384 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
3386         glob: get closer to glibc glob.c
3387         Omit differences from glibc when the differences don’t matter.
3388         * lib/glob.c [_LIBC]: Include shlib-compat.h.
3389         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
3390         (glob_lstat): New function.
3391         (glob_in_dir): Use it.
3392         (GLOB_ATTRIBUTE): Define to empty if not already defined.
3393         Use changed.
3395 2019-11-18  Bruno Haible  <bruno@clisp.org>
3397         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
3398         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
3399         UINTPTR_MAX): Consider _WIN64.
3400         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
3401         a pointer.
3403 2019-11-18  Bruno Haible  <bruno@clisp.org>
3405         stdint: Fix value of WINT_MAX when we override wint_t.
3406         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
3407         when GNULIB_OVERRIDES_WINT_T is 1.
3409 2019-11-18  Bruno Haible  <bruno@clisp.org>
3411         vcs-to-changelog: New module.
3412         * modules/vcs-to-changelog: New file.
3413         * MODULES.html.sh (func_all_modules): Add it.
3415 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3417         vcs-to-changelog: New script to generate ChangeLog-like output.
3418         Discussion:
3419         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
3420         * build-aux/vcs_to_changelog.py: New file.
3421         * build-aux/vcstocl/frontend_c.py: New file.
3422         * build-aux/vcstocl/misc_util.py: New file.
3423         * build-aux/vcstocl/vcs_git.py: New file.
3425 2019-11-18  Bruno Haible  <bruno@clisp.org>
3427         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
3428         Reported by Keith Marshall <keith@users.osdn.me> in
3429         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
3430         and <https://osdn.net/projects/mingw/ticket/39677>.
3431         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
3432         already been defined by mingw's <crtdefs.h>.
3434 2019-11-18  Bruno Haible  <bruno@clisp.org>
3436         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
3437         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
3438         conditionally enabled.
3440 2019-11-18  Bruno Haible  <bruno@clisp.org>
3442         gc: Mirror libgcrypt.m4 from libgcrypt.
3443         * config/srclistvars.sh (LIBGCRYPT): New variable.
3444         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
3446 2019-11-17  Bruno Haible  <bruno@clisp.org>
3448         locale, localename: Improve z/OS support.
3449         Reported by Daniel Richard G. in
3450         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
3451         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
3452         gl_LOCALE_H.
3453         (gl_LOCALE_H): Require it.
3454         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
3455         defined, don't even check for newlocale, duplocale, freelocale.
3456         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
3457         locale_t is not defined.
3459 2019-11-17  Bruno Haible  <bruno@clisp.org>
3461         havelib: Make libdirstems processing more flexible.
3462         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
3463         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
3464         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
3465         patch from 2017-02-19).
3466         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
3467         libdirs, even when the first one exists as a directory.
3469 2019-11-17  Bruno Haible  <bruno@clisp.org>
3471         havelib: Match the bitness when searching for libraries.
3472         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
3473         acl_is_expected_elfclass.
3474         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
3475         file exists, in ELF, also test whether it has the ELF class that
3476         corresponds to the host's bitness.
3478 2019-11-17  Bruno Haible  <bruno@clisp.org>
3480         host-cpu-c-abi: Add support for unknown CPUs.
3481         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
3482         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
3483         32-bit or 64-bit.
3485 2019-11-17  Bruno Haible  <bruno@clisp.org>
3487         havelib: Remove redundant code.
3488         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
3489         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
3491 2019-11-17  Bruno Haible  <bruno@clisp.org>
3493         havelib: Fix a bug in dependency processing.
3494         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
3495         of .la files, don't overwrite the value of additional_libdir for the
3496         next rounds.
3498 2019-11-16  Bruno Haible  <bruno@clisp.org>
3500         wctype-h: When overriding wint_t, override also the related functions.
3501         Reported by Christian Biesinger <cbiesinger@google.com> in
3502         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
3503         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
3504         REPLACE_ISWCNTRL to 1.
3505         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
3506         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
3507         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
3508         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
3509         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
3510         on mingw.
3511         * doc/posix-headers/wctype.texi: Likewise.
3513 2019-11-16  Bruno Haible  <bruno@clisp.org>
3515         time_r: Fix for mingw.
3516         Reported by Christian Biesinger <cbiesinger@google.com> in
3517         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
3518         * lib/time.in.h: On mingw, include <unistd.h>.
3519         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
3520         <time.h>. Test for localtime_r in a way that works when it is defined
3521         as an inline function.
3523 2019-11-13  Bruno Haible  <bruno@clisp.org>
3525         havelib: Revert last change.
3526         * build-aux/config.rpath: Revert last change. We can add msys2 support
3527         when it has been added to libtool.m4 upstream.
3529 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
3531         config: add msys support
3532         Requested by Arnold Robbins in:
3533         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
3534         He also requested a change to config.guess, which I’ll forward
3535         upstream.
3536         * build-aux/ar-lib (func_file_conv):
3537         * build-aux/compile (func_file_conv):
3538         * build-aux/config.rpath (wl, with_gnu_ld)
3539         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
3540         Treat msys like cygwin.
3542 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
3544         regex: now back in sync with glibc
3545         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
3546         regexec.c got merged into glibc and are now copies again.
3548 2019-10-27  Bruno Haible  <bruno@clisp.org>
3550         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
3551         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
3552         statement.
3553         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
3554         32-bit CPUs.
3556 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
3558         timespec-add, timespec-sub: simplify
3559         * lib/timespec-add.c (timespec_add):
3560         * lib/timespec-sub.c (timespec_sub):
3561         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
3562         work on unsigned integers.
3564 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
3566         nstrftime: speed up integer overflow checking
3567         * lib/nstrftime.c: Include intprops.h.
3568         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
3569         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
3570         instead of doing it by hand.
3571         * modules/nstrftime (Depends-on): Add intprops.
3573         Port better to GCC under macOS
3574         Work around macOS header that has ‘#define __has_builtin(x) 0’
3575         when compiled by GCC.  Apple really, really doesn’t want you to
3576         use GCC, apparently.  Rroblem reported by Akim Demaille in:
3577         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
3578         The fix is to not trust __has_builtin when being compiled by
3579         recent-enough GCC.
3580         * lib/intprops.h (__has_builtin)
3581         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
3582         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
3583         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
3584         Remove.  All uses removed.
3585         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
3586         directly, if defined and if not newer GCC.
3587         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
3588         New macro, that use __has_builtin directly, if defined and if
3589         not newer GCC.
3590         (assume): Use them.
3592 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
3594         maintainer-makefile: update rule for argmatch.
3595         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
3597 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
3599         bitset: let freeing functions accept NULL.
3600         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
3601         given NULL.
3602         * lib/bitset.h: Document that.
3603         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
3605 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3607         inttypes: use more-robust test for int range
3608         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
3609         Problem reported by Dagobert Michelsen in:
3610         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
3611         * lib/inttypes.in.h: Rely only on limits.h when checking
3612         int range.
3614 2019-10-15  Bruno Haible  <bruno@clisp.org>
3616         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
3617         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
3618         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
3619         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
3620         term_ostream_set_hyperlink): New functions.
3621         (term_styled_ostream_get_hyperlink_ref,
3622         term_styled_ostream_get_hyperlink_id,
3623         term_styled_ostream_set_hyperlink): New function aliases.
3625 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3627         update-copyright: use en dashes in .texi ranges
3628         * build-aux/update-copyright: Match year ranges like "1998--2019",
3629         which are used in the Autoconf manual.  Also, update ranges in
3630         .tex, .texi, and .texinfo files to use en dashes instead of
3631         hyphens.
3633 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
3635         * config/srclist.txt: Remove posix/regex_internal.c for now.
3637 2019-10-13  Bruno Haible  <bruno@clisp.org>
3639         git-version-gen: Allow 'snapshot' as .tarball-version contents.
3640         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
3641         contents to the empty string.
3643 2019-10-12  Bruno Haible  <bruno@clisp.org>
3645         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
3646         * tests/test-intprops.c (main): Disable two more tests when using
3647         HP-UX cc.
3649 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3651         Simplify and regularize regex use of ‘assert’
3652         Also, tell GCC about the asserts even when compiling without
3653         debugging, to give it further optimization opportunities.
3654         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
3655         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
3656         (parse_expression, parse_bracket_exp):
3657         * lib/regex_internal.c (build_wcs_buffer)
3658         (build_wcs_upper_buffer, re_string_reconstruct)
3659         (re_string_context_at):
3660         * lib/regexec.c (re_search_stub, re_copy_regs)
3661         (re_search_internal, prune_impossible_nodes, check_matching)
3662         (check_halt_state_context, set_regs, sift_states_backward)
3663         (build_sifted_states, transit_state_mb, transit_state_bkref)
3664         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
3665         (match_ctx_add_subtop):
3666         Use it instead of plain ‘assert’.
3668 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
3670         regex: omit debug assignment when not debugging
3671         * lib/regexec.c (re_search_internal) [!DEBUG]:
3672         Remove unnecessary assignment.
3674         regex: tell compiler there’s at most 256 arcs out
3675         Partly this is to help the reader (and maybe help GCC);
3676         partly this is to pacify Coverity.
3677         * lib/regex_internal.h: Include verify.h.
3678         * lib/regexec.c (group_nodes_into_DFAstates):
3679         Tell the compiler that ndests cannot exceed SBC_MAX.
3680         * modules/regex (Depends-on): Add ‘verify’.
3682         regex: simplify by assuming C99
3683         * config/srclist.txt: Comment out regex_internal.h and regexec.c
3684         temporarily.
3685         * lib/regex_internal.h (lock_define, re_match_context_t):
3686         Simplify by assuming C99 macros and const.
3687         * lib/regexec.c (re_search_internal): Simplify by assuming C99
3688         initializers.  Remove unnecessary assignment, as mctx is now
3689         safely initialized earlier.
3691         regex: avoid copying of uninitialized storage
3692         * config/srclist.txt: Comment out regcomp.c temporarily.
3693         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
3694         Initialize even when not checking for lint, as the behavior is
3695         arguably undefined otherwise and Coverity warns about it.
3697 2019-10-06  Bruno Haible  <bruno@clisp.org>
3699         access tests: Fix test failure when run as root.
3700         * tests/test-access.c: Include root-uid.h.
3701         (geteuid): Define fallback.
3702         (main): Don't expect that writing to a read-only file would fail when
3703         running as root. Also, remove the created files at the end.
3704         * modules/access-tests (Depends-on): Add root-uid.
3705         (configure.ac): Test whether geteuid exists.
3707 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
3709         users.txt: add GNU nano
3710         Nano has been making use of gnulib since March 2017, version 2.8.0.
3712 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3714         bootstrap: simplify debugging of wget failures
3715         Problem reported by Tim Rühsen in:
3716         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
3717         * build-aux/bootstrap (po_download_command_format):
3718         Invoke wget with -nv instead of -q, to make debugging easier.
3720 2019-09-29  Bruno Haible  <bruno@clisp.org>
3722         avltree-list: Fix compilation warning (introduced on 2014-09-16).
3723         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
3724         'const' attribute.
3726 2019-09-29  Bruno Haible  <bruno@clisp.org>
3728         fbufmode: Fix compilation error on glibc >= 2.28 systems.
3729         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
3731 2019-09-28  Bruno Haible  <bruno@clisp.org>
3733         Update comments that refer to POSIX.
3734         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
3735         sentence about trailing slashes.
3736         * lib/fflush.c: Clarify the reasoning.
3737         * tests/test-fflush2.c: Cite the relevant sentence.
3739 2019-09-28  Bruno Haible  <bruno@clisp.org>
3741         access: Document limitations on Windows.
3742         Suggested by Zaretskii <eliz@gnu.org>.
3743         * doc/posix-functions/access.texi: Mention two limitations on Windows.
3745 2019-09-28  Bruno Haible  <bruno@clisp.org>
3747         findprog-in: Fix comment.
3748         Reported by Eli Zaretskii <eliz@gnu.org>.
3749         * lib/findprog.h (find_in_given_path): Extend description of EACCES
3750         condition.
3751         * lib/stat.c (rpl_stat): Fix typo in comment.
3752         * lib/utime.c (_gl_utimens_windows): Likewise.
3754 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3756         Update URLs and associated text
3757         (Thanks to Bruno Haible for proofreading this patch.)
3758         Prefer https: to http: in URLs where either will do, for the usual
3759         security reasons.  I also updated broken and/or moved URLs
3760         discovered during the process. In a few places I had to resort to
3761         archive.org, since I didn't find the originals elsewhere.
3763 2019-09-15  Paul Smith  <psmith@gnu.org>
3764             Bruno Haible  <bruno@clisp.org>
3766         findprog-in: Set errno when the search fails.
3767         * lib/findprog-in.c: Include <errno.h>.
3768         (find_in_given_path): Set errno before returning NULL.
3769         * lib/findprog.h (find_in_given_path): Update comment accordingly.
3770         Define the term "slash".
3772 2019-09-15  Bruno Haible  <bruno@clisp.org>
3774         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
3775         * modules/findprog (Depends-on): Add access.
3776         * modules/findprog-lgpl (Depends-on): Likewise.
3777         * modules/findprog-in (Depends-on): Likewise.
3779 2019-09-15  Bruno Haible  <bruno@clisp.org>
3781         access: Add tests.
3782         * tests/test-access.c: New file.
3783         * modules/access-tests: New file.
3785         access: New module.
3786         * lib/unistd.in.h (access): New declaration.
3787         * lib/access.c: New file.
3788         * m4/access.m4: New file.
3789         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
3790         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
3791         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
3792         REPLACE_ACCESS.
3793         * modules/access: New file.
3794         * tests/test-unistd-c++.cc (access): Check signature.
3795         * doc/posix-functions/access.texi: Mention the new module.
3797 2019-09-15  Bruno Haible  <bruno@clisp.org>
3799         fcntl-h: Fix compilation error of creat.c on MSVC.
3800         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
3801         defined.
3803 2019-09-15  Bruno Haible  <bruno@clisp.org>
3805         creat: Add tests.
3806         * tests/test-creat.c: New file, based on tests/test-open.h.
3807         * modules/creat-tests: New file.
3809         creat: New module.
3810         * lib/fcntl.in.h (creat): New declaration.
3811         * lib/creat.c: New file, based on lib/open.c.
3812         * m4/creat.m4: New file.
3813         * m4/open-slash.m4: New file, extracted from m4/open.m4.
3814         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
3815         Invoke gl_OPEN_TRAILING_SLASH_BUG.
3816         * modules/open (Files): Add m4/open-slash.m4.
3817         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
3818         REPLACE_CREAT.
3819         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
3820         * modules/creat: New file.
3821         * tests/test-fcntl-h-c++.cc (creat): Check signature.
3822         * doc/posix-functions/creat.texi: Mention the new module.
3824 2019-09-15  Bruno Haible  <bruno@clisp.org>
3826         open tests: Enhance test.
3827         * tests/test-open.h (test_open): Test the creation of an executable
3828         regular file. Also improve initial cleanup.
3830 2019-09-15  Bruno Haible  <bruno@clisp.org>
3832         intprops tests: Avoid build failure with HP-UX cc.
3833         * tests/test-intprops.c: Disable a check that makes HP cc choke with
3834         "error 4018: Macro param too large after substitution - use -H option.".
3836 2019-09-14  Bruno Haible  <bruno@clisp.org>
3838         Make autoconf tests work with -Werror=implicit-function-declaration.
3839         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
3840         towupper() declaration.
3841         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
3842         declaration.
3844 2019-09-14  Bruno Haible  <bruno@clisp.org>
3846         findprog-in: Better mimic the system on native Windows.
3847         Reported by Paul Smith <psmith@gnu.org>.
3848         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
3849         non-empty suffixes when the file name already contains a '.'.
3851 2019-09-10  Bruno Haible  <bruno@clisp.org>
3853         wctob: Fix autoconf test.
3854         Based on patch by Florian Weimer <fweimer@redhat.com>.
3855         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
3857 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
3859         xhash: provide hash_xinitialize.
3860         Suggested by Egor Pugin <egor.pugin@gmail.com>
3861         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
3862         * modules/xhash, lib/xhash.c: New.
3863         * lib/hash.h (hash_xinitialize): New.
3865 2019-09-09  Bruno Haible  <bruno@clisp.org>
3867         findprog-in: Make exec optimization optional.
3868         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
3869         (find_in_given_path): Add optimize_for_exec parameter.
3870         * lib/findprog-in.c (find_in_given_path): Likewise.
3872 2019-09-08  Bruno Haible  <bruno@clisp.org>
3874         Add option to assume the best, not the worst, when cross-compiling.
3875         Suggested by Jonas Termansen <sortie@maxsi.org>.
3876         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
3877         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
3878         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
3879         lt_cv_sys_argz_works.
3880         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
3881         ac_cv_func_calloc_0_nonnull.
3882         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
3883         --enable-cross-guesses for gl_cv_func_realpath_works.
3884         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
3885         gl_cv_func_cbrtl_ieee.
3886         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
3887         gl_cv_func_ceil_ieee.
3888         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
3889         gl_cv_func_ceilf_ieee.
3890         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
3891         gl_cv_func_ceill_ieee.
3892         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
3893         ac_cv_func_chown_works.
3894         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
3895         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
3896         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
3897         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
3898         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
3899         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
3900         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
3901         gl_cv_func_expl_works.
3902         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
3903         gl_cv_func_expm1_ieee.
3904         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
3905         gl_cv_func_expm1l_works.
3906         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
3907         gl_cv_func_open_directory_works.
3908         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
3909         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
3910         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
3911         gl_cv_func_fchownat_empty_filename_works.
3912         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
3913         gl_cv_func_fdopendir_works.
3914         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
3915         gl_cv_func_floor_ieee.
3916         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
3917         gl_cv_func_floorf_ieee.
3918         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
3919         gl_cv_func_fma_works.
3920         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
3921         gl_cv_func_fmaf_works.
3922         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
3923         gl_cv_func_fmal_works.
3924         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
3925         gl_cv_func_fmod_ieee.
3926         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
3927         gl_cv_func_fmodf_ieee.
3928         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
3929         gl_cv_func_fmodl_ieee.
3930         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
3931         gl_cv_func_fpurge_works.
3932         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
3933         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
3934         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
3935         gl_cv_func_getcwd_null.
3936         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
3937         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
3938         gl_cv_func_working_getdelim.
3939         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
3940         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
3941         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
3942         gl_cv_func_getgroups_works.
3943         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
3944         am_cv_func_working_getline.
3945         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
3946         for gl_cv_func_getopt_gnu.
3947         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
3948         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
3949         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
3950         gl_cv_func_hypot_ieee.
3951         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
3952         gl_cv_func_hypotf_ieee.
3953         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
3954         gl_cv_func_hypotl_ieee.
3955         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
3956         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
3957         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
3958         gl_cv_func_link_works.
3959         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
3960         gl_cv_func_linkat_slash.
3961         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
3962         gl_cv_func_log_ieee.
3963         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
3964         gl_cv_func_logf_ieee.
3965         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
3966         gl_cv_func_logl_works.
3967         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
3968         gl_cv_func_log10_ieee.
3969         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
3970         gl_cv_func_log10f_ieee.
3971         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
3972         gl_cv_func_log10l_works.
3973         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
3974         gl_cv_func_log1p_ieee.
3975         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
3976         gl_cv_func_log1pf_ieee.
3977         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
3978         gl_cv_func_log1pl_ieee.
3979         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
3980         gl_cv_func_log2_ieee.
3981         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
3982         gl_cv_func_log2f_ieee.
3983         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
3984         --enable-cross-guesses for
3985         gl_cv_func_lstat_dereferences_slashed_symlink.
3986         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
3987         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
3988         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
3989         gl_cv_C_locale_sans_EILSEQ.
3990         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
3991         gl_cv_func_memchr_works.
3992         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
3993         gl_cv_func_memmem_works_always.
3994         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
3995         gl_cv_func_memmem_works_fast.
3996         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
3997         gl_cv_func_mkdir_trailing_slash_works,
3998         gl_cv_func_mkdir_trailing_dot_works.
3999         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
4000         gl_cv_func_mkfifo_works.
4001         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
4002         gl_cv_func_mknod_works.
4003         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
4004         gl_cv_func_working_mkstemp.
4005         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
4006         gl_cv_func_working_mktime.
4007         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
4008         gl_cv_func_modf_ieee.
4009         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
4010         gl_cv_func_modff_ieee.
4011         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
4012         gl_cv_func_modfl_ieee.
4013         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
4014         gl_cv_func_nanosleep.
4015         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
4016         gl_cv_func_perror_works.
4017         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
4018         gl_cv_func_printf_sizes_c99.
4019         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
4020         gl_cv_func_printf_infinite.
4021         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
4022         gl_cv_func_printf_infinite_long_double.
4023         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
4024         gl_cv_func_printf_directive_a.
4025         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
4026         gl_cv_func_printf_directive_f.
4027         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
4028         gl_cv_func_printf_flag_zero.
4029         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
4030         gl_cv_func_printf_enomem.
4031         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
4032         gl_cv_func_snprintf_truncation_c99.
4033         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
4034         gl_cv_func_snprintf_retval_c99.
4035         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
4036         gl_cv_func_snprintf_directive_n.
4037         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
4038         gl_cv_func_vsnprintf_zerosize_c99.
4039         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
4040         gl_cv_func_pselect_detects_ebadf.
4041         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
4042         Obey --enable-cross-guesses for
4043         gl_cv_pthread_rwlock_rdlock_prefer_writer.
4044         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
4045         gl_cv_func_ptsname_sets_errno.
4046         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
4047         gl_cv_func_svid_putenv.
4048         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
4049         gl_cv_func_readlink_works.
4050         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
4051         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
4052         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
4053         gl_cv_func_re_compile_pattern_working.
4054         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
4055         gl_cv_func_remainder_ieee.
4056         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
4057         gl_cv_func_remainderf_ieee.
4058         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
4059         gl_cv_func_remainderl_ieee.
4060         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
4061         gl_cv_func_rintl_works.
4062         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
4063         gl_cv_func_rmdir_works.
4064         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
4065         gl_cv_func_round_ieee.
4066         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
4067         gl_cv_func_roundf_ieee.
4068         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
4069         gl_cv_func_roundl_ieee.
4070         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
4071         gl_cv_func_select_detects_ebadf.
4072         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
4073         gl_cv_func_setenv_works.
4074         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
4075         gl_cv_func_unsetenv_works.
4076         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
4077         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
4078         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
4079         gl_cv_func_sleep_works.
4080         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
4081         gl_cv_func_stat_file_slash.
4082         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
4083         gl_cv_func_stpncpy.
4084         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
4085         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
4086         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
4087         gl_cv_func_strcasestr_linear.
4088         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
4089         gl_cv_func_working_strerror.
4090         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
4091         gl_cv_func_strerror_0_works.
4092         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
4093         --enable-cross-guesses for gl_cv_func_strerror_r_works.
4094         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
4095         gl_cv_func_strstr_works_always.
4096         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
4097         gl_cv_func_strstr_linear.
4098         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
4099         gl_cv_func_strtod_works.
4100         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
4101         gl_cv_func_strtold_works.
4102         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
4103         gl_cv_func_symlink_works.
4104         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
4105         gl_cv_func_symlinkat_works.
4106         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
4107         gl_cv_func_trunc_ieee.
4108         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
4109         gl_cv_func_truncf_ieee.
4110         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
4111         gl_cv_func_truncl_ieee.
4112         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
4113         gl_cv_func_tzset_clobber.
4114         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
4115         gl_cv_func_ungetc_works.
4116         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
4117         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
4118         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
4119         gl_cv_func_usleep_works.
4120         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
4121         gl_cv_func_futimesat_works.
4122         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
4123         gl_cv_func_working_utimes.
4124         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
4125         gl_cv_func_wcwidth_works.
4126         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
4127         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
4128         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
4129         links for testing. Obey --enable-cross-guesses for
4130         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
4131         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
4133 2019-09-08  Bruno Haible  <bruno@clisp.org>
4135         Clarify that cross-compilation guesses are guesses.
4136         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
4137         cross-compiling.
4139 2019-09-08  Bruno Haible  <bruno@clisp.org>
4141         chown: Fix configure output (regression from 2019-03-23).
4142         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
4143         gl_cv_func_chown_follows_symlink variable.
4145 2019-09-08  Bruno Haible  <bruno@clisp.org>
4147         findprog-in: New module.
4148         Suggested by Paul Smith <psmith@gnu.org>.
4149         * lib/findprog.h (find_in_given_path): New declaration.
4150         * lib/findprog-in.c: New file, based on lib/findprog.c.
4151         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
4152         * modules/findprog-in: New file.
4154 2019-09-08  Bruno Haible  <bruno@clisp.org>
4156         findprog: Remove unused dependency.
4157         * modules/findprog (Depends-on): Remove strdup.
4159 2019-09-08  Bruno Haible  <bruno@clisp.org>
4161         findprog: Remove test that is obsolete since 2006-04-24.
4162         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
4164 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
4166         bitset: style changes
4167         * lib/bitset/vector.c (vbitset_resize): Factor computation.
4168         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
4169         xzalloc to xcalloc.
4170         Suggested by Paul Eggert.
4172 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
4174         bitset: check memory allocation
4175         Reported by 江 祖铭 (Zu-Ming Jiang).
4176         With help from Paul Eggert.
4177         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
4178         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
4179         instead of realloc.
4180         When shrinking, accept failures.
4181         * lib/bitset/vector.c (vbitset_resize): Likewise.
4183 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
4185         scratch_buffer: sync from glibc
4186         * config/srclist.txt: Add the scratch_buffer source
4187         code from glibc, since these should be in sync.
4188         Autoupdate.
4190 2019-09-07  Bruno Haible  <bruno@clisp.org>
4192         doc: Update for glibc 2.30.
4193         * doc/glibc-functions/gettid.texi: New file.
4194         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
4195         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
4196         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
4197         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
4198         * doc/glibc-functions/sem_clockwait.texi: New file.
4199         * doc/glibc-functions/tgkill.texi: New file.
4200         * doc/glibc-functions/twalk_r.texi: New file.
4201         * doc/gnulib.texi: Include them.
4202         (Glibc semaphore.h): New section.
4203         * doc/pastposix-functions/h_errno.texi: Update.
4204         * doc/posix-functions/*.texi: Likewise.
4206 2019-09-06  Bruno Haible  <bruno@clisp.org>
4208         symlink tests: Avoid test failure on Linux with Lustre file system.
4209         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
4210         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
4211         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
4213 2019-09-01  Bruno Haible  <bruno@clisp.org>
4215         gitsub.sh: Add support for shallow-cloning of subdirectories.
4216         * top/gitsub.sh (func_usage): Document allowed git options with
4217         'git pull'.
4218         (func_pull): Accept GIT_OPTIONS argument.
4219         (pull): Parse git options before complaining about too many arguments.
4220         Pass the git options to func_pull.
4222 2019-08-29  Bruno Haible  <bruno@clisp.org>
4224         lock: Fix cross-compilation guesses.
4225         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
4226         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
4227         platforms.
4229 2019-08-28  Bruno Haible  <bruno@clisp.org>
4231         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
4232         Reported by Martin Storsjö <martin@martin.st> in
4233         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
4234         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
4235         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
4236         files from GCC 6 or newer, use an override through '#define', because
4237         the inline definitions in the platform's <cmath> cannot be overridden
4238         in another way.
4240 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
4242         Revert macOS INT_MULTIPLY_WRAPV patch
4243         Problem reported by Bruno Haible in:
4244         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
4245         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
4246         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
4247         Go back to working around the Clang bug on macOS.
4249 2019-08-27  Bruno Haible  <bruno@clisp.org>
4251         libtool-next-version: Fix error output.
4252         * build-aux/libtool-next-version (func_fatal_error): Fix the program
4253         name.
4255 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
4257         Speed up INT_MULTIPLY_WRAPV on macOS
4258         Assume that __builtin_mul_overflow works OK with Clang on macOS.
4259         Mattias Engdegård says it’s safe to assume the relevant library
4260         is always available there.
4261         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
4262         New temporary internal macro.
4263         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
4264         No need to work around the Clang bug on macOS.
4266 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
4268         intprops.h, verify.h: port better to clang
4269         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
4270         with Clang.  Problem reported privately by Mattias Engdegård.
4271         Also, insulate intprops.h and verify.h better against each other’s
4272         definitions of __has_builtin on non-Clang hosts.
4273         * lib/intprops.h (__has_builtin): Define a temporary substitute
4274         if __has_builtin is not already defined.
4275         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
4276         New temporary internal macros.
4277         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
4278         Now two separate macros, replacing the old
4279         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
4280         __builtin_mul_overflow is like the rest.  All uses changed.
4281         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
4282         Adjust to above changes.
4283         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
4284         longer relevant.  All uses changed.
4285         * lib/verify.h (__has_builtin): Treat like intprops.h,
4286         so that the two .h files do not collide with each other.
4287         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
4288         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
4290 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
4292         intprops: say why not Clang __builtin_add_overflow
4293         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
4294         Mention Clang in comment, responding to a query from
4295         Mattias Engdegård.
4297 2019-08-24  Bruno Haible  <bruno@clisp.org>
4299         doc: Document most of the files outside of modules.
4300         * doc/gnulib.texi (Build Infrastructure Files,
4301         Release Management Files): New chapters.
4303 2019-08-24  Bruno Haible  <bruno@clisp.org>
4305         bootstrap: Keep in sync with the 'gettext' module.
4306         Reported by Assaf Gordon in
4307         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
4308         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
4309         * build-aux/po/remove-potcdate.sin: Likewise.
4311 2019-08-24  Bruno Haible  <bruno@clisp.org>
4313         crypto/gc-sha512: Add tests.
4314         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
4315         * modules/crypto/gc-sha512-tests: New file.
4317         crypto/gc-sha256: Add tests.
4318         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
4319         * modules/crypto/gc-sha256-tests: New file.
4321         crypto/gc-sha256, crypto/gc-sha512: New modules.
4322         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
4323         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
4324         (MAX_DIGEST_SIZE): Set to 64.
4325         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
4326         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
4327         (gc_sha256, gc_sha512): New functions.
4328         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
4329         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
4330         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
4332 2019-08-24  Bruno Haible  <bruno@clisp.org>
4334         crypto/gc-sha1 tests: Improve output when the test fails.
4335         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
4336         output.
4338 2019-08-24  Bruno Haible  <bruno@clisp.org>
4340         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
4341         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
4342         LIBGCRYPT_HAS_MD_SM3.
4343         * lib/gc-libgcrypt.c: Include sm3.h.
4344         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
4345         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
4346         implementation if libgcrypt does not support SM3.
4348 2019-08-24  Bruno Haible  <bruno@clisp.org>
4350         crypto/gc-md2: Optimize and clarify code.
4351         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
4352         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
4353         is not needed.
4355 2019-08-24  Bruno Haible  <bruno@clisp.org>
4357         crypto/gc-md2: Add comment.
4358         * lib/gc-libgcrypt.c: Add comment.
4360 2019-08-24  Bruno Haible  <bruno@clisp.org>
4362         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
4363         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
4364         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
4365         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
4366         variable.
4368 2019-08-24  Bruno Haible  <bruno@clisp.org>
4370         crypto/gc: Fix link error with --with-libgcrypt.
4371         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
4372         AC_LIB_HAVE_LINKFLAGS invocation.
4374 2019-08-24  Bruno Haible  <bruno@clisp.org>
4376         crypto/gc: Access the module indicators correctly.
4377         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
4378         * lib/gc-libgcrypt.c: Likewise.
4380 2019-08-24  Bruno Haible  <bruno@clisp.org>
4382         crypto/gc: Fix configuration with --with-libgcrypt.
4383         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
4384         * modules/crypto/gc (Files): Add it.
4385         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
4387 2019-08-24  Bruno Haible  <bruno@clisp.org>
4389         Remove unused file.
4390         * m4/stat-macros.m4: Remove file.
4392 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
4394         New strip-trailing-space option for srclist-update
4395         * config/srclist-update (fixfile): Support new option.
4396         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
4397         Use it.
4399 2019-08-20  Eric Blake  <eblake@redhat.com>
4401         accept4: Support SOCK_NONBLOCK, if defined
4402         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
4404         accept4: Fix compilation when native accept4() exists.
4405         Reported by Richard W.M. Jones <rjones@redhat.com> in
4406         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
4407         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
4409 2019-08-18  Bruno Haible  <bruno@clisp.org>
4411         Defeat -flto GCC optimization in math autoconf tests.
4412         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
4413         at <https://savannah.gnu.org/bugs/?56109>.
4414         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
4415         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
4416         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4417         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4418         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4419         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
4420         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4421         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
4422         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
4423         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4424         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4425         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4427 2019-08-17  Bruno Haible  <bruno@clisp.org>
4429         windows-spin: Implement declared functions.
4430         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
4431         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
4432         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
4433         name.
4435 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
4437         intprops: port to Oracle Developer Studio 12.6
4438         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
4439         typos that were in a section not compiled by GCC.
4441 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
4443         intprops: support uchar, ushort _WRAPV dests
4444         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
4445         when __builtin_add_overflow etc. and _Generic are not used.
4446         (_GL_INT_OP_WRAPV): Use it to support destinations that
4447         are unsigned char or unsigned short, even in compilers
4448         that lack __typeof__ and are not C11-compatible.
4450         intprops: pacify picky GCC
4451         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
4452         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
4453         possibly-incorrect result.
4454         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
4455         about (A) used as a boolean, when A is an expression like 3 * 4.
4457         intprops: support unsigned *_WRAPV results
4458         Add support for unsigned, unsigned long, and unsigned long long
4459         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
4460         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
4461         bug with unsigned inputs reported by Eli Zaretskii in:
4462         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
4463         * config/srclist.txt: Break the glibc connection for intprops.h
4464         temporarily, while more testing is done in Gnulib-using apps.
4465         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
4466         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
4467         Support unsigned results no narrower than unsigned int.  Report
4468         overflow correctly if some arguments are unsigned.
4469         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
4470         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
4471         the right thing with narrow args.
4472         (_GL_INT_OP_CALC1): Remove.  All callers removed.
4473         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
4474         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
4475         * tests/test-intprops.c: Check for bugs and test new behavior.
4477 2019-08-14  Bruno Haible  <bruno@clisp.org>
4479         get_progname_of: New module.
4480         * lib/get_progname_of.h: New file.
4481         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
4482         * lib/getprogname.c (getprogname): Tweak coding style.
4483         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
4484         * modules/get_progname_of: New file.
4486 2019-08-14  Bruno Haible  <bruno@clisp.org>
4488         get_ppid_of: New module.
4489         * lib/get_ppid_of.h: New file.
4490         * lib/get_ppid_of.c: New file.
4491         * modules/get_ppid_of: New file.
4493 2019-08-13  Bruno Haible  <bruno@clisp.org>
4495         libtextstyle-optional tests: Support the NO_COLOR environment variable.
4496         * tests/test-libtextstyle.c (main): Do not emit styling when the
4497         environment variable NO_COLOR is set.
4499 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4501         verify: improve diagnostic quality in recent GCC
4502         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
4503         useful line number containing the top-level caller of the macro.
4504         So, bring back the older way of issuing a diagnostic containing
4505         the top-level call’s arg, so that it is easier to diagnose
4506         ‘verify’ failures with recent GCC.
4507         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
4508         Bring back DIAGNOSTIC arg.  All callers changed.
4509         (verify): Just use _GL_VERIFY.
4511 2019-08-11  Bruno Haible  <bruno@clisp.org>
4513         localcharset: Add more aliases for OS/2.
4514         Based on patch by KO Myung-Hun <komh78@gmail.com> in
4515         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
4516         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
4518 2019-08-10  Eric Blake  <eblake@redhat.com>
4520         configmake: Update advice on usage.
4521         * modules/configmake (Include): No longer necessary to include
4522         last, since configmake.h itself worries about collision avoidance.
4524 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
4526         parse-datetime: fix 'T' military timezone handling
4527         * lib/parse-datetime.y (zone):
4528         follow-up to the previous commit: the 'T' case is handled outside the
4529         conversion table (used as either military timezone UTC-7 or ISO8601
4530         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
4531         timezone letters.
4533 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
4535         parse-datetime: fix military timezone letters
4536         Problem and trivial fix reported by Neil Hoggarth in:
4537         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
4538         * lib/parse-datetime.y (military_table):
4539         Do it the right way, not the RFC 822 way.
4541 2019-08-08  Eric Blake  <eblake@redhat.com>
4543         configmake: Avoid namespace pollution issue on mingw.
4544         * modules/configmake (Makefile.am): If the project uses
4545         <winsock2.h>, include that header before defining DATADIR.
4547 2019-07-28  Bruno Haible  <bruno@clisp.org>
4549         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
4550         * tests/test-mbrtowc.c (main): Fix expected value of wc.
4552 2019-07-24  Bruno Haible  <bruno@clisp.org>
4554         pthread-h: Fix definitions of types and macros on mingw.
4555         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
4556         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
4557         not in use.
4558         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
4559         'pthread-once' is not in use.
4560         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
4561         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
4562         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
4563         in use.
4564         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
4565         Define also when module 'pthread-rwlock' is not in use.
4566         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
4567         also when module 'pthread-cond' is not in use.
4568         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
4569         'pthread-tss' is not in use.
4570         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
4571         use.
4573 2019-07-24  Simon Josefsson  <simon@josefsson.org>
4575         crypto/gc: Cope with libgcrypt without SM3.
4576         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
4578 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
4580         backupfile: fix resource leak on memory failure
4581         Problem found by Coverity (CID 1484214).
4582         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
4584 2019-07-22  Bruno Haible  <bruno@clisp.org>
4586         Avoid missing-declarations warning in various tests.
4587         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
4588         test6, test_optional, test7, test8, test9, test10, test11, test12,
4589         test13, test14, test15, test_fun): Declare static.
4590         * tests/test-cnd.c (test_cnd_wait): Likewise.
4591         * tests/test-cond.c (test_cond): Likewise.
4593 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
4595         pthread tests: Avoid missing-declarations warning.
4596         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
4598 2019-07-19  Bruno Haible  <bruno@clisp.org>
4600         parse-datetime: Avoid warnings from bison versions >= 3.3.
4601         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
4602         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
4604 2019-07-19  Bruno Haible  <bruno@clisp.org>
4606         parse-datetime: Require Bison 2.4 or newer.
4607         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
4608         Code taken from gettext's intl.m4.
4609         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
4610         of YACC.
4612 2019-07-19  Bruno Haible  <bruno@clisp.org>
4614         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
4615         * lib/areadlink-with-size.c: Include <string.h>.
4616         * lib/areadlinkat-with-size.c: Likewise.
4617         * lib/xgethostname.c: Likewise.
4618         * lib/xgetdomainname.c: Likewise.
4620 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
4622         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
4623         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
4624         "%pure-parser".  The former is available since Bison 2.3b (2008),
4625         while the latter is marked as obsolete since version 3.4 (May 2019).
4627 2019-07-16  Bruno Haible  <bruno@clisp.org>
4629         update-copyright: Make it work again (regression from 2019-06-15).
4630         Reported by Brian C. Lane <bcl@redhat.com>.
4631         * build-aux/update-copyright: Add back the -0777, -p, -i options.
4633 2019-07-14  Bruno Haible  <bruno@clisp.org>
4635         doc: Update info about <pthread.h>.
4636         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
4637         of 'pthread'.
4639 2019-07-14  Bruno Haible  <bruno@clisp.org>
4641         pthread_sigmask tests: Use new multithread modules.
4642         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
4643         glthread/thread.h.
4644         (main_thread, killer_thread): Change type to pthread_t.
4645         (main): Update accordingly.
4646         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
4647         thread.
4649 2019-07-14  Bruno Haible  <bruno@clisp.org>
4651         pthread-tss: Add tests.
4652         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
4653         tests/test-tss.c.
4654         * modules/pthread-tss-tests: New file.
4656 2019-07-14  Bruno Haible  <bruno@clisp.org>
4658         pthread-cond: Add tests.
4659         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
4660         tests/test-cnd.c.
4661         * modules/pthread-cond-tests: New file.
4663 2019-07-14  Bruno Haible  <bruno@clisp.org>
4665         pthread-rwlock: Add tests.
4666         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
4667         * modules/pthread-rwlock-tests: New file.
4669 2019-07-14  Bruno Haible  <bruno@clisp.org>
4671         pthread-mutex: Add tests.
4672         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
4673         tests/test-mtx.c.
4674         * modules/pthread-mutex-tests: New file.
4676 2019-07-14  Bruno Haible  <bruno@clisp.org>
4678         pthread-once: Add tests.
4679         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
4680         tests/test-call_once.c.
4681         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
4682         tests/test-mtx.c.
4683         * modules/pthread-once-tests: New file.
4685 2019-07-14  Bruno Haible  <bruno@clisp.org>
4687         pthread-thread: Add tests.
4688         * tests/test-pthread-thread.c: New file, based on
4689         tests/test-thread_create.c and tests/test-thrd_create.c.
4690         * modules/pthread-thread-tests: New file.
4692 2019-07-14  Bruno Haible  <bruno@clisp.org>
4694         pthread: Turn into a convenience module.
4695         * lib/pthread.in.h: Remove declarations for extern inline functions.
4696         * lib/pthread.c: Remove file.
4697         * modules/pthread (Files): Remove it.
4698         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
4699         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
4700         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
4701         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
4702         GNULIB_PTHREAD.
4703         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
4705 2019-07-14  Bruno Haible  <bruno@clisp.org>
4707         pthread-spin: New module.
4708         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
4709         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
4710         inline definitions.
4711         * lib/pthread-spin.c: New file.
4712         * m4/pthread-spin.m4: New file.
4713         * modules/pthread-spin: New file.
4714         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
4715         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
4716         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
4717         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
4718         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
4720 2019-07-14  Bruno Haible  <bruno@clisp.org>
4722         pthread-tss: New module.
4723         * lib/pthread-tss.c: New file.
4724         * m4/pthread-tss.m4: New file.
4725         * modules/pthread-tss: New file.
4726         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
4727         * doc/posix-functions/pthread_setspecific.texi: Likewise.
4728         * doc/posix-functions/pthread_getspecific.texi: Likewise.
4729         * doc/posix-functions/pthread_key_delete.texi: Likewise.
4731 2019-07-14  Bruno Haible  <bruno@clisp.org>
4733         pthread-cond: New module.
4734         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
4735         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
4736         * lib/pthread-cond.c: New file.
4737         * m4/pthread-cond.m4: New file.
4738         * modules/pthread-cond: New file.
4739         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
4740         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
4741         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
4742         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
4743         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
4744         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
4745         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
4746         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
4748 2019-07-14  Bruno Haible  <bruno@clisp.org>
4750         pthread-rwlock: New module.
4751         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
4752         * m4/pthread-rwlock.m4: New file.
4753         * modules/pthread-rwlock: New file.
4754         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
4755         and the Android problem.
4756         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
4757         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
4758         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
4759         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
4760         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
4761         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
4762         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
4763         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
4764         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
4765         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
4767 2019-07-14  Bruno Haible  <bruno@clisp.org>
4769         pthread-mutex: New module.
4770         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
4771         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
4772         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
4773         pthread_mutex_unlock): Remove inline definitions.
4774         * lib/pthread-mutex.c: New file.
4775         * m4/pthread-mutex.m4: New file.
4776         * modules/pthread-mutex: New file.
4777         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
4778         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
4779         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
4780         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
4781         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
4782         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
4783         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
4784         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
4785         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
4786         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
4787         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
4788         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
4790 2019-07-14  Bruno Haible  <bruno@clisp.org>
4792         pthread-once: New module.
4793         * lib/pthread-once.c: New file.
4794         * m4/pthread-once.m4: New file.
4795         * modules/pthread-once: New file.
4796         * doc/posix-functions/pthread_once.texi: Mention the new module.
4798 2019-07-14  Bruno Haible  <bruno@clisp.org>
4800         pthread-thread: New module.
4801         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
4802         inline definitions.
4803         * lib/pthread-thread.c: New file.
4804         * m4/pthread-thread.m4: New file.
4805         * modules/pthread-thread: New file.
4806         * doc/posix-functions/pthread_create.texi: Mention the new module.
4807         * doc/posix-functions/pthread_attr_init.texi: Likewise.
4808         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
4809         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
4810         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
4811         * doc/posix-functions/pthread_self.texi: Likewise.
4812         * doc/posix-functions/pthread_equal.texi: Likewise.
4813         * doc/posix-functions/pthread_detach.texi: Likewise.
4814         * doc/posix-functions/pthread_join.texi: Likewise.
4815         * doc/posix-functions/pthread_exit.texi: Likewise.
4817 2019-07-14  Bruno Haible  <bruno@clisp.org>
4819         pthread-h: Prepare for adding new modules.
4820         * lib/pthread.in.h: Define the types and macros for each of the
4821         facilities separately.
4822         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
4823         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
4824         HAVE_PTHREAD_PROCESS_SHARED.
4825         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
4826         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
4827         HAVE_PTHREAD_PROCESS_SHARED.
4828         * modules/pthread-h (Makefile.am): Substitute
4829         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
4830         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
4832 2019-07-14  Bruno Haible  <bruno@clisp.org>
4834         pthread-h: Add declarations of essential pthread functions.
4835         * lib/pthread.in.h: Include snippets.
4836         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
4837         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
4838         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
4839         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
4840         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
4841         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
4842         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
4843         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
4844         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
4845         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
4846         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
4847         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
4848         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
4849         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
4850         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
4851         pthread_key_create, pthread_setspecific, pthread_getspecific,
4852         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
4853         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
4854         declarations.
4855         (pthread_mutex_timedlock): Move declaration.
4856         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
4857         declared.
4858         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
4859         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
4860         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
4861         HAVE_* and REPLACE_* variables for the new functions.
4862         * modules/pthread-h (Depends-on): Add snippet/c++defs,
4863         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
4864         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
4865         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
4866         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
4867         variables for the new functions. Split the sed script, to avoid the
4868         limit of 99 commands of HP-UX sed.
4869         * tests/test-pthread-c++.cc: Check the signature of the new functions.
4871 2019-07-14  Bruno Haible  <bruno@clisp.org>
4873         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
4874         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
4875         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
4876         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
4877         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
4878         * modules/pthread-h (Depends-on): Add threadlib.
4879         (Link): Change to $(LIBTHREAD).
4880         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
4881         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
4883 2019-07-14  Bruno Haible  <bruno@clisp.org>
4885         pthread-h: Add C++ tests.
4886         * tests/test-pthread-c++.cc: New file.
4887         * modules/pthread-h-c++-tests: New file.
4889 2019-07-14  Bruno Haible  <bruno@clisp.org>
4891         pthread-h: Add tests.
4892         * tests/test-pthread.c: New file.
4893         * modules/pthread-h-tests: New file.
4895 2019-07-14  Bruno Haible  <bruno@clisp.org>
4897         pthread-h: New module.
4898         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
4899         is 1.
4900         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
4901         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
4902         <pthread.h> pollutes the namespace; instead, prepare for generating a
4903         pthread.h always. Substitute HAVE_PTHREAD_H here.
4904         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
4905         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
4906         * modules/pthread-h: New file, based on modules/pthread.
4907         * modules/pthread: Rely on 'pthread-h'.
4908         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
4909         Update.
4910         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
4911         pthread.
4913 2019-07-14  Bruno Haible  <bruno@clisp.org>
4915         sched_yield: New module.
4916         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
4917         (sched_yield): New declaration.
4918         * lib/sched_yield.c: New file.
4919         * m4/sched_yield.m4: New file.
4920         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
4921         provide a replacement sched.h always. Test whether sched_yield is
4922         declared.
4923         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
4924         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
4925         (Makefile.am): Provide a replacement sched.h always. Substitute
4926         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
4927         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
4928         * modules/sched_yield: New file.
4929         * doc/posix-functions/sched_yield.texi: Mention the new module.
4931 2019-07-14  Bruno Haible  <bruno@clisp.org>
4933         windows-spin: New module.
4934         * lib/windows-spin.h: New file.
4935         * lib/windows-spin.c: New file.
4936         * modules/windows-spin: New file.
4938 2019-07-14  Bruno Haible  <bruno@clisp.org>
4940         windows-timedrwlock: New module.
4941         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
4942         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
4943         windows-cond.c.
4944         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
4945         redefinition conflict with windows-timedrwlock.h.
4946         * modules/windows-timedrwlock: New file.
4948 2019-07-14  Bruno Haible  <bruno@clisp.org>
4950         windows-rwlock: New module.
4951         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
4952         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
4953         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
4954         windows-initguard.h.
4955         (gl_rwlock_t): Define using glwthread_rwlock_t.
4956         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
4957         (glthread_rwlock_init): Define using glwthread_rwlock_init.
4958         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
4959         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
4960         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
4961         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
4962         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
4963         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
4964         glthread_rwlock_destroy_func): Remove declarations.
4965         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
4966         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
4967         gl_waitqueue_notify_all, glthread_rwlock_init_func,
4968         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
4969         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
4970         functions.
4971         * modules/windows-rwlock: New file.
4972         * modules/lock (Depends-on): Add windows-rwlock.
4974 2019-07-14  Bruno Haible  <bruno@clisp.org>
4976         windows-thread: Add support for creating a thread in detached state.
4977         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
4978         (glwthread_thread_create): Add attr argument.
4979         * lib/windows-thread.c (glwthread_thread_create): Likewise.
4980         * lib/glthread/thread.h (glthread_create): Update.
4981         * lib/thrd.c (thrd_create): Update.
4983 2019-07-14  Bruno Haible  <bruno@clisp.org>
4985         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
4986         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
4987         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
4988         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
4989         * lib/windows-mutex.h: Update.
4990         * lib/windows-recmutex.h: Likewise.
4991         * lib/windows-timedmutex.h: Likewise.
4992         * lib/windows-timedrecmutex.h: Likewise.
4993         * lib/windows-cond.h: Likewise.
4994         * lib/glthread/lock.h: Likewise.
4995         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
4996         lib/windows-spinlock.h.
4997         * modules/windows-recmutex (Files): Likewise.
4998         * modules/windows-timedmutex (Files): Likewise.
4999         * modules/windows-timedrecmutex (Files): Likewise.
5000         * modules/windows-cond (Files): Likewise.
5001         * modules/threads-h (Files): Likewise.
5003 2019-07-14  Bruno Haible  <bruno@clisp.org>
5005         doc: Fix info about pthread API in HP-UX.
5006         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
5008 2019-07-14  Bruno Haible  <bruno@clisp.org>
5010         threads-h: Fix generation of threads.h.
5011         * modules/threads-h (Makefile.am): Insert the required header file
5012         snippets.
5014 2019-07-09  Bruno Haible  <bruno@clisp.org>
5016         striconveh test: Fix a compilation failure when iconv is not available.
5017         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5018         * tests/test-striconveh.c (main): Move iconv_close invocations inside
5019         HAVE_ICONV.
5021 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
5023         argmatch: adjust columns for help2man.
5024         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
5025         requires column 20 or more, return 20.
5027 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5029         areadlink-with-size: avoid realloc when size==0
5030         * lib/areadlink-with-size.c (areadlink_with_size):
5031         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
5032         Reallocate at the end to the actual size, to avoid memory waste,
5033         as suggested by Bruno Haible.  But when the guessed size is zero -
5034         useful when the size is unknown - do the initial small readlink
5035         into the stack, to avoid that realloc in the usual case.
5037 2019-07-06  Pádraig Brady  <P@draigBrady.com>
5039         areadlink-with-size: guess a buffer size with 0 size
5040         The size is usually taken from st_size, which can be zero,
5041         resulting in inefficient operation.
5042         Instead let zero select an initial memory allocation
5043         of 128 bytes, which most symlinks fit within.
5044         * lib/areadlink-with-size.c (areadlink_with_size):
5045         Start with a 128 byte buffer, for SIZE == 0.
5046         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
5048 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
5050         Replace manually crafted hex regexes with [:xdigit:]
5051         * build-aux/gitlog-to-changelog (parse_amend_file)
5052         (git_dir_option):
5053         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
5054         This patch is backported from Emacs (Bug#36167).
5056 2019-07-06  Bruno Haible  <bruno@clisp.org>
5058         error: Fix documentation.
5059         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
5060         module provides.
5061         * doc/glibc-functions/error_message_count.texi: Likewise.
5062         * doc/glibc-functions/error_one_per_line.texi: Likewise.
5063         * doc/glibc-functions/error_print_progname.texi: Likewise.
5065 2019-07-06  Bruno Haible  <bruno@clisp.org>
5067         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
5068         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
5069         and older is unsupported.
5070         * doc/**/*.texi: Update.
5072 2019-07-06  Bruno Haible  <bruno@clisp.org>
5074         doc: Remove documentation of Linux libc5 as a supported platform.
5075         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
5076         to Linux libc5.
5077         * doc/posix-functions/iswalpha.texi: Likewise.
5078         * doc/posix-functions/iswblank.texi: Likewise.
5079         * doc/posix-functions/iswcntrl.texi: Likewise.
5080         * doc/posix-functions/iswdigit.texi: Likewise.
5081         * doc/posix-functions/iswgraph.texi: Likewise.
5082         * doc/posix-functions/iswlower.texi: Likewise.
5083         * doc/posix-functions/iswprint.texi: Likewise.
5084         * doc/posix-functions/iswpunct.texi: Likewise.
5085         * doc/posix-functions/iswspace.texi: Likewise.
5086         * doc/posix-functions/iswupper.texi: Likewise.
5087         * doc/posix-functions/iswxdigit.texi: Likewise.
5088         * doc/posix-functions/snprintf.texi: Likewise.
5089         * doc/posix-functions/vsnprintf.texi: Likewise.
5091 2019-07-06  Bruno Haible  <bruno@clisp.org>
5093         doc: Remove documentation of Tandem/NSK as a supported platform.
5094         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
5095         Tandem/NSK.
5096         * doc/**/*.texi: Update.
5098 2019-07-06  Bruno Haible  <bruno@clisp.org>
5100         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
5101         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
5102         and older is unsupported.
5103         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
5104         Mac OS X 10.4 and older.
5105         * doc/posix-functions/asinl.texi: Likewise.
5106         * doc/posix-functions/atanl.texi: Likewise.
5107         * doc/posix-functions/cosl.texi: Likewise.
5108         * doc/posix-functions/expl.texi: Likewise.
5109         * doc/posix-functions/frexpl.texi: Likewise.
5110         * doc/posix-functions/gettimeofday.texi: Likewise.
5111         * doc/posix-functions/logl.texi: Likewise.
5112         * doc/posix-functions/mkstemp.texi: Likewise.
5113         * doc/posix-functions/sinl.texi: Likewise.
5114         * doc/posix-functions/sqrtl.texi: Likewise.
5115         * doc/posix-functions/tanl.texi: Likewise.
5116         * doc/posix-functions/wcswidth.texi: Likewise.
5117         * doc/**/*.texi: Update.
5119 2019-07-06  Bruno Haible  <bruno@clisp.org>
5121         doc: Remove documentation of AIX 4 as a supported platform.
5122         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
5123         unsupported.
5124         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
5125         workarounds.
5126         * doc/posix-functions/strnlen.texi: Likewise.
5127         * doc/posix-headers/inttypes.texi: Likewise.
5128         * doc/**/*.texi: Update.
5130 2019-07-06  Bruno Haible  <bruno@clisp.org>
5132         doc: Remove documentation of HP-UX 10 as a supported platform.
5133         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
5134         unsupported.
5135         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
5136         workarounds.
5137         * doc/posix-functions/gmtime_r.texi: Likewise.
5138         * doc/posix-functions/localtime_r.texi: Likewise.
5139         * doc/posix-functions/mkstemp.texi: Likewise.
5140         * doc/**/*.texi: Update.
5142 2019-07-06  Bruno Haible  <bruno@clisp.org>
5144         doc: Remove documentation of Interix 3.5 as a supported platform.
5145         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
5146         unsupported.
5147         * doc/posix-functions/select.texi: Don't mention Interix specific
5148         workarounds.
5149         * doc/posix-headers/signal.texi: Likewise.
5150         * doc/**/*.texi: Update.
5152 2019-07-06  Bruno Haible  <bruno@clisp.org>
5154         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
5155         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
5156         unsupported.
5157         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
5158         workarounds.
5159         * doc/posix-functions/nl_langinfo.texi: Likewise.
5160         * doc/posix-functions/remainder.texi: Likewise.
5161         * doc/posix-functions/towlower.texi: Likewise.
5162         * doc/posix-functions/towupper.texi: Likewise.
5163         * doc/posix-functions/vsnprintf.texi: Likewise.
5164         * doc/posix-functions/wcscat.texi: Likewise.
5165         * doc/posix-functions/wcschr.texi: Likewise.
5166         * doc/posix-functions/wcscmp.texi: Likewise.
5167         * doc/posix-functions/wcscpy.texi: Likewise.
5168         * doc/posix-functions/wcscspn.texi: Likewise.
5169         * doc/posix-functions/wcslen.texi: Likewise.
5170         * doc/posix-functions/wcsncat.texi: Likewise.
5171         * doc/posix-functions/wcsncmp.texi: Likewise.
5172         * doc/posix-functions/wcsncpy.texi: Likewise.
5173         * doc/posix-functions/wcspbrk.texi: Likewise.
5174         * doc/posix-functions/wcsrchr.texi: Likewise.
5175         * doc/posix-functions/wcsspn.texi: Likewise.
5176         * doc/posix-headers/langinfo.texi: Likewise.
5177         * doc/posix-headers/signal.texi: Likewise.
5178         * doc/posix-headers/wchar.texi: Likewise.
5179         * doc/posix-headers/wctype.texi: Likewise.
5180         * doc/**/*.texi: Update.
5182 2019-07-05  Bruno Haible  <bruno@clisp.org>
5184         doc: Remove documentation of OSF/1 as supported platform.
5185         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
5186         unsupported.
5187         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
5188         workarounds.
5189         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
5190         * doc/glibc-functions/ptsname_r.texi: Likewise.
5191         * doc/posix-functions/ceil.texi: Likewise.
5192         * doc/posix-functions/ceilf.texi: Likewise.
5193         * doc/posix-functions/ceill.texi: Likewise.
5194         * doc/posix-functions/fchdir.texi: Likewise.
5195         * doc/posix-functions/floor.texi: Likewise.
5196         * doc/posix-functions/floorf.texi: Likewise.
5197         * doc/posix-functions/fmod.texi: Likewise.
5198         * doc/posix-functions/fmodf.texi: Likewise.
5199         * doc/posix-functions/fmodl.texi: Likewise.
5200         * doc/posix-functions/log.texi: Likewise.
5201         * doc/posix-functions/logf.texi: Likewise.
5202         * doc/posix-functions/logl.texi: Likewise.
5203         * doc/posix-functions/log10.texi: Likewise.
5204         * doc/posix-functions/log10f.texi: Likewise.
5205         * doc/posix-functions/log10l.texi: Likewise.
5206         * doc/posix-functions/log2.texi: Likewise.
5207         * doc/posix-functions/log2f.texi: Likewise.
5208         * doc/posix-functions/log2l.texi: Likewise.
5209         * doc/posix-functions/mbrtowc.texi: Likewise.
5210         * doc/posix-functions/recv.texi: Likewise.
5211         * doc/posix-functions/recvfrom.texi: Likewise.
5212         * doc/posix-functions/remainder.texi: Likewise.
5213         * doc/posix-functions/remainderf.texi: Likewise.
5214         * doc/posix-functions/remainderl.texi: Likewise.
5215         * doc/posix-functions/round.texi: Likewise.
5216         * doc/posix-functions/roundf.texi: Likewise.
5217         * doc/posix-functions/roundl.texi: Likewise.
5218         * doc/posix-functions/send.texi: Likewise.
5219         * doc/posix-functions/sendto.texi: Likewise.
5220         * doc/posix-functions/setenv.texi: Likewise.
5221         * doc/posix-functions/snprintf.texi: Likewise.
5222         * doc/posix-functions/tcgetsid.texi: Likewise.
5223         * doc/posix-functions/trunc.texi: Likewise.
5224         * doc/posix-functions/truncf.texi: Likewise.
5225         * doc/posix-functions/truncl.texi: Likewise.
5226         * doc/posix-functions/ttyname_r.texi: Likewise.
5227         * doc/posix-functions/unsetenv.texi: Likewise.
5228         * doc/posix-functions/wcsrtombs.texi: Likewise.
5229         * doc/posix-headers/sys_select.texi: Likewise.
5230         * doc/posix-headers/wchar.texi: Likewise.
5231         * doc/posix-headers/wctype.texi: Likewise.
5232         * doc/**/*.texi: Update.
5234 2019-07-05  Bruno Haible  <bruno@clisp.org>
5236         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
5237         * doc/**/*.texi: Update.
5239 2019-07-05  Bruno Haible  <bruno@clisp.org>
5241         doc: Remove documentation of Solaris 8 and older as supported platforms.
5242         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
5243         unsupported.
5244         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
5245         workarounds.
5246         * doc/posix-functions/memcmp.texi: Likewise.
5247         * doc/posix-functions/rename.texi: Likewise.
5248         * doc/posix-functions/tzset.texi: Likewise.
5249         * doc/posix-headers/wctype.texi: Likewise.
5250         * doc/**/*.texi: Update.
5252 2019-07-05  Bruno Haible  <bruno@clisp.org>
5254         doc: Remove documentation of Interix 3.5 as a supported platform.
5255         * doc/**/*.texi: Update.
5257 2019-07-05  Bruno Haible  <bruno@clisp.org>
5259         doc: Remove documentation of BeOS as a supported platform.
5260         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
5261         unsupported.
5262         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
5263         * doc/posix-functions/getdelim.texi: Likewise.
5264         * doc/**/*.texi: Update.
5266 2019-07-05  Bruno Haible  <bruno@clisp.org>
5268         thread, lock, cond, tls: Remove support for Pth threads.
5269         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
5270         --enable-threads=pth any more.
5271         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
5272         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
5273         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
5274         threads and ISO C11 threads.
5275         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
5276         * lib/glthread/lock.h: Likewise.
5277         * lib/glthread/lock.c: Likewise.
5278         * lib/glthread/cond.h: Likewise.
5279         * lib/glthread/cond.c: Likewise.
5280         * lib/glthread/tls.h: Likewise.
5281         * lib/glthread/tls.c: Likewise.
5282         * lib/glthread/yield.h: Likewise.
5283         * lib/regex_internal.h: Likewise.
5284         * tests/test-thread_create.c: Likewise.
5285         * tests/test-lock.c: Likewise.
5286         * tests/test-cond.c: Likewise.
5287         * tests/test-tls.c: Likewise.
5288         * tests/test-rwlock1.c: Don't include glthread/yield.h.
5289         (main): Sleep without calling gl_thread_yield.
5291 2019-07-05  Bruno Haible  <bruno@clisp.org>
5293         thread, lock, cond, tls: Remove support for old Solaris threads.
5294         Solaris >= 2.5.1 has POSIX threads.
5295         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
5296         --enable-threads=solaris any more.
5297         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
5298         * lib/glthread/thread.c: Update comment.
5299         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
5300         * lib/glthread/lock.h: Likewise.
5301         * lib/glthread/lock.c: Likewise.
5302         * lib/glthread/cond.h: Likewise.
5303         * lib/glthread/cond.c: Likewise.
5304         * lib/glthread/tls.h: Likewise.
5305         * lib/glthread/tls.c: Likewise.
5306         * lib/glthread/yield.h: Likewise.
5307         * lib/regex_internal.h: Likewise.
5308         * tests/test-thread_create.c: Likewise.
5309         * tests/test-lock.c: Likewise.
5310         * tests/test-cond.c: Likewise.
5311         * tests/test-tls.c: Likewise.
5313 2019-07-05  Bruno Haible  <bruno@clisp.org>
5315         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
5316         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
5317         needed size is equal to the allocated size.
5318         * lib/getcwd.c (__getcwd): Likewise.
5320 2019-07-05  Bruno Haible  <bruno@clisp.org>
5322         xgetdomainname: Don't return an excessive memory allocation.
5323         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
5324         before returning it.
5326 2019-07-05  Bruno Haible  <bruno@clisp.org>
5328         xgethostname: Don't return an excessive memory allocation.
5329         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
5330         returning it.
5332 2019-07-05  Bruno Haible  <bruno@clisp.org>
5334         areadlinkat-with-size: Don't return an excessive memory allocation.
5335         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
5336         before returning it.
5338 2019-07-05  Bruno Haible  <bruno@clisp.org>
5340         areadlink-with-size: Don't return an excessive memory allocation.
5341         Reported by Andreas Dilger <adilger@whamcloud.com>.
5342         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
5343         before returning it.
5345 2019-07-03  Bruno Haible  <bruno@clisp.org>
5347         renameatu: Fix test failure on MSVC.
5348         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
5349         empty string.
5351 2019-07-03  Bruno Haible  <bruno@clisp.org>
5353         mbrtowc: Fix invalid use of mbtowc() on MSVC.
5354         * lib/mbrtowc.c: Include glthread/lock.h.
5355         (mbtowc_lock): New variable.
5356         (mbrtowc): Treat UTF-8 encoding without locking. For the other
5357         encodings, explicitly reset the internal state of mbtowc, and protect
5358         this through a lock.
5359         * modules/mbrtowc (Depends-on): Add lock.
5361 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
5363         argmatch: don't define _ in the header.
5364         Reported by Jim Meyering.
5365         * lib/argmatch.h (N_, _): Don't define.
5366         Use gettext instead.
5367         * lib/argmatch.h (_): Define.
5368         * tests/test-argmatch.c (N_): Define.
5370 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
5372         verify: document ‘assume’ better
5373         * lib/verify.h: Reword doc (Bug#36370).
5375 2019-07-02  Bruno Haible  <bruno@clisp.org>
5377         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
5378         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
5379         "CPutf8".
5380         * lib/nl_langinfo.c (ctype_codeset): Likewise.
5382 2019-07-02  Bruno Haible  <bruno@clisp.org>
5384         getcwd: Fix crash when invoked with size = 0 on MSVC.
5385         * lib/getcwd.c: Include msvc-inval.h.
5386         (getcwd_nothrow): New function/macro.
5387         (getcwd_system): New macro.
5388         (__getcwd): Use it instead of getcwd.
5389         * modules/getcwd (Depends-on): Add msvc-inval.
5390         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
5392 2019-07-02  Bruno Haible  <bruno@clisp.org>
5394         nonblocking-pipe tests: Fix test failure on MSVC.
5395         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
5396         native Windows.
5398 2019-07-02  Bruno Haible  <bruno@clisp.org>
5400         usleep: Implement with millisecond resolution on native Windows.
5401         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
5402         * doc/pastposix-functions/usleep.texi: Update accordingly.
5404 2019-07-02  Bruno Haible  <bruno@clisp.org>
5406         lstat tests: Fix test failure on MSVC.
5407         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
5408         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
5410 2019-07-02  Bruno Haible  <bruno@clisp.org>
5412         stat tests: Fix test failure on MSVC.
5413         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
5414         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
5416 2019-07-02  Bruno Haible  <bruno@clisp.org>
5418         getaddrinfo tests: Fix test failure on MSVC.
5419         * tests/test-getaddrinfo.c: Include sockets.h.
5420         (main): Invoke gl_sockets_startup.
5421         * modules/getaddrinfo-tests (Depends-on): Add sockets.
5423 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
5425         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
5426         * lib/poll.c: Call Windows native select() with Windows native timeval.
5428 2019-06-30  Bruno Haible  <bruno@clisp.org>
5430         argmatch: Fix compilation errors.
5431         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
5432         * tests/test-argmatch.c (main): Update after last-minute function names
5433         change.
5435 2019-06-30  Bruno Haible  <bruno@clisp.org>
5437         Include <stdlib.h> when needed.
5438         * lib/cnd.c: Include <stdlib.h>, needed for abort().
5439         * lib/fcntl.c: Likewise.
5440         * lib/mbscasestr.c: Likewise.
5441         * lib/mbssep.c: Likewise.
5442         * lib/mbsstr.c: Likewise.
5443         * lib/openat.c: Include <stdlib.h>, needed for free().
5444         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
5445         abort().
5447 2019-06-30  Bruno Haible  <bruno@clisp.org>
5449         Include <stdlib.h> when needed.
5450         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
5451         * lib/faccessat.c: Likewise.
5452         * lib/fchmodat.c: Likewise.
5453         * lib/fchownat.c: Likewise.
5454         * lib/fstatat.c: Likewise.
5455         * lib/mkfifoat.c: Likewise.
5456         * lib/mknodat.c: Likewise.
5457         * lib/readlinkat.c: Likewise.
5458         * lib/symlinkat.c: Likewise.
5459         * lib/utimensat.c: Likewise.
5460         * lib/mkdirat.c: Likewise. Include also the specification header.
5462 2019-06-30  Bruno Haible  <bruno@clisp.org>
5464         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
5465         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
5466         from gl_PREREQ_SYS_H_SOCKET.
5467         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
5468         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
5469         gl_PREREQ_SYS_H_WS2TCPIP.
5470         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
5471         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
5472         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
5474 2019-06-30  Bruno Haible  <bruno@clisp.org>
5476         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
5477         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
5478         REPLACE_INET_NTOP to 1 always.
5479         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
5480         REPLACE_INET_PTON to 1 always.
5482 2019-06-30  Bruno Haible  <bruno@clisp.org>
5484         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
5485         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
5486         not REPLACE_INET_NTOP.
5488 2019-06-30  Bruno Haible  <bruno@clisp.org>
5490         poll: Add comment.
5491         * lib/poll.c: Add comment about WSAPoll.
5493 2019-06-30  Bruno Haible  <bruno@clisp.org>
5495         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
5496         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
5497         * lib/poll.in.h: Include <winsock2.h>.
5498         (POLL*, pollfd): Override on native Windows.
5499         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5500         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
5501         (Makefile.am): Substitute HAVE_WINSOCK2_H.
5503 2019-06-28  Bruno Haible  <bruno@clisp.org>
5505         accept4: Fix compilation error on OpenIndiana.
5506         Reported by Michal Nowak <mnowak@startmail.com>
5507         via Mark H Weaver <mhw@netris.org>.
5508         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
5509         whether it exists as a function.
5511 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
5513         strverscmp: sync from glibc
5514         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
5515         comments, include libc-config.h, define __strverscmp to be
5516         strverscmp, and don’t assume types line uint8_t and int8_t that
5517         that C99 doesn’t guarantee.
5518         [!_LIBC]: Include libc-config.h; define __strverscmp.
5519         Include stdint.h.
5520         (__strverscmp): Assume C99.  Use uint_least8_t
5521         and int_least8_t instead of unsigned char and signed char.
5522         * modules/strverscmp (Depends-on): Add libc-config, stdint.
5524 2019-06-25  Bruno Haible  <bruno@clisp.org>
5526         tss tests: Add tests for destructors and races.
5527         * tests/test-tss.c (worker_thread): Fix typo in debug message.
5528         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
5529         functions.
5530         (main): Invoke them.
5531         * modules/tls-tests (Depends-on): Add mtx.
5533 2019-06-25  Bruno Haible  <bruno@clisp.org>
5535         tls tests: Add tests for destructors and races.
5536         * tests/test-tls.c: Include glthread/lock.h.
5537         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
5538         functions.
5539         (main): Invoke them.
5540         * modules/tls-tests (Depends-on): Add lock.
5542 2019-06-25  Bruno Haible  <bruno@clisp.org>
5544         windows-tls: Implement TLS key destructors for native Windows.
5545         * lib/windows-tls.h (glwthread_tls_process_destructors): New
5546         declaration.
5547         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
5548         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
5549         (dtor_table_init_once, dtor_table_lock: New variables.
5550         (struct dtor): New type.
5551         (dtor_table, dtors_count, dtors_used, dtors_allocated,
5552         dtor_processing_threads): New variables.
5553         (dtor_table_initialize, dtor_table_ensure_initialized,
5554         dtor_table_shrink_used, glwthread_tls_process_destructors): New
5555         functions.
5556         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
5557         handle non-NULL destructors.
5558         * modules/windows-tls (Depends-on): Add windows-once.
5559         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
5560         Use the functions declared in windows-tls.h.
5561         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
5562         GLWTHREAD_DESTRUCTOR_ITERATIONS.
5563         * lib/windows-thread.c: Include windows-tls.h.
5564         (wrapper_func, glwthread_thread_exit): Invoke
5565         glwthread_tls_process_destructors.
5566         * modules/windows-thread (Depends-on): Add windows-tls.
5568 2019-06-25  Bruno Haible  <bruno@clisp.org>
5570         threadlib: Avoid autoconf warning "was expanded before it was required".
5571         * modules/threadlib (configure.ac): Require gl_THREADLIB.
5573 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
5575         argmatch: remove duplicate const qualifier
5576         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
5578 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
5580         unistd: stddef.h and sys/types.h namespace cleanup
5581         * lib/unistd.in.h [__GLIBC__]:
5582         Do not include stddef.h or sys/types.h.
5583         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
5584         supposed to declare off_t and ssize_t.  Problem found when looking
5585         at why @GNULIB_PWRITE@ was different from the newly-added
5586         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
5588 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
5590         maintainer-makefile: restore portability to non-GNU awks
5591         Reported by Tim Rühsen.
5592         * top/maint.mk (AWK): New variable.  Use it.
5593         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
5595 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
5597         Document setvbuf _IOLBF problem
5598         * doc/posix-functions/setvbuf.texi (setvbuf):
5599         Document MS-Windows portability problem with _IOLBF.
5601         Document lseek SEEK_DATA/SEEK_HOLE
5602         * doc/posix-functions/lseek.texi (lseek):
5603         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
5605 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
5607         argmatch: put all the docs member last.
5608         Reported by Bruno Haible.
5609         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
5610         member before the docs done.
5611         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
5613 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
5615         argmatch: add support to generate the usage message.
5616         * lib/argmatch.c: Move some #includes and gettext support to...
5617         * lib/argmatch.h: here.
5618         (ARGMATCH_DEFINE_GROUP): New macro.
5619         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
5620         (argmatch_backup_group): New.
5621         (CHECK): New.
5622         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
5623         argmatch_backup_argument and argmatch_backup_usage.
5624         * modules/argmatch: We depend on c99.
5625         * doc/argmatch.texi (Recognizing Option Arguments): New.
5626         * doc/gnulib.texi: Use it.
5628 2019-06-21  Bruno Haible  <bruno@clisp.org>
5630         thrd: Add comment.
5631         * lib/thrd.c (pthread_main_func): Add comment.
5633 2019-06-21  Bruno Haible  <bruno@clisp.org>
5635         threads-h: Define 'thread_local' if and only if it actually works.
5636         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
5637         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
5638         Oracle Solaris Studio C. Compile a simple program, to see whether
5639         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
5640         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
5641         * lib/threads.in.h (thread_local): Undefine if it does not work.
5642         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
5643         (Link): Mention LIBTHREADLOCAL.
5644         * tests/test-threads.c: Don't check that thread_local is defined.
5645         * tests/test-thread_local.c: New file.
5646         * modules/threads-h-tests (Files): Add it and macros.h.
5647         (Depends-on): Add thrd and stdint.
5648         (configure.ac): Test whether 'alarm' is declared.
5649         (Makefile.am): Arrange to build and link test-thread_local.
5650         * doc/posix-headers/threads.texi: Mention the platforms that don't
5651         support 'thread_local'.
5653 2019-06-20  Bruno Haible  <bruno@clisp.org>
5655         threads-h: Simplify link dependencies.
5656         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
5657         Don't set LTLIBSTDTHREAD.
5658         * modules/thrd (Link): Simplify accordingly.
5659         * modules/mtx (Link): Likewise.
5660         * modules/cnd (Link): Likewise.
5661         * modules/tss (Link): Likewise.
5662         * modules/threads (Link): Likewise.
5664 2019-06-20  Bruno Haible  <bruno@clisp.org>
5666         threads-h: Fix link error on FreeBSD 11.
5667         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
5668         also with -lpthread.
5670 2019-06-20  Bruno Haible  <bruno@clisp.org>
5672         threadlib: Fix typo (regression from today).
5673         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
5675 2019-06-20  Bruno Haible  <bruno@clisp.org>
5677         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
5678         * lib/windows-thread.c: Include <errno.h>.
5679         * lib/windows-tls.c: Likewise.
5681 2019-06-20  Bruno Haible  <bruno@clisp.org>
5683         tss tests: Small improvement.
5684         * tests/test-tss.c (test_tss): Pass a different id to each thread.
5686 2019-06-20  Bruno Haible  <bruno@clisp.org>
5688         threads: New module.
5689         * modules/threads: New file.
5691 2019-06-20  Bruno Haible  <bruno@clisp.org>
5693         tss: Add tests.
5694         * tests/test-tss.c: New file, based on tests/test-tls.c.
5695         * modules/tss-tests: New file.
5697 2019-06-20  Bruno Haible  <bruno@clisp.org>
5699         cnd: Add tests.
5700         * tests/test-cnd.c: New file, based on tests/test-cond.c.
5701         * modules/cnd-tests: New file.
5703 2019-06-20  Bruno Haible  <bruno@clisp.org>
5705         mtx: Add tests.
5706         * tests/test-mtx.c: New file, based on tests/test-lock.c.
5707         * tests/test-call_once.c: New file, based on tests/test-once.c.
5708         * modules/mtx-tests: New file.
5710 2019-06-20  Bruno Haible  <bruno@clisp.org>
5712         thrd: Add tests.
5713         * tests/test-thrd_create.c: New file, based on
5714         tests/test-thread_create.c.
5715         * tests/test-thrd_current.c: New file, based on
5716         tests/test-thread_self.c.
5717         * modules/thrd-tests: New file.
5719 2019-06-20  Bruno Haible  <bruno@clisp.org>
5721         tss: New module.
5722         * lib/tss.c: New file.
5723         * modules/tss: New file.
5724         * doc/posix-functions/tss_create.texi: Mention the new module.
5725         * doc/posix-functions/tss_set.texi: Likewise.
5726         * doc/posix-functions/tss_get.texi: Likewise.
5727         * doc/posix-functions/tss_delete.texi: Likewise.
5729 2019-06-20  Bruno Haible  <bruno@clisp.org>
5731         cnd: New module.
5732         * lib/cnd.c: New file.
5733         * modules/cnd: New file.
5734         * doc/posix-functions/cnd_init.texi: Mention the new module.
5735         * doc/posix-functions/cnd_wait.texi: Likewise.
5736         * doc/posix-functions/cnd_timedwait.texi: Likewise.
5737         * doc/posix-functions/cnd_signal.texi: Likewise.
5738         * doc/posix-functions/cnd_broadcast.texi: Likewise.
5739         * doc/posix-functions/cnd_destroy.texi: Likewise.
5741 2019-06-20  Bruno Haible  <bruno@clisp.org>
5743         mtx: New module.
5744         * lib/mtx.c: New file.
5745         * modules/mtx: New file.
5746         * doc/posix-functions/call_once.texi: Mention the new module.
5747         * doc/posix-functions/mtx_init.texi: Likewise.
5748         * doc/posix-functions/mtx_lock.texi: Likewise.
5749         * doc/posix-functions/mtx_trylock.texi: Likewise.
5750         * doc/posix-functions/mtx_timedlock.texi: Likewise.
5751         * doc/posix-functions/mtx_unlock.texi: Likewise.
5752         * doc/posix-functions/mtx_destroy.texi: Likewise.
5754 2019-06-20  Bruno Haible  <bruno@clisp.org>
5756         thrd: New module.
5757         * lib/thrd.c: New file.
5758         * m4/thrd.m4: New file.
5759         * modules/thrd: New file.
5760         * doc/posix-functions/thrd_current.texi: Mention the new module.
5761         * doc/posix-functions/thrd_detach.texi: Likewise.
5762         * doc/posix-functions/thrd_equal.texi: Likewise.
5763         * doc/posix-functions/thrd_exit.texi: Likewise.
5764         * doc/posix-functions/thrd_sleep.texi: Likewise.
5765         * doc/posix-functions/thrd_yield.texi: Likewise.
5766         * doc/posix-functions/thrd_create.texi: Mention the new module and the
5767         AIX bug.
5768         * doc/posix-functions/thrd_join.texi: Mention the new module and the
5769         AIX and Solaris bugs.
5771 2019-06-20  Bruno Haible  <bruno@clisp.org>
5773         threads-h: Add tests.
5774         * tests/test-threads.c: New file.
5775         * modules/threads-h-tests: New file.
5776         * tests/test-threads-c++.cc: New file.
5777         * modules/threads-h-c++-tests: New file.
5779 2019-06-20  Bruno Haible  <bruno@clisp.org>
5781         threads-h: New module.
5782         * lib/threads.in.h: New file.
5783         * m4/threads.m4: New file.
5784         * m4/yield.m4 (gl_YIELD): Update comment.
5785         * modules/threads-h: New file.
5786         * modules/yields (configure.ac): Use AC_REQUIRE.
5787         * doc/posix-headers/threads.texi: Mention the new module and the AIX
5788         bugs.
5790 2019-06-20  Bruno Haible  <bruno@clisp.org>
5792         windows-thread: New module.
5793         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
5794         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
5795         * lib/glthread/thread.h: Include windows-thread.h.
5796         (gl_thread_t): Define using glwthread_thread_t.
5797         (glthread_create): Define using glwthread_thread_create.
5798         (glthread_join): Define using glwthread_thread_join.
5799         (gl_thread_self): Define using glwthread_thread_self.
5800         (gl_thread_exit): Define using glwthread_thread_exit.
5801         (glthread_create_func, glthread_join_func, gl_thread_self_func,
5802         gl_thread_exit_func): Remove declarations.
5803         * lib/glthread/thread.c (self_key): Remove variable.
5804         (do_init_self_key, init_self_key): Remove functions.
5805         (struct gl_thread_struct): Remove type.
5806         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
5807         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
5808         functions.
5809         * modules/windows-thread: New file.
5810         * modules/thread (Depends-on): Add windows-thread.
5812 2019-06-20  Bruno Haible  <bruno@clisp.org>
5814         windows-tls: New module.
5815         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
5816         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
5817         * lib/glthread/tls.h: Include windows-tls.h.
5818         (gl_tls_key_t): Define using glwthread_tls_key_t.
5819         * modules/windows-tls: New file.
5820         * modules/tls (Depends-on): Add windows-tls.
5822 2019-06-20  Bruno Haible  <bruno@clisp.org>
5824         windows-cond: New module.
5825         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
5826         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
5827         * lib/glthread/cond.h: Include windows-cond.h.
5828         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
5829         (gl_cond_t): Define using glwthread_cond_t.
5830         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
5831         (glthread_cond_init): Define using glwthread_cond_init.
5832         (glthread_cond_wait): Define using glwthread_cond_wait.
5833         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
5834         (glthread_cond_signal): Define using glwthread_cond_signal.
5835         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
5836         (glthread_cond_destroy): Define using glwthread_cond_destroy.
5837         (glthread_cond_init_func, glthread_cond_wait_func,
5838         glthread_cond_timedwait_func, glthread_cond_signal_func,
5839         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
5840         declarations.
5841         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
5842         types.
5843         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
5844         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
5845         glthread_cond_init_func, glthread_cond_wait_func,
5846         glthread_cond_timedwait_func, glthread_cond_signal_func,
5847         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
5848         functions.
5849         * modules/windows-cond: New file.
5850         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
5852 2019-06-20  Bruno Haible  <bruno@clisp.org>
5854         windows-timedrecmutex: New module.
5855         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
5856         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
5857         * modules/windows-timedrecmutex: New file.
5859 2019-06-20  Bruno Haible  <bruno@clisp.org>
5861         windows-timedmutex: New module.
5862         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
5863         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
5864         * modules/windows-timedmutex: New file.
5866 2019-06-20  Bruno Haible  <bruno@clisp.org>
5868         windows-recmutex: New module.
5869         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
5870         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
5871         * lib/glthread/lock.h: Include windows-recmutex.h.
5872         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
5873         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
5874         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
5875         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
5876         (glthread_recursive_lock_unlock): Define using
5877         glwthread_recmutex_unlock.
5878         (glthread_recursive_lock_destroy): Define using
5879         glwthread_recmutex_destroy.
5880         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
5881         glthread_recursive_lock_unlock_func,
5882         glthread_recursive_lock_destroy_func): Remove declarations.
5883         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
5884         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
5885         glthread_recursive_lock_destroy_func): Remove functions.
5886         * modules/windows-recmutex: New file.
5887         * modules/lock (Depends-on): Add windows-recmutex.
5889 2019-06-20  Bruno Haible  <bruno@clisp.org>
5891         windows-mutex: New module.
5892         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
5893         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
5894         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
5895         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
5896         (gl_spinlock_t): Remove type.
5897         (gl_lock_t): Define using glwthread_mutex_t.
5898         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
5899         (glthread_lock_init): Define using glwthread_mutex_init.
5900         (glthread_lock_lock): Define using glwthread_mutex_lock.
5901         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
5902         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
5903         (glthread_lock_init_func, glthread_lock_lock_func,
5904         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
5905         declarations.
5906         Use glwthread_spinlock_t instead of gl_spinlock_t.
5907         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
5908         GLWTHREAD_SPINLOCK_INIT.
5909         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
5910         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
5911         functions.
5912         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
5913         gl_spinlock_t.
5914         * modules/windows-mutex: New file.
5915         * modules/lock (Depends-on): Add windows-mutex.
5917 2019-06-20  Bruno Haible  <bruno@clisp.org>
5919         windows-once: New module.
5920         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
5921         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
5922         * lib/glthread/lock.h: Include windows-once.h.
5923         (gl_once_t): Define using glwthread_once_t.
5924         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
5925         (glthread_once): Define using glwthread_once.
5926         (glthread_once_func): Remove declaration.
5927         * lib/glthread/lock.c (glthread_once_func): Remove function.
5928         * modules/windows-once: New file.
5929         * modules/lock (Depends-on): Add windows-once.
5931 2019-06-20  Bruno Haible  <bruno@clisp.org>
5933         lock, cond: Avoid possible counter wraparound on Windows.
5934         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
5935         field of the guard unchanged if it was already positive.
5936         (glthread_rwlock_rdlock_func): Likewise.
5937         (glthread_rwlock_wrlock_func): Likewise.
5938         (glthread_recursive_lock_lock_func): Likewise.
5939         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
5940         (glthread_cond_timedwait_func): Likewise.
5942 2019-06-20  Bruno Haible  <bruno@clisp.org>
5944         cond: Make glthread_cond_timedwait more reliable on Windows.
5945         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
5946         condition variable before looking at the current time.
5948 2019-06-20  Bruno Haible  <bruno@clisp.org>
5950         pthread_mutex_timedlock: New module.
5951         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
5952         new declaration.
5953         * lib/pthread_mutex_timedlock.c: New file.
5954         * m4/pthread_mutex_timedlock.m4: New file.
5955         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
5956         whether pthread_mutex_timedlock is declared.
5957         (gl_PTHREAD_MODULE_INDICATOR): New macro.
5958         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
5959         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
5960         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
5961         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
5962         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
5963         * modules/pthread_mutex_timedlock: New file.
5964         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
5965         module.
5967 2019-06-20  Bruno Haible  <bruno@clisp.org>
5969         thread, lock, cond, tls: Recognize C11 multithreaded applications.
5970         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
5971         * lib/glthread/thread.h (c11_threads_in_use): New macro.
5972         (pthread_in_use, pth_in_use, thread_in_use): Use it.
5973         * lib/glthread/lock.h (c11_threads_in_use): New macro.
5974         (pthread_in_use, pth_in_use, thread_in_use): Use it.
5975         * lib/glthread/cond.h (c11_threads_in_use): New macro.
5976         (pthread_in_use, pth_in_use, thread_in_use): Use it.
5977         * lib/glthread/tls.h (c11_threads_in_use): New macro.
5978         (pthread_in_use, pth_in_use, thread_in_use): Use it.
5980 2019-06-20  Bruno Haible  <bruno@clisp.org>
5982         tls tests: Small improvements.
5983         * tests/test-tls.c: Include <stdint.h>.
5984         (worker_thread): Avoid gcc warning on 64-bit mingw.
5985         (test_tls): Pass a different id to each thread.
5986         * modules/tls-tests (Depends-on): Add stdint.
5988 2019-06-20  Bruno Haible  <bruno@clisp.org>
5990         cond tests: Simplify.
5991         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
5993 2019-06-20  Bruno Haible  <bruno@clisp.org>
5995         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
5996         * tests/test-lock.c (test_once): Don't reference fire_signal if
5997         !ENABLE_LOCKING.
5999 2019-06-19  Bruno Haible  <bruno@clisp.org>
6001         nanosleep: Relicense under LGPLv2+.
6002         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
6003         * modules/nanosleep (License): Change to LGPLv2+.
6005 2019-06-19  Bruno Haible  <bruno@clisp.org>
6007         Reorder pieces of header in perl scripts.
6008         The desired order is
6009         - Prologue part 1 (2 lines with #!)
6010         - Program short description
6011         - Copyright and license notice
6012         - Written-by notice
6013         - Program short description (optional)
6014         - Program long description (optional)
6015         - Prologue part 2
6016         - Time stamp
6017         - Code
6018         Reported by Paul Eggert.
6019         * build-aux/announce-gen: Reorder header.
6020         * build-aux/gitlog-to-changelog: Likewise.
6021         * build-aux/useless-if-before-free: Likewise.
6022         * build-aux/prefix-gnulib-mk: Add copyright notice and short
6023         description.
6024         * build-aux/update-copyright: Likewise. Add short description. Bump
6025         time-stamp-line-limit to 200.
6027 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
6029         verify-tests: work around xlc bug
6030         Problem reported by Bruno Haible in:
6031         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
6032         * tests/test-verify.c (item): Move the arithmetic inside the
6033         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
6035 2019-06-16  Bruno Haible  <bruno@clisp.org>
6037         Restore Emacs time-stamp hook applicability.
6038         Reported by Darshit Shah <darnir@gnu.org>.
6039         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
6040         * build-aux/announce-gen: Likewise.
6041         * build-aux/gitlog-to-changelog: Likewise.
6042         * build-aux/prefix-gnulib-mk: Likewise.
6043         * build-aux/update-copyright: Likewise.
6045 2019-06-15  Bruno Haible  <bruno@clisp.org>
6047         Fix scripts to have valid executable format on Alpine Linux.
6048         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
6049         Idea by Paul Eggert.
6050         * build-aux/useless-if-before-free: Use a prologue that starts with
6051         '#!/bin/sh'.
6052         * build-aux/announce-gen: Likewise.
6053         * build-aux/gitlog-to-changelog: Likewise.
6054         * build-aux/prefix-gnulib-mk: Likewise.
6055         * build-aux/update-copyright: Likewise.
6056         * tests/test-update-copyright.sh: Update test program accordingly.
6058 2019-06-10  Bruno Haible  <bruno@clisp.org>
6060         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
6061         Reported by Nikita Ermakov <arei@altlinux.org> in
6062         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
6063         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
6064         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
6066 2019-06-10  Bruno Haible  <bruno@clisp.org>
6068         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
6069         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
6070         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
6071         a copy of the path argument.
6072         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
6073         it.
6075 2019-06-10  Bruno Haible  <bruno@clisp.org>
6077         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
6078         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
6079         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
6080         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
6081         a copy of the path argument.
6082         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
6083         it.
6085 2019-06-10  Bruno Haible  <bruno@clisp.org>
6087         posix_spawn_file_actions_addfchdir: Add tests.
6088         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
6089         * tests/test-posix_spawn5.c: New file.
6090         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
6092 2019-06-10  Bruno Haible  <bruno@clisp.org>
6094         posix_spawn_file_actions_addfchdir: New module.
6095         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
6096         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
6097         union member 'fchdir_action'.
6098         * lib/spawn_faction_addfchdir.c: New file.
6099         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
6100         * m4/posix_spawn_faction_addfchdir.m4: New file.
6101         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
6102         'posix_spawn_file_actions_addfchdir' is present and whether
6103         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
6104         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
6105         posix_spawn_file_actions_addfchdir is declared.
6106         (gl_SPAWN_H_DEFAULTS): Initialize
6107         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
6108         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
6109         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
6110         * modules/spawn (Makefile.am): Substitute
6111         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
6112         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
6113         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
6114         * modules/posix_spawn_file_actions_addfchdir: New file.
6115         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
6116         signature.
6117         * doc/posix-functions/posix_spawn.texi: Mention the new module.
6118         * doc/posix-functions/posix_spawnp.texi: Likewise.
6119         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
6120         Likewise.
6122 2019-06-10  Bruno Haible  <bruno@clisp.org>
6124         doc: Document existence of posix_spawn_file_actions_addchdir module.
6125         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
6126         the posix_spawn_file_actions_addchdir module.
6128 2019-06-10  Bruno Haible  <bruno@clisp.org>
6130         posix_spawn-internal: Fix module description.
6131         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
6132         from here...
6133         * modules/posix_spawnp (configure.ac): ... and here...
6134         * modules/posix_spawn-internal (configure.ac): ... to here.
6136 2019-06-10  Bruno Haible  <bruno@clisp.org>
6138         doc: Update and improve documentation of glibc functions.
6139         This is a series of commits that
6140         - updates the documentation to the state of glibc 2.29,
6141         - adds references to Linux man pages and glibc documentation,
6142         - marks Linux specific functions as such.
6143         These are the commits:
6144         doc: Update after removal of crypt functions from glibc 2.28.
6145         doc: Remove mention of function vm86 (does not exist on x86_64).
6146         doc: Remove mention of functions that are gone from glibc.
6147         doc: Mention that glibc no longer provides h_errno.
6148         doc: Mention the availability of specific functions in glibc versions.
6149         doc: Mention eaccess.
6150         doc: Add references to Linux man pages.
6151         doc: Add references to glibc documentation.
6152         doc: Mention inotify_* functions.
6153         doc: Mention ppoll.
6154         doc: Mention sched_getcpu.
6155         doc: Mention sync_file_range.
6156         doc: Mention epoll_pwait.
6157         doc: Mention eventfd, eventfd_read, eventfd_write.
6158         doc: Mention signalfd.
6159         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
6160         doc: Mention epoll_create1.
6161         doc: Mention getauxval.
6162         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
6163         doc: Mention nextdown, nextup.
6164         doc: Mention more ISO TS 18661-1 <math.h> functions.
6165         doc: Mention ISO TS 18661-1 <fenv.h> functions.
6166         doc: Mention getrandom, getentropy.
6167         doc: Mention strfromf, strfromd, strfroml.
6168         doc: Mention preadv2, pwritev2.
6169         doc: Mention copy_file_range.
6170         doc: Mention memfd_create.
6171         doc: Mention mlock2.
6172         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
6173         doc: Mention more ISO TS 18661-1 <math.h> functions.
6174         doc: Mention renameat2.
6175         doc: Mention statx.
6176         doc: Mention the ISO C11 multithreading header and functions.
6177         doc: Mention getcpu.
6178         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
6179         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
6180         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
6181         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
6182         doc: Some glibc functions also exist on Solaris 11.
6183         doc: Some glibc functions also exist on Solaris 11.4.
6184         doc: Some glibc functions also exist on FreeBSD.
6185         doc: Some glibc functions also exist on BeOS.
6186         doc: Some glibc functions also exist on Haiku.
6187         doc: Mark functions which exist only on Linux.
6188         doc: Mark functions which exist only on Linux and illumos.
6190 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
6192         copy-file: fix typo
6193         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
6195         copy-file-range: simplify into a stub
6196         Based on a comment by Florian Weimer in:
6197         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
6198         It turns out that Emacs (which will use this module) won’t need an
6199         emulation and I suspect other programs won’t either, because these
6200         programs will need to fall back on read+write anyway.  Perhaps I
6201         am wrong and other programs will be able to use an emulation; if
6202         so, this patch can be reverted.
6203         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
6204         Just call it copy_file_range.
6205         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
6206         Check via AC_LINK_IFELSE.
6207         * modules/copy-file-range (Depends-on): Remove modules no longer used.
6209 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
6211         copy-file: prefer copy_file_range
6212         * lib/copy-file.c: Do not include xalloc.h.
6213         (qcopy_file_preserving): Allocate a buffer only if
6214         copy_file_range does not suffice.  If the allocation fails
6215         don't give up; just use a small stack-based buffer.
6216         Prefer copy_file_range if it works.
6217         * modules/copy-file (Depends-on): Add copy-file-range.
6218         Remove xalloc.
6220         copy-file-range: new module
6221         * MODULES.html.sh: Add copy-file-range.
6222         * lib/copy-file-range.c, m4/copy-file-range.m4:
6223         * modules/copy-file-range: New files.
6224         * lib/unistd.in.h (copy_file_range): Declare.
6225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
6226         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
6227         * modules/unistd (unistd.h): Substitute them.
6229 2019-05-28  Bruno Haible  <bruno@clisp.org>
6231         binary-io: Attempted use of O_BINARY on consoles no longer fails.
6232         Reported by KO Myung-Hun <komh78@gmail.com> in
6233         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
6234         * lib/binary-io.h (__gl_setmode_check): Remove function.
6235         (set_binary_mode): Declare as notinline on DJGPP and EMX.
6236         * lib/binary-io.c (__gl_setmode_check): Remove function.
6237         (set_binary_mode): Define here on DJGPP and EMX. Inline
6238         __gl_setmode_check. In case of a tty, don't return an error code.
6240 2019-05-28  James Youngman  <jay@gnu.org>
6242         dirent-safer: Make opendir_safer usable from C++.
6243         * lib/dirent-safer.h: use extern "C".
6245 2019-05-28  James Youngman  <jay@gnu.org>
6247         canonicalize: Make canonicalize_filename_mode usable from C++.
6248         * lib/canonicalize.h: use extern "C".
6250 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
6252         prefix-gnulib-mk: Fix CPPFLAGS migration.
6253         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
6254         _a part of the library name.
6256 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6258         flexmember: update comments again
6259         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
6261         flexmember: update comment
6262         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
6264 2019-05-20  Bruno Haible  <bruno@clisp.org>
6266         setlocale: Improve fallback on macOS.
6267         * lib/setlocale.c (search): Optimize away a redundant strcmp()
6268         invocation.
6269         (locales_with_principal_territory): New array.
6270         (langcmp, get_main_locale_with_same_language): New functions.
6271         (locales_with_principal_language): New array.
6272         (terrcmp, get_main_locale_with_same_territory): New functions.
6273         (rpl_setlocale): When setlocale_single failed, try again with a locale
6274         that is more likely to exist. Don't warn if the environment variable
6275         SETLOCALE_VERBOSE is not set.
6277 2019-05-19  Bruno Haible  <bruno@clisp.org>
6279         localename: Fix default on macOS.
6280         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
6281         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
6282         (gl_locale_name_environ, gl_locale_name_default): Remove code for
6283         HAVE_CFLOCALECOPYCURRENT.
6284         * lib/localename.h (gl_locale_name_default): Update.
6286 2019-05-19  Karl Berry  <karl@freefriends.org>
6288         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
6289         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
6290         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
6292 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
6294         maintainer-makefile: catch uses of $< in non-implicit rules
6295         * top/maint.mk (sc_prohibit_magic_number_exit): New.
6297 2019-05-18  Bruno Haible  <bruno@clisp.org>
6299         threadlib: Provide an easy way to avoid mingw's winpthreads library.
6300         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
6301         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
6302         gl_use_threads accordingly.
6304 2019-05-18  Bruno Haible  <bruno@clisp.org>
6306         pthread_sigmask: Fix compilation error with --enable-threads=windows.
6307         Reported by Tim Rühsen in
6308         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
6309         and Michele Locati in
6310         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
6311         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
6312         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
6313         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
6314         in use and regardless which threads API is chosen.
6316 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
6318         close-stream, closein, closeout: simplify
6319         I noticed this opportunity for simplification while drafting a
6320         new, related module that I haven’t had time to finish yet.
6321         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
6322         * modules/close-stream (Files): Remove m4/close-stream.m4.
6323         (configure.ac): Omit gl_CLOSE_STREAM.
6324         * modules/closein (Files): Remove m4/closein.m4
6325         (configure.ac): Omit gl_CLOSEIN.
6326         * modules/closeout (Files): Remove m4/closeout.m4.
6327         (configure.ac): Omit gl_CLOSEOUT.
6329 2019-05-12  Bruno Haible  <bruno@clisp.org>
6331         libtool-next-version: New program.
6332         * build-aux/libtool-next-version: New file.
6334 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
6335             Bruno Haible  <bruno@clisp.org>
6337         version-etc: Ease translation.
6338         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
6339         URLs and formatting newlines out of translatable string.
6341 2019-05-11  Bruno Haible  <bruno@clisp.org>
6343         gnupload: Explain how to create symlinks.
6344         * build-aux/gnupload (usage): Add an example that creates symlinks.
6346 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
6348         fpucw: port to gcc -pedantic
6349         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
6350         Use __extension__ if using ({ ... }).
6352         crypto/af_alg: port to strict C compilers
6353         * lib/af_alg.c: Include af_alg.h regardless, so that the
6354         compilation unit is nonempty.
6356 2019-05-10  Bruno Haible  <bruno@clisp.org>
6358         base64: Avoid false positive warning from Coverity.
6359         Reported by Kamil Dudka <kdudka@redhat.com>.
6360         Idea by Paul Eggert.
6361         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
6362         '& 0x3f' to the array index expressions. This convinces Coverity that
6363         there is no out-of-bounds array reference, regardless of the input.
6365 2019-05-09  Bruno Haible  <bruno@clisp.org>
6367         gettext: Update to gettext 0.20.
6368         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
6369         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
6370         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
6371         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
6372         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
6373         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
6374         (configure.ac): Request infrastructure compatible with gettext 0.20.
6375         * m4/glibc2.m4: Remove file.
6376         * m4/intdiv0.m4: Remove file.
6377         * m4/intl.m4: Remove file.
6378         * m4/intldir.m4: Remove file.
6379         * m4/intmax.m4: Remove file.
6380         * m4/printf-posix.m4: Remove file.
6381         * m4/uintmax_t.m4: Remove file.
6382         * m4/gettext.m4: Update from gettext 0.20.
6383         * m4/po.m4: Likewise.
6385 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
6387         verify: remove verify_true
6388         * NEWS: Mention this.
6389         * lib/verify.h (verify_true): Remove.
6390         * tests/test-verify.c (item): Test verify_expr, not verify_true.
6392         Support C2X and C++17 static_assert
6393         C2X and C++17 finally added support for a simple, single-argument
6394         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
6395         doing back in 2005.  Implement static_assert on older platforms.
6396         The only remaining advantage of ‘verify’ is a shorter name.
6397         * doc/posix-headers/assert.texi (assert.h):
6398         * doc/verify.texi (Compile-time Assertions):
6399         Modernize for C2X and C++17.
6400         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
6401         New macros.
6402         (_GL_HAVE__STATIC_ASSERT): Remove.
6403         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
6404         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
6405         string.  All callers changed.
6406         (_GL_VERIFY): Require 3 or more args, of which only the first 2
6407         are used.  All callers changed.
6408         (_Static_assert): Allow either 1 or 2 args, and define if
6409         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
6410         !_GL_HAVE__STATIC_ASSERT.
6411         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
6412         of defining if !_GL_HAVE_STATIC_ASSERT.
6413         (verify_expr, verify): Don’t bother trying to copy the expression
6414         into the diagnostic, since 1-argument static_assert doesn’t.
6415         (verify): Prefer 1-argument _Static_assert if it works.
6416         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
6418 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
6420         Fix _GL_HAVE__STATIC_ASSERT typo
6421         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
6422         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
6424 2019-05-05  Bruno Haible  <bruno@clisp.org>
6426         wcwidth: Ensure width 1, not 2, for ambiguous characters.
6427         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
6428         via Akim Demaille <akim.demaille@gmail.com>.
6429         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
6430         en_US.UTF-8 locale, since that is more likely to be present than an
6431         fr_FR.UTF-8 locale.
6432         * tests/test-wcwidth.c (main): Check the width of U+2202.
6433         * doc/posix-functions/wcwidth.texi: Mention the issue.
6435 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
6437         Port manywarnings to GCC 9
6438         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
6439         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
6440         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
6441         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
6442         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
6443         --help=warnings output.
6444         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
6445         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
6446         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
6448 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
6450         Sync lib/mktime-internal.h from glibc
6451         * config/srclist.txt: Add entry for lib/mktime-internal.h.
6452         * lib/mktime-internal.h: Autoupdate.
6454 2019-04-28  Bruno Haible  <bruno@clisp.org>
6456         tls tests: Prevent that the test takes too long.
6457         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
6458         (main): Let the test fail if it takes more than 10 minutes.
6459         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
6461 2019-04-27  Bruno Haible  <bruno@clisp.org>
6463         lock tests: Prevent that the test takes too long.
6464         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
6465         (main): Let the test fail if it takes more than 10 minutes.
6466         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
6468 2019-04-27  Bruno Haible  <bruno@clisp.org>
6470         localename: Fix crash on mingw (regression from 2018-11-23).
6471         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
6472         locale name that is null.
6474 2019-04-27  Bruno Haible  <bruno@clisp.org>
6476         Fix gcc warnings on 64-bit mode mingw.
6477         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
6478         * lib/gl_array_list.c: Likewise.
6479         * lib/gl_array_map.c: Likewise.
6480         * lib/gl_array_set.c: Likewise.
6481         * lib/gl_carray_list.c: Likewise.
6482         * lib/gl_sublist.c: Likewise.
6483         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
6484         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
6485         * lib/gl_hash_map.c (uintptr_t): Likewise.
6486         * lib/gl_hash_set.c (uintptr_t): Likewise.
6487         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
6488         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
6489         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
6490         * lib/iconv.c (uintptr_t): Likewise.
6491         * lib/iconv_close.c (uintptr_t): Likewise.
6492         * tests/test-lock.c: Include <stdint.h>.
6493         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
6494         'long'.
6495         * modules/clean-temp (Depends-on): Add stdint.
6496         * modules/array-list (Depends-on): Likewise.
6497         * modules/array-map (Depends-on): Likewise.
6498         * modules/array-set (Depends-on): Likewise.
6499         * modules/carray-list (Depends-on): Likewise.
6500         * modules/sublist (Depends-on): Likewise.
6501         * modules/lock-tests (Depends-on): Likewise.
6503 2019-04-27  Bruno Haible  <bruno@clisp.org>
6505         error: Tweak indentation.
6506         * lib/error.c: Correct indentation.
6508 2019-04-27  Bruno Haible  <bruno@clisp.org>
6510         term-style-control: Fix gcc warning on mingw.
6511         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
6512         of i.
6514 2019-04-26  Bruno Haible  <bruno@clisp.org>
6516         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
6517         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
6519 2019-04-26  Bruno Haible  <bruno@clisp.org>
6521         relocatable-prog: Fix gcc warning on mingw.
6522         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
6523         on EMX.
6525 2019-04-02  Bruno Haible  <bruno@clisp.org>
6527         gitsub.sh: New file.
6528         * top/gitsub.sh: New file.
6530 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
6532         argmatch: use void* for raw memory pointers
6533         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
6534         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
6535         to "values", keep char* for strings.
6537 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
6539         prefix-gnulib-mk: fix the support for gnulib-po
6540         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
6541         Don't touch HAVE_* variables.
6542         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
6544 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
6546         di-set: allow free with 'ino_map' being NULL.
6547         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
6548         is NULL.  Bug introduced in commit 3703dbbe88dd.
6549         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
6550         as a test.
6552 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
6554         * lib/str-two-way.h: Fix comment typo.
6556 2019-04-13  Bruno Haible  <bruno@clisp.org>
6558         x-to-1: Restore ability to use original calling convention.
6559         * build-aux/x-to-1.in: Add comments. Accept the original form of
6560         HELP2MAN argument as well as the form expected since 2012-12-12.
6562 2019-04-13  Bruno Haible  <bruno@clisp.org>
6564         x-to-1: Avoid failure due to missing perl modules.
6565         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
6566         needs are installed.
6568 2019-04-13  Bruno Haible  <bruno@clisp.org>
6570         openmp-init: New module.
6571         * modules/openmp-init: New file.
6572         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
6573         the changes from 2019-04-09.
6575 2019-04-12  Bruno Haible  <bruno@clisp.org>
6577         signbit: Fix compilation error when gnulib's math.h exists twice.
6578         * lib/math.in.h (GNULIB_defined_signbit): New macro.
6580 2019-04-12  Bruno Haible  <bruno@clisp.org>
6582         openmp: Fix compilation error on platforms without OpenMP.
6583         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
6585 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
6587         mountlist: make parsing /proc/self/mountinfo more robust
6588         Cater for the following issues with mountinfo parsing (the first
6589         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
6590         in <https://bugs.gnu.org/35137>).
6591         1. The fields source, target, mntroot and fstype may contain characters
6592         like '\r'; sscanf(3) fails to read such values with the %s format
6593         specifier because it would stop at such characters.
6594         Example: "mount -t tmpfs tmpfs /foo^Mbar".
6595         The only true separator in that file is the ' ' character.
6596         2. The source field may be an empty string, which happens e.g. with
6597         "mount -t tmpfs '' /target".
6598         3. The fstype field may contain mangled characters as well which need
6599         unescaping.
6600         * lib/mountlist.c (terminate_at_blank): Add utility function.
6601         (read_file_system_list): In the block trying to read the mountinfo file,
6602         avoid using sscanf(3) with %s format; instead, parse the above fields
6603         separated by spaces one by one.
6604         This also handles the case when the source field is an empty string.
6605         Unescape the fstype field.
6607 2019-04-09  Bruno Haible  <bruno@clisp.org>
6609         openmp: Add workaround for 32-bit programs on AIX.
6610         * lib/omp.in.h: New file.
6611         * lib/omp-init.c: New file, based on lib/nproc.c.
6612         * m4/omp_h.m4: New file.
6613         * modules/openmp (Files): Add them.
6614         (Depends-on): Add include_next, c-ctype, setenv.
6615         (configure.ac): Invoke gl_OMP_H.
6616         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
6617         (Include): Mention <omp.h>.
6619 2019-04-09  Bruno Haible  <bruno@clisp.org>
6621         nproc: Fix return value for privileged processes.
6622         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
6623         getpid().
6625 2019-04-07  Bruno Haible  <bruno@clisp.org>
6627         Add copyright notices in several files.
6628         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
6629         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
6630         * lib/libunistring.valgrind: Likewise.
6631         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
6632         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
6633         * lib/memchr.valgrind: Likewise.
6634         * lib/memchr2.valgrind: Likewise.
6635         * lib/rawmemchr.valgrind: Likewise.
6636         * lib/relocatable.valgrind: Likewise.
6637         * lib/strchrnul.valgrind: Likewise.
6639 2019-03-25  Bruno Haible  <bruno@clisp.org>
6641         term-style-control tests: Fix link error.
6642         Reported by Tom G. Christensen in
6643         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
6644         * modules/term-style-control-tests (Makefile.am): Link
6645         test-term-style-control-hello and test-term-style-control-yes against
6646         LIBINTL.
6648 2019-03-24  Bruno Haible  <bruno@clisp.org>
6650         term-style-control: Add tests.
6651         * tests/test-term-style-control-hello.c: New file.
6652         * tests/test-term-style-control-yes.c: New file.
6653         * modules/term-style-control-tests: New file.
6655         term-style-control: New module.
6656         * lib/term-style-control.h: New file, based on libtextstyle's
6657         term-ostream.oo.h and term-ostream.oo.c.
6658         * lib/term-style-control.c: New file, based on libtextstyle's
6659         term-ostream.oo.c.
6660         * modules/term-style-control: New file.
6662 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
6664         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
6665         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
6666         C++98 appears to be supported by Clang, but not by GCC nor ICC.
6668 2019-03-23  Bruno Haible  <bruno@clisp.org>
6670         Support cross-compilation to musl libc.
6671         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
6672         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
6673         musl libc.
6674         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
6675         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
6676         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6677         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6678         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6679         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
6680         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6681         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
6682         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6683         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
6684         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
6685         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
6686         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6687         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6688         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
6689         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6690         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6691         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6692         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
6693         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
6694         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6695         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6696         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
6697         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6698         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
6699         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6700         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
6701         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
6702         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
6703         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
6704         * m4/log.m4 (gl_FUNC_LOG): Likewise.
6705         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
6706         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
6707         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
6708         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
6709         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
6710         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
6711         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
6712         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
6713         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
6714         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
6715         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
6716         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
6717         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
6718         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
6719         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6720         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6721         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
6722         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
6723         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
6724         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
6725         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
6726         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
6727         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
6728         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6729         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
6730         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6731         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6732         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6733         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6734         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6735         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6736         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6737         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
6738         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6739         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6740         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6741         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
6742         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6743         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
6744         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6745         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6746         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6747         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6748         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
6749         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6750         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
6751         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6753 2019-03-23  Bruno Haible  <bruno@clisp.org>
6755         posix_spawn_file_actions_*: Document musl libc bugs.
6756         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
6757         the bug.
6758         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
6759         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
6760         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
6761         cross-compiling to a musl system, guess no.
6762         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
6763         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
6765 2019-03-23  Bruno Haible  <bruno@clisp.org>
6767         futimens: Document musl libc bug.
6768         * doc/posix-functions/futimens.texi: Mention the bug.
6769         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
6770         cross-compiling, guess no on glibc and musl systems.
6772 2019-03-23  Bruno Haible  <bruno@clisp.org>
6774         Clarify that cross-compilation guesses are guesses.
6775         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
6776         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
6777         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
6778         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
6779         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
6780         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
6781         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
6782         gl_cv_glob_lists_symlinks.
6783         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
6784         'guessing ' to ac_cv_func_malloc_0_nonnull.
6785         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
6786         'guessing ' to ac_cv_func_realloc_0_nonnull.
6787         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
6788         'guessing ' to gl_cv_func_poll.
6789         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
6790         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
6791         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
6793 2019-03-23  Bruno Haible  <bruno@clisp.org>
6795         strtold: Fix typo.
6796         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
6798 2019-03-23  Bruno Haible  <bruno@clisp.org>
6800         noreturn: In C++ mode with clang, use _Noreturn as fallback.
6801         Reported by Akim Demaille.
6802         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
6803         [[noreturn]] would not work, use _Noreturn instead.
6805 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
6807         libtextstyle-optional: Fix compiler warnings.
6808         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
6809         as unused.
6811 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
6813         bitset: fix memory leaks
6814         Reported by Bruno Haible.
6815         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
6816         * lib/bitset/vector.c (vbitset_free): New.
6817         (vbitset_vtable): Use it.
6819 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
6821         bitset: minor changes
6822         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
6823         * lib/bitset/table.c: Formatting changes.
6824         Remove useless braces.
6825         Prefer using else in cascades of if/else-if with returns.
6826         * lib/bitset/vector.c: Reduce scopes.
6828 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
6830         bitset: expose bitset_resize
6831         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
6832         * tests/test-bitset.c (check_attributes): Check bitset_resize.
6833         (main): Use a variable bitset as reference, since fixed does not support resize.
6835 2019-03-19  Bruno Haible  <bruno@clisp.org>
6837         doc: Document the 'stdnoreturn' and 'noreturn' modules.
6838         Reported by Akim Demaille.
6839         * doc/noreturn.texi: New file.
6840         * doc/gnulib.texi: Include it.
6842 2019-03-19  Bruno Haible  <bruno@clisp.org>
6844         doc: Document how to use 'static inline'.
6845         * doc/static-inline.texi: New file.
6846         * doc/gnulib.texi: Include it.
6848 2019-03-19  Bruno Haible  <bruno@clisp.org>
6850         libtextstyle-optional: Add tests.
6851         * tests/test-libtextstyle.c: New file, based on libtextstyle's
6852         adhoc-tests/hello.c.
6853         * tests/test-libtextstyle-default.css: New file, copied from
6854         libtextstyle's adhoc-tests/hello-default.css.
6855         * modules/libtextstyle-optional-tests: New file.
6857         libtextstyle-optional: New module.
6858         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
6859         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
6860         * modules/libtextstyle-optional: New file.
6862 2019-03-19  Bruno Haible  <bruno@clisp.org>
6864         c-stack: Make signal handlers more reliable.
6865         * lib/c-stack.c (progname): New variable.
6866         (die): Use it.
6867         (c_stack_action): Initialize it.
6868         (segv_handler): Save and restore errno.
6870 2019-03-19  Bruno Haible  <bruno@clisp.org>
6872         Help making signal handlers more reliable.
6873         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
6874         _GL_ASYNC_SAFE into config.h.
6875         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
6876         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
6877         argument.
6878         * lib/fatal-signal.c (action_t, uninstall_handlers,
6879         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
6880         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
6881         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
6882         _GL_ASYNC_SAFE.
6883         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
6884         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
6886 2019-03-18  Bruno Haible  <bruno@clisp.org>
6888         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
6889         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
6890         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
6892 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
6894         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
6895         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
6896         GCC 4.8.
6898 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
6900         fts: minor simplification
6901         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
6903 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
6905         bitset, timevar: Depend on c99.
6906         Reported by Bruno Haible.
6907         * modules/bitset, modules/timevar (Depends-on): Add c99.
6909 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
6911         bitset: a bit (...) more tests
6912         * tests/test-bitset.c (check_attributes): Check zero and ones.
6914 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
6916         bitset: fix overflows.
6917         Reported by Bruno Haible.
6918         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
6919         * lib/bitset/table.c (tbitset_test): last_bit is the position of
6920         the bit in the array of bitset_word, so be sure to take its modulo
6921         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
6922         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
6924 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
6926         bitset: style changes.
6927         * lib/bitset/table.c: Use NULL, not 0, for pointers.
6928         Formatting changes.
6929         (tbitset_list): Reduce scopes.
6931 2019-03-16  Bruno Haible  <bruno@clisp.org>
6933         fatal-signal: Pass the signal number to the action.
6934         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
6935         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
6936         (fatal_signal_handler): Pass the signal number to the action.
6937         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
6938         signal number as parameter.
6939         (create_temp_dir): Update.
6940         * lib/wait-process.c (cleanup_slaves_action): New function.
6941         (register_slave_subprocess): Update at_fatal_signal invocation.
6942         * NEWS: Mention the change.
6944 2019-03-16  Bruno Haible  <bruno@clisp.org>
6946         fatal-signal: Add function that lists the fatal signals.
6947         * lib/fatal-signal.h (get_fatal_signals): New declaration.
6948         * lib/fatal-signal.c (get_fatal_signals): New function.
6950 2019-03-14  Bruno Haible  <bruno@clisp.org>
6952         isatty: Make it return true in Cygwin consoles on native Windows.
6953         * lib/isatty.c: Include <string.h>.
6954         (GetProcAddress): New macro.
6955         (GetNamedPipeClientProcessIdFuncType): New type.
6956         (GetNamedPipeClientProcessIdFunc): New variable.
6957         (QueryFullProcessImageNameFuncType): New type.
6958         (QueryFullProcessImageNameFunc): New variable.
6959         (initialized): New variable.
6960         (initialize): New function.
6961         (IsCygwinConsoleHandle): New function.
6962         (isatty): Invoke it.
6963         * doc/posix-functions/isatty.texi: Mention the issue.
6965 2019-03-14  Bruno Haible  <bruno@clisp.org>
6967         all: Update URLs to msdn.microsoft.com.
6968         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
6969         was moved to docs.microsoft.com.
6971 2019-03-13  Bruno Haible  <bruno@clisp.org>
6973         gnulib-tool: Clarify the coding style.
6974         Suggested by Pavel Raiskup <praiskup@redhat.com>.
6975         * gnulib-tool: Add comment about coding style.
6977 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
6979         strtod: fix clash with strtold
6980         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
6981         * lib/strtod.c (compute_minus_zero, minus_zero):
6982         Simplify by remving the macro / external variable,
6983         and having just a function.  User changed.  This avoids
6984         the need for an external variable that might clash.
6986 2019-03-10  Bruno Haible  <bruno@clisp.org>
6988         alloca-opt: Fix conflict mingw's new <alloca.h> file.
6989         Reported by Eli Zaretskii <eliz@gnu.org>.
6990         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
6991         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
6992         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
6994 2019-03-10  Bruno Haible  <bruno@clisp.org>
6996         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
6997         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
6998         is in use.
6999         * tests/test-printf-posix2.c: Likewise.
7001 2019-03-10  Bruno Haible  <bruno@clisp.org>
7003         uninorm tests: Free allocated memory.
7004         * tests/uninorm/test-u32-normalize-big.h
7005         (struct normalization_test_file): Remove 'const' from allocated member.
7006         (free_normalization_test_file): New declaration.
7007         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
7008         memory.
7009         (free_normalization_test_file): New function.
7010         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
7011         'struct normalization_test_file' contents.
7012         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
7013         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
7014         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
7016 2019-03-10  Bruno Haible  <bruno@clisp.org>
7018         di-set: Fix memory leak.
7019         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
7020         not free().
7022 2019-03-10  Bruno Haible  <bruno@clisp.org>
7024         tests: Free allocated memory.
7025         Reported by <deltatau@protonmail.com> via Assaf Gordon.
7026         * tests/test-astrxfrm.c (main): Free allocated memory.
7027         * tests/test-bitset.c (compare, check_attributes): Free allocated
7028         bitsets.
7029         * tests/test-filenamecat.c (main): Free allocated memory.
7030         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
7031         * tests/test-freadptr.c (main): Likewise.
7032         * tests/test-freadptr2.c (main): Free allocated memory.
7033         * tests/test-freadseek.c (main): Likewise.
7034         * tests/test-gc-arcfour.c (main): Close allocated context.
7035         * tests/test-gc-arctwo.c (main): Likewise.
7036         * tests/test-gc-des.c (main): Close all allocated contexts.
7037         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
7038         * tests/test-pipe-filter-ii1.c (main): Likewise.
7039         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
7040         allocated file actions.
7041         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
7042         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
7043         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
7044         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
7045         * tests/test-strfmon_l.c (main): Free allocated locales.
7046         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
7047         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
7048         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
7049         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
7050         * tests/unistr/test-chr.h (main): Free input32.
7051         * tests/unistr/test-strchr.h (test_strchr): Likewise.
7053 2019-03-10  Bruno Haible  <bruno@clisp.org>
7055         tests: Prepare for using valgrind.
7056         * tests/*.sh: Invoke all test programs through ${CHECKER}.
7057         * tests/*/*.sh: Likewise.
7058         * tests/test-freadptr.c (main): Update accordingly.
7059         * tests/test-freadseek.c (main): Likewise.
7061 2019-03-09  Bruno Haible  <bruno@clisp.org>
7063         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
7064         * lib/get-rusage-as.c (get_rusage_as): When compiled by
7065         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
7066         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
7067         before exiting.
7069 2019-03-09  Jim Meyering  <meyering@fb.com>
7071         test-userspec.c: don't print NULL
7072         * tests/test-userspec.c (main): A test release of gcc,
7073         9.0.1 20190310, warned that this test would attempt to
7074         print a NULL pointer via a %s printf format.  Fix that
7075         and remove the unnecessary preceding "!diag" conjunct.
7076         Also add a comment.
7078 2019-03-03  Bruno Haible  <bruno@clisp.org>
7080         getloadavg: Write NULL for the null pointer.
7081         Reported by Michal Privoznik <mprivozn@redhat.com>.
7082         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
7084 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
7086         alloca, tsearch-tests: Write NULL for the null pointer.
7087         * lib/alloca.c (i00afunc): Write NULL instead of 0.
7088         * tests/test-tsearch.c (mangle_tree): Likewise.
7090 2019-03-09  Bruno Haible  <bruno@clisp.org>
7092         strfmon_l: Fix -fsanitize=address finding.
7093         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
7094         <string.h>.
7095         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
7096         (directive_t, directives_t): New types.
7097         (fmon_parse): New function.
7098         (rpl_strfmon_l): Don't call va_arg more often than needed for the
7099         format string. Consume 'long double' arguments in places where the
7100         format string indicates so.
7101         * modules/strfmon_l (Depends-on): Add 'stdbool'.
7103 2019-03-09  Bruno Haible  <bruno@clisp.org>
7105         crypto/des: Fix undefined behaviour.
7106         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
7107         shift operations on 'int'.
7109 2019-03-09  Bruno Haible  <bruno@clisp.org>
7111         Fix undefined behaviour.
7112         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
7113         'unsigned int', to avoid shift operations on 'int'.
7114         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
7115         * tests/test-count-leading-zeros.c (main): Use a random number that has
7116         as many bits as TYPE, not only 2*15 or 2*31 bits.
7117         * tests/test-count-trailing-zeros.c (main): Likewise.
7118         * tests/test-count-one-bits.c (main): Likewise.
7119         * tests/test-memmem.c: Don't include "null-ptr.h".
7120         (main): Use zerosize_ptr() instead of null_ptr().
7121         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
7123 2019-03-08  Bruno Haible  <bruno@clisp.org>
7125         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
7126         Reported by Jeffrey Walton <noloader@gmail.com>.
7127         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
7128         invoke memset with a zero size.
7129         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
7130         Likewise.
7131         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
7132         Adjust accordingly.
7134 2019-03-08  Bruno Haible  <bruno@clisp.org>
7136         unistr/*, uniconv/*: Fix undefined behaviour.
7137         Reported by Jeffrey Walton <noloader@gmail.com>.
7138         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
7139         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
7140         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
7141         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
7143 2019-03-08  Bruno Haible  <bruno@clisp.org>
7145         unistr/u8-cmp: Fix undefined behaviour.
7146         Reported by Jeffrey Walton <noloader@gmail.com>.
7147         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
7149 2019-03-08  Bruno Haible  <bruno@clisp.org>
7151         unictype/numeric: Fix undefined behaviour.
7152         Reported by Jeffrey Walton <noloader@gmail.com>.
7153         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
7154         on shift overflow, caught by "gcc -fsanitize=undefined".
7155         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
7156         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
7157         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
7159 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
7161         git-version-gen: fix --version copyright year
7162         * build-aux/git-version-gen, build-aux/move-if-change (version):
7163         --version output copyright year is now taken from script year,
7164         so that it no longer needs to be updated by hand.
7166 2019-03-04  Bruno Haible  <bruno@clisp.org>
7168         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
7169         This approach supports relocatable installation of shared libraries
7170         which depend on other shared libraries from the same package.
7171         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
7172         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
7173         wrapper around the original LIBTOOL.
7174         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
7175         token '@loader_path' instead of '$ORIGIN'.
7176         * build-aux/libtool-reloc: New file.
7177         * modules/relocatable-prog (Files): Add it.
7178         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
7179         the recent changes. Document the need to set the *_LDFLAGS of libraries.
7180         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
7181         Makefile.am, not in configure.ac.
7183 2019-03-04  Bruno Haible  <bruno@clisp.org>
7185         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
7186         * build-aux/install-reloc: Revert change.
7187         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
7189 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7191         nstrftime: support the ‘+’ flag
7192         * lib/nstrftime.c (add, __strftime_internal):
7193         Add support for the ‘+’ flag introduced in POSIX.1-2017.
7194         (__strftime_internal): New arg ‘width’.  All uses changed.
7195         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
7197 2019-02-24  Bruno Haible  <bruno@clisp.org>
7199         relocatable-prog: Improve verbose output.
7200         * build-aux/install-reloc (func_verbose): Escape characters that would
7201         be interpreted by the shell.
7203 2019-02-24  Bruno Haible  <bruno@clisp.org>
7205         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
7206         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
7207         "sys/stat.h".
7208         * lib/lstat.c: Likewise.
7209         * lib/fstat.c: Likewise.
7210         * lib/fstatat.c: Likewise.
7212 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
7214         long-options: add parse_gnu_standard_options_only
7215         Discussed in https://bugs.gnu.org/33468 .
7217         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
7218         (parse_gnu_standard_options_only): Add function to process
7219         the GNU default options --help and --version and fail for
7220         any other unknown long or short option. See
7221         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
7222         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
7223         * modules/long-options (depends-on): Add stdbool, exitfail.
7224         * top/maint.mk (sc_prohibit_long_options_without_use): Update
7225         syntax-check rule, add new function name.
7227 2019-02-23  Bruno Haible  <bruno@clisp.org>
7229         relocatable-prog: Update documentation.
7230         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
7231         the recent changes.
7233 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
7235         nstrftime: tweak arg order
7236         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
7237         All callers changed.  Suggested by TAMUKI Shoichi in:
7238         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
7240 2019-02-23  Bruno Haible  <bruno@clisp.org>
7242         relocatable-prog: Use wrapper-free installation also on Mac OS X.
7243         Reported by Paul Smith <psmith@gnu.org>.
7244         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
7245         (func_relativize): New function, from gnulib-tool.
7246         Handle mode 'macosx' through invocations of 'otool' and
7247         'install_name_tool'.
7248         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
7249         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
7250         'install-reloc' invocation with mode 'macosx'.
7252 2019-02-23  Bruno Haible  <bruno@clisp.org>
7254         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
7255         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
7256         Hurd with glibc >= 2.27.
7258 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
7260         nstrftime: merge glibc strftime changes
7261         This incorporates:
7262         2019-02-11 Fix a few whitespace arrangement inconsistencies
7263         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
7264         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
7265         2019-01-11 strftime: use the "L_" macro with character literals
7266         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
7267         callers changed.  Default width of %Ey is now 2.  This is needed
7268         for proper handling of Japanese dates starting on 2019-05-01.
7270 2019-02-19  Bruno Haible  <bruno@clisp.org>
7272         relocatable-prog: Use $ORIGIN trick on more platforms.
7273         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
7274         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
7275         Solaris >= 10, Haiku. But don't use it on Android.
7276         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
7277         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
7279 2019-02-19  Bruno Haible  <bruno@clisp.org>
7281         progreloc: Speed up executable lookup on various platforms.
7282         * lib/progreloc.c: Include <errno.h>.
7283         (safe_read, full_read): New functions.
7284         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
7285         prefer the information from the /proc file system to a PATH search.
7287 2019-02-19  Bruno Haible  <bruno@clisp.org>
7289         progreloc: Simplify code for Android.
7290         * lib/progreloc.c (executable_fd): Don't define on Android.
7291         (maybe_executable, find_executable): Don't use executable_fd on Android.
7293 2019-02-15  Bruno Haible  <bruno@clisp.org>
7295         gnulib-tool: Support --import with just a few tests, not --with-tests.
7296         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
7297         'inctests' when generating files; use 'inctests' only for computing the
7298         transitive closure.
7300 2019-02-14  Bruno Haible  <bruno@clisp.org>
7302         gnulib-tool: Improve handling of multiple --local-dir options.
7303         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
7304         options work.
7305         * gnulib-tool (func_path_prepend): Remove function.
7306         (func_path_foreach): Make IFS handling more robust.
7307         (local_gnulib_path): Collect --local-dir values using func_path_append,
7308         not func_path_prepend.
7309         (func_determine_path_separator): Make IFS handling more robust.
7310         (func_lookup_file_cb): New function.
7311         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
7312         func_lookup_local_file. Apply the patches in the reverse order of their
7313         origin in $local_gnulib_path.
7314         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
7315         * NEWS: Mention that the first --local-dir option is the one with
7316         highest priority.
7318 2019-02-10  Bruno Haible  <bruno@clisp.org>
7320         libtextstyle: New module.
7321         * m4/libtextstyle.m4: New file.
7322         * modules/libtextstyle: New file.
7324 2019-02-05  Bruno Haible  <bruno@clisp.org>
7326         declared.sh: Fix bug with variables of pointer type.
7327         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
7328         before the symbol to be omitted if the preceding character is a '*'.
7330 2019-02-04  Bruno Haible  <bruno@clisp.org>
7332         Add script for running tests under valgrind.
7333         * build-aux/run-test: New file, from GNU libunistring.
7334         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
7335         as well.
7337 2019-02-04  Bruno Haible  <bruno@clisp.org>
7339         declared.sh: Fix --version output.
7340         * build-aux/declared.sh (func_version): Update package name.
7342 2019-02-03  Bruno Haible  <bruno@clisp.org>
7344         Add script for determining the set of symbols to export from a library.
7345         * build-aux/declared.sh: New file, from GNU libunistring.
7346         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
7347         Mention it.
7349 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
7351         vla: add commentary about VLA_ELEMS
7352         * lib/vla.h (VLA_ELEMS): Add commentary,
7353         some inspired by Bruno Haible’s proposal in:
7354         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
7356         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
7357         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
7358         assume the C99 signatures for strtod and strtold.  Programs that
7359         require stricter adherence to C99 should also use the strtod and
7360         strtold modules as needed, and we no longer need the
7361         HAVE_C99_STRTOLD macro.
7362         * NEWS: Mention this.
7363         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
7364         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
7365         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
7366         (Files): Remove m4/c-strtod.m4.
7367         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
7368         exists.
7370 2019-02-02  Bruno Haible  <bruno@clisp.org>
7372         fma: Improve code style.
7373         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
7375 2019-02-02  Colin Watson  <cjwatson@debian.org>
7377         *-map tests: Fix compilation error.
7378         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
7379         * tests/test-hash_map.c: Likewise.
7380         * tests/test-linkedhash_map.c: Likewise.
7382 2019-01-31  Bruno Haible  <bruno@clisp.org>
7384         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
7385         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
7386         GNULIB_defined_strtold_function): New macros.
7387         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
7388         (STRTOD): Ignore HAVE_C99_STRTOLD.
7389         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
7390         deemed buggy. But do use it on platforms where uselocale exists and is
7391         usable.
7392         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
7393         deemed buggy. On platforms where uselocale exists and is usable, use
7394         uselocale and strtod/strtold.
7395         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
7396         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
7397         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
7398         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
7399         (Depends-on): Add strtod.
7400         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
7401         (Depends-on): Add strtold.
7403 2019-01-31  Bruno Haible  <bruno@clisp.org>
7405         strtod, strtold: Use the locale's decimal point.
7406         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
7407         (decimal_point_char): New function, copied from lib/vasnprintf.c.
7408         (parse_number): Add a radixchar argument. Use it instead of '.'.
7409         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
7410         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
7411         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
7412         * tests/test-strtod1.c: New file.
7413         * tests/test-strtod1.sh: New file.
7414         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
7415         locale-fr.m4 and its dependencies.
7416         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
7417         (Makefile.am): Arrange to compile test-strtod1.c and run
7418         test-strtod1.sh.
7419         * tests/test-strtold1.c: New file.
7420         * tests/test-strtold1.sh: New file.
7421         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
7422         locale-fr.m4 and its dependencies.
7423         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
7424         (Makefile.am): Arrange to compile test-strtold1.c and run
7425         test-strtold1.sh.
7427 2019-01-31  Bruno Haible  <bruno@clisp.org>
7429         strtod, strtold tests: Simplify tests.
7430         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
7431         * tests/test-strtold.c (main): Likewise.
7433 2019-01-31  Bruno Haible  <bruno@clisp.org>
7435         strtod, strtold: Avoid unnecessary rounding errors.
7436         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
7437         decimal to DOUBLE conversion.
7439 2019-01-31  Bruno Haible  <bruno@clisp.org>
7441         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
7442         * lib/strtod.c (STRTOD): When there is an extra character after the
7443         exponent marker 'p', reparse the number.
7444         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
7445         * doc/posix-functions/strtold.texi: Likewise.
7447 2019-01-29  Bruno Haible  <bruno@clisp.org>
7449         strtold: Add tests.
7450         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
7451         * modules/strtold-tests: New file.
7453 2019-01-29  Bruno Haible  <bruno@clisp.org>
7455         strtold: New module.
7456         * lib/stdlib.in.h (strtold): New declaration.
7457         * lib/strtold.c: New file.
7458         * lib/strtod.c: Consider USE_LONG_DOUBLE.
7459         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
7460         USE_LDEXP): New macros.
7461         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
7462         USE_LONG_DOUBLE.
7463         (underlying_strtod): Remove function. Replace with some macros.
7464         Re-add the code for a missing underlying function that was removed on
7465         2013-02-19.
7466         * m4/strtold.m4: New file.
7467         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
7468         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
7469         REPLACE_STRTOLD.
7470         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
7471         REPLACE_STRTOLD.
7472         * modules/strtold: New file.
7473         * doc/posix-functions/strtold.texi: Document the new module.
7475 2019-01-29  Bruno Haible  <bruno@clisp.org>
7477         strtod: Fix compilation error on IRIX 6.5.
7478         * modules/strtod (Depends-on): Add 'math'.
7480 2019-01-28  Bruno Haible  <bruno@clisp.org>
7482         Fix build error when building a shared libunistring on Android.
7483         * tests/uninorm/test-nfc.c (n): Don't define on Android.
7484         (main): Add 'volatile', to defeat a GCC optimization that would
7485         eliminate the reference.
7486         * tests/uninorm/test-nfd.c (n): Don't define on Android.
7487         (main): Add 'volatile', to defeat a GCC optimization that would
7488         eliminate the reference.
7489         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
7490         (main): Add 'volatile', to defeat a GCC optimization that would
7491         eliminate the reference.
7492         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
7493         (main): Add 'volatile', to defeat a GCC optimization that would
7494         eliminate the reference.
7496 2019-01-27  Bruno Haible  <bruno@clisp.org>
7498         Avoid build errors due to wrong references between modules.
7499         * lib/uninorm/canonical-decomposition.c: Include
7500         "uninorm/decomposition-table.h", not "decomposition-table.h".
7501         * lib/uninorm/decomposition.c: Likewise.
7502         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
7503         not "decompose-internal.h".
7504         * lib/uninorm/u16-normalize.c: Likewise.
7505         * lib/uninorm/u32-normalize.c: Likewise.
7506         * lib/uninorm/uninorm-filter.c: Likewise.
7507         * lib/uninorm/nfkc.c: Likewise.
7508         * lib/uninorm/nfkd.c: Likewise.
7509         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
7510         "caseprop.h".
7511         * lib/unicase/u8-ct-totitle.c: Likewise.
7512         * lib/unicase/u8-prefix-context.c: Likewise.
7513         * lib/unicase/u8-suffix-context.c: Likewise.
7514         * lib/unicase/u16-casemap.c: Likewise.
7515         * lib/unicase/u16-ct-totitle.c: Likewise.
7516         * lib/unicase/u16-prefix-context.c: Likewise.
7517         * lib/unicase/u16-suffix-context.c: Likewise.
7518         * lib/unicase/u32-casemap.c: Likewise.
7519         * lib/unicase/u32-ct-totitle.c: Likewise.
7520         * lib/unicase/u32-prefix-context.c: Likewise.
7521         * lib/unicase/u32-suffix-context.c: Likewise.
7522         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
7523         "unicasemap.h".
7524         * lib/unicase/u8-toupper.c: Likewise.
7525         * lib/unicase/u8-ct-tolower.c: Likewise.
7526         * lib/unicase/u8-ct-toupper.c: Likewise.
7527         * lib/unicase/u16-tolower.c: Likewise.
7528         * lib/unicase/u16-toupper.c: Likewise.
7529         * lib/unicase/u16-ct-tolower.c: Likewise.
7530         * lib/unicase/u16-ct-toupper.c: Likewise.
7531         * lib/unicase/u32-tolower.c: Likewise.
7532         * lib/unicase/u32-toupper.c: Likewise.
7533         * lib/unicase/u32-ct-tolower.c: Likewise.
7534         * lib/unicase/u32-ct-toupper.c: Likewise.
7535         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
7536         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
7537         * lib/unicase/u16-ct-casefold.c: Likewise.
7538         * lib/unicase/u32-ct-casefold.c: Likewise.
7540 2019-01-27  Bruno Haible  <bruno@clisp.org>
7542         gperf: Fix error when this module is required by some test module.
7543         * modules/gperf (Applicability): Set to 'all'.
7545 2019-01-27  Bruno Haible  <bruno@clisp.org>
7547         tmpfile: Add support for Android.
7548         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
7549         works.
7550         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
7551         Android.
7552         * modules/tmpfile (Depends-on): Add 'stdbool'.
7553         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
7554         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
7556 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
7558         bitsetv: allow free on NULL.
7559         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
7561 2019-01-27  Bruno Haible  <bruno@clisp.org>
7563         test-framework-sh: Improve maintainability.
7564         * tests/init.sh: Clarify what belongs together. Reorder definitions.
7566 2019-01-27  Bruno Haible  <bruno@clisp.org>
7568         tests: Don't assume that /tmp exists.
7569         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
7570         * tests/test-copy-acl-1.sh: Likewise.
7571         * tests/test-file-has-acl-1.sh: Likewise.
7572         * tests/test-copy-file-1.sh: Likewise.
7574 2019-01-27  Bruno Haible  <bruno@clisp.org>
7576         tests: Accommodate a shell that is not in /bin/sh.
7577         * tests/init.sh (setup_): Set srcdir and builddir.
7578         (BOURNE_SHELL): New variable.
7579         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
7580         * modules/file-has-acl-tests (Depends-on): Likewise.
7581         * modules/copy-file-tests (Depends-on): Likewise.
7582         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
7583         scripts through $BOURNE_SHELL.
7584         * tests/test-set-mode-acl-2.sh: Likewise.
7585         * tests/test-copy-acl-1.sh: Likewise.
7586         * tests/test-copy-acl-2.sh: Likewise.
7587         * tests/test-file-has-acl-1.sh: Likewise.
7588         * tests/test-file-has-acl-2.sh: Likewise.
7589         * tests/test-copy-file-1.sh: Likewise.
7590         * tests/test-copy-file-2.sh: Likewise.
7591         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
7592         invoker.
7593         * tests/test-copy-acl.sh (builddir): Likewise.
7594         * tests/test-file-has-acl.sh (builddir): Likewise.
7595         * tests/test-copy-file.sh (builddir): Likewise.
7596         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
7597         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
7598         * tests/test-vc-list-files-git.sh: Likewise.
7600 2019-01-27  Bruno Haible  <bruno@clisp.org>
7602         tests: Fix some "unused variable" warnings.
7603         * tests/test-fts.c (fts_dealloc): Remove unused variable.
7604         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
7605         * tests/test-striconveh.c (main): Move some variable into the
7606         '#if HAVE_ICONV'.
7607         * tests/test-striconveha.c (main): Likewise.
7608         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
7609         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
7610         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
7611         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
7612         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
7613         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
7614         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
7615         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
7616         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
7617         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
7618         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
7619         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
7620         * tests/test-tsearch.c (main): Move some variable into the
7621         '#if HAVE_INITSTATE'.
7623 2019-01-27  Bruno Haible  <bruno@clisp.org>
7625         unigbrk/uc-grapheme-breaks: Fix build failure.
7626         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
7627         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
7629 2019-01-27  Bruno Haible  <bruno@clisp.org>
7631         mountlist: Merge two .m4 files.
7632         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
7633         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
7634         * m4/ls-mntd-fs.m4: Remove file.
7635         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
7637 2019-01-27  Bruno Haible  <bruno@clisp.org>
7639         tests: Enable Linux specific tests on Android.
7640         * tests/test-flock.c (main): Treat Android like Linux.
7641         * tests/test-openat-safer.c (main): Likewise.
7643 2019-01-27  Bruno Haible  <bruno@clisp.org>
7645         relocatable-prog: Use Linux code on Android.
7646         * lib/progreloc.c: Treat Android like Linux.
7648 2019-01-26  Bruno Haible  <bruno@clisp.org>
7650         getloadavg: Add support for Android.
7651         * lib/getloadavg.c: Treat Android like Linux.
7653 2019-01-26  Bruno Haible  <bruno@clisp.org>
7655         vma-iter: Add support for Android.
7656         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
7657         * lib/vma-iter.c: Treat Android like Linux.
7658         * lib/get-rusage-data.c (get_rusage_data): Likewise.
7660 2019-01-26  Bruno Haible  <bruno@clisp.org>
7662         fts: Optimize on Android.
7663         * lib/fts.c: Treat Android like Linux.
7665 2019-01-26  Bruno Haible  <bruno@clisp.org>
7667         fts: Add support for Android.
7668         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
7669         defined by this module and the ones in libc.
7670         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
7672 2019-01-26  Bruno Haible  <bruno@clisp.org>
7674         mountlist: Use Linux code on Android.
7675         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
7676         (unescape_tab, read_file_system_list): Enable Linux code on Android
7677         as well.
7678         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
7679         and endmntent.
7680         * modules/mountlist (Depends-on): Add 'getline'.
7682 2019-01-26  Bruno Haible  <bruno@clisp.org>
7684         localename tests: Fix test failure on Android.
7685         * modules/localename-tests (Depends-on): Add 'setlocale'.
7687 2019-01-26  Bruno Haible  <bruno@clisp.org>
7689         mountlist: Port better to Android.
7690         * lib/mountlist.c (MOUNTED): Redefine on Android.
7691         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
7692         Android.
7694 2019-01-26  Bruno Haible  <bruno@clisp.org>
7696         striconveh: Fix use of uninitialized iconv_t.
7697         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7698         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
7699         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
7701 2019-01-26  Bruno Haible  <bruno@clisp.org>
7703         nonblocking-socket-tests: Fix test failure on Android 4.3.
7704         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
7705         also on Android.
7707 2019-01-26  Bruno Haible  <bruno@clisp.org>
7709         sh-filename: Add support for Android 4.3.
7710         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
7712 2019-01-26  Bruno Haible  <bruno@clisp.org>
7714         ptsname_r: Work around bug on Android 4.3.
7715         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
7716         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
7717         correct.
7718         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
7719         is defined, just fix the return value.
7720         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
7721         The behaviour of musl libc is nothing to be "fixed", since it is
7722         compliant with the next POSIX standard.
7724 2019-01-26  Bruno Haible  <bruno@clisp.org>
7726         ttyname_r: Work around bug on Android 4.3.
7727         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
7728         * lib/ttyname_r.c (ttyname_r): Implement for Android.
7729         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
7730         * doc/posix-functions/ttyname.texi: Likewise.
7732 2019-01-25  Bruno Haible  <bruno@clisp.org>
7734         getprogname: Port to Android 4.3.
7735         * lib/getprogname.c (getprogname): On Android, take only the last
7736         component of __progname.
7738 2019-01-25  Bruno Haible  <bruno@clisp.org>
7740         wcrtomb: Work around bug on Android 4.3.
7741         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
7742         the C locale.
7743         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
7744         which does not have the 'wctomb' function.
7745         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
7746         * tests/test-wcrtomb.c (main): Accept argument '5'.
7747         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
7749 2019-01-25  Bruno Haible  <bruno@clisp.org>
7751         setlocale: Work around bug on Android 4.3.
7752         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
7753         the "C" locale.
7754         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
7755         * doc/posix-functions/setlocale.texi: Mention the Android bug.
7757 2019-01-24  Bruno Haible  <bruno@clisp.org>
7759         memchr: Work around bug on Android <= 5.0.
7760         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
7761         * doc/posix-functions/memchr.texi: Mention the Android bug.
7763 2019-01-24  Bruno Haible  <bruno@clisp.org>
7765         random: Fix compilation error on Android 4.3.
7766         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
7767         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
7768         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
7769         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
7770         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
7771         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
7772         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
7773         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
7774         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
7775         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
7776         REPLACE_INITSTATE, REPLACE_SETSTATE.
7777         * doc/posix-functions/random.texi: Correct the description of the
7778         situation on Android.
7779         * doc/posix-functions/srandom.texi: Likewise.
7780         * doc/posix-functions/rand.texi: Likewise.
7781         * doc/posix-functions/srand.texi: Likewise.
7783 2019-01-24  Bruno Haible  <bruno@clisp.org>
7785         mbtowc: Fix compilation error on Android 4.3.
7786         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
7787         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
7788         HAVE_MBTOWC.
7789         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
7790         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
7791         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
7792         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
7793         * doc/posix-functions/mbtowc.texi: Mention the change.
7795 2019-01-24  Bruno Haible  <bruno@clisp.org>
7797         fdatasync: Fix compilation error on Android 4.3.
7798         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
7799         test whether fdatasync() exists.
7801 2019-01-24  Bruno Haible  <bruno@clisp.org>
7803         unlinkat: Fix compilation error on Android 4.3.
7804         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
7805         also on Android.
7806         * doc/posix-functions/unlinkat.texi: Mention the issue.
7808 2019-01-24  Bruno Haible  <bruno@clisp.org>
7810         renameat: Fix compilation error on Android 4.3.
7811         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
7812         * doc/posix-functions/renameat.texi: Mention the issue.
7814 2019-01-24  Bruno Haible  <bruno@clisp.org>
7816         fchownat: Fix compilation error on Android 4.3.
7817         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
7818         use.
7819         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
7820         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
7821         * doc/posix-functions/fchownat.texi: Mention the issue.
7823 2019-01-23  Bruno Haible  <bruno@clisp.org>
7825         gnulib-tool: Support running testdirs on Android.
7826         * build-aux/test-driver.diff: New file.
7827         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
7828         build-aux/test-driver after running automake.
7830 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
7832         relocatable-prog: avoid warnings from Automake
7833         * modules/relocatable-prog: Don't declare PHONY dependencies in
7834         Automake conditionals.
7836 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
7838         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
7839         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
7841 2019-01-23  Bruno Haible  <bruno@clisp.org>
7843         threadlib: Revert commit from 2018-06-25. We now have a better fix.
7844         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
7845         preceding -Wl,--as-needed option. Don't check whether the linker
7846         supports --as-needed/--no-as-needed and --push-state/--pop-state.
7848 2019-01-23  Bruno Haible  <bruno@clisp.org>
7850         thread: Force linking with -lpthread, even when --as-needed is in use.
7851         Reported by Richard W.M. Jones <rjones@redhat.com> in
7852         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
7853         * lib/glthread/thread.h (pthread_create): Don't declare weak.
7855 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
7856             Bruno Haible  <bruno@clisp.org>
7858         relocatable: avoid compiler warnings (-Wshadow)
7859         * lib/relocatable.c (compute_curr_prefix): Rename local variables
7860         to avoid name collisions with global variables.
7862 2019-01-22  Bruno Haible  <bruno@clisp.org>
7864         vasnprintf: Don't use %n on Android.
7865         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
7866         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
7867         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
7869 2019-01-22  Bruno Haible  <bruno@clisp.org>
7871         *printf: Support cross-compilation to Android.
7872         * m4/printf.m4: Add cross-compilation guesses for Android.
7874 2019-01-21  Bruno Haible  <bruno@clisp.org>
7876         diacrit: Mark deprecated.
7877         * modules/diacrit (Status, Notice): Mark as deprecated.
7878         * NEWS: Mention it.
7880 2019-01-20  Bruno Haible  <bruno@clisp.org>
7882         rintl: Override broken implementation on NetBSD.
7883         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
7884         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
7885         REPLACE_RINTL.
7886         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
7887         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
7888         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
7889         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
7891 2019-01-20  Bruno Haible  <bruno@clisp.org>
7893         log10l: Work around inaccurate implementation on NetBSD.
7894         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
7895         * lib/log10l.c: Comment out too simplistic override.
7896         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
7898 2019-01-20  Bruno Haible  <bruno@clisp.org>
7900         logl: Work around inaccurate implementation on NetBSD.
7901         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
7902         * lib/logl.c: Comment out unused code.
7903         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
7905 2019-01-20  Bruno Haible  <bruno@clisp.org>
7907         expm1l: Work around inaccurate implementation on NetBSD.
7908         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
7909         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
7910         REPLACE_EXPM1L.
7911         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
7912         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
7913         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
7914         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
7916 2019-01-20  Bruno Haible  <bruno@clisp.org>
7918         expl: Work around inaccurate implementation on NetBSD.
7919         * lib/math.in.h (expl): Test also REPLACE_EXPL.
7920         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
7921         REPLACE_EXPL.
7922         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
7923         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
7924         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
7925         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
7927 2019-01-20  Bruno Haible  <bruno@clisp.org>
7929         exp2l: Work around inaccurate implementation on NetBSD.
7930         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
7931         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
7933 2019-01-20  Bruno Haible  <bruno@clisp.org>
7935         floor, floorl: Avoid autoconf warnings.
7936         * modules/floor (configure.ac): Use AC_REQUIRE.
7937         * modules/floorl (configure.ac): Likewise.
7939 2019-01-20  Bruno Haible  <bruno@clisp.org>
7941         Defeat current GCC optimizations in math autoconf tests.
7942         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
7943         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
7944         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7945         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7946         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
7947         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
7948         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
7949         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
7950         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
7951         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
7952         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7953         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
7954         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
7955         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
7956         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
7957         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
7958         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
7959         * m4/log.m4 (gl_FUNC_LOG): Likewise.
7960         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
7961         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
7962         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
7963         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
7964         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
7965         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
7966         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
7967         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
7968         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
7969         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
7970         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7971         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
7972         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
7973         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7974         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7975         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7976         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7977         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7978         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7979         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7981 2019-01-19  Pádraig Brady  <P@draigBrady.com>
7983         gettext: support disabling use of VLAs
7984         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
7986 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
7988         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
7989         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
7991 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
7993         fcntl: Fix syntax error (regression from 2018-10-05).
7994         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
7996 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
7998         relocatable: improve documentation.
7999         * doc/relocatable-maint.texi (Supporting Relocation): For
8000         substitutions performed by config.status, we need more variables
8001         (for instance datarootdir defaults to '${prefix}/share' so we need
8002         prefix).
8004 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
8006         backup: update dependencies
8007         * modules/backup-rename (Depends-on): It now depends on opendirat
8008         instead of opendir.  It also uses stdint, and xalloc-oversized.
8009         But no longer dirfd.
8010         * modules/backupfile (Depends-on): Add xalloc-oversized.
8012 2019-01-13  Bruno Haible  <bruno@clisp.org>
8014         getcwd: Fix test failure when building on a Linux 9p file system.
8015         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
8016         EINVAL from mkdir like ENAMETOOLONG.
8017         * tests/test-getcwd.c (test_long_name): Likewise.
8019 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
8021         Fix typos found by codespell.
8022         * lib/*.[hc]: Fix typos in comments.
8023         * pygnulib/*.py: Fix typos in error messages and comments.
8025 2019-01-12  Bruno Haible  <bruno@clisp.org>
8027         doc: Fix documentation about container data types.
8028         Reported by Werner Lemberg <wl@gnu.org>.
8029         * doc/containers.texi (Container data types): Fix typo.
8031 2019-01-10  Bruno Haible  <bruno@clisp.org>
8033         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
8034         Reported by Reuben Thomas <rrt@sc3d.org>.
8035         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
8037 2019-01-06  Bruno Haible  <bruno@clisp.org>
8039         maintainer-makefile: Make the configure.ac section optional.
8040         * top/maint.mk (GREP, SED): Define if not defined.
8042 2019-01-06  Bruno Haible  <bruno@clisp.org>
8044         localename: Assume setlocale function.
8045         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
8046         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
8048 2019-01-06  Bruno Haible  <bruno@clisp.org>
8050         doc: Add documentation about container data types.
8051         * doc/containers.texi: New file.
8052         * doc/gnulib.texi (Particular Modules): Include it.
8054 2019-01-06  Bruno Haible  <bruno@clisp.org>
8056         doc: Update documentation about 'progname' module.
8057         * doc/progname.texi: Rename from doc/error.texi. Change node name and
8058         title. Rewrite.
8059         * doc/gnulib.texi (Particular Modules): Update.
8061 2019-01-06  Bruno Haible  <bruno@clisp.org>
8063         doc: Document the xstdopen and *-safer modules.
8064         * doc/xstdopen.texi: New file.
8065         * doc/gnulib.texi (Particular Modules): Include it.
8067 2019-01-06  Bruno Haible  <bruno@clisp.org>
8069         xstdopen: Add tests.
8070         * tests/test-xstdopen.c: New file.
8071         * tests/test-xstdopen.sh: New file.
8072         * modules/xstdopen-tests: New file.
8074         xstdopen: New module.
8075         * lib/xstdopen.h: New file.
8076         * lib/xstdopen.c: New file.
8077         * modules/xstdopen: New file.
8079 2019-01-06  Bruno Haible  <bruno@clisp.org>
8081         stdopen: Fix compilation error with IRIX cc.
8082         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
8084 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8086         xfreopen need not include stdio--.h
8087         * lib/xfreopen.c: Do not include stdio--.h.
8089         xfreopen need not depend on freopen-safer
8090         * modules/xfreopen (Depends-on):
8091         Depend on freopen, not freopen-safer.
8093         stdopen: modernize and simplify
8094         * lib/stdopen.c: Update copyright date
8095         Do not include sys/types.h; no longer needed these days.
8096         (stdopen): Use C99-style decl in loop.  Return int errno
8097         value, rather than just a bool.  Do not worry about fd mismatches,
8098         since the caller cares only if 0, 1, 2 are occupied.
8099         * lib/stdopen.h: No need to include <stdbool.h>.
8100         * m4/stdopen.m4: Remove.
8101         * modules/stdopen: New file.
8103         stdopen: copy from last use in coreutils
8104         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
8105         New files, taken from their last commit in coreutils
8106         2007-07-23T12:35:58Z!jim@meyering.net
8107         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
8109 2019-01-05  Bruno Haible  <bruno@clisp.org>
8111         argp: Don't pass an invalid argument to dgettext().
8112         Reported by He X <xw897002528@gmail.com>.
8113         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
8114         dgettext().
8116 2019-01-05  Bruno Haible  <bruno@clisp.org>
8118         argp: Don't pass an invalid argument to dgettext().
8119         Reported by He X <xw897002528@gmail.com>.
8120         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
8121         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
8122         dgettext().
8124 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8126         stdioext: port to newer 32-bit Android
8127         Problem reported by Tom Yan in:
8128         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
8129         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
8130         (fp_) [__ANDROID__]: Use it.
8132 2019-01-04  Bruno Haible  <bruno@clisp.org>
8134         lock: Fix link error with --enable-threads=pth.
8135         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
8136         Mark as weak.
8138 2019-01-04  Bruno Haible  <bruno@clisp.org>
8140         Fix link errors in unit tests.
8141         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8142         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
8143         * modules/array-map-tests (Makefile.am): Link test-array_map against
8144         libintl.
8145         * modules/array-set-tests (Makefile.am): Link test-array_set against
8146         libintl.
8147         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
8148         libintl.
8149         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
8150         libintl.
8151         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
8152         against libintl.
8153         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
8154         against libintl.
8156 2019-01-04  Bruno Haible  <bruno@clisp.org>
8158         Fix incorrect 'Link' sections.
8159         * modules/regex (Link): Mention the link requirement of module 'lock'.
8160         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
8162 2019-01-04  Bruno Haible  <bruno@clisp.org>
8164         Fix some 'Link' sections.
8165         * modules/c-stack (Link): Add link directive from the 'gettext-h'
8166         dependency.
8167         * modules/getaddrinfo (Link): Likewise.
8169 2019-01-04  Bruno Haible  <bruno@clisp.org>
8171         Remove redundant 'Link' sections.
8172         * modules/canon-host (Link): Remove section.
8173         * modules/timevar (Link): Likewise.
8175 2019-01-04  Bruno Haible  <bruno@clisp.org>
8177         Remove incorrect 'Link' sections.
8178         * modules/acl (Link): Remove section. Use combined 'Link' sections from
8179         the dependencies instead.
8180         * modules/crypto/md5 (Link): Likewise.
8181         * modules/crypto/sha1 (Link): Likewise.
8182         * modules/crypto/sha256 (Link): Likewise.
8183         * modules/crypto/sha512 (Link): Likewise.
8184         * modules/faccessat (Link): Likewise.
8185         * modules/fdutimensat (Link): Likewise.
8186         * modules/iconv_open-utf (Link): Likewise.
8187         * modules/propername (Link): Likewise.
8188         * modules/qacl (Link): Likewise.
8189         * modules/unicodeio (Link): Likewise.
8190         * modules/utimecmp (Link): Likewise.
8191         * modules/utimensat (Link): Likewise.
8192         * modules/xstriconv (Link): Likewise.
8193         * modules/xstriconveh (Link): Likewise.
8195 2019-01-04  Bruno Haible  <bruno@clisp.org>
8197         gnulib-tool: New option --extract-recursive-link-directive.
8198         * gnulib-tool (func_usage): Document the new options
8199         --extract-recursive-dependencies, --extract-recursive-link-directive.
8200         (func_verify_module): Document output variables.
8201         (func_get_dependencies_recursively): New function.
8202         (func_get_link_directive_recursively): New function.
8203         Use them to implement the new options
8204         --extract-recursive-dependencies, --extract-recursive-link-directive.
8205         * doc/gnulib-tool.texi (Link-time requirements): New section.
8207 2019-01-04  Bruno Haible  <bruno@clisp.org>
8209         Clarify meaning of 'Link' section in module description.
8210         * doc/gnulib.texi (Module description): Clarify the meaning of the
8211         'Link' section versus the one of the dependencies.
8212         * NEWS: Mention the change.
8214 2019-01-04  Bruno Haible  <bruno@clisp.org>
8216         pselect: Fix module description.
8217         * modules/pselect (Link): Put one link option per line.
8219 2019-01-04  Bruno Haible  <bruno@clisp.org>
8221         cosl: Fix module description.
8222         * modules/cosl (Link): Fix typo.
8223         * modules/mathl (configure.ac): Likewise.
8225 2019-01-04  Bruno Haible  <bruno@clisp.org>
8227         c-xvasprintf: Fix module dependencies.
8228         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
8230 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
8232         bootstrap: die when some submodules are not initialized
8233         * build-aux/bootstrap: Make sure all submodules are initialized.
8235 2019-01-04  Bruno Haible  <bruno@clisp.org>
8237         bitsetv: Fix module dependencies.
8238         * lib/bitsetv.c: Include xalloc.h.
8239         * modules/bitsetv (Depends-on): Add 'xalloc'.
8241 2019-01-04  Bruno Haible  <bruno@clisp.org>
8243         xmemdup0: Remove redundant code.
8244         * lib/xmemdup0.h (xalloc_die): Remove declaration.
8246 2019-01-04  Bruno Haible  <bruno@clisp.org>
8248         backupfile: Fix module dependencies.
8249         * modules/backupfile (Depends-on): Add 'xalloc'.
8251 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
8253         bitset, crypto/gc: fix conflicts with Solaris 11
8254         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
8255         avoid clash with Solaris 11 <sys/bitset.h>.
8256         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
8257         with Solaris 11 <xorg/gc.h>.
8259 2019-01-04  Bruno Haible  <bruno@clisp.org>
8261         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
8262         Reported by Andy Fiddaman <andy@omniosce.org>.
8263         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
8265 2019-01-03  Eric Blake  <eblake@redhat.com>
8267         maintainer-makefile: fix typo in previous patch
8268         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
8269         of Roman's work.
8271 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
8273         maintainer-makefile: prefer $(GREP) over grep
8274         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
8275         defined.
8276         * top/maint.mk: Use it everywhere.
8278         maintainer-makefile: split long argument lines
8279         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
8280         it would be too long for exec limits on BSD.
8282 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8284         mkfifo: bring back HAVE_MKFIFO macro
8285         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
8286         Problem reported by Andrew Janke in:
8287         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
8289 2018-12-21  Bruno Haible  <bruno@clisp.org>
8291         Assume Autoconf >= 2.63.
8292         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
8293         versions < 2.60.
8295 2018-12-21  Bruno Haible  <bruno@clisp.org>
8297         memcmp: Mention the clang bug.
8298         * tests/test-memcmp.c: Add comment about a known test failure.
8299         * doc/posix-functions/memcmp.texi: Mention the clang bug.
8301 2018-12-20  Jim Meyering  <meyering@fb.com>
8303         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
8304         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
8305           echo '123-x'|LC_ALL=C grep -E '.\bx'
8306         The goal is to revert the first, but reverting it requires to restore
8307         the function deleted in the second. I ran this to restore the deleted
8308         function:
8309           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
8310             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
8311             | patch -R -p1
8312         * lib/dfa.c (charclass_context): Restore deleted function.
8313         Reverting the primary commit removes this change:
8314         dfa: Simplify a building state
8315         * lib/dfa.c (build_state): Simplify a building state.
8317 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
8319         version-etc: allow zero authors
8320         * lib/version-etc.c (version_etc_arn): If no authors are given,
8321         omit authorship info instead of dumping core.
8323 2018-12-19  Bruno Haible  <bruno@clisp.org>
8325         lchown tests: Be more permissive regarding errno values.
8326         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
8327         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
8328         alternative to ENOSYS.
8329         * modules/lchown-tests (Depends-on): Add 'errno'.
8330         * modules/fchownat-tests (Depends-on): Likewise.
8332 2018-12-18  Bruno Haible  <bruno@clisp.org>
8334         duplocale: Avoid test failure on AIX 7.
8335         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
8336         (configure.ac): Invoke gt_FUNC_USELOCALE.
8337         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
8338         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
8339         works.
8341 2018-12-18  Bruno Haible  <bruno@clisp.org>
8343         localename: Fix test failure on AIX 7.
8344         Reported by Assaf Gordon in
8345         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
8346         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
8347         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
8348         instead of ac_cv_func_uselocale.
8349         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
8350         HAVE_USELOCALE.
8351         * lib/localename-table.h: Likewise.
8352         * lib/localename-table.c: Likewise.
8353         * tests/test-localename.c: Likewise.
8354         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
8356 2018-12-18  Bruno Haible  <bruno@clisp.org>
8358         localename: Update comments regarding Cygwin.
8359         * lib/localename.c: Update comment.
8360         * doc/posix-functions/uselocale.texi: Update platforms list.
8361         * doc/posix-functions/newlocale.texi: Likewise.
8362         * doc/posix-functions/duplocale.texi: Likewise.
8363         * doc/posix-functions/freelocale.texi: Likewise.
8365 2018-12-16  Bruno Haible  <bruno@clisp.org>
8367         c-stack: Fix for Linux/sparc.
8368         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
8369         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
8371 2018-12-16  Bruno Haible  <bruno@clisp.org>
8373         localename: Avoid test failure on some glibc systems.
8374         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
8375         Unset environment variables that might disturb the first setlocale call,
8376         and verify that this setlocale call succeeds.
8378 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
8380         random: Fix build error on native Windows (regression from 2018-06-21).
8381         * lib/random.c (__srandom, __initstate, __setstate, __random,
8382         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
8383         to the symbols without '__' prefix.
8385 2018-12-16  Bruno Haible  <bruno@clisp.org>
8387         obstack, libc-config: Support HP-UX cc in C99 mode.
8388         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
8389         compiler, even when in C99 mode.
8390         * lib/cdefs.h (__flexarr): Likewise.
8391         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
8393 2018-12-16  Bruno Haible  <bruno@clisp.org>
8395         localename: Fix test failure on OpenBSD >= 6.2.
8396         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
8397         locale system. Define HAVE_FAKE_LOCALES in this case.
8398         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
8399         HAVE_USELOCALE.
8400         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
8401         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
8402         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
8403         platforms list.
8404         * doc/posix-functions/newlocale.texi: Likewise.
8405         * doc/posix-functions/duplocale.texi: Update platforms list.
8406         * doc/posix-functions/freelocale.texi: Likewise.
8408 2018-12-16  Bruno Haible  <bruno@clisp.org>
8410         duplocale tests: Re-enable the test on platforms without <monetary.h>.
8411         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
8412         of the test, on platforms without <monetary.h>.
8414 2018-12-16  Bruno Haible  <bruno@clisp.org>
8416         localename: Update comments.
8417         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
8419 2018-12-15  Jim Meyering  <meyering@fb.com>
8421         regex: fix indentation
8422         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
8424 2018-12-15  Bruno Haible  <bruno@clisp.org>
8426         openat-safer tests: Avoid test failure on NetBSD 8.
8427         * tests/test-openat-safer.c (main): Execute a Linux specific test only
8428         on Linux.
8430 2018-12-15  Jim Meyering  <meyering@fb.com>
8432         regex: work around a bug in glibc-2.27 and prior
8433         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
8434         assertion for /0|()0|\1|0/.
8435         * tests/test-regex.c (main): Add the same test here.
8437 2018-12-15  Bruno Haible  <bruno@clisp.org>
8439         localename: Fix use of uninitialized shell variable.
8440         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
8441         gt_cv_locale_solaris114 always before use. Remove assignment without
8442         effect.
8444 2018-12-15  Bruno Haible  <bruno@clisp.org>
8446         dfa tests: Avoid test failure on Alpine Linux.
8447         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
8448         command found on Alpine Linux.
8450 2018-12-15  Jim Meyering  <meyering@fb.com>
8452         dfa: avoid new warnings from gcc
8453         These would prevent building with -Werror and a Dec snapshot of gcc.
8454         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
8455         Rename each inner instance to "p".
8456         (charclass_context): Remove unused static function.
8458 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
8460         mkdir-p: improve diagnostic for FUSE mounts
8461         Problem reported by Niklas Hambüchen in:
8462         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
8463         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
8464         errno to mkdir errno if the stat errno is likely more interesting.
8466 2018-12-14  Bruno Haible  <bruno@clisp.org>
8468         hash-map: Add tests.
8469         * tests/test-hash_map.c: New file.
8470         * modules/hash-map-tests: New file.
8472         linkedhash-map: Add tests.
8473         * tests/test-linkedhash_map.c: New file.
8474         * modules/linkedhash-map-tests: New file.
8476         array-map: Add tests.
8477         * tests/test-array_map.c: New file.
8478         * modules/array-map-tests: New file.
8480         xmap: New module.
8481         * lib/gl_xmap.h: New file.
8482         * lib/gl_xmap.c: New file.
8483         * modules/xmap: New file.
8485         hash-map: New module.
8486         * lib/gl_hash_map.h: New file.
8487         * lib/gl_hash_map.c: New file.
8488         * modules/hash-map: New file.
8490         linkedhash-map: New module.
8491         * lib/gl_linkedhash_map.h: New file.
8492         * lib/gl_linkedhash_map.c: New file.
8493         * lib/gl_anyhash1.h: Update comments.
8494         * lib/gl_anyhash2.h: Likewise.
8495         * modules/linkedhash-map: New file.
8497         array-map: New module.
8498         * lib/gl_array_map.h: New file.
8499         * lib/gl_array_map.c: New file.
8500         * modules/array-map: New file.
8502         map: New module.
8503         * lib/gl_map.h: New file.
8504         * lib/gl_map.c: New file.
8505         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
8506         conflict with gl_map.h.
8507         * modules/map: New file.
8509 2018-12-13  Bruno Haible  <bruno@clisp.org>
8511         select tests: Avoid test failure on Cygwin.
8512         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
8514 2018-12-13  Bruno Haible  <bruno@clisp.org>
8516         localtime-buffer: Avoid endless recursion in localtime and gmtime.
8517         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
8519 2018-12-13  Bruno Haible  <bruno@clisp.org>
8521         localeconv tests: Avoid test failure on Cygwin.
8522         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
8523         'mon_grouping' tests.
8525 2018-12-11  Bruno Haible  <bruno@clisp.org>
8527         omap: Don't dispose the old value when the function returns it.
8528         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
8529         here.
8530         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
8531         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
8532         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
8533         here.
8535         array-omap, avltree-omap, rbtree-omap: Tweak style.
8536         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
8537         false.
8538         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
8540         rbtree-omap: Add tests.
8541         * tests/test-rbtree_omap.c: New file.
8542         * modules/rbtree-omap-tests: New file.
8544         avltree-omap: Add tests.
8545         * tests/test-avltree_omap.c: New file.
8546         * modules/avltree-omap-tests: New file.
8548         array-omap: Add tests.
8549         * tests/test-array_omap.c: New file.
8550         * modules/array-omap-tests: New file.
8552         xomap: New module.
8553         * lib/gl_xomap.h: New file.
8554         * lib/gl_xomap.c: New file.
8555         * modules/xomap: New file.
8557         rbtree-omap: New module.
8558         * lib/gl_rbtree_omap.h: New file.
8559         * lib/gl_rbtree_omap.c: New file.
8560         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
8561         Parameterize.
8562         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
8563         * modules/rbtree-omap: New file.
8564         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
8565         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
8567         avltree-omap: New module.
8568         * lib/gl_avltree_omap.h: New file.
8569         * lib/gl_avltree_omap.c: New file.
8570         * lib/gl_avltree_ordered.h: Code moved to here from
8571         lib/gl_avltree_oset.c. Parameterize.
8572         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
8573         * lib/gl_anytree_omap.h: New file.
8574         * modules/avltree-omap: New file.
8575         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
8576         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
8578         array-omap: New module.
8579         * lib/gl_array_omap.h: New file.
8580         * lib/gl_array_omap.c: New file.
8581         * modules/array-omap: New file.
8583         omap: New module.
8584         * lib/gl_omap.h: New file.
8585         * lib/gl_omap.c: New file.
8586         * modules/omap: New file.
8588 2018-12-11  Bruno Haible  <bruno@clisp.org>
8590         hash-set, linkedhash-set: Reduce code duplication.
8591         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
8592         lib/gl_anyhash_set1.h.
8593         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
8594         lib/gl_anyhash_set2.h. Parameterize.
8595         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
8596         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
8597         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
8598         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
8599         * lib/gl_rbtreehash_list.c: Likewise.
8600         * lib/gl_linkedhash_list.c: Likewise.
8601         (hash_resize_after_add): Remove function.
8602         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
8603         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
8604         * gl_hash_set.c: Likewise.
8605         * modules/avltreehash-list (Files, Makefile.am): Update file list.
8606         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
8607         * modules/linkedhash-list (Files, Makefile.am): Likewise.
8608         * modules/linkedhash-set (Files, Makefile.am): Likewise.
8609         * modules/hash-set (Files, Makefile.am): Likewise.
8611 2018-12-11  Bruno Haible  <bruno@clisp.org>
8613         array-set: Optimize.
8614         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
8615         outside the loop, not inside the loop.
8617 2018-12-11  Bruno Haible  <bruno@clisp.org>
8619         times: Fix tests.
8620         * tests/test-times.c (doublecmp): Implement a total order.
8622 2018-12-11  Bruno Haible  <bruno@clisp.org>
8624         array-set, linkedhash-set, hash-set: Fix tests.
8625         * tests/test-array_set.c (cmp_objects_in_array): New function.
8626         (check_equals): Use it.
8627         * tests/test-hash_set.c: Likewise.
8628         * tests/test-linkedhash_set.c: Likewise.
8630 2018-12-08  Bruno Haible  <bruno@clisp.org>
8632         Fix comments.
8633         * lib/gl_list.h (gl_list_free): Clarify what it does.
8634         * lib/gl_oset.h (gl_oset_free): Likewise.
8635         * lib/gl_set.h (gl_set_free): Likewise.
8636         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
8637         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
8638         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
8639         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
8641 2018-12-03  Bruno Haible  <bruno@clisp.org>
8643         hash-set: Add tests.
8644         * tests/test-hash_set.c: New file.
8645         * modules/hash-set-tests: New file.
8647         linkedhash-set: Add tests.
8648         * tests/test-linkedhash_set.c: New file.
8649         * modules/linkedhash-set-tests: New file.
8651         array-set: Add tests.
8652         * tests/test-array_set.c: New file.
8653         * modules/array-set-tests: New file.
8655         xset: New module.
8656         * lib/gl_xset.h: New file.
8657         * lib/gl_xset.c: New file.
8658         * modules/xset: New file.
8660         hash-set: New module.
8661         * lib/gl_hash_set.h: New file.
8662         * lib/gl_hash_set.c: New file.
8663         * modules/hash-set: New file.
8665         linkedhash-set: New module.
8666         * lib/gl_linkedhash_set.h: New file.
8667         * lib/gl_linkedhash_set.c: New file.
8668         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
8669         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
8670         * lib/gl_anyhash_primes.h: New file, extracted from
8671         lib/gl_anyhash_list2.h.
8672         * lib/gl_anyhash_list2.h: Include it.
8673         (primes, next_prime): Remove definitions.
8674         * modules/linkedhash-set: New file.
8675         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
8676         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
8677         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
8678         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
8679         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
8680         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
8682         array-set: New module.
8683         * lib/gl_array_set.h: New file.
8684         * lib/gl_array_set.c: New file.
8685         * modules/array-set: New file.
8687         set: New module.
8688         * lib/gl_set.h: New file.
8689         * lib/gl_set.c: New file.
8690         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
8691         gl_set.h.
8692         * modules/set: New file.
8694 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
8696         bison: don't force the Yacc mode
8697         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
8698         errors when Bison features are used in the grammar file.  Some of
8699         these features (such as %expect) were flagged non-yacc recently.  Most
8700         of the time, -y is actually used to please Automake's ylwrap which
8701         expects the output to be y.tab.c.
8702         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
8704 2018-12-01  Bruno Haible  <bruno@clisp.org>
8706         gnupload: Document short options.
8707         * build-aux/gnupload (usage): Document the short options.
8709 2018-11-28  Ben Elliston  <bje@gnu.org>
8711         gnupload: Support option -h as alias of --help.
8712         * build-aux/gnupload: Support -h.
8714 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
8716         memrchr: port better to clang
8717         * lib/memrchr.c (__memrchr): Cast to void * instead of to
8718         longword *, to pacify clang -Wcast-align (Bug#33544).
8720 2018-11-29  Eric Blake  <eblake@redhat.com>
8722         docs: mention printf %m considerations
8723         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
8724         is not portable, and is easy enough to work around.
8725         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
8726         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
8727         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
8728         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
8729         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
8730         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
8731         * doc/posix-functions/printf.texi (printf): Likewise.
8732         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
8733         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
8734         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
8735         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
8736         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8737         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
8738         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8739         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8740         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
8741         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
8742         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
8743         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
8745 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
8747         bitset: rename ebitset/expandable.* as tbitset/table.*
8748         See
8749         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
8750         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
8751         * lib/bitset/table.h, lib/bitset/table.c: these.
8752         Rename all the ebitset* symbols as tbitset*.
8753         Adjust dependencies.
8755 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
8757         bitset: check the operations
8758         * tests/test-bitset.c (bitset_random): New.
8759         Use it.
8760         * lib/bitset/expandable.c (ebitset_not): Fix typo.
8762 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
8764         bitset: properly use false/true instead of 0/1 for Booleans
8765         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
8766         0/1, as Booleans.
8768 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
8770         bitset: rename BITSET_VARRAY as BITSET_VECTOR
8771         For consistency with the name of the file.
8772         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
8773         * lib/bitset/stats.c, lib/bitset/vector.c
8774         (BITSET_VARRAY): Rename as...
8775         (BITSET_VECTOR): this.
8777 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
8779         strerror_r-posix: memmove, not memcpy
8780         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
8781         since the source and destination might overlap in the call
8782         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
8783         Simplify.
8785 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
8787         bitsetv: new module
8788         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
8790 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
8792         bitset: add tests and doc
8793         First stabs at providing a documentation and test for the bitset
8794         module.
8795         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
8797 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
8799         bitset: new module
8800         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
8801         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
8802         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
8803         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
8804         * lib/bitset/vector.h, modules/bitset:
8805         New.
8807 2018-11-23  Bruno Haible  <bruno@clisp.org>
8809         localename: Fix gettext test failures on mingw.
8810         * lib/localename.c (gl_locale_name_posix): Convert the result of
8811         gl_locale_name_environ to XPG syntax.
8813 2018-11-23  Karl Berry  <karl@freefriends.org>
8815         * config/srclistvars.txt,
8816         * config/srclist.txt: remove all gettext references;
8817         the gettext maintainers will sync as needed.
8819 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
8821         mktime: add libc-config dependency
8822         I missed this when we synced from glibc.
8823         * modules/mktime (Depends-on): Add libc-config.
8825 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
8827         longlong: fix comment typo
8828         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
8830 2018-11-11  Bruno Haible  <bruno@clisp.org>
8832         havelib: Remove the need to include asm-underscore.m4.
8833         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
8834         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
8835         gl_HOST_CPU_C_ABI.
8836         * modules/havelib (Files): Add host-cpu-c-abi.m4.
8837         (Depends-on): Remove host-cpu-c-abi.
8839 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
8841         parse-datetime: simplify test for mktime failure
8842         * lib/parse-datetime.y (mktime_ok): Simplify.
8843         Remove args TZ and T; no longer needed.  Callers changed.
8845         posixtm: simplify test for mktime failure
8846         * lib/posixtm.c (posixtime): Simplify.
8848         nstrftime: simplify test for mktime failure
8849         * lib/nstrftime.c (__strftime_internal): Simplify.
8851 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
8853         gnulib-common.m4: port _Noreturn to C++
8854         Problem reported by Akim Demaille in:
8855         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
8856         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
8857         Merge adjustments from _Noreturn.h and from glibc into the non-C++
8858         version.
8859         * lib/_Noreturn.h: Match gnulib-common.
8861 2018-10-30  Bruno Haible  <bruno@clisp.org>
8863         gnu-make: Fix for NetBSD 8 'make'.
8864         Reported by Reuben Thomas in
8865         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
8866         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
8867         output, ignoring exit codes.
8869 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
8871         maintainer-makefile: fix syntax-check rule for "same.h"
8872         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
8873         for 'same_nameat', too.
8875 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
8877         havelib: fix nested ‘configure’ chatter
8878         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
8879         AC_CACHE_CHECK calls, which resulted in confusing output like
8880         “checking for the common suffixes of directories in the library
8881         search path... checking for 64-bit host... no lib,lib”.
8883         backupfile: tweak for better code
8884         * lib/backupfile.c: Sort include directives, and remove
8885         unnecessary <limits.h> include.
8886         (FALLTHROUGH): New macro, copied from other modules.
8887         (backupfile_internal): Use it to avoid code duplication.
8888         This lets GCC 8.2.1 generate better code by inlining the
8889         call to check_extension.
8891 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
8893         backupfile: new dir_fd args
8894         New module opendirat with code taken from fts.
8895         Use this module to let backupfile use a directory file descriptor.
8896         * NEWS: Document the incompatible change.
8897         * lib/backup-find.c (find_backup_file_name):
8898         * lib/backup-rename.c (backup_file_rename):
8899         New arg DIR_FD.
8900         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
8901         (SIZE_MAX): Remove.
8902         Include opendirat.h rather than dirent--.h.
8903         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
8904         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
8905         (backupfile_internal): New arg DIR_FD.  All callers changed.
8906         * lib/fts.c: Include opendirat.h.
8907         (opendirat): Move to opendirat.c.
8908         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
8909         * modules/backupfile (Depends-on): Remove dirfd, opendir.
8910         Add opendirat.
8911         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
8912         Add opendirat.
8914 2018-10-23  Bruno Haible  <bruno@clisp.org>
8916         localename: Simplify support for per-thread locales on Solaris 11.4.
8917         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
8918         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
8919         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
8920         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
8921         specific code.
8922         * lib/localename-table.h: Update comments.
8923         * lib/localename-table.c: Update comments.
8924         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
8925         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
8926         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
8927         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
8928         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
8929         HAVE_NAMELESS_LOCALES here.
8930         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
8931         m4/intlsolaris.m4.
8932         * modules/gettext (Files): Likewise.
8934 2018-10-22  Bruno Haible  <bruno@clisp.org>
8936         std-gnu11: Support Autoconf versions < 2.64.
8937         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
8938         when _AC_DO_LIMIT does not exist.
8940 2018-10-22  Bruno Haible  <bruno@clisp.org>
8942         Assume Autoconf >= 2.63.
8943         * DEPENDENCIES: Mention the requirement.
8945         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
8946         (func_get_filelist): Don't list m4/onceonly.m4 any more.
8947         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
8948         * m4/onceonly.m4: Remove file.
8950         * m4/openmp.m4: Remove file.
8951         * modules/openmp (Files): Remove m4/openmp.m4.
8953         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
8954         htmldir, dvidir, pdfdir, psdir, localedir.
8955         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
8957         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
8958         Autoconf < 2.60.
8959         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
8960         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
8962         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
8963         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
8964         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
8966         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
8967         exists.
8968         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
8970         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
8971         Autoconf < 2.61.
8973         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
8974         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
8975         Autoconf >= 2.52.
8977         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
8978         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
8979         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
8981 2018-10-22  Bruno Haible  <bruno@clisp.org>
8983         Assume Automake >= 1.11.
8984         * m4/configmake.m4: Update comments.
8985         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
8986         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
8987         of 'eval'.
8988         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
8989         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
8990         requires Automake >= 1.11.
8992 2018-10-22  Bruno Haible  <bruno@clisp.org>
8994         localename: Fix typo in comment.
8995         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
8997 2018-10-22  Bruno Haible  <bruno@clisp.org>
8999         Fix failure of 'gnulib-tool --create-testdir' with all modules.
9000         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
9002 2018-10-21  Bruno Haible  <bruno@clisp.org>
9004         locale: Ease integration with GNU libintl.
9005         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
9006         GNULIB_defined_freelocale): New macros.
9008 2018-10-21  Bruno Haible  <bruno@clisp.org>
9010         localename: Fine-tune support for per-thread locales on Solaris 11.4.
9011         * lib/localename-table.h: New file, extracted from lib/localename.c.
9012         * lib/localename-table.c: Likewise.
9013         * lib/localename.c: Include localename-table.h.
9014         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
9015         locale_hash_function instead of pointer_hash.
9016         * modules/localename (Files): Add lib/localename-table.h,
9017         lib/localename-table.c.
9018         (lib_SOURCES): Add localename-table.c.
9019         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
9020         for Solaris 11.4 locale system only on Solaris. Test for it
9021         independently whether getlocalename_l exists.
9022         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
9023         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
9024         HAVE_NAMELESS_LOCALES.
9025         * modules/gettext (Files): Add m4/intlsolaris.m4.
9027 2018-10-21  Bruno Haible  <bruno@clisp.org>
9029         Small update from gettext.
9030         * m4/intl.m4: Update from gettext:
9031         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
9032         mode on AIX.
9033         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
9034         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
9036 2018-10-16  Bruno Haible  <bruno@clisp.org>
9038         mountlist: Remove support for Cray with UNICOS 9.
9039         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
9040         MOUNTED_LISTMNTENT.
9041         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
9043 2018-10-16  Bruno Haible  <bruno@clisp.org>
9045         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
9046         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
9047         STAT_STATFS2_FS_DATA.
9048         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
9049         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
9050         MOUNTED_GETMNT.
9051         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
9052         * lib/getloadavg.c (decstation): Remove definition and case.
9053         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
9054         * lib/getgroups.c: Likewise.
9055         * doc/posix-functions/getgroups.texi: Likewise.
9056         * lib/time.in.h: Update comments.
9058 2018-10-16  Bruno Haible  <bruno@clisp.org>
9060         getloadavg: Remove support for ConvexOS.
9061         * lib/getloadavg.c: Remove convex case.
9063 2018-10-16  Bruno Haible  <bruno@clisp.org>
9065         getloadavg: Remove support for Sony NEWS.
9066         * lib/getloadavg.c: Remove sony_news case.
9068 2018-10-16  Bruno Haible  <bruno@clisp.org>
9070         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
9071         * lib/fsusage.c: Remove _SEQUENT_ case.
9072         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
9073         * lib/mountlist.c: Don't test for MNTTABNAME.
9074         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
9075         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
9076         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
9077         * lib/stat-size.h: Don't mention the Sequent bug.
9078         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
9080 2018-10-16  Bruno Haible  <bruno@clisp.org>
9082         fsusage: Remove support for AIX 3.
9083         * lib/fsusage.c: Remove code for AIX 3.
9084         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
9086 2018-10-16  Bruno Haible  <bruno@clisp.org>
9088         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
9089         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
9090         * lib/fsusage.c: Remove code for AIX PS/2.
9091         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
9092         * lib/getloadavg.c: Likewise.
9094 2018-10-16  Bruno Haible  <bruno@clisp.org>
9096         getloadavg: Remove support for HP-UX on m68k.
9097         * lib/getloadavg.c: Remove hp9000s300 case.
9099 2018-10-16  Bruno Haible  <bruno@clisp.org>
9101         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
9102         * lib/fsusage.c: Remove DOLPHIN case.
9103         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
9104         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
9106 2018-10-16  Bruno Haible  <bruno@clisp.org>
9108         getloadavg: Remove support for Alliant FX/2800.
9109         * lib/getloadavg.c: Remove alliant case.
9111 2018-10-16  Bruno Haible  <bruno@clisp.org>
9113         getloadavg: Remove support for tek4300.
9114         * lib/getloadavg.c: Remove tek4300 case.
9116 2018-10-16  Bruno Haible  <bruno@clisp.org>
9118         getloadavg: Remove support for Ardent.
9119         * lib/getloadavg.c: Remove ardent case.
9121 2018-10-16  Bruno Haible  <bruno@clisp.org>
9123         mountlist: Remove support for SVR2.
9124         Reported by Andrew Borodin <aborodin@vmail.ru> in
9125         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
9126         * lib/mountlist.c: Remove MOUNTED_FREAD case.
9127         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
9128         MOUNTED_FREAD.
9130 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
9132         libc-config: merge from glibc
9133         * lib/cdefs.h (__glibc_has_attribute): New macro.
9135         regex: depend on libc-config
9136         * modules/regex (Depends-on): Add libc-config.
9137         This is needed after the recent autoupdate from glibc.
9139 2018-10-14  Bruno Haible  <bruno@clisp.org>
9141         localename: Add support for per-thread locales on Solaris 11.4.
9142         * lib/locale.in.h (newlocale, freelocale): New declarations.
9143         (duplocale): Declare also when the 'localename' module requests it.
9144         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
9145         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
9146         (struniq): Update.
9147         (struct locale_categories_names, struct locale_hash_node): New types.
9148         (LOCALE_HASH_TABLE_SIZE): New constant.
9149         (locale_hash_table, locale_lock): New variables.
9150         (pointer_hash, get_locale_t_name): New functions.
9151         (newlocale, duplocale, freelocale): New overridden functions.
9152         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
9153         * m4/intlsolaris.m4: New file.
9154         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
9155         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
9156         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
9157         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
9158         declared.
9159         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
9160         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
9161         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
9162         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
9163         * modules/localename (Files): Add intlsolaris.m4.
9164         (Depends-on): Add 'locale'.
9165         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
9166         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
9167         the signatures.
9169 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
9171         timevar: use gethrxtime to get wall clock time
9172         clock_gettime is not portable.  gethrxtime takes the best available
9173         option to get the wall clock time, including clock_gettime (monotonic
9174         clock), and gettime (non monotonic).
9175         Also, using xtime_t instead of float preserves the precision.
9176         Suggested by Bruno Haible.
9177         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
9178         * modules/timevar (Depends-on): We need gethrxtime.
9179         We no longer use times().
9180         (Link): Update.
9181         * lib/timevar.h (timevar_time_def): Use xtime_t.
9182         * lib/timevar.c (set_to_current_time): Use gethrxtime.
9183         (timevar_print): Instead of checking whether the timings themselves
9184         are large enough for the timevar to be printed, check the percentages.
9186 2018-10-14  Bruno Haible  <bruno@clisp.org>
9188         wcsnrtombs: Work around Solaris 11.4 bug.
9189         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
9190         macro.
9191         (gl_FUNC_WCSNRTOMBS): Invoke it.
9192         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
9194 2018-10-14  Bruno Haible  <bruno@clisp.org>
9196         mbsnrtowcs: Work around Solaris 11.4 bug.
9197         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
9198         macro.
9199         (gl_FUNC_MBSNRTOWCS): Invoke it.
9200         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
9202 2018-10-14  Bruno Haible  <bruno@clisp.org>
9204         doc: Update for Solaris 11.4.
9205         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
9206         mention Solaris 11.4.
9207         * m4/printf.m4: Update comments about Solaris.
9208         * m4/log.m4: Likewise.
9209         * m4/log10.m4: Likewise.
9210         * m4/logb.m4: Likewise.
9211         * m4/logbf.m4: Likewise.
9212         * m4/logbl.m4: Likewise.
9213         * m4/rename.m4: Likewise.
9214         * m4/wcrtomb.m4: Likewise.
9215         * m4/hostent.m4: Likewise.
9216         * m4/servent.m4: Likewise.
9218 2018-10-14  Bruno Haible  <bruno@clisp.org>
9220         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
9221         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
9222         pointer.
9223         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
9224         pointer.
9225         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
9226         pointer.
9227         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
9228         pointer.
9229         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
9230         pointer.
9232 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
9234         bootstrap: fix wget command for po files.
9235         * build-aux/bootstrap (po_download_command_format): Fix comment,
9236         and adjust callers.
9238 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
9240         timevar: improve the output format
9241         Suggested by Bruno Haible.
9242         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
9243         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
9244         wall, since its resolution is much higher.
9246 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
9248         timevar: expect that getrusage is available.
9249         Don't keep both times and getrusage as backend: both are guaranteed by
9250         gnulib, a single one suffices.  Using getrusage is open to possibly
9251         tracking other types of resources in the future.
9252         * modules/timevar (Depends-on): Add getrusage.
9253         (configure.ac): Remove gl_TIMEVAR.
9254         (Files): Remove m4/timevar.m4.
9255         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
9256         * lib/timevar.h (timevar_enabled): Clarify documentation.
9257         * lib/timevar.c: Remove all the code about times.
9258         Remove all the CPP guards about getrusage: expect it to be present
9259         (courtesy of gnulib).
9261 2018-10-12  Bruno Haible  <bruno@clisp.org>
9263         mountlist: Improve support for Solaris in 64-bit mode.
9264         Reported by David Wood <David.Wood@deshaw.com> in
9265         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
9266         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
9267         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
9268         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
9270 2018-10-12  Bruno Haible  <bruno@clisp.org>
9272         mountlist: Add support for Minix.
9273         Reported by Assaf Gordon in
9274         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
9275         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
9276         AC_CHECK_FUNCS to check for 'getmntinfo'.
9277         * lib/mountlist.c: Update comments.
9279 2018-10-12  Bruno Haible  <bruno@clisp.org>
9281         Make better use of Autoconf.
9282         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
9283         * m4/manywarnings.m4: Likewise.
9284         * m4/manywarnings-c++.m4: Likewise.
9285         * m4/socklen.m4: Likewise.
9286         * m4/sockpfaf.m4: Likewise.
9287         * m4/stdarg.m4: Likewise.
9288         * m4/visibility.m4: Likewise.
9289         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
9290         indentation.
9291         * m4/ls-mntd-fs.m4: Likewise.
9293 2018-10-11  Bruno Haible  <bruno@clisp.org>
9295         mountlist: Modernize platform lists.
9296         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
9297         platforms, deemphasizing the obsolete ones.
9298         * lib/mountlist.c: Likewise.
9300 2018-10-11  Bruno Haible  <bruno@clisp.org>
9302         getprogname: Add support for 32-bit programs on HP-UX.
9303         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
9304         try the similar functions 32-bit programs on 64-bit HP-UX.
9306 2018-10-11  Bruno Haible  <bruno@clisp.org>
9308         getprogname: Work around program name truncation when possible.
9309         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
9310         possibly use pst_cmd instead.
9312 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9314         fts: cleanup after FTS_NOATIME removal
9315         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
9316         (FTS_STOP): Shrink to minimal values.  We don’t need to
9317         worry about binary compatibility in Gnulib, and the old way
9318         of doing things had a hole in the user options that caused
9319         FTS_OPTIONMASK to not work as desired.
9321 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
9323         fts: remove FTS_NOATIME
9324         This reverts commit da4d6974013c822af1498941e32db774b2031765.
9325         We cannot guarantee that O_NOATIME works: e.g. openat fails
9326         with EPERM if the effective user ID of the caller does not match
9327         the owner of the file and the caller is not privileged.
9328         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
9329         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
9330         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
9331         (FTS_OPTIONMASK): Adjust.
9332         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
9333         (fd_ring_check): Likewise.
9335 2018-10-08  Bruno Haible  <bruno@clisp.org>
9337         csharpcomp*, csharpexec*: Remove support for pnet.
9338         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
9339         HAVE_CSCC.
9340         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
9341         Don't test HAVE_CSCC.
9342         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
9343         (compile_csharp_class): Don't invoke it.
9344         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
9345         HAVE_ILRUN.
9346         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
9347         Don't test HAVE_ILRUN.
9348         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
9349         (execute_csharp_program): Don't invoke it.
9350         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
9351         any more.
9353 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
9355         renameatu: prefer renameat2 to syscall
9356         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
9357         Use renameat2 instead of syscall (Bug#32796).
9358         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
9360 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
9362         bootstrap, gnulib-tool: use https instead of insecure rsync
9363         * build-aux/bootstrap (download_po_files, po_download_command_format):
9364         Don't try using rsync; always use wget over https to fetch PO files.
9365         * gnulib-tool (func_import): Likewise.
9366         * pygnulib/GLImport.py (GLImport.execute): Likewise.
9368 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
9370         bootstrap, gnulib-tool: correct the translations wget command
9371         * build-aux/bootstrap (po_download_command_format2): Restrict
9372         recursion to a single level.
9373         * gnulib-tool (func_import): Likewise.
9374         * pygnulib/GLImport.py (GLImport.execute): Likewise.
9376 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
9378         doc: the gnulib snapshots are not maintained
9379         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
9381 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
9383         timevar: add to lib_SOURCES
9384         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
9386 2018-10-07  Bruno Haible  <bruno@clisp.org>
9388         dirent: Update documentation.
9389         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
9391 2018-10-05  Bruno Haible  <bruno@clisp.org>
9393         strpbrk: Make it possible to namespace the defined symbol.
9394         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
9396 2018-10-05  Bruno Haible  <bruno@clisp.org>
9398         strcspn: Make it possible to namespace the defined symbol.
9399         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
9401 2018-10-05  Bruno Haible  <bruno@clisp.org>
9403         raise: Make it possible to namespace the defined symbol.
9404         * lib/raise.c (raise): Undefine only after the replacement function has
9405         been defined.
9406         (raise): Renamed from rpl_raise.
9407         (raise_nothrow): Move to the end of the compilation unit.
9409 2018-10-05  Bruno Haible  <bruno@clisp.org>
9411         memcmp: Make it possible to namespace the defined symbol.
9412         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
9414 2018-10-05  Bruno Haible  <bruno@clisp.org>
9416         explicit_bzero: Make it possible to namespace the defined symbol.
9417         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
9418         glibc.
9420 2018-10-05  Bruno Haible  <bruno@clisp.org>
9422         mkdir-p: Depend on 'mkdir'.
9423         * modules/mkdir-p (Depends-on): Add 'mkdir'.
9425 2018-10-05  Bruno Haible  <bruno@clisp.org>
9427         tempname: Depend on 'mkdir'.
9428         Reported by Maarten Bosmans <mkbosmans@gmail.com>
9429         at <https://savannah.gnu.org/bugs/?33379>.
9430         * modules/tempname (Depends-on): Add 'mkdir'.
9432 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
9434         timevar: rely on gnulib modules for time portability.
9435         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
9436         * m4/timevar.m4: Don't check for clock_t and struct tms,
9437         guaranteed by gnulib.
9438         * lib/timevar.h: Use extern "C" protection.
9439         Include <stdio.h> for FILE.
9440         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
9441         they are guaranteed by gnulib.
9442         Remove uses of clock as (now useless) fallback.
9444 2018-10-04  Bruno Haible  <bruno@clisp.org>
9446         sh-filename: New module.
9447         * m4/sh-filename.m4: New file.
9448         * modules/sh-filename: New file.
9449         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
9450         "/bin/sh".
9451         * tests/test-posix_spawn1.c (main): Likewise.
9452         * tests/test-posix_spawn2.c (main): Likewise.
9453         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
9454         is_envjavac_gcj43): Likewise.
9455         * lib/javaexec.c (execute_java_class): Likewise.
9456         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
9457         * modules/posix_spawnp-tests (Depends-on): Likewise.
9458         * modules/javacomp (Depends-on): Likewise.
9459         * modules/javaexec (Depends-on): Likewise.
9461 2018-10-04  Bruno Haible  <bruno@clisp.org>
9463         spawn-pipe tests: Avoid test failure on native Windows.
9464         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
9465         that fd 2 is closed.
9467 2018-10-04  Bruno Haible  <bruno@clisp.org>
9469         fcntl: Make it possible to namespace the defined symbol.
9470         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
9471         been defined.
9472         (fcntl): Renamed from rpl_fcntl.
9473         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
9474         from fcntl.
9475         (klibc_fcntl): Move to the end of the compilation unit.
9477 2018-10-02  Bruno Haible  <bruno@clisp.org>
9479         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
9480         * tests/test-vasnprintf.c (test_function): Change the test added on
9481         2018-09-23 to check only the 18 most significant digits.
9483         vasnprintf tests: Avoid test failure on Cygwin.
9484         * tests/test-vasnprintf.c (test_function): Change the test added on
9485         2018-09-23 to check only the 42 most significant digits.
9487 2018-10-01  Bruno Haible  <bruno@clisp.org>
9489         mkostemp, mkostemps: Update documentation.
9490         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
9491         * doc/glibc-functions/mkostemps.texi: Likewise.
9493 2018-10-01  Tom Tromey  <tom@tromey.com>
9495         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
9496         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
9497         on OS X.
9499 2018-09-30  Pádraig Brady  <P@draigBrady.com>
9501         hmac-*: refactor to remove repetitive code
9502         * lib/hmac.c: A new parameterized single implementation.
9503         * lib/hmac-md5.c: Define parameters and include implementation.
9504         * lib/hmac-sha1.c: Likewise.
9505         * lib/hmac-sha256.c: Likewise.
9506         * lib/hmac-sha512.c: Likewise.
9507         * modules/crypto/hmac-md5: Reference the new implementation file.
9508         * modules/crypto/hmac-sha1: Likewise.
9509         * modules/crypto/hmac-sha256: Likewise.
9510         * modules/crypto/hmac-sha512: Likewise.
9511         * tests/test-hmac-md5.c: Refactor common code to a single function.
9512         * tests/test-hmac-sha1.c: Likewise.
9513         * tests/test-hmac-sha256.c: Likewise.
9514         * tests/test-hmac-sha512.c: Likewise.
9516 2018-09-30  Zhang Qing  <zhangqingl@126.com>
9518         hmac-sha512: fix hash for keys > blocksize (128 bytes)
9519         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
9520         key length to that output by sha512, not the blocksize.
9521         Otherwise uninitialized data from the stack
9522         is used when computing the hash.
9523         * tests/test-hmac-sha512.c: Add a shortened key test case.
9524         Reported at https://github.com/coreutils/gnulib/pull/5
9526 2018-09-30  Bruno Haible  <bruno@clisp.org>
9528         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
9529         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
9530         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
9531         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
9532         'unsigned int' before comparison with an unsigned value.
9534 2018-09-30  Bruno Haible  <bruno@clisp.org>
9536         grantpt: Remove unnecessary dependency.
9537         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
9539 2018-09-30  Bruno Haible  <bruno@clisp.org>
9541         timevar: Small tweaks.
9542         * lib/timevar.h: Fix comments. Add parameter names to function
9543         declarations.
9544         * lib/timevar.c: Include timevar.h immediately after config.h.
9545         * lib/timevar.def: Fix comments.
9546         * modules/timevar (Maintainer): List Akim Demaille.
9548 2018-09-30  Bruno Haible  <bruno@clisp.org>
9550         timevar: Include documentation in gnulib manual.
9551         * doc/timevar.texi: Change node and section name to 'Profiling of
9552         program phases'.
9553         In the code snippets, tweak the #includes and use GNU coding style.
9554         * doc/gnulib.texi: Include timevar.texi.
9556 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
9558         timevar: import from Bison.
9559         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
9560         New files.
9561         * lib/timevar.def: New file.
9562         * doc/timevar.texi: New file.
9564 2018-09-26  Bruno Haible  <bruno@clisp.org>
9566         javacomp-script, javacomp: Add preliminary support for Java 12..17.
9567         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
9568         * lib/javacomp.c (default_target_version): Likewise.
9570 2018-09-26  Bruno Haible  <bruno@clisp.org>
9572         javacomp-script, javacomp: Add support for Java 11.
9573         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
9574         target-version 11.
9575         * lib/javaversion.h: Update comments.
9576         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
9577         source_version_index, get_goodcode_snippet, get_failcode_snippet,
9578         TARGET_VERSION_BOUND, target_version_index,
9579         corresponding_classfile_version): Accept source_version 11 and
9580         target_version 11.
9581         * lib/javacomp.h: Update comments accordingly.
9583 2018-09-23  Bruno Haible  <bruno@clisp.org>
9585         vasnprintf: Fix heap memory overrun bug.
9586         Reported by Ben Pfaff <blp@cs.stanford.edu> in
9587         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
9588         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
9589         memory.
9590         * tests/test-vasnprintf.c (test_function): Add another test.
9592 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
9594         maint: mktime.c now shared with glibc
9595         * config/srclist.txt: intprops.h, timegm.c and mktime.c
9596         are now the same in Gnulib and glibc.
9598         mktime: fix _LIBC typo
9599         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
9601 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
9603         dfa: optimization for state merge
9604         * lib/dfa.c (merge2): New function.
9605         (merge_nfa_state): Use it.
9607 2018-09-18  Jim Meyering  <meyering@fb.com>
9609         dfa: trivial comment fix: s/is/if/
9610         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
9612 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9614         dfa: use more-informative function name
9615         * lib/dfa.c (maybe_disable_superset_dfa):
9616         Rename from dfautf8noss.  Use change.
9618         dfa: tweak allocation performance
9619         * lib/dfa.c (merge_nfa_state, dfaoptimize):
9620         Prefer ptrdiff_t for indexes some more.
9621         Use char for flags, as it’s wide enough.
9622         Allocate queue and flags together, with one malloc call.
9623         No need to use xnmalloc since the multiplication and
9624         addition cannot overflow (it’s already been checked by
9625         earlier allocation).  Prefer memset to open-coding.
9627         dfa: prune states as we go
9628         * lib/dfa.c (prune): Remove.
9629         dfa: reorder enum for efficiency
9630         (merge_nfa_state): Prune as we go instead of at the end.
9631         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
9633         * lib/dfa.c (END): Now -1 again.  Reorder other elements
9634         of the enumeration to make it easier for GCC to generate
9635         efficient code by using fewer comparisons to check for
9636         ranges of values.
9637         (atom): Take advantage of the reordering.
9639 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
9641         dfa: optimize alternation in NFA
9642         Even when similar states exist in alternation, the DFA treats them
9643         as separate items, which may complicate the transition in NFA and
9644         cause slowdown.  This change assembles the states into one.  For
9645         example, ab|ac is changed into a(b|c).  This change speeds-up
9646         matching for many branched patterns.  For example, grep speeds up
9647         more than 30× in:
9649           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
9650           time -p env LC_ALL=C grep -vf in in
9652         * lib/dfa.c (prune): New function.
9653         (merge_nfa_state): New function.  It merges similar NFA states.
9654         (dfaoptimize): New function.  It seeks merged and removed nodes.
9655         (dfaanalyze): Call new function.
9656         (dfautf8noss): Change name from dfaoptimize because of addition of new
9657         function.
9658         (dfacomp): Update caller.
9660         dfa: simplify initial state
9661         Simplifying the initial state enables easier optimization of the NFA.
9662         * lib/dfa.c (enum token): Add new element BEG.
9663         (prtok): Adjust due to adding element BEG.
9664         (dfaparse): Put BEG at a head of tokens.
9665         (state_index): Adjust due to adding element BEG.
9666         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
9667         build initial state.
9668         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
9670 2018-09-18  Bruno Haible  <bruno@clisp.org>
9672         file-has-acl: Fix test failure on Cygwin 2.9.
9673         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
9674         * lib/acl-internal.h: Likewise.
9675         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
9676         * lib/acl-internal.c: Update comments regarding Cygwin.
9677         * lib/acl_entries.c: Likewise.
9678         * lib/file-has-acl.c: Likewise.
9679         (file_has_acl): For Cygwin, use a different way to determine whether
9680         the "default" ACL of a directory is nontrivial.
9681         * lib/get-permissions.c: Update comments regarding Cygwin.
9682         * lib/set-permissions.c: Likewise.
9684 2018-09-18  Bruno Haible  <bruno@clisp.org>
9686         stat-time tests: Fix test failure on Cygwin.
9687         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
9689 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9691         doc: OS X 10.11 lacked ns time functions
9692         According to <https://github.com/zeromq/libzmq/issues/2175>,
9693         nanosecond-resolution timestamp functions were introduced
9694         in macOS 10.12, so document the last version (OS X 10.11)
9695         where they were absent.
9697         gettime: nanotime never existed
9698         Problem reported by Bruno Haible in:
9699         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
9700         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
9701         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
9703 2018-09-18  Bruno Haible  <bruno@clisp.org>
9705         doc: Update statement about target platforms.
9706         Reported by Simon Sobisch.
9707         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
9708         restrictions on MSVC versions.
9710 2018-09-18  Bruno Haible  <bruno@clisp.org>
9712         posix_spawn tests: Fix link error on 64-bit Cygwin.
9713         * tests/test-posix_spawn1.c (environ): Remove declaration.
9714         * tests/test-posix_spawn2.c (environ): Likewise.
9715         * tests/test-posix_spawn3.c (environ): Likewise.
9716         * tests/test-posix_spawn4.c (environ): Likewise.
9717         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
9718         * modules/posix_spawnp-tests (Depends-on): Likewise.
9720 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
9722         timespec: new function current_timespec
9723         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
9724         and don’t worry about it failing on a CLOCK_REALTIME arg.
9725         POSIX requires it to succeed and I don’t know of any
9726         counterexamples where the fallbacks would work.
9727         (current_timespec): New function, taken from Emacs.  It is more
9728         convenient than gettime, and can help register allocation.
9729         * lib/timespec.h: Include arg-nonnull.h.
9730         (current_timespec): New declaration.
9731         (gettime, settime): Declare args to be nonnull.
9732         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
9734 2018-09-16  Bruno Haible  <bruno@clisp.org>
9736         setlocale: Improve locale handling on macOS 10.12 or newer.
9737         * lib/setlocale.c: Include header files for CoreFoundation. Declare
9738         gl_locale_name_canonicalize.
9739         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
9740         and LC_MESSAGES.
9741         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
9743 2018-09-16  Bruno Haible  <bruno@clisp.org>
9745         Update list of locale names with scripts on macOS.
9746         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
9747         match Mac OS X 10.13 and recent glibc.
9749 2018-09-16  Bruno Haible  <bruno@clisp.org>
9751         gettext: Use newer macOS APIs when possible.
9752         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
9753         CFLocaleCopyPreferredLanguages.
9755 2018-09-16  Bruno Haible  <bruno@clisp.org>
9757         localename: Revisit macOS specific code.
9758         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
9759         Fix comments about Mac OS X versions.
9761 2018-09-15  Bruno Haible  <bruno@clisp.org>
9763         setlocale: Improve support for locales not supported by libc.
9764         Reported by Dapeng Gao <peter@dpgao.cc> at
9765         <https://savannah.gnu.org/bugs/?54479>.
9766         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
9767         (libintl_setlocale): Use a more error-tolerant strategy when the locale
9768         to be set is not supported by libc: Emit warnings instead of failing.
9770 2018-09-15  Bruno Haible  <bruno@clisp.org>
9772         strstr, strcasestr: Add workaround against glibc-2.28 bug.
9773         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
9774         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
9775         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
9776         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
9777         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
9778         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
9779         * doc/glibc-functions/strcasestr.texi: Likewise.
9781 2018-09-14  Bruno Haible  <bruno@clisp.org>
9783         doc: Fix bottom of top-level page.
9784         Reported by Akim Demaille <akim.demaille@gmail.com> in
9785         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
9786         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
9787         mode.
9788         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
9789         accordingly.
9791 2018-09-12  Bruno Haible  <bruno@clisp.org>
9793         Add test case from a recent glibc bug.
9794         * tests/test-strstr.c (main): Add test of long needle.
9795         * tests/test-strcasestr.c (main): Likewise.
9796         * tests/test-c-strstr.c (main): Likewise.
9797         * tests/test-c-strcasestr.c (main): Likewise.
9798         * tests/test-memmem.c (main): Likewise.
9800 2018-09-12  Bruno Haible  <bruno@clisp.org>
9802         Apply Eric Blake's improvements from 2011-02-25 to more tests.
9803         * tests/test-c-strstr.c (main): Add the same tests here as well.
9805 2018-09-12  Bruno Haible  <bruno@clisp.org>
9807         Apply Jim Meyering's fix from 2015-01-11 to more tests.
9808         * tests/test-memmem.c (main): Free haystack.
9809         * tests/test-strcasestr.c (main): Likewise.
9810         * tests/test-c-strcasestr.c (main): Likewise.
9812 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
9814         xstrtol: fix missing-TYPE_SIGNED typo
9815         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
9817 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
9819         timespec: fix resolution confusion
9820         In normal usage, clock resolution is given in seconds, but the
9821         code was mistakenly using inverse seconds and calling it
9822         “resolution”.  Fix this, partly by renaming two identifiers.
9823         The old names will be kept for a bit, to ease transition.
9824         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
9825         New constants, replacing TIMESPEC_RESOLUTION and
9826         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
9827         All uses changed.
9829 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
9831         mktime: simplify in prep for glibc merge
9832         * lib/mktime.c, lib/timegm.c [_LIBC]:
9833         Include mktime-internal.h (a small file just for glibc)
9834         instead of using a typedef.
9836 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
9838         intprops: minor clarification of code
9839         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
9840         Use _GL_INT_CONVERT rather than reinventing it.
9842 2018-09-07  Bruno Haible  <bruno@clisp.org>
9844         Fix a comment.
9845         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
9847 2018-09-07  Bruno Haible  <bruno@clisp.org>
9849         posix_spawn_file_actions_addchdir: Add tests.
9850         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
9851         * tests/test-posix_spawn4.c: New file.
9852         * modules/posix_spawn_file_actions_addchdir-tests: New file.
9854 2018-09-07  Bruno Haible  <bruno@clisp.org>
9856         posix_spawn_file_actions_addchdir: New module.
9857         Suggested by Eric Blake in
9858         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
9859         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
9860         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
9861         union member 'chdir_action'.
9862         * lib/spawn_faction_addchdir.c: New file.
9863         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
9864         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
9865         HAVE_WORKING_POSIX_SPAWN.
9866         * lib/spawn_faction_adddup2.c: Likewise.
9867         * lib/spawn_faction_addopen.c: Likewise.
9868         * m4/posix_spawn_faction_addchdir.m4: New file.
9869         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
9870         'posix_spawn_file_actions_addchdir' is present and whether
9871         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
9872         instead of HAVE_WORKING_POSIX_SPAWN.
9873         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
9874         posix_spawn_file_actions_addchdir is declared.
9875         (gl_SPAWN_H_DEFAULTS): Initialize
9876         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
9877         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
9878         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
9879         * modules/spawn (Makefile.am): Substitute
9880         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
9881         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
9882         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
9883         * modules/posix_spawn_file_actions_addchdir: New file.
9884         * modules/posix_spawn_file_actions_addclose (Depends-on,
9885         configure.ac): Test also REPLACE_POSIX_SPAWN.
9886         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
9887         configure.ac): Likewise.
9888         * modules/posix_spawn_file_actions_addopen (Depends-on,
9889         configure.ac): Likewise.
9890         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
9891         signature.
9892         * doc/posix-functions/posix_spawn.texi: Mention the new module.
9893         * doc/posix-functions/posix_spawnp.texi: Likewise.
9895 2018-09-06  Bruno Haible  <bruno@clisp.org>
9897         stddef: Override max_align_t on NetBSD 8.0/x86.
9898         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
9899         the value of __alignof__ (max_align_t).
9900         * doc/posix-headers/stddef.texi: Mention the issue.
9902 2018-09-06  Bruno Haible  <bruno@clisp.org>
9904         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
9905         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
9906         system fcntl.
9907         * doc/posix-functions/fcntl.texi: Document the issue.
9909 2018-09-06  Bruno Haible  <bruno@clisp.org>
9911         count-trailing-zeros tests: Rely on limits-h module.
9912         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
9913         definition.
9914         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
9916 2018-09-06  Bruno Haible  <bruno@clisp.org>
9918         count-leading-zeros tests: Rely on limits-h module.
9919         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
9920         definition.
9921         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
9923 2018-09-06  Bruno Haible  <bruno@clisp.org>
9925         count-one-bits tests: Rely on limits-h module.
9926         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
9927         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
9929 2018-09-06  Bruno Haible  <bruno@clisp.org>
9931         xstrtoll: Rely on limits-h module.
9932         * lib/xstrtol.c: Don't include intprops.h.
9933         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
9934         * modules/xstrtol (Depends-on): Remove 'intprops'.
9935         * modules/xstrtoll (Depends-on): Add 'limits-h'.
9937 2018-09-06  Bruno Haible  <bruno@clisp.org>
9939         strtoll, strtoull: Rely on limits-h module.
9940         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
9941         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
9942         * modules/strtoll (Depends-on): Add limits-h.
9943         * modules/strtoull (Depends-on): Likewise.
9945 2018-09-06  Bruno Haible  <bruno@clisp.org>
9947         intprops tests: Fix compilation error with pre-C99 compiler.
9948         * tests/test-intprops.c (verify_stmt): New macro.
9949         (VERIFY, main): Use it.
9951 2018-09-06  Bruno Haible  <bruno@clisp.org>
9953         limits-h: Provide numerical limits macros.
9954         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
9955         IRIX and for GCC.
9956         (WORD_BIT, LONG_BIT): Define.
9957         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
9958         <limits.h> does not define LLONG_MAX or WORD_BIT.
9959         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
9960         TYPE_MAXIMUM): New macros, from intprops.h.
9961         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
9962         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
9963         provides.
9965 2018-09-05  Bruno Haible  <bruno@clisp.org>
9967         fcntl: Don't access nonexistent optional argument.
9968         Reported by Frank Busse <f.busse@imperial.ac.uk> in
9969         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
9970         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
9971         don't consume an argument. For actions that take an 'int' argument,
9972         consume an 'int' argument.
9974 2018-09-05  Eric Blake  <eblake@redhat.com>
9976         doc: mention environ pitfall
9977         * doc/posix-functions/environ.texi (environ): Assigning NULL to
9978         environ is a glibc extension.
9980 2018-09-03  Bruno Haible  <bruno@clisp.org>
9982         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
9983         Reported by Antoine Luong <antoine.luong@c-s.fr> in
9984         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
9985         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
9986         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
9987         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
9989 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
9991         mktime: fix unlikely race+overflow bug
9992         Problem reported by Alexandre Oliva in:
9993         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
9994         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
9995         to avoid an unlikely race if the compiler delays a load and
9996         if this cascades into a signed integer overflow.
9998 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10000         mktime, timegm: simplify glibc time64_t
10001         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
10002         Now long int, not time_t, since long int is the longstanding type
10003         for this in glibc and there is no need to change it even if time_t
10004         becomes 64 bits - even int would do, though this would be a change
10005         to the glibc generated code.  When this change is merged into
10006         glibc, it should simplify the time_t vs time64_t situation.
10008         mktime, timegm: simplify merge to glibc
10009         Move code around to make a merge to glibc easier to audit.
10010         This should not change behavior.
10011         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
10012         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
10013         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
10014         simplify later conditionals; default the others to zero.  In uses
10015         of these conditionals, explicitly spell out how _LIBC affects
10016         things, so it’s easier to review from a glibc viewpoint.
10017         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
10018         compartmentalize tzset issues.  Move system-dependent tzsettish
10019         code here from mktime.
10020         (mktime): Move tzsettish code to my_tzset, and move
10021         localtime_offset to within mktime so that it doesn’t
10022         need a separate ifdef.
10024 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
10026         intprops: avoid evaluation of some expressions
10027         This makes EXPR_SIGNED (e) easier to use, as it no longer
10028         evaluates the expression E.  Formerly, E was required to be free
10029         of side effects.
10030         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
10031         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
10032         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
10034 2018-08-23  Bruno Haible  <bruno@clisp.org>
10036         getcwd: Add cross-compilation guesses.
10037         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
10038         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
10039         Based on a patch by Paul Eggert.
10040         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
10041         guesses for all GNU systems.
10043 2018-08-19  Bruno Haible  <bruno@clisp.org>
10045         glob-h: Formalize side effects from other modules.
10046         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
10047         * m4/glob.m4 (gl_GLOB): Invoke it.
10049         fnmatch-h: Formalize side effects from other modules.
10050         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
10051         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
10053         limits-h: Formalize side effects from other modules.
10054         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
10055         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
10057 2018-08-19  Bruno Haible  <bruno@clisp.org>
10059         getpass: Move declaration to <unistd.h>.
10060         * lib/unistd.in.h (getpass): New declaration.
10061         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
10062         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
10063         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
10064         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
10065         On glibc systems, don't set REPLACE_GETPASS to 1.
10066         * modules/getpass (Depends-on): Add 'unistd'.
10067         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
10068         (Include): Specify <unistd.h> instead of "getpass.h".
10069         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
10070         (configure.ac): Sync with the configure.ac section of modules/getpass.
10071         (Include): Specify <unistd.h> instead of "getpass.h".
10072         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
10073         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
10074         REPLACE_GETPASS.
10075         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
10076         REPLACE_GETPASS.
10077         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
10078         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
10079         and musl.
10080         * NEWS: Mention the change.
10082 2018-08-19  Bruno Haible  <bruno@clisp.org>
10084         glob: Fix over-optimization due to attribute __nonnull__.
10085         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
10087 2018-08-19  Bruno Haible  <bruno@clisp.org>
10089         glob: Fix another compilation error when glob.h is not replaced.
10090         Reported by Reuben Thomas <rrt@sc3d.org> in
10091         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
10092         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
10093         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
10095 2018-08-18  Bruno Haible  <bruno@clisp.org>
10097         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
10098         Reported by Reuben Thomas <rrt@sc3d.org> in
10099         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
10100         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
10101         in config.h.
10103 2018-08-18  Bruno Haible  <bruno@clisp.org>
10105         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
10106         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
10107         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
10108         Solution proposed by Eli Zaretskii.
10109         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
10110         * lib/gettimeofday.c (GetProcAddress): Likewise.
10111         * lib/link.c (GetProcAddress): Likewise.
10112         * lib/physmem.c (GetProcAddress): Likewise.
10113         * lib/poll.c (GetProcAddress): Likewise.
10114         * lib/select.c (GetProcAddress): Likewise.
10115         * lib/stat-w32.c (GetProcAddress): Likewise.
10117 2018-08-18  Bruno Haible  <bruno@clisp.org>
10119         glob: Fix another compilation error when glob.h is not replaced.
10120         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
10121         * lib/globfree.c: Include <libc-config.h>.
10123 2018-08-18  Bruno Haible  <bruno@clisp.org>
10125         glob: Fix compilation error when glob.h is not replaced.
10126         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
10127         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
10128         * lib/glob_pattern_p.c: Include <libc-config.h>.
10129         * modules/glob (Depends-on): Add libc-config.
10131 2018-08-18  Bruno Haible  <bruno@clisp.org>
10133         scratch_buffer: Add tests.
10134         * tests/test-scratch-buffer.c: New file.
10135         * modules/scratch_buffer-tests: New file.
10137 2018-08-18  Bruno Haible  <bruno@clisp.org>
10139         scratch_buffer: Fix include file.
10140         Reported by Reuben Thomas <rrt@sc3d.org> in
10141         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
10142         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
10143         double-inclusion guard.
10145 2018-08-18  Bruno Haible  <bruno@clisp.org>
10147         glob-h: Revert Paul Eggert's revert.
10148         * m4/glob_h.m4: Revert to previous state.
10149         * modules/glob-h: Likewise.
10151 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10153         glob-h: always build glob.h
10154         This works around a problem reported by Reuben Thomas in:
10155         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
10156         This workaround always builds glob.h, even on platforms that
10157         do not need it; perhaps this could be improved someday.
10158         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
10159         is always created now.
10160         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
10162 2018-08-13  Bruno Haible  <bruno@clisp.org>
10164         monetary: Simplify m4 code.
10165         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
10166         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
10168 2018-08-13  Bruno Haible  <bruno@clisp.org>
10170         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
10171         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
10172         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
10173         and by Paul J. Lucas <paul@lucasmail.org> in
10174         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
10175         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
10177 2018-08-11  Bruno Haible  <bruno@clisp.org>
10179         setlocale: Trivial simplification.
10180         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
10182 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10184         verify: port 'assume' to traditional tools
10185         * lib/verify.h (assume): Port better to Oracle Studio 12.6
10186         and other tools that use /*NOTREACHED*/ comments.
10188 2018-08-10  Bruno Haible  <bruno@clisp.org>
10190         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
10191         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
10192         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
10193         'fnmatch-gnu' is in use.
10195 2018-08-07  Bruno Haible  <bruno@clisp.org>
10197         glob-h: Add tests.
10198         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
10199         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
10200         tests/test-glob-h.c.
10201         * modules/glob-h-tests: New file.
10202         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
10203         conditions.
10204         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
10205         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
10207 2018-08-07  Bruno Haible  <bruno@clisp.org>
10209         glob-h: New module.
10210         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
10211         replacements.
10212         * lib/glob.c: Include <config.h>.
10213         * m4/glob_h.m4: New file.
10214         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
10215         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
10216         REPLACE_GLOB_PATTERN_P as appropriate.
10217         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
10218         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
10219         * modules/glob-h: New file.
10220         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
10221         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
10222         lstat, sys_stat. Change conditions.
10223         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
10224         REPLACE_GLOB_PATTERN_P. Set module indicator.
10225         (Makefile.am): Remove code that is moved to glob-h.
10226         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
10227         * modules/posixcheck (Depends-on): Add glob-h.
10229 2018-08-06  Bruno Haible  <bruno@clisp.org>
10231         Force generation of substitute .h file when C++ support is enabled.
10232         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
10233         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
10234         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
10235         FNMATCH_H to non-empty.
10236         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
10237         ICONV_H to non-empty.
10238         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
10239         MONETARY_H to non-empty.
10240         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
10241         non-empty.
10243 2018-08-06  Bruno Haible  <bruno@clisp.org>
10245         fnmatch-h: Fix test compilation error on mingw (regression from today).
10246         * lib/fnmatch.in.h: Fix conditions.
10248 2018-08-06  Bruno Haible  <bruno@clisp.org>
10250         sys_resource: Relicense under LGPLv2+.
10251         John Malmberg's approval is in
10252         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
10253         * modules/sys_resource (License): Change to LGPLv2+.
10255 2018-08-06  Bruno Haible  <bruno@clisp.org>
10257         fnmatch-h: Add tests.
10258         * tests/test-fnmatch-h.c: New file.
10259         * modules/fnmatch-h-tests: New file.
10260         * tests/test-fnmatch-h-c++.cc: New file.
10261         * modules/fnmatch-h-c++-tests: New file.
10263 2018-08-06  Bruno Haible  <bruno@clisp.org>
10265         fnmatch-h: New module.
10266         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
10267         replacements.
10268         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
10269         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
10270         'posixcheck' warning.
10271         * m4/fnmatch_h.m4: New file.
10272         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
10273         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
10274         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
10275         as appropriate.
10276         * modules/fnmatch-h: New file.
10277         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
10278         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
10279         conditions.
10280         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
10281         indicator.
10282         (Makefile.am): Remove code that is moved to fnmatch-h.
10283         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
10284         REPLACE_FNMATCH.
10285         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
10286         * modules/posixcheck (Depends-on): Add fnmatch-h.
10288 2018-08-06  Bruno Haible  <bruno@clisp.org>
10290         Enable more C++ tests.
10291         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
10292         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
10293         * modules/strings-tests (Depends-on): Add strings-c++-tests.
10294         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
10295         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
10297 2018-08-06  Bruno Haible  <bruno@clisp.org>
10299         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
10300         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
10301         getopt.h.
10302         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
10304 2018-08-05  Bruno Haible  <bruno@clisp.org>
10306         utime-h: Generate header file when module 'posixcheck' is in use.
10307         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
10308         UTIME_H to non-empty.
10310 2018-08-05  Bruno Haible  <bruno@clisp.org>
10312         monetary: Generate header file when module 'posixcheck' is in use.
10313         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
10314         use, set MONETARY_H to non-empty.
10316 2018-08-05  Bruno Haible  <bruno@clisp.org>
10318         iconv-h: Generate header file when module 'posixcheck' is in use.
10319         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
10320         set ICONV_H to non-empty.
10322 2018-08-05  Bruno Haible  <bruno@clisp.org>
10324         Optimize the "checking whether ... is declared without a macro" checks.
10325         Suggested by Paul Eggert in
10326         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
10327         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
10328         Gnulib module 'posixcheck' is not in use.
10330 2018-08-05  Bruno Haible  <bruno@clisp.org>
10332         iconv-h: Enable 'posixcheck' warnings.
10333         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
10334         iconv_open.
10335         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
10337 2018-08-05  Bruno Haible  <bruno@clisp.org>
10339         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
10340         * m4/extern-inline.m4: Add more comments.
10341         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
10342         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
10343         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
10345 2018-08-04  Bruno Haible  <bruno@clisp.org>
10347         New module 'posixcheck'.
10348         * modules/posixcheck: New file.
10349         * m4/posixcheck.m4: New file.
10350         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
10351         (Which modules?): Reference it.
10353 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
10355         dfa: fix memory leak
10356         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
10358 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
10360         ieee754-h: new module
10361         It looks like Emacs can use this for some NaN processing.
10362         Emacs uses it only on double NaNs so it should be safe.
10363         * MODULES.html.sh (func_all_modules): Add ieee754-h.
10364         * config/srclist.txt: Mention ieee754.h in a comment.
10365         * doc/glibc-headers/ieee754.texi (ieee754.h):
10366         Gnulib now has a substitute that should work
10367         except for long double and for non-IEEE platforms.
10368         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
10369         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
10371 2018-07-27  Bruno Haible  <bruno@clisp.org>
10373         iswcntrl: Mention minor problem on macOS.
10374         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
10376 2018-07-26  Colin Watson  <cjwatson@debian.org>
10378         bootstrap, gnulib-tool: fix translations rsync
10379         Previously, we created files such as $pobase/Makefile.in.in and then the
10380         subsequent rsync would immediately delete them.
10381         * build-aux/bootstrap (po_download_command_format): Avoid deleting
10382         non-.po files in target directory when rsyncing translations.
10383         * gnulib-tool (func_import): Likewise.
10384         * pygnulib/GLImport.py (GLImport.execute): Likewise.
10386 2018-07-25  Jim Meyering  <meyering@fb.com>
10388         bootstrap: reinstate definition fo gnulib_mk.
10389         That variable is used at least by cppi.
10390         * build-aux/bootstrap (gnulib_mk): Restore definition.
10391         This reverts the deletion from v0.1-1844-gc66dba9ba.
10393 2018-07-23  Bruno Haible  <bruno@clisp.org>
10395         doc: For module names, use texinfo markup @code{} or @samp{}.
10396         * doc/alloca.texi: Mark gnulib module names with @code.
10397         * doc/alloca-opt.texi: Likewise.
10398         * doc/quote.texi: Likewise.
10399         * doc/posix-functions/freopen.texi: Likewise.
10400         * doc/posix-functions/open.texi: Likewise.
10401         * doc/posix-functions/readlink.texi: Likewise.
10402         * doc/posix-functions/readlinkat.texi: Likewise.
10403         * doc/posix-functions/stdout.texi: Likewise.
10404         * doc/posix-functions/stderr.texi: Likewise.
10405         * doc/posix-functions/unlink.texi: Likewise.
10406         * doc/posix-functions/unlinkat.texi: Likewise.
10407         * doc/posix-functions/utime.texi: Likewise.
10408         * doc/posix-functions/utimensat.texi: Likewise.
10409         * doc/posix-functions/utimes.texi: Likewise.
10410         * doc/posix-headers/stdint.texi: Likewise.
10411         * doc/glibc-functions/futimesat.texi: Likewise.
10412         * doc/glibc-functions/lutimes.texi: Likewise.
10413         * doc/glibc-functions/memmem.texi: Likewise.
10415 2018-07-23  Werner LEMBERG  <wl@gnu.org>
10417         doc: Avoid some overfull lines in the TeX output.
10418         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
10419         @example.
10420         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
10421         newline before the long URL.
10422         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
10423         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
10424         Add line breaks in code snippets.
10426 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
10428         hard-locale: simplify by removing hard-locale.m4
10429         * m4/hard-locale.m4: Remove.
10430         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
10431         (configure.ac): Do not call gl_HARD_LOCALE.
10433         gnulib-tool: limit line length for git send-email
10434         * gnulib-tool (func_import): Break actioncmd log line
10435         into multiple lines.
10437 2018-07-16  Bruno Haible  <bruno@clisp.org>
10439         ffs: Ensure declaration on mingw.
10440         Reported by Daniel P. Berrangé <berrange@redhat.com>
10441         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
10442         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
10443         also declared.
10445 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
10447         regex-tests: add dependency
10448         * modules/regex-tests (Depends-on): Add gettext-h.
10449         This is needed given the recent changes to regex,
10450         which no longer depends on gettext-h.
10452 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10454         regex: now in sync with glibc
10455         * config/srclist.txt: Gnulib and glibc regex code
10456         are synchronized again.
10458 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
10460         renameatu: rename from renameat2
10461         It's looking like Glibc will add a renameat2 function
10462         that is incompatible with Gnulib renameat2; see:
10463         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
10464         To help avoid future confusion, rename renameat2 to something else.
10465         Use the name 'renameatu', as the Gnulib function is close to the
10466         Glibc function.  Perhaps someday there will also be a renameat2
10467         Gnulib module, which mimicks the future glibc renameat2, but that
10468         can wait as nobody seems to need such a module now.
10469         * NEWS: Mention this.
10470         * lib/renameatu.c: Rename from lib/renameat2.c.
10471         * lib/renameatu.h: Rename from lib/renameat2.h.
10472         * modules/renameatu: Rename from modules/renameat2.
10473         * modules/renameatu-tests: Rename from modules/renameat2-tests.
10474         All uses of "renameat2" in identifiers or file name
10475         changed to "renameatu", except for two instances in
10476         lib/renameatu.c that deal with the Linux kernel's
10477         renameat2 syscall.
10479 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
10481         gnulib-tool: minor tweaks for --gnu-make
10482         * gnulib-tool: Do not allow --gnu-make in test modes,
10483         since they all require automake.
10484         (func_emit_lib_Makefile_am): Don’t emit automake comment
10485         if --gnu-make.
10487         regex: work around conditional-dependencies glitch
10488         * modules/regex (Depends-on): Add langinfo.
10489         Without this change, I had problems building an experimental
10490         version of GNU Emacs.  The symptom of the bug was a message
10491         ‘./configure: line 12726: test: =: unary operator expected’.
10492         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
10493         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
10494         was unset.  Although gl_FUNC_NL_LANGINFO has
10495         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
10496         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
10497         --conditional-dependencies sometimes arranges for the
10498         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
10499         code.  Since the regex code includes <langinfo.h> it should be
10500         depending on the langinfo module anyway, and this happens to work
10501         around the bug, so install that as a workaround for now.  To
10502         reproduce the original problem, run the following shell script on
10503         the version of Gnulib just before this patch was installed.
10504                 rm -fr foo
10505                 mkdir foo
10506                 cat >foo/configure.ac <<'EOF'
10507                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
10508                 gl_EARLY
10509                 gl_INIT
10510                 AC_OUTPUT
10511                 EOF
10512                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
10513                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
10514                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
10515                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
10516                 cd foo
10517                 aclocal -I m4
10518                 autoconf
10519                 ./configure --with-included-regex
10521 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
10523         wchar: fix bug when checking for ‘inline’
10524         I discovered this when looking into using the regex module
10525         with Emacs.
10526         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
10527         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
10528         conftest1.c and conftest2.c but these files were not created.
10529         As far as I can see, this check never worked and nobody reported
10530         it until now, which is a bit worrisome.
10532 2018-06-30  Jim Meyering  <meyering@fb.com>
10534         bootstrap: s/--option val/--option=val/
10535         * build-aux/bootstrap (gnulib_tool_options): Change the
10536         spelling of "--option val" pairs to "--option=val", for
10537         aesthetics, and also so that this file no longer triggers
10538         a common help2man syntax-check warning when copied into
10539         projects like grep, gzip, etc.
10541 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
10543         manywarnings: omit -Wswitch-default
10544         This should make things more consistent, as we already ignore
10545         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
10546         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
10547         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
10548         Add -Wswitch-default.
10549         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
10550         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
10551         Remove -Wswitch-default.
10553         regex: revert most trimming
10554         Problems reported by Bruno Haible in:
10555         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
10556         * modules/regex (Depends-on): Add lock, memcmp, memmove,
10557         and wctype back in.  lock because regex users shouldn’t
10558         need to know that regex needs locking, and the rest because
10559         gnulib-tool should ordinarily ignore them anyway.
10561 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
10563         regex: trim module dependencies
10564         * modules/regex (Depends-on): Remove gettext-h and lock,
10565         since the regex code should work OK without these modules,
10566         and Emacs uses it that way.  Also remove memcmp, memmove,
10567         and wctype, as these modules are obsolete and should not be
10568         needed any more.
10570 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
10572         regex: glibc does not use intprops.h
10573         Maybe we can talk glibc into using intprops.h someday, but
10574         now doesn’t seem to be a good time.
10575         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
10576         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
10577         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
10579 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
10581         regex: port to recently proposed glibc regex merge
10582         This patch is inspired by Adhemerval Zanella's recent proposal
10583         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
10584         to merge glibc and Gnulib regex.  It aims to simplify the merge on
10585         the glibc side, without keeping Gnulib portable.
10586         * lib/regex.h: Fix a problem with glibc installed-header checking,
10587         as follows:
10588         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
10589         (_Restrict_arr_): Prefer __restrict_arr if defined,
10590         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
10591         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
10592         (build_wcs_upper_buffer, build_upper_buffer)
10593         (re_string_translate_buffer, re_string_context_at):
10594         Move decls here from lib/regex_internal.h, for glibc internal tests.
10595         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
10596         glibc BZ #18496.
10597         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
10598         -Wunused-value.
10599         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
10600         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
10601         (bitset_mask): Now static inline, and without any __attribute__
10602         ((unused)) decoration, for glibc internal tests.
10604 2018-06-25  Bruno Haible  <bruno@clisp.org>
10606         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
10607         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
10608         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
10609         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
10610         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
10611         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
10612         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
10613         / -lthread / -lpth does not get optimized away by a preceding
10614         --as-needed option.
10616 2018-06-25  Bruno Haible  <bruno@clisp.org>
10618         Continue to use spaces for indentation, not tabs.
10619         * MODULES.html.sh: Untabify.
10620         * doc/regex.texi: Likewise.
10621         * lib/acl-internal.c: Likewise.
10622         * lib/dfa.c: Likewise.
10623         * lib/exclude.c: Likewise.
10624         * lib/exclude.h: Likewise.
10625         * lib/get-permissions.c: Likewise.
10626         * lib/gettimeofday.c: Likewise.
10627         * lib/parse-datetime.y: Likewise.
10628         * lib/pselect.c: Likewise.
10629         * lib/set-permissions.c: Likewise.
10630         * lib/time.in.h: Likewise.
10631         * m4/canonicalize.m4: Likewise.
10632         * m4/gc.m4: Likewise.
10633         * m4/gnulib-common.m4: Likewise.
10634         * m4/pthread_sigmask.m4: Likewise.
10635         * m4/vararrays.m4: Likewise.
10636         * tests/test-digest.h: Likewise.
10637         * tests/test-fcntl-h.c: Likewise.
10638         * tests/test-timespec.c: Likewise.
10639         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
10641 2018-06-25  Bruno Haible  <bruno@clisp.org>
10643         manywarnings: Don't enable -Wjump-misses-init warnings by default.
10644         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
10645         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
10646         -Wjump-misses-init.
10648 2018-06-25  Jim Meyering  <meyering@fb.com>
10650         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
10651         * lib/acl-internal.h (free_permission_context): Remove that
10652         attribute directive.  Otherwise, it would provoke this from GCC 9:
10653         lib/acl-internal.h:300:3: error: 'const' attribute on function \
10654           returning 'void' [-Werror=attributes]
10656 2018-06-24  Jim Meyering  <meyering@fb.com>
10658         parse-datetime: accommodate gcc-4.8.5
10659         Bruno Haible reported the build failure in
10660         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
10661         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
10662         on declaration of new local.
10664 2018-06-24  Bruno Haible  <bruno@clisp.org>
10666         af_alg: Fail in continuable manner on Linux/powerpc64le.
10667         Reported by Assaf Gordon <assafgordon@gmail.com>
10668         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
10669         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
10670         byte send() as the first round.
10672 2018-06-24  Bruno Haible  <bruno@clisp.org>
10674         af_alg: Fix state of stream after sendfile() succeeds.
10675         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
10676         the stream is correctly positioned afterwards.
10677         * modules/crypto/af_alg (Depends-on): Add fflush.
10678         * tests/test-digest.h (test_digest_on_files): Verify that after the
10679         operation the stream is positioned at end of file.
10681 2018-06-24  Jim Meyering  <meyering@fb.com>
10683         canon-host: take GCC9's advice rather than ignoring warning
10684         Pádraig Brady suggested not to ignore this GCC9 advice.
10685         * lib/canon-host.c: Undo preceding change.
10686         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
10688         parse-datetime.y: avoid spurious GCC 9 warning
10689         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
10690         a function local prior to the first "goto fail".  The prior use would
10691         evoke this:
10692         parse-datetime.y: In function 'parse_datetime2':
10693         parse-datetime.y:1791:19: error: jump skips variable initialization \
10694           [-Werror=jump-misses-init]
10695         parse-datetime.y:2385:2: note: label 'fail' defined here
10696         parse-datetime.y:188:43: note: '({anonymous})' declared here
10697         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
10699         canon-host.c: avoid spurious GCC 9 warning
10700         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
10702         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
10703         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
10704         * m4/manywarnings.m4: Remove them.
10705         Otherwise, building coreutils, I would see this:
10706         cc1: error: deprecated command line option '-Wchkp' [-Werror]
10707         cc1: error: -Wabi won't warn about anything [-Werror=abi]
10708         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
10709           which is also used by default
10710         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
10712 2018-06-24  Bruno Haible  <bruno@clisp.org>
10714         af_alg tests: Add another test.
10715         * tests/test-digest.h (test_digest_on_files): Also check a large file
10716         with a skipped header.
10717         * tests/test-md5.c: Include macros.h.
10718         * tests/test-sha1.c: Likewise.
10719         * tests/test-sha256.c: Likewise.
10720         * tests/test-sha512.c: Likewise.
10721         * modules/crypto/md5-tests (Files): Add tests/macros.h.
10722         * modules/crypto/sha1-tests (Files): Likewise.
10723         * modules/crypto/sha256-tests (Files): Likewise.
10724         * modules/crypto/sha512-tests (Files): Likewise.
10726 2018-06-24  Pádraig Brady  <P@draigBrady.com>
10728         maint: clarify comments about sticky EOF
10729         * lib/af_alg.c: Be more direct that we can't
10730         assume stickiness of EOF for portability reasons.
10731         * lib/md5.c: Clarify that this isn't just a glibc issue.
10732         * lib/sha1.c: Likewise.
10733         * lib/sha256.c: Likewise.
10734         * lib/sha512.c: Likewise.
10736 2018-06-24  Bruno Haible  <bruno@clisp.org>
10738         af_alg: Comment and style improvements.
10739         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
10740         (afalg_buffer, afalg_stream): Improve comments.
10742 2018-06-24  Pádraig Brady  <P@draigBrady.com>
10744         af_alg: disable kernel hash functions by default
10745         All the kernel routines were seen to be significantly slower
10746         with these relatively recent components on an i3-2310M system:
10747           kernel-4.10.6-200.fc25.x86_64
10748           openssl-1.0.2m-1.fc25.x86_64
10749         sha1 was nearly twice as slow in the kernel for example.
10750         Further considerations why this should not be the default, at:
10751         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
10753         * m4/af_alg.m4: Require --with-linux-crypto to enable.
10754         * m4/gl-openssl.m4: Tweak accordingly.
10756 2018-06-24  Pádraig Brady  <P@draigBrady.com>
10758         af_alg: avoid hangs when reading from streams
10759         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
10760         and thus avoid doing a fread() when feof() is set.
10761         * lib/md5.c: Ensure feof() is called before fread().
10762         * lib/sha1.c: Likewise.
10763         * lib/sha256.c: Likewise.
10764         * lib/sha512.c: Likewise.
10766 2018-06-24  Pádraig Brady  <P@draigBrady.com>
10768         af_alg: fix error handling when hash not returned
10769         * lib/af_alg.c (afalg_stream): Handle the case where we've
10770         successfully written data to the kernel in the read/write loop,
10771         but the kernel doesn't respond with the hash.
10773 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
10775         libc-config: merge from glibc
10776         * lib/cdefs.h (__inline, __restrict):
10777         Copy from current glibc.  This fixes glibc bug 17721,
10778         which Gnulib had already fixed in a different way.
10779         (__nonnull): Lessen the distance from glibc by using the
10780         glibc definition inside an ‘#ifndef __nonnull’.
10781         (__attribute_nonstring__): New macro, copied from
10782         current glibc.
10783         * lib/libc-config.h (__attribute_nonstring__): New undef.
10784         (__restrict): Remove; workaround no longer needed.
10785         Keep the __inline workaround, though, as it uses HAVE___INLINE to
10786         support more compilers than the glibc __inline can.
10788 2018-06-24  Bruno Haible  <bruno@clisp.org>
10790         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
10791         * lib/mbrtowc.c (enc_t): New enum type.
10792         (locale_enc, locale_enc_cached): New functions.
10793         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
10794         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
10795         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
10796         instead.
10797         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
10798         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
10799         * modules/wcwidth (configure.ac): Invoke it.
10801 2018-06-24  Bruno Haible  <bruno@clisp.org>
10803         wchar-single: Fix test failure in wcwidth tests.
10804         * tests/test-wcwidth.c (main): If the wchar-single module is present,
10805         skip the tests in the C locale.
10807 2018-06-23  Pádraig Brady  <P@draigBrady.com>
10809         crypto: mention --without-linux-crypto in --with-openssl --help
10810         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
10811         routines take precedence in --with-openssl help output.
10813 2018-06-23  Pádraig Brady  <P@draigBrady.com>
10815         wchar-single: a new module to enable optimizations in wchar replacements
10816         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
10817         GNULIB_WCHAR_SINGLE is enabled.
10818         * lib/wcwidth.c (wcwidth): Likewise.
10820 2018-06-23  Bruno Haible  <bruno@clisp.org>
10822         libc-config: Fix conflict with FreeBSD include files.
10823         * lib/cdefs.h (__nonnull): Remove definition.
10824         * lib/libc-config.h (__nonnull): Remove undefinition.
10826 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
10828         random_r: do not crash if state is unaligned
10829         Problem reported by Bruce Korb in:
10830         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
10831         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
10832         with 'cc -O2 -xmemalign=8s'.
10833         * lib/random_r.c: Include string.h, for memcpy.
10834         (get_int32, set_int32): New functions.
10835         (__srandom_r, __initstate_r, __setstate_r, __random_r):
10836         Use them to avoid assumption that state pointer is aligned.
10837         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
10838         * tests/test-random_r.c (test_failed): New function.
10839         (main): Use it, to test for alignment bugs.
10841         random_r: omit unnecessary include
10842         * lib/random_r.c: Do not include limits.h.
10844         random, random_r: merge from glibc
10845         * lib/random.c, lib/random_r.c:
10846         Include libc-config.h if !_LIBC, not config.h unilaterally.
10847         * lib/random.c:
10848         Do not include stdint.h or time.h; not needed.
10849         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
10850         (unsafe_state): Rename from generator.  All uses changed.
10851         Use C99-style initializers.
10852         (__random, __srandom, __initstate, __setstate): Rename from
10853         non-underscored version, but define it to non-underscored version
10854         on Gnulib.  Add a lock.
10855         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
10856         Likewise.
10857         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
10858         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
10859         (__srandom_r): Use int32_t instead of long int where int32_t will do.
10860         (__random_r): Use uint32 to fix glibc bug 17343.
10861         * modules/random, modules/random_r (Depends-on): Add libc-config.
10862         Depend on stdint only if $HAVE_RANDOM = 0.
10864 2018-06-19  Jim Meyering  <meyering@fb.com>
10866         README-release: also run any check-very-expensive tests
10867         * top/README-release: Adjust instructions so they run the
10868         check-very-expensive tests when there is such a target.
10870 2018-06-18  Bruno Haible  <bruno@clisp.org>
10872         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
10873         * m4/pthread_rwlock_rdlock.m4: Add comment.
10874         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
10875         are reader-preferring in glibc.
10876         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
10877         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
10879 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
10881         crypto: use byteswap
10882         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
10883         * lib/sm3.c: Include <byteswap.h>.
10884         (SWAP): Use its macros rather than reinventing the wheel.
10885         * modules/crypto/md4, modules/crypto/md5-buffer:
10886         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
10887         * modules/crypto/sha512-buffer, modules/crypto/sm3:
10888         (Depends-on): Add byteswap.
10890 2018-06-17  Pádraig Brady  <P@draigBrady.com>
10892         gendocs.sh: fix support for legacy --texi2html
10893         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
10894         to the default makeinfo invocation.
10895         Reported by Bruce Korb
10897 2018-06-17  Bruno Haible  <bruno@clisp.org>
10899         gettext po infrastructure: Update from current gettext git.
10900         Reported by Akim Demaille <akim@lrde.epita.fr>.
10901         * build-aux/po/Makefile.in.in: Update from current gettext git.
10902         * build-aux/po/remove-potcdate.sin: Likewise.
10903         * config/srclist.txt: Temporarily disable sync for these files.
10905 2018-06-17  Bruno Haible  <bruno@clisp.org>
10907         getloadavg: Return 0 on Windows without Cygwin.
10908         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
10910 2018-06-17  Paul Smith  <psmith@gnu.org>
10912         getloadavg: Allow building on Windows without Cygwin
10913         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
10914         * m4/getloadavg.m4: Check for unistd.h.
10916 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
10918         Port crypto/af_alg to GCC 4.8.4
10919         Problem reported by Peter Simons in:
10920         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
10921         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
10923 2018-05-27  Colin Watson  <cjwatson@debian.org>
10925         bootstrap: document source fetching in --help
10926         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
10928 2018-04-09  Colin Watson  <cjwatson@debian.org>
10930         bootstrap: allow non-submodule control of gnulib
10931         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
10932         bootstrap.conf when fetching gnulib using "git clone" or via
10933         GNULIB_SRCDIR.
10935 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10937         crypto: omit stream ops Emacs doesn’t need
10938         * lib/md5.c (md5_stream):
10939         * lib/sha1.c (sha1_stream):
10940         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
10941         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
10942         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
10943         defined.  Emacs needs this, as it does not use the stream
10944         operations and doesn’t need all the af_alg stuff we’ve recently
10945         added.  Perhaps a similar change is needed to the other crypto
10946         modules, but this patch changes only those needed for Emacs.
10947         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
10948         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
10949         New modules, used by Emacs.
10950         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
10951         * modules/crypto/sha512: Rewrite to depend on the new modules.
10953 2018-05-20  Pádraig Brady  <P@draigBrady.com>
10955         fts: avoid a memory leak edge case
10956         * lib/fts.c (fts_open): Set an appropriate fts_level
10957         so that an immediate fts_close() will free the allocation.
10958         * tests/test-fts.c (fts_dealloc): Add a test case which
10959         will trigger under valgrind or address sanitizer.
10960         Fixes https://bugs.gnu.org/31439
10962 2018-05-20  Bruno Haible  <bruno@clisp.org>
10964         wcwidth tests: Fix link error.
10965         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
10966         $(LIBUNISTRING).
10968 2018-05-20  Bruno Haible  <bruno@clisp.org>
10970         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
10971         * modules/regex (Files): Add m4/glibc21.m4.
10973 2018-05-20  Bruno Haible  <bruno@clisp.org>
10975         localcharset: Optimize.
10976         * lib/localcharset.c (alias_table): Comment out no-op mappings for
10977         platforms where these don't matter. This reduces the table size,
10978         which in turn reduces the lookup time.
10980 2018-05-19  Bruno Haible  <bruno@clisp.org>
10982         localcharset: Map the locale encodings found in newer OSes.
10983         * lib/localcharset.c (alias_table): Add mapping for locale encodings
10984         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
10985         IRIX 6.5, Minix 3.3.
10986         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
10988 2018-05-19  Bruno Haible  <bruno@clisp.org>
10990         localcharset: Move mapping tables into the code. Use a binary search.
10991         * lib/localcharset.h: Document the GNU canonical names for character
10992         encodings here.
10993         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
10994         relocatable.h, configmake.h.
10995         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
10996         macros.
10997         (charset_aliases): Remove variable.
10998         (get_charset_aliases): Remove function.
10999         (struct table_entry): New type.
11000         (alias_table, locale_table): New constants.
11001         (locale_charset): Use the alias_table or locale_table to get the
11002         canonicalized encoding name.
11003         * lib/config.charset: Remove file.
11004         * lib/ref-add.sin: Remove file.
11005         * lib/ref-del.sin: Remove file.
11006         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
11007         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
11008         * modules/localcharset (Notice): Remove.
11009         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
11010         glibc21.m4.
11011         (Depends-on): Remove configmake.
11012         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
11013         (Makefile.am): Simplify.
11014         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
11016 2018-05-19  Bruno Haible  <bruno@clisp.org>
11018         localcharset: Add a manual test.
11019         * tests/test-localcharset.c: New file.
11020         * modules/localcharset-tests: New file.
11022 2018-05-19  Bruno Haible  <bruno@clisp.org>
11024         localcharset: Remove support for obsolete platforms.
11025         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
11026         Mac OS X 10.2. Comment out dubious entry for Solaris.
11028 2018-05-19  Jim Meyering  <meyering@fb.com>
11030         gnupload: adjust comment
11031         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
11032         more likely we'll remove the just-added code in a year or two.
11034 2018-05-19  Bruno Haible  <bruno@clisp.org>
11036         gnupload: Fix "gpg-agent is not available in this session" error.
11037         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
11039 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11041         crypto/af_alg: fix --help
11042         * m4/af_alg.m4: Avoid spurious newline in --help output.
11044 2018-05-13  Bruno Haible  <bruno@clisp.org>
11046         nl_langinfo: Fix compilation error on Android.
11047         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
11048         INT_CURR_SYMBOL, etc. only if these items are defined.
11050 2018-05-13  Bruno Haible  <bruno@clisp.org>
11052         truncate: Fix compilation error on Android.
11053         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
11054         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
11055         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
11056         HAVE_TRUNCATE.
11057         * modules/truncate: Likewise.
11058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
11059         not HAVE_TRUNCATE.
11060         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
11061         HAVE_TRUNCATE.
11062         * doc/posix-functions/truncate.texi: Mention the issue.
11064 2018-05-13  Bruno Haible  <bruno@clisp.org>
11066         pthread: Fix compilation error on Android.
11067         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
11068         recursive inclusion of this file.
11070 2018-05-13  Bruno Haible  <bruno@clisp.org>
11072         posix_spawn: Fix compilation error on Android.
11073         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
11074         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
11075         (posix_spawn_file_actions_t): Consider also the case
11076         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
11078 2018-05-13  Bruno Haible  <bruno@clisp.org>
11080         tsearch: Move from K&R C to ANSI C.
11081         * lib/tsearch.c (tfind): Convert definition to ANSI C.
11083 2018-05-13  Bruno Haible  <bruno@clisp.org>
11085         tsearch: Fix compilation error on Android.
11086         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
11087         is 0.
11088         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
11089         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
11090         GNULIB_defined_tsearch is true.
11091         (twalk): Define only if GNULIB_defined_twalk is true.
11092         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
11093         is 0.
11094         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
11095         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
11096         * modules/search (Makefile.am): Substitute HAVE_TWALK.
11098 2018-05-13  Bruno Haible  <bruno@clisp.org>
11100         imaxdiv: Fix compilation error on Android.
11101         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
11102         is not defined.
11103         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
11104         HAVE_DECL_IMAXDIV, is 0.
11105         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
11106         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
11108 2018-05-13  Bruno Haible  <bruno@clisp.org>
11110         Support selective inclusion mechanism of recent mingw.org header files.
11111         Reported by Eli Zaretskii <eliz@gnu.org>.
11112         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
11113         __need_ssize_t, or __need_time_t is defined, just include the system's
11114         <sys/types.h>.
11115         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
11116         include the system's <locale.h>.
11118 2018-05-13  Bruno Haible  <bruno@clisp.org>
11120         Avoid compilation error due to 'mmap' on Android.
11121         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
11122         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
11123         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
11124         Undefine on Android.
11126 2018-05-13  Bruno Haible  <bruno@clisp.org>
11128         Add cross-compilation guesses for Linux systems without glibc.
11129         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
11130         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
11131         * m4/link.m4 (gl_FUNC_LINK): Likewise.
11132         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
11133         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
11134         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
11135         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
11136         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
11137         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
11138         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
11139         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11140         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
11141         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
11142         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11143         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
11144         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
11145         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
11146         * m4/utimens.m4 (gl_UTIMENS): Likewise.
11148 2018-05-13  Bruno Haible  <bruno@clisp.org>
11150         getpagesize: Fix compilation error on Android.
11151         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
11152         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
11153         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
11154         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
11155         HAVE_GETPAGESIZE accordingly.
11156         * modules/getcwd (Files): Add m4/getpagesize.m4.
11158 2018-05-13  Bruno Haible  <bruno@clisp.org>
11160         tcgetsid: Fix compilation error on Android.
11161         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
11162         AC_CHECK_FUNC.
11164 2018-05-13  Bruno Haible  <bruno@clisp.org>
11166         getpass: Fix configure test for Android.
11167         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
11168         AC_CHECK_FUNC.
11170 2018-05-13  Bruno Haible  <bruno@clisp.org>
11172         ffs: Fix compilation error on Android.
11173         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
11175 2018-05-13  Bruno Haible  <bruno@clisp.org>
11177         mkfifo: Fix compilation error on Android.
11178         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
11179         AC_CHECK_FUNC.
11181 2018-05-13  Bruno Haible  <bruno@clisp.org>
11183         c-strtod: Fix configure test for Android.
11184         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
11185         AC_CHECK_FUNC.
11187 2018-05-13  Bruno Haible  <bruno@clisp.org>
11189         random: Fix compilation error on Android.
11190         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
11191         AC_CHECK_FUNC.
11193 2018-05-13  Bruno Haible  <bruno@clisp.org>
11195         grantpt: Fix compilation error on Android.
11196         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
11197         AC_CHECK_FUNC.
11199 2018-05-13  Bruno Haible  <bruno@clisp.org>
11201         stdioext: Fix compilation errors with newer Android headers.
11202         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
11203         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
11204         fallbacks for Android.
11205         * lib/fpending.c: Update comments.
11206         * lib/fpurge.c: Likewise.
11207         * lib/freadable.h: Likewise.
11208         * lib/freadable.c: Likewise.
11209         * lib/freadahead.c: Likewise.
11210         * lib/freading.h: Likewise.
11211         * lib/freadptr.c: Likewise.
11212         * lib/fseterr.c: Likewise.
11213         * lib/fwritable.h: Likewise.
11214         * lib/fwritable.c: Likewise.
11215         * lib/fwriting.h: Likewise.
11216         * lib/fwriting.c: Likewise.
11218 2018-05-13  Bruno Haible  <bruno@clisp.org>
11220         doc: Add info about Android versions 2.0 to 8.1.
11221         * doc/**/*.texi: Add info about functions in all released versions of
11222         Bionic.
11224 2018-05-12  Bruno Haible  <bruno@clisp.org>
11226         fseeko: On mingw, don't use the hidden function _fseeki64.
11227         Reported by Eli Zaretskii <eliz@gnu.org>.
11228         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
11229         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
11231 2018-05-12  Bruno Haible  <bruno@clisp.org>
11233         glob: Choose 'dirent_type' in a way that works better on mingw.
11234         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
11235         * lib/glob.c (dirent_type): Define as uint_fast32_t.
11237 2018-05-12  Bruno Haible  <bruno@clisp.org>
11239         execute, spawn-pipe: Avoid warning about redefining 'close'.
11240         Reported by Eli Zaretskii <eliz@gnu.org>.
11241         * lib/execute.c: Undefine 'close' before redefining it.
11242         * lib/spawn-pipe.c: Likewise.
11244 2018-05-12  Bruno Haible  <bruno@clisp.org>
11246         nanosleep: Avoid test failure on mingw when it has nanosleep.
11247         Reported by Eli Zaretskii <eliz@gnu.org>.
11248         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
11249         If it does not exist, use a simpler test program that does not call
11250         alarm().
11252 2018-05-10  Bruno Haible  <bruno@clisp.org>
11254         lock, cond, thread, tls: Use a different symbol as libpthread witness.
11255         Reported by Devin Hussey <husseydevin@gmail.com>.
11256         Based on a patch by Paul Eggert.
11257         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
11258         as witness of libpthread.
11259         * lib/glthread/cond.h (pthread_in_use): Likewise.
11260         * lib/glthread/thread.h (pthread_in_use): Likewise.
11261         * lib/glthread/tls.h (pthread_in_use): Likewise.
11263 2018-05-10  Bruno Haible  <bruno@clisp.org>
11265         cond tests: Fix compilation error on Solaris.
11266         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
11267         macro.
11269 2018-05-10  Bruno Haible  <bruno@clisp.org>
11271         doc: Add partial info about Android 4.3.
11272         * doc/*-functions/*.texi: Add info about functions that were added
11273         to Bionic between Android 4.3 and Android 9.0.
11275 2018-05-10  Bruno Haible  <bruno@clisp.org>
11277         doc: Add info about Android 9.0.
11278         * doc/**/*.texi: Add info about functions and headers in Bionic from
11279         Android 9.0.
11281 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
11283         af_alg: fix my typo in afalg_buffer
11284         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
11285         (afalg_stream): Simplify and avoid the need for a runtime test
11286         at the end.
11288         af_alg: recover better from crypto failures
11289         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
11290         input stream is seekable, by repositioning the stream back to
11291         where it was, possibly by just calling sendfile with an offset
11292         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
11293         cases, which lets our callers try again with user-mode code.
11294         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
11295         instead of on fflush and lseek.
11297         af_alg: distiguish I/O errors better
11298         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
11299         not -EIO, if it’s OK for the caller to try again with user-mode code.
11300         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
11301         some other error number) if fflush fails, as the caller should not
11302         try again that case.
11304         af_alg: avoid gotos
11305         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
11306         gotos, as they were a source of unreliability and made the code a
11307         bit harder to follow.
11309         af_alg: don’t leak file descriptors into children
11310         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
11311         This code should be compiled only on recent GNU/Linux platforms
11312         so we shouldn’t have to also depend on the accept4 module.
11314         af_alg: coalesce socket creation
11315         * lib/af_alg.c (alg_socket): New function.
11316         (afalg_buffer, afalg_stream): Use it.  This avoids some
11317         code duplication and gotos.
11319         af_alg: fix file descriptor leak
11320         * lib/af_alg.c (afalg_stream): Close leak.
11322         af_alg: Pacify --enable-gcc-warnings on GCC 8
11323         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
11324         and checking to pacify gcc -Wjump-misses-init on GCC 8.
11326 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11328         af_alg: Pacify --enable-gcc-warnings
11329         Problem reported by Assaf Gordon in:
11330         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
11331         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
11332         gcc -Wjump-misses-init.
11333         * lib/sha512.c (shaxxx_stream): Now static.
11335 2018-05-06  Bruno Haible  <bruno@clisp.org>
11337         af_alg: Add ability to use Linux kernel crypto API on data in memory.
11338         * lib/af_alg.h (afalg_buffer): New declaration.
11339         * lib/af_alg.c (afalg_buffer): New function.
11341 2018-05-06  Bruno Haible  <bruno@clisp.org>
11343         af_alg: Avoid warnings.
11344         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
11345         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
11347 2018-05-06  Bruno Haible  <bruno@clisp.org>
11349         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
11350         * tests/bench-digest.h: New file.
11351         * tests/bench-md5.c: New file.
11352         * tests/bench-sha1.c: New file.
11353         * tests/bench-sha224.c: New file.
11354         * tests/bench-sha256.c: New file.
11355         * tests/bench-sha384.c: New file.
11356         * tests/bench-sha512.c: New file.
11357         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
11358         tests/bench-digest.h.
11359         (Depends-on): Add getrusage, gettimeofday.
11360         (Makefile.am): Add variables to build bench-md5.
11361         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
11362         tests/bench-digest.h.
11363         (Depends-on): Add getrusage, gettimeofday.
11364         (Makefile.am): Add variables to build bench-sha1.
11365         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
11366         tests/bench-sha256.c, tests/bench-digest.h.
11367         (Depends-on): Add getrusage, gettimeofday.
11368         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
11369         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
11370         tests/bench-sha512.c, tests/bench-digest.h.
11371         (Depends-on): Add getrusage, gettimeofday.
11372         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
11374 2018-05-06  Bruno Haible  <bruno@clisp.org>
11376         af_alg: Fix a resource leak.
11377         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
11378         New local variable 'result'.
11380 2018-05-06  Bruno Haible  <bruno@clisp.org>
11382         af_alg: Fix bug with streams that are not at position 0.
11383         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
11384         assume that the stream is positioned at position 0.
11385         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
11386         of the stream.
11387         * lib/md5.h (md5_stream): Likewise.
11388         * lib/sha1.h (sha1_stream): Likewise.
11389         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
11390         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
11391         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
11393         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
11394         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
11395         stream that is not positioned at the beginning.
11397 2018-05-06  Bruno Haible  <bruno@clisp.org>
11399         af_alg: Add configure option to enable/disable use of Linux crypto API.
11400         Suggested by Assaf Gordon <assafgordon@gmail.com>.
11401         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
11402         USE_LINUX_CRYPTO_API.
11403         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
11404         * lib/af_alg.c: Likewise.
11406 2018-05-06  Bruno Haible  <bruno@clisp.org>
11408         Followup to 'af_alg: New module.'.
11409         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
11410         * modules/crypto/sha1 (Depends-on): Likewise.
11411         * modules/crypto/sha256 (Depends-on): Likewise.
11412         * modules/crypto/sha512 (Depends-on): Likewise.
11414 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11416         crypto/{md5,sha1,sha256,sha512}: simplify
11417         * lib/md5.c (md5_stream):
11418         * lib/sha1.c (sha1_stream):
11419         * lib/sha256.c (shaxxx_stream):
11420         Simplify, partly by assuming C99.
11421         * lib/sha256.c (shaxxx_stream):
11422         New function, which implements both sha256 and sha224.
11423         Simplify, partly by assuming C99.
11424         (sha256_stream, sha224_stream):
11425         Use it to avoid code duplication, removing a FIXME.
11426         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
11427         Likewise.
11429         af_alg: Improve comments.
11430         * lib/af_alg.h: Use imperatives and tighten up wording.
11432 2018-05-05  Bruno Haible  <bruno@clisp.org>
11434         af_alg: Improve comments.
11435         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
11437 2018-05-05  Bruno Haible  <bruno@clisp.org>
11439         af_alg: New module.
11440         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
11441         * lib/af_alg.c: Include "af_alg.h" before the other header files.
11442         * lib/md5.c: Include "af_alg.h" unconditionally.
11443         (md5_stream): Invoke afalg_stream unconditionally.
11444         * lib/sha1.c: Include "af_alg.h" unconditionally.
11445         (sha1_stream): Invoke afalg_stream unconditionally.
11446         * lib/sha256.c: Include "af_alg.h" unconditionally.
11447         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
11448         * lib/sha512.c: Include "af_alg.h" unconditionally.
11449         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
11450         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
11451         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
11452         * modules/crypto/af_alg: New file.
11453         * modules/crypto/md5 (Files): Remove files that are now in the
11454         'crypto/af_alg' module.
11455         (Depends-on): Add crypto/af_alg.
11456         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
11457         (Makefile.am): Don't mention af_alg.c here.
11458         * modules/crypto/sha1 (Files): Remove files that are now in the
11459         'crypto/af_alg' module.
11460         (Depends-on): Add crypto/af_alg.
11461         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
11462         (Makefile.am): Don't mention af_alg.c here.
11463         * modules/crypto/sha256 (Files): Remove files that are now in the
11464         'crypto/af_alg' module.
11465         (Depends-on): Add crypto/af_alg.
11466         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
11467         (Makefile.am): Don't mention af_alg.c here.
11468         * modules/crypto/sha512 (Files): Remove files that are now in the
11469         'crypto/af_alg' module.
11470         (Depends-on): Add crypto/af_alg.
11471         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
11472         (Makefile.am): Don't mention af_alg.c here.
11474 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11476         crypto tests: pacify GCC
11477         * tests/test-digest.h (test_digest_on_files):
11478         Don’t assume digest size fits in int (!).
11480         af_alg: minor style improvements
11481         * lib/af_alg.c (afalg_stream): Prefer C99 style
11482         decl-after-statement, since we’re already assuming C99.  Clarify
11483         by strengthening the bind test and omit unnecessary assignment.
11485 2018-05-05  Bruno Haible  <bruno@clisp.org>
11487         af_alg: Fix bug on empty files.
11488         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
11489         stream is empty.
11491 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11493         sys-limits.h: new file for crypto and safe I/O
11494         * lib/af_alg.c: Include sys-limits.h.
11495         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
11496         (afalg_stream): Also reject negative sizes for sendfile; they
11497         should not happen and the code is a bit cleaner and faster this way.
11498         * lib/safe-read.c: Include sys-limits.h.
11499         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
11500         * lib/sys-limits.h: New file, with values and commentary derived
11501         from the old safe-read.c and from GNU Emacs sysdep.c.
11502         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
11503         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
11504         Add lib/sys-limits.h to Files section.
11506 2018-05-05  Bruno Haible  <bruno@clisp.org>
11508         af_alg: Improve function signature.
11509         * lib/af_alg.h (afalg_stream): Swap second and third argument.
11510         * lib/af_alg.c (afalg_stream): Likewise.
11511         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
11513 2018-05-05  Bruno Haible  <bruno@clisp.org>
11515         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
11516         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
11517         * modules/crypto/sha1 (Depends-on): Likewise.
11518         * modules/crypto/sha256 (Depends-on): Likewise.
11519         * modules/crypto/sha512 (Depends-on): Likewise.
11521 2018-05-05  Bruno Haible  <bruno@clisp.org>
11523         crypto/{md5,sha1,sha256,sha512}: Fix module description.
11524         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
11525         * modules/crypto/sha1 (Depends-on): Likewise.
11526         * modules/crypto/sha256 (Depends-on): Likewise.
11527         * modules/crypto/sha512 (Depends-on): Likewise.
11529 2018-05-05  Bruno Haible  <bruno@clisp.org>
11531         af_alg: Add documentation.
11532         * lib/af_alg.h: Add comments.
11534 2018-05-05  Bruno Haible  <bruno@clisp.org>
11536         sha512: Add tests.
11537         * tests/test-sha512.c: New file.
11538         * modules/crypto/sha512-tests: New file.
11540 2018-05-05  Bruno Haible  <bruno@clisp.org>
11542         sha256: Add tests.
11543         * tests/test-sha256.c: New file.
11544         * modules/crypto/sha256-tests: New file.
11546 2018-05-05  Bruno Haible  <bruno@clisp.org>
11548         sha1 tests: Add test for sha1_stream.
11549         * tests/test-sha1.c: Include test-digest.h.
11550         (main): Invoke test_digest_on_files on 'sha1_stream'.
11551         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
11553 2018-05-05  Bruno Haible  <bruno@clisp.org>
11555         md5 tests: Add test for md5_stream.
11556         * tests/test-digest.h: New file.
11557         * tests/test-md5.c: Include test-digest.h.
11558         (main): Invoke test_digest_on_files on 'md5_stream'.
11559         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
11561 2018-04-28  Matteo Croce  <mcroce@redhat.com>
11563         md5sum: Use AF_ALG when available.
11564         * lib/md5.c: Include af_alg.h.
11565         (md5_stream): Use afalg_stream when available.
11566         * modules/crypto/md5 (Files): Add the af_alg files.
11567         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
11568         (Makefile.am): Add af_alg.c.
11570 2018-04-28  Matteo Croce  <mcroce@redhat.com>
11572         sha512sum: Use AF_ALG when available.
11573         * lib/sha512.c: Include af_alg.h.
11574         (sha512_stream, sha384_stream): Use afalg_stream when available.
11575         * modules/crypto/sha512 (Files): Add the af_alg files.
11576         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
11577         (Makefile.am): Add af_alg.c.
11579 2018-04-28  Matteo Croce  <mcroce@redhat.com>
11581         sha256sum: Use AF_ALG when available.
11582         * lib/sha256.c: Include af_alg.h.
11583         (sha256_stream, sha224_stream): Use afalg_stream when available.
11584         * modules/crypto/sha256 (Files): Add the af_alg files.
11585         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
11586         (Makefile.am): Add af_alg.c.
11588 2018-04-28  Matteo Croce  <mcroce@redhat.com>
11590         sha1sum: Use AF_ALG when available.
11591         * lib/af_alg.h: New file.
11592         * lib/af_alg.c: New file.
11593         * lib/sha1.c: Include af_alg.h.
11594         (sha1_stream): Use afalg_stream when available.
11595         * m4/linux-if-alg.m4: New file.
11596         * modules/crypto/sha1 (Files): Add the new files.
11597         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
11598         (Makefile.am): Add af_alg.c.
11600 2018-05-05  Bruno Haible  <bruno@clisp.org>
11602         all: Replace more http URLs by https URLs.
11603         * lib/localename.c: Use https: URL.
11604         * lib/timespec.h: Likewise.
11606 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
11608         maint: port more modules to GCC 8
11609         * lib/dirname.h (base_name):
11610         * lib/exclude.h (new_exclude):
11611         * lib/xstrndup.h (xstrndup):
11612         Add malloc attribute.
11613         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
11614         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
11615         This pacifies GCC 8.
11616         * m4/gnulib-common.m4 (gl_COMMON_BODY):
11617         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
11619 2018-05-03  Bruno Haible  <bruno@clisp.org>
11621         Simplify code. Drop support for Borland C++ on Windows.
11622         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
11623         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
11624         'defined _WIN32'.
11625         * lib/canonicalize-lgpl.c: Likewise.
11626         * lib/classpath.c: Likewise.
11627         * lib/clean-temp.c: Likewise.
11628         * lib/csharpexec.c: Likewise.
11629         * lib/ctime.c: Likewise.
11630         * lib/dosname.h: Likewise.
11631         * lib/dup2.c: Likewise.
11632         * lib/errno.in.h: Likewise.
11633         * lib/error.c: Likewise.
11634         * lib/euidaccess.c: Likewise.
11635         * lib/execute.c: Likewise.
11636         * lib/fcntl.in.h: Likewise.
11637         * lib/fcntl.c: Likewise.
11638         * lib/filename.h: Likewise.
11639         * lib/findprog.c: Likewise.
11640         * lib/flock.c: Likewise.
11641         * lib/fopen.c: Likewise.
11642         * lib/freopen.c: Likewise.
11643         * lib/fstat.c: Likewise.
11644         * lib/fsync.c: Likewise.
11645         * lib/gc-gnulib.c: Likewise.
11646         * lib/get-rusage-data.c: Likewise.
11647         * lib/getaddrinfo.c: Likewise.
11648         * lib/getdelim.c: Likewise.
11649         * lib/getdtablesize.c: Likewise.
11650         * lib/gethostname.c: Likewise.
11651         * lib/getlogin.c: Likewise.
11652         * lib/getlogin_r.c: Likewise.
11653         * lib/getopt.c: Likewise.
11654         * lib/getpagesize.c: Likewise.
11655         * lib/getpass.c: Likewise.
11656         * lib/getrusage.c: Likewise.
11657         * lib/gettimeofday.c: Likewise.
11658         * lib/glob.c: Likewise.
11659         * lib/inttypes.in.h: Likewise.
11660         * lib/isapipe.c: Likewise.
11661         * lib/javaexec.c: Likewise.
11662         * lib/link.c: Likewise.
11663         * lib/localcharset.c: Likewise.
11664         * lib/localename.h: Likewise.
11665         * lib/localename.c: Likewise.
11666         * lib/localtime.c: Likewise.
11667         * lib/lseek.c: Likewise.
11668         * lib/mbsinit.c: Likewise.
11669         * lib/mkdir.c: Likewise.
11670         * lib/msvc-nothrow.h: Likewise.
11671         * lib/nanosleep.c: Likewise.
11672         * lib/nl_langinfo.c: Likewise.
11673         * lib/nonblocking.c: Likewise.
11674         * lib/nproc.c: Likewise.
11675         * lib/open.c: Likewise.
11676         * lib/openpty.c: Likewise.
11677         * lib/pathmax.h: Likewise.
11678         * lib/pipe-filter-aux.c: Likewise.
11679         * lib/pipe-filter-gi.c: Likewise.
11680         * lib/pipe-filter-ii.c: Likewise.
11681         * lib/pipe.c: Likewise.
11682         * lib/pipe2.c: Likewise.
11683         * lib/poll.c: Likewise.
11684         * lib/popen.c: Likewise.
11685         * lib/posix_openpt.c: Likewise.
11686         * lib/printf-parse.c: Likewise.
11687         * lib/progreloc.c: Likewise.
11688         * lib/putenv.c: Likewise.
11689         * lib/read.c: Likewise.
11690         * lib/relocatable.c: Likewise.
11691         * lib/rename.c: Likewise.
11692         * lib/same-inode.h: Likewise.
11693         * lib/secure_getenv.c: Likewise.
11694         * lib/select.c: Likewise.
11695         * lib/sethostname.c: Likewise.
11696         * lib/setlocale.c: Likewise.
11697         * lib/sigaction.c: Likewise.
11698         * lib/sigprocmask.c: Likewise.
11699         * lib/sleep.c: Likewise.
11700         * lib/spawn-pipe.h: Likewise.
11701         * lib/spawn-pipe.c: Likewise.
11702         * lib/spawni.c: Likewise.
11703         * lib/stat-time.h: Likewise.
11704         * lib/stat-w32.c: Likewise.
11705         * lib/stat.c: Likewise.
11706         * lib/stdio.in.h: Likewise.
11707         * lib/stdio-impl.h: Likewise.
11708         * lib/stdio-read.c: Likewise.
11709         * lib/stdio-write.c: Likewise.
11710         * lib/stdlib.in.h: Likewise.
11711         * lib/strerror_r.c: Likewise.
11712         * lib/strftime-fixes.c: Likewise.
11713         * lib/sys_stat.in.h: Likewise.
11714         * lib/sys_types.in.h: Likewise.
11715         * lib/sys_wait.in.h : Likewise.
11716         * lib/system-quote.h: Likewise.
11717         * lib/system-quote.c: Likewise.
11718         * lib/tmpdir.c: Likewise.
11719         * lib/tzset.c: Likewise.
11720         * lib/uname.c: Likewise.
11721         * lib/unistd.in.h: Likewise.
11722         * lib/utime.in.h: Likewise.
11723         * lib/utime.c: Likewise.
11724         * lib/utimecmp.c: Likewise.
11725         * lib/utimens.c: Likewise.
11726         * lib/vasnprintf.c: Likewise.
11727         * lib/vma-iter.h: Likewise.
11728         * lib/vma-iter.c: Likewise.
11729         * lib/wait-process.c: Likewise.
11730         * lib/wcsftime.c: Likewise.
11731         * lib/wctype.in.h: Likewise.
11732         * lib/write.c: Likewise.
11733         * tests/nap.h: Likewise.
11734         * tests/test-cloexec.c: Likewise.
11735         * tests/test-dup-safer.c: Likewise.
11736         * tests/test-dup2.c: Likewise.
11737         * tests/test-dup3.c: Likewise.
11738         * tests/test-fcntl.c: Likewise.
11739         * tests/test-get-rusage-data.c: Likewise.
11740         * tests/test-getaddrinfo.c: Likewise.
11741         * tests/test-getlogin.h: Likewise.
11742         * tests/test-isatty.c: Likewise.
11743         * tests/test-localename.c: Likewise.
11744         * tests/test-mbrtowc-w32.c: Likewise.
11745         * tests/test-nonblocking.c: Likewise.
11746         * tests/test-nonblocking-pipe-main.c: Likewise.
11747         * tests/test-nonblocking-socket-main.c: Likewise.
11748         * tests/test-nonblocking-socket.h: Likewise.
11749         * tests/test-pipe.c: Likewise.
11750         * tests/test-pipe2.c: Likewise.
11751         * tests/test-poll.c: Likewise.
11752         * tests/test-pthread_sigmask1.c: Likewise.
11753         * tests/test-select.h: Likewise.
11754         * tests/test-sethostname2.c: Likewise.
11755         * tests/test-sigprocmask.c: Likewise.
11756         * tests/test-spawn-pipe-child.c: Likewise.
11757         * tests/test-stat-time.c: Likewise.
11758         * tests/test-system-quote-main.c: Likewise.
11759         * tests/test-utimens-common.h: Likewise.
11760         * tests/test-wcrtomb-w32.c: Likewise.
11761         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
11762         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
11763         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
11764         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
11765         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
11766         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
11767         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
11768         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
11769         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11770         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
11771         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
11772         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
11773         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
11774         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
11775         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
11776         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11778 2018-05-02  Bruno Haible  <bruno@clisp.org>
11780         localename: Fix test failures on mingw.
11781         * lib/localename.c (gl_locale_name_thread): Remove code specific to
11782         native Windows.
11783         (gl_locale_name_posix): Move code specific to native Windows here.
11784         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
11785         Accept result without charset suffix, as it appears on mingw.
11787 2018-04-28  Paul Smith  <psmith@gnu.org>
11789         bootstrap: Avoid gnulib operations if not needed
11790         * build-aux/bootstrap: Remove unused variable gnulib_mk.
11791         Set $gnulib_extra_files early so it can be overridden in .conf.
11792         Remove redundant --import flag from $gnulib_tool_options.
11793         Set $use_gnulib to false if no gnulib modules or files are needed.
11794         If $use_gnulib is false, don't do anything related to gnulib.
11795         A lot of this is just whitespace (indentation) changes.
11797 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
11799         manywarnings: port to GCC 8.0
11800         * build-aux/gcc-warning.spec: Add -Wcatch-value,
11801         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
11802         fact that the GCC help message now mentions operands for
11803         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
11804         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
11805         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
11806         and -Wunused-const-variable.
11807         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
11808         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
11809         -Wmissing-attributes, -Wmultistatement-macros,
11810         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
11811         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
11813 2018-04-24  Bruno Haible  <bruno@clisp.org>
11815         sys_socket: Make SO_REUSEPORT available across platforms.
11816         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11817         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
11818         * doc/posix-headers/sys_socket.texi: Mention the issue.
11819         * tests/test-poll.c (SO_REUSEPORT): Remove.
11820         * tests/test-select.h: Include <sys/socket.h>.
11821         (SO_REUSEPORT): Remove.
11822         * modules/select-tests (Depends-on): Add 'sys_socket'.
11824 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
11826         localcharset: short-circuit the search for an alias on a Mac
11827         * lib/localcharset.c (get_charset_aliases): Add a tautological
11828         UTF-8 entry to speed up the search for this case.
11829         Most machines default to a UTF-8 locale nowadays, so begin the
11830         list of aliases with a dummy UTF-8 entry so it will be found
11831         immediately and a time-consuming search through the rest of
11832         the list is avoided.
11834 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
11836         fts: add comment
11837         * lib/fts.c (fts_build): Explain why ==, not >.
11838         See remark by Bernhard Voelker in:
11839         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
11841         fts: fix bug in find across filesystems
11842         This fixes a bug I introduced last summer.
11843         Problem reported by Kamil Dudka in:
11844         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
11845         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
11846         (leaf_optimization):
11847         New arg for file descriptor.  All callers changed.
11848         (fts_build): Check for whether inodes should be sorted
11849         before closing the directory.
11851 2018-04-07  Bruno Haible  <bruno@clisp.org>
11853         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
11854         Reported by Genki Sky <sky@genki.is>.
11855         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
11856         version 0.9.10 or newer.
11857         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
11858         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
11859         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
11860         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
11861         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
11863 2018-04-07  Bruno Haible  <bruno@clisp.org>
11865         execute: Update comment.
11866         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
11868 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
11870         fts: treat CIFS like NFS
11871         Problem reported by Kamil Dudka in:
11872         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
11873         * lib/fts.c (S_MAGIC_CIFS): New macro.
11874         (dirent_inode_sort_may_be_useful, leaf_optimization):
11875         Treat CIFS like NFS.
11877 2018-03-28  Bruno Haible  <bruno@clisp.org>
11879         c-stack: Fix possible build failure on some platforms.
11880         * lib/c-stack.c (die): Define whenever this function is referenced.
11882 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
11884         time_rz: fix workaround for Mac OS X 10.6 infloop
11885         Problems reported by Charles A. Roelli (Bug#27736#117).
11886         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
11887         Also, discard output, which clutters the 'configure' log.
11889 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
11891         havelib: port to Solaris 10 /bin/sh
11892         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
11893         instead of '! test EXPR'.
11895 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
11897         time_rz: work around Mac OS X 10.6 infloop
11898         * doc/posix-functions/localtime.texi:
11899         * doc/posix-functions/localtime_r.texi: Mention the bug.
11900         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
11901         better to fix localtime and localtime_r instead, but that would be
11902         more work and is not needed to fix the Emacs problem.
11903         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
11905 2018-03-24  Jim Meyering  <meyering@fb.com>
11907         test-version-etc.sh: don't use diff directly: use init.sh's compare
11908         We'd rather not sacrifice readable "diff -u" output even for
11909         "diff -c" output (not supported by busybox) or for even less
11910         readable ed-style "diff" output.  So use init.sh's compare function
11911         * tests/test-version-etc.sh: Source init.sh and add "." to path.
11912         Remove "./" from invocation of test-version-etc, so we use path.
11913         And s/diff/compare/.
11914         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
11915         to get init.sh.
11916         Prompted by Eric Blake's comments in
11917         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
11919 2018-03-24  Bruno Haible  <bruno@clisp.org>
11921         javacomp-script, javacomp: Add support for Java 10.
11922         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
11923         target-version 10.
11924         * lib/javaversion.h: Update comments.
11925         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
11926         source_version_index, get_goodcode_snippet, get_failcode_snippet,
11927         TARGET_VERSION_BOUND, target_version_index,
11928         corresponding_classfile_version): Accept source_version 10 and
11929         target_version 10.
11930         * lib/javacomp.h: Update comments accordingly.
11932 2018-03-24  Bruno Haible  <bruno@clisp.org>
11934         javacomp-script, javacomp: Update comments.
11935         * m4/javacomp.m4: Update comments regarding gcj.
11936         * lib/javacomp.h: Likewise.
11938 2018-03-24  Bruno Haible  <bruno@clisp.org>
11940         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
11941         * lib/javaversion.h: Update comments.
11942         * lib/javacomp.h: Likewise.
11943         * lib/javacomp.c (default_target_version, source_version_index,
11944         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
11945         "1.9".
11946         (TARGET_VERSION_BOUND): Bump to 9.
11947         (target_version_index, corresponding_classfile_version): Recognize "9"
11948         instead of "1.9".
11949         (get_source_version_for_javac): New function.
11950         (is_envjavac_nongcj_usable, is_javac_usable): Add
11951         source_version_for_javac argument.
11952         (compile_java_class): Determine and pass source_version_for_javac.
11953         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
11954         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
11955         appropriate.
11957 2018-03-23  Jim Meyering  <meyering@fb.com>
11959         test-version-etc.sh: port to diff without -c
11960         * tests/test-version-etc.sh: Don't use diff's -c option.
11961         This caused spurious test failure on Alpine Linux, which
11962         uses busybox's diff. Reported by Assaf Gordon in
11963         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
11965 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
11967         c-stack: port to recent GCC build
11968         Problem reported by The Fireplace (Bug#30913).
11969         * lib/c-stack.c (die): Define only if used.
11971 2018-03-20  Bruno Haible  <bruno@clisp.org>
11973         euidaccess: Port to native Windows.
11974         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
11975         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
11977 2018-03-19  Bruno Haible  <bruno@clisp.org>
11979         javacomp: Add support for Java 7, 8, 9.
11980         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
11981         source_version_index, get_goodcode_snippet, get_failcode_snippet,
11982         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
11983         and target_version 1,7, 1.8, 1.9.
11984         * lib/javacomp.h: Update comments accordingly.
11986 2018-03-19  Bruno Haible  <bruno@clisp.org>
11988         javacomp-script: Add support for Java 9.
11989         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
11990         target-version 1.9.
11992 2018-03-16  Bruno Haible  <bruno@clisp.org>
11994         glob: Don't compile replacements on recent glibc systems.
11995         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
11996         REPLACE_GLOB is 0, include the system's <glob.h> and use
11997         _GL_CXXALIAS_SYS.
11998         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
11999         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
12000         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
12001         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
12002         Remove snippet/warn-on-use.
12003         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
12004         (Makefile.am): Create glob.h always. Update list of substitutions in
12005         glob.h. Don't depend on $(WARN_ON_USE_H).
12007 2018-03-16  Bruno Haible  <bruno@clisp.org>
12009         glob: Fix link error on native Windows.
12010         * modules/glob (Depends-on): Add 'lstat'.
12012 2018-03-15  Bruno Haible  <bruno@clisp.org>
12014         glob: Fix compilation error in C++ mode.
12015         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
12017 2018-03-15  Bruno Haible  <bruno@clisp.org>
12019         host-cpu-c-abi: Support for RISC-V CPU.
12020         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
12021         riscv32 and riscv64 ABIs.
12022         References:
12023         https://github.com/riscv/riscv-toolchain-conventions
12024         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
12025         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
12027 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
12029         fflush: be more paranoid about libio.h change
12030         Suggested by Eli Zaretskii in:
12031         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
12032         * lib/fbufmode.c (fbufmode):
12033         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
12034         (disable_seek_optimization, rpl_fflush):
12035         * lib/fpending.c (__fpending):
12036         * lib/fpurge.c (fpurge):
12037         * lib/freadable.c (freadable):
12038         * lib/freadahead.c (freadahead):
12039         * lib/freading.c (freading):
12040         * lib/freadptr.c (freadptr):
12041         * lib/freadseek.c (freadptrinc):
12042         * lib/fseeko.c (fseeko):
12043         * lib/fseterr.c (fseterr):
12044         * lib/fwritable.c (fwritable):
12045         * lib/fwriting.c (fwriting):
12046         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
12048 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
12050         maint: write-file-hooks -> before-save-hook
12051         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
12052         it's time to use the recommended replacement.
12053         Problem reported by Glenn Morris in:
12054         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
12055         * build-aux/announce-gen, build-aux/bootstrap:
12056         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
12057         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
12058         * build-aux/gnu-web-doc-update, build-aux/gnupload:
12059         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
12060         * build-aux/update-copyright, build-aux/useless-if-before-free:
12061         * build-aux/vc-list-files:
12062         Update hook usage for files where Gnulib is the canonical source.
12064 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
12066         binary-io: pacify gcc -Wunused-parameter
12067         Problem reported by Reuben Thomas in:
12068         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
12069         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
12070         Use _GL_UNUSED where appropriate.
12072         fflush: adjust to glibc 2.28 libio.h removal
12073         Problem reported by Daniel P. Berrangé in:
12074         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
12075         * lib/fbufmode.c (fbufmode):
12076         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
12077         (disable_seek_optimization, rpl_fflush):
12078         * lib/fpending.c (__fpending):
12079         * lib/fpurge.c (fpurge):
12080         * lib/freadable.c (freadable):
12081         * lib/freadahead.c (freadahead):
12082         * lib/freading.c (freading):
12083         * lib/freadptr.c (freadptr):
12084         * lib/freadseek.c (freadptrinc):
12085         * lib/fseeko.c (fseeko):
12086         * lib/fseterr.c (fseterr):
12087         * lib/fwritable.c (fwritable):
12088         * lib/fwriting.c (fwriting):
12089         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
12090         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
12091         Define if not already defined.
12093 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
12095         environ: fix link error on 32-bit Cygwin
12096         Problem reported for GNU Emacs by Ken Brown in:
12097         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
12098         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
12100 2018-02-24  Bruno Haible  <bruno@clisp.org>
12102         mbrtowc tests: Fix regression on glibc.
12103         Reported by Bernhard Voelker.
12104         * tests/test-mbrtowc.c (main): Fix expected value of wc.
12106 2018-02-24  Bruno Haible  <bruno@clisp.org>
12108         striconveha, uniconv/*: Avoid test failures on musl libc.
12109         * tests/iconvsupport.c: New file.
12110         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
12111         does not support the ISO-2022-JP-2 encoding.
12112         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
12113         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12114         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12115         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12116         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12117         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12118         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
12119         (Makefile.am): Link test-striconveha with iconvsupport.o.
12120         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
12121         tests/iconvsupport.c.
12122         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
12123         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
12124         tests/iconvsupport.c.
12125         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
12126         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
12127         tests/iconvsupport.c.
12128         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
12129         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
12130         tests/iconvsupport.c.
12131         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
12132         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
12133         tests/iconvsupport.c.
12134         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
12135         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
12136         tests/iconvsupport.c.
12137         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
12139 2018-02-24  Bruno Haible  <bruno@clisp.org>
12141         localename: Add support for musl libc.
12142         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
12143         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
12144         on Linux platforms which define NL_LOCALE_NAME.
12146 2018-02-24  Bruno Haible  <bruno@clisp.org>
12148         mbrtowc tests: Don't make assumptions about the charset the C locale.
12149         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
12150         particular mapping in the C locale.
12152 2018-02-24  Bruno Haible  <bruno@clisp.org>
12154         ptsname_r: Don't expect that this function sets errno.
12155         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
12156         from ptsname_r().
12157         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
12159 2018-02-23  Bruno Haible  <bruno@clisp.org>
12161         xmalloca: pacify gcc -Wbad-function-cast
12162         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
12164 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
12166         nl_langinfo: pacify gcc -Wunused-function
12167         * lib/nl_langinfo.c (ctype_codeset): Do not define if
12168         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
12169         this case.  Without this change, I got a diagnostic when building
12170         coreutils on Fedora 27 with gcc 7.3.1 20180130.
12172         same: pacify gcc -Wunused-variable
12173         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
12174         Omit unused variable.
12176         malloca: pacify gcc -Wbad-function-cast
12177         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
12178         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
12179         To pacify GCC, I had to cast alloca’s result to some type other
12180         than void * before casting that to uintptr_t.
12182 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12184         utimecmp: new function utimecmpat
12185         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
12186         Do not include utimens.h.
12187         (utimecmpat): New function, generalizing utimecmp.
12188         (utimecmp): Now a thin layer around utimecmpat.
12189         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
12190         utimensat instead of on lstat and utimens.
12192         same: new function same_nameat
12193         * lib/same.c: Include fcntl.h.
12194         * lib/same.c (same_nameat): New function, generalizing same_name.
12195         (same_name): Now a thin layer around same_nameat.
12196         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
12197         * modules/same (Depends-on): Depend on fstatat, openat.
12199 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
12201         warnings: Add support for Objective C.
12202         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
12203         macro.
12205 2018-02-17  Bruno Haible  <bruno@clisp.org>
12207         lock: Fix test-once1 crash on FreeBSD11.
12208         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
12209         'pthread_create', not 'pthread_cancel'.
12211 2018-02-17  Bruno Haible  <bruno@clisp.org>
12213         lock: Add test of gl_once.
12214         * tests/test-once.c: New file.
12215         * modules/lock-tests (Files): Add it.
12216         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
12218 2018-02-17  Bruno Haible  <bruno@clisp.org>
12220         thread: Fix compilation error on IRIX.
12221         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
12222         needed; include it outside the C++ extern "C" {} block.
12223         * doc/posix-headers/pthread.texi: Mention the problem with
12224         pthread_atfork on IRIX.
12226 2018-02-04  Bruno Haible  <bruno@clisp.org>
12228         nl_langinfo: Override the system's nl_langinfo() when needed.
12229         Reported by Jim Meyering.
12230         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
12231         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
12233 2018-02-04  Bruno Haible  <bruno@clisp.org>
12235         signal-h, monetary, strings: Fix build failure in some cases.
12236         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
12237         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
12238         as delimiter in sed command, not '|'.
12239         * modules/monetary (Makefile.am): Likewise.
12240         * modules/strings (Makefile.am): Likewise.
12242 2018-02-03  Jim Meyering  <meyering@fb.com>
12244         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
12245         * top/maint.mk (sc_file_system): Don't complain about
12246         "/proc/filesystems".
12248 2018-02-03  Bruno Haible  <bruno@clisp.org>
12250         stdlib: Fix compilation error on OpenIndiana.
12251         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
12252         <sys/time.h>.
12253         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
12254         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
12256 2018-02-03  Bruno Haible  <bruno@clisp.org>
12258         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
12259         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
12260         and use $EGREP instead of 'grep -E'.
12261         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
12262         'grep -E'.
12264 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
12266         malloca: Add a compile-time verification.
12267         * lib/malloca.c (small_t): Verify that it is wide enough.
12268         * modules/malloca (Depends-on): Add verify.
12270 2018-02-02  Bruno Haible  <bruno@clisp.org>
12272         malloca: Add an argument check.
12273         Suggested by Paul Eggert.
12274         * lib/malloca.c (freea): Check against an invalid argument.
12276 2018-02-02  Bruno Haible  <bruno@clisp.org>
12278         localename: Add support for OpenIndiana.
12279         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
12280         Solaris 11 variants with uselocale() but without getlocalename_l().
12282 2018-02-02  Bruno Haible  <bruno@clisp.org>
12284         malloca, xmalloca: Make multithread-safe.
12285         Reported by Florian Weimer <fweimer@redhat.com>.
12286         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
12287         * lib/malloca.h (malloca): In the stack allocation case, return a
12288         pointer that is a multiple of 2 * sa_alignment_max.
12289         (sa_increment): Remove enum item.
12290         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
12291         a pointer that is a multiple of 2 * sa_alignment_max.
12292         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
12293         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
12294         HASH_TABLE_SIZE, mmalloca_results): Remove.
12295         (small_t): New type.
12296         (mmalloca, free): Rewritten.
12297         * lib/malloca.valgrind: Remove file.
12298         * modules/malloca (Files): Remove it.
12299         (Depends-on): Remove verify.
12301 2018-01-31  Bruno Haible  <bruno@clisp.org>
12303         environ: Fix link error on 64-bit Cygwin.
12304         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
12305         __declspec(dllimport) attribute.
12306         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
12308 2018-01-30  Bruno Haible  <bruno@clisp.org>
12310         get-rusage-data: Add support for Minix 3.
12311         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
12313 2018-01-30  Bruno Haible  <bruno@clisp.org>
12315         vma-iter: Add support for Minix 3.
12316         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
12317         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
12319 2018-01-27  Bruno Haible  <bruno@clisp.org>
12321         Fix malfunction of socket functions on HP-UX in 64-bit mode.
12322         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
12323         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
12324         _HPUX_ALT_XOPEN_SOCKET_API.
12325         * modules/accept (Depends-on): Add 'extensions'.
12326         * modules/getpeername (Depends-on): Likewise.
12327         * modules/getsockname (Depends-on): Likewise.
12328         * modules/getsockopt (Depends-on): Likewise.
12329         * modules/recvfrom (Depends-on): Likewise.
12330         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
12331         * doc/posix-functions/getpeername.texi: Likewise.
12332         * doc/posix-functions/getsockname.texi: Likewise.
12333         * doc/posix-functions/getsockopt.texi: Likewise.
12334         * doc/posix-functions/recvfrom.texi: Likewise.
12336 2018-01-27  Bruno Haible  <bruno@clisp.org>
12338         getsockname tests: More tests.
12339         * tests/test-getsockname.c (open_server_socket): New function, mostly
12340         copied from test-poll.c.
12341         (main): Check that getsockname fills in addr.
12342         * modules/getsockname-tests (Depends-on): Add the necessary
12343         dependencies.
12344         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
12346 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
12348         manywarnings: fix maintainer comment
12349         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
12350         it does not mistakenly think that ‘-1)’ is an option.
12352 2018-01-26  Bruno Haible  <bruno@clisp.org>
12354         langinfo: Fix last commit.
12355         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
12356         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
12358 2018-01-24  Bruno Haible  <bruno@clisp.org>
12360         langinfo, nl_langinfo: Add support for alternative month names.
12361         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
12362         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
12363         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
12364         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
12365         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
12366         * doc/posix-functions/nl_langinfo.texi: Likewise.
12368 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12370         Merge strftime.c changes from glibc
12371         This incorporates:
12372         2017-11-14 [BZ #10871] Implement alternative month names
12373         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
12374         2017-06-20 Use locale_t, not __locale_t, throughout glibc
12375         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
12376         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
12377         Use locale_t, not __locale_t.
12378         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
12379         (__strftime_internal): Add support for alternate months.
12381 2018-01-23  Bruno Haible  <bruno@clisp.org>
12383         doc: Mention another prerequisite for using Gnulib.
12384         Reported at <https://stackoverflow.com/questions/48378214/>.
12385         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
12386         AC_CONFIG_HEADERS.
12388 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
12390         build: GuixSD doesn't have /bin/bash
12391         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
12393 2018-01-21  Bruno Haible  <bruno@clisp.org>
12395         Avoid test failures on Microsoft Windows Subsystem for Linux.
12396         * tests/test-fcntl.c (main): Allow a different errno.
12397         * tests/test-rename.h (test_rename): Likewise.
12398         * tests/test-renameat.c (main): Likewise.
12399         * tests/test-renameat2.c (main): Likewise.
12401 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
12403         filenamecat: make base a suffix of result
12404         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
12405         (mfile_name_concat): Always make BASE a suffix of the result, as
12406         cp expects this.  To implement this, separate with '.' instead of
12407         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
12408         * tests/test-filenamecat.c (main): Adjust tests to match
12409         current behavior.  Check that BASE_IN_RESULT points to
12410         a copy of BASE and is a suffix of the resultk, and that DIR
12411         is a prefix of the result that is no longer than the prefix
12412         indicated by BASE_IN_RESULT.
12414 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
12416         update-copyright: Handle use of ©
12417         * build-aux/update-copyright ($circle_c_re): Update regex to
12418         handle use of © in headers.
12420 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
12422         Fix -Wundef warning in user-included header lib/cdefs.h.
12423         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
12425 2018-01-04  Bruno Haible  <bruno@clisp.org>
12427         pthread_sigmask: Avoid compilation error on mingw.
12428         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
12429         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
12430         macro.
12432 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
12434         test-framework-sh: ‘ps -ef’, not ‘ps ef’
12435         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
12436         Suggested by Bob Proulx (Bug#29968).
12437         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
12439 2018-01-02  Eric Blake  <eblake@redhat.com>
12441         stat-time: silence -Wunused-parameter regression
12442         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
12443         Prefer attribute over cast-to-void.
12444         (stat_time_normalize): Mark st as potentially unused.
12446 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
12448         test-framework-sh: avoid netstat
12449         Problem reported by Kristýna Streitová (Bug#29947).
12450         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
12451         deprecated on SuSE and it's not that important anyway.
12453 2018-01-01  Jim Meyering  <meyering@fb.com>
12455         update-copyright: add code to handle more special cases
12456         After running "make update-copyright" this year, five files
12457         required additional manual changes.  Automate those adjustments
12458         for next year.
12459         * Makefile (_year_and_prev): Define.
12460         (update-copyright): Add perl commands to induce this year's post-
12461         update-copyright adjustments.
12463 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12465         version-etc: new year
12466         * build-aux/gendocs.sh (version):
12467         * doc/gendocs_template:
12468         * doc/gendocs_template_min:
12469         * doc/gnulib.texi:
12470         * lib/version-etc.c (COPYRIGHT_YEAR):
12471         Update copyright dates by hand in templates and the like.
12473         maint: fix 'make update-copyright'
12474         * Makefile (update-copyright): Adjust to 2016-11-23 change
12475         to config/srclist-update, which changed the format of srclist.txt.
12477 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
12479         chdir-safer: remove this module
12480         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
12481         * NEWS: Document removal.
12482         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
12483         * modules/chdir-safer: Remove these files.
12485 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
12487         Add cross-compilation results for GNU/Hurd.
12488         * m4/calloc.m4: Add GNU/Hurd guess.
12489         * m4/cbrtl.m4: Likewise.
12490         * m4/ceil.m4: Likewise.
12491         * m4/ceilf.m4: Likewise.
12492         * m4/ceill.m4: Likewise.
12493         * m4/chown.m4: Likewise.
12494         * m4/duplocale.m4: Likewise.
12495         * m4/exp2l.m4: Likewise.
12496         * m4/expm1.m4: Likewise.
12497         * m4/fchdir.m4: Likewise.
12498         * m4/floor.m4: Likewise.
12499         * m4/floorf.m4: Likewise.
12500         * m4/fmod.m4: Likewise.
12501         * m4/fmodf.m4: Likewise.
12502         * m4/fmodl.m4: Likewise.
12503         * m4/getcwd.m4: Likewise.
12504         * m4/getgroups.m4: Likewise.
12505         * m4/gettimeofday.m4: Likewise.
12506         * m4/hypot.m4: Likewise.
12507         * m4/hypotf.m4: Likewise.
12508         * m4/hypotl.m4: Likewise.
12509         * m4/link-follow.m4: Likewise.
12510         * m4/link.m4: Likewise.
12511         * m4/linkat.m4: Likewise.
12512         * m4/log.m4: Likewise.
12513         * m4/log10.m4: Likewise.
12514         * m4/log10f.m4: Likewise.
12515         * m4/log1p.m4: Likewise.
12516         * m4/log1pf.m4: Likewise.
12517         * m4/log1pl.m4: Likewise.
12518         * m4/log2.m4: Likewise.
12519         * m4/log2f.m4: Likewise.
12520         * m4/logf.m4: Likewise.
12521         * m4/lstat.m4: Likewise.
12522         * m4/malloc.m4: Likewise.
12523         * m4/mbrlen.m4: Likewise.
12524         * m4/mbrtowc.m4: Likewise.
12525         * m4/mkdir.m4: Likewise.
12526         * m4/mkfifo.m4: Likewise.
12527         * m4/mknod.m4: Likewise.
12528         * m4/mkstemp.m4: Likewise.
12529         * m4/modf.m4: Likewise.
12530         * m4/modff.m4: Likewise.
12531         * m4/modfl.m4: Likewise.
12532         * m4/printf.m4: Likewise.
12533         * m4/pselect.m4: Likewise.
12534         * m4/ptsname.m4: Likewise.
12535         * m4/putenv.m4: Likewise.
12536         * m4/readlink.m4: Likewise.
12537         * m4/realloc.m4: Likewise.
12538         * m4/remainder.m4: Likewise.
12539         * m4/remainderf.m4: Likewise.
12540         * m4/remainderl.m4: Likewise.
12541         * m4/rmdir.m4: Likewise.
12542         * m4/round.m4: Likewise.
12543         * m4/roundf.m4: Likewise.
12544         * m4/roundl.m4: Likewise.
12545         * m4/select.m4: Likewise.
12546         * m4/setenv.m4: Likewise.
12547         * m4/signbit.m4: Likewise.
12548         * m4/sleep.m4: Likewise.
12549         * m4/stat.m4: Likewise.
12550         * m4/strerror.m4: Likewise.
12551         * m4/strtok_r.m4: Likewise.
12552         * m4/symlink.m4: Likewise.
12553         * m4/symlinkat.m4: Likewise.
12554         * m4/trunc.m4: Likewise.
12555         * m4/truncf.m4: Likewise.
12556         * m4/truncl.m4: Likewise.
12557         * m4/tzset.m4: Likewise.
12558         * m4/ungetc.m4: Likewise.
12559         * m4/usleep.m4: Likewise.
12560         * m4/wcwidth.m4: Likewise.
12562 2017-12-28  Bruno Haible  <bruno@clisp.org>
12564         gnulib-tool: Make --conditional-dependencies work better.
12565         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
12566         * gnulib-tool (Options): Don't reject the combination of
12567         --conditional-dependencies with --with-tests.
12568         (func_emit_autoconf_snippets): Add argument referenceable_modules.
12569         Don't reference $modules.
12570         (func_import, func_create_testdir): Pass it.
12572 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
12574         regex: use re_malloc etc. consistently
12575         Problem and original patch reported by Arnold Robbins in:
12576         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
12577         * lib/regcomp.c (re_comp):
12578         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
12579         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
12581 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
12582             Paul Eggert  <eggert@cs.ucla.edu>
12584         glob: Silence warning about void pointer arithmetic.
12585         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
12586         arithmetic.
12588 2017-12-15  Bruno Haible  <bruno@clisp.org>
12590         spawn-pipe: Silence a clang warning.
12591         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
12592         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
12593         in this file.
12595 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
12597         explicit_bzero: port to macOS + Clang 9.0.0
12598         Problem reported by Marcus Johnson (Bug#29658).
12599         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
12600         Don’t use asm.
12602 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
12604         doc: Improve explanation of supporting relocatable libraries.
12605         * doc/relocatable-maint.texi (Supporting Relocation): Explain
12606         properly how to build the relocatable module for
12607         libraries. (Method and example code from Bruno Haible.)
12609 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
12611         doc: Use better texinfo tags in a few cases.
12612         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
12613         instead of @samp in a few places.
12615 2017-12-11  Bruno Haible  <bruno@clisp.org>
12617         unistr/base: Update comment.
12618         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
12620 2017-12-10  Pádraig Brady  <P@draigBrady.com>
12622         test-faccessat.c: unlink temp file to avoid subsequent test failure
12623         * tests/test-faccessat.c: Remove the file to avoid failure
12624         to open the file on subsequent runs due to being created
12625         with no permissions.
12627 2017-12-10  Bruno Haible  <bruno@clisp.org>
12629         doc: New sect. "Modifying the build rules of a Gnulib import directory".
12630         * doc/gnulib-tool.texi (Modified build rules): New node.
12632 2017-12-10  Bruno Haible  <bruno@clisp.org>
12634         doc: Tweak wording.
12635         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
12636         "binaries".
12638 2017-12-05  Sam Steingold  <sds@gnu.org>
12639             Bruno Haible  <bruno@clisp.org>
12641         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
12642         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
12643         AC_EGREP_CPP pattern.
12645 2017-12-03  Bruno Haible  <bruno@clisp.org>
12647         all: Replace more http URLs by https URLs.
12648         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
12649         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
12650         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
12651         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
12653 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
12655         Port better to CentOS 5
12656         Problems reported by Tom G. Christensen in:
12657         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
12658         * doc/glibc-functions/strverscmp.texi (strverscmp):
12659         Document strverscmp bug with glibc 2.9 and earlier.
12660         * doc/posix-functions/tzset.texi (tzset):
12661         Document that TZ with angle brackets is POSIX-2001 and later.
12662         * tests/test-nstrftime.c: Include unistd.h.
12663         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
12664         (TZ): Use it to skip tests with angle brackets in TZ,
12665         for older systems.
12667         stat: add missing module dependencies
12668         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
12669         Add stat-time.
12671 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
12673         stat: fix compilation failure on macOS Sierra
12674         Reported by Marius Schamschula <mschamschula@gmail.com> in:
12675         https://savannah.gnu.org/bugs/?52546
12676         * lib/stat.c: Add missing include of stat-time.h.
12678 2017-11-28  Jim Meyering  <meyering@fb.com>
12680         test-faccessat.c: correct BASE definition to avoid parallel test failure
12681         * tests/test-faccessat.c (BASE): Define using this file's name, not
12682         that of test-lstat.c.  Using the latter caused this test to fail
12683         sometimes when run concurrently with test-lstat.
12685 2017-11-27  Daiki Ueno  <ueno@gnu.org>
12687         unicase: fix VPATH build
12688         * modules/unicase/special-casing (Makefile.am): Ensure that the
12689         base directory is created when generating
12690         unicase/special-casing.h.
12692 2017-11-27  Daiki Ueno  <ueno@gnu.org>
12694         libunistring: update to Unicode 9.0.0
12695         * lib/gen-uni-tables.c (fill_properties): Recognize
12696         Sentence_Terminal and Prepended_Concatenation_Mark.
12697         (is_property_default_ignorable_code_point): Exclude U+08E2.
12698         (fill_arabicshaping): Allow missing whitespace when parsing;
12699         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
12700         (output_blocks): Increase the element size of the level1 table to
12701         accommodate more blocks.
12702         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
12703         Update each class according to the standard.
12704         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
12705         E_Base_GAZ characters.
12706         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
12707         Glue_After_Zwj, and E_Base_GAZ characters.
12708         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
12709         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
12710         enum value.
12711         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
12712         value.
12713         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
12714         LBP_ZWJ, LBP_EB, and LBP_EM.
12715         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
12716         enum value.
12717         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
12718         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
12719         declaration.
12720         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
12721         (uniwbrk_table): Implement WB14.
12722         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
12723         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
12724         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
12725         uc-is-grapheme-break.
12726         * modules/unigbrk/uc-grapheme-breaks: New module.
12727         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
12728         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
12729         enum value.
12730         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
12731         * lib/unigbrk/u-grapheme-breaks.h: New file.
12732         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
12733         u-grapheme-breaks.h instead of uc_is_grapheme_break.
12734         * lib/unigbrk/uc-grapheme-breaks.c: New file.
12735         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
12736         29.
12737         * tests/unigbrk/test-uc-gbrk-prop.c
12738         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
12739         GBP_GAZ, and GBP_EBG.
12740         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
12741         * tests/unigbrk/test-uc-is-grapheme-break.c
12742         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
12743         GBP_GAZ, and GBP_EBG.
12744         (main): Skip unsupported rules involving 3 or more characters,
12745         namely GB10, GB12, and GB13.
12746         * lib/uniwidth/width.c (nonspacing_table_data): Update.
12747         * all generated files under lib/uni* and tests/uni*: Regenerate.
12748         * all the affected modules: Bump version.
12750 2017-11-26  Bruno Haible  <bruno@clisp.org>
12752         strfmon_l: Fix compilation error with glibc 2.5.
12753         Reported by Tom G. Christensen <tgc@jupiterrise.com>
12754         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
12755         * lib/monetary.in.h: Include also <locale.h>.
12757 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
12759         posixtm: remove PDS_LEADING_YEAR
12760         This changes the API slightly, in a hopefully-innocuous way.
12761         Without this change the code had undefined behavior when a
12762         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
12763         Problem reported by Pádraig Brady in:
12764         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
12765         * NEWS: Mention this.
12766         * lib/posixtm.c (posix_time_parse): Treat the absence of
12767         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
12768         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
12769         present, but define it as zero, for compatibility with existing
12770         source code).  All other PDS_* values moved up.
12771         * tests/test-posixtm.c (LY): New macro.
12772         (T): Use it.  Do not expect a particular numeric encoding
12773         for PDS_CENTURY etc.
12775 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
12777         stat: work around Solaris bug with tv_nsec < 0
12778         * doc/posix-functions/fstat.texi (fstat):
12779         * doc/posix-functions/fstatat.texi (fstatat):
12780         * doc/posix-functions/lstat.texi (lstat):
12781         * doc/posix-functions/stat.texi (stat):
12782         Mention Solaris 11 bug.
12783         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
12784         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
12785         * lib/lstat.c (rpl_lstat):
12786         * lib/stat.c (rpl_stat):
12787         Normalize resulting timestamps.
12788         * lib/fstatat.c (normal_fstatat): New function.
12789         (rpl_fstatat): Use it.
12790         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
12791         (stat_time_normalize): New function.
12792         * m4/fstat.m4 (gl_FUNC_FSTAT):
12793         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
12794         * m4/lstat.m4 (gl_FUNC_LSTAT):
12795         * m4/stat.m4 (gl_FUNC_STAT):
12796         Replace on Solaris.
12797         * modules/fstat (Depends-on):
12798         * modules/fstatat (Depends-on):
12799         Add stat-time.
12800         * modules/stat-time (Depends-on): Add errno, intprops.
12802 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
12804         regex: merge from glibc
12805         * lib/regcomp.c (init_word_char): Add comments.
12807 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
12809         regex: merge from glibc
12810         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
12811         * lib/regex_internal.h (internal_function): Remove.
12812         All uses removed.
12814 2017-11-20  Bruno Haible  <bruno@clisp.org>
12816         crypto/gc-sm3: Fix buffer overrun.
12817         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
12818         Reported by Coverity.
12820 2017-11-12  Jim Meyering  <meyering@fb.com>
12822         maint: shorten https://lists.gnu.org/archive/html/... links
12823         Each /archive/html/ part can be replace with /r/.
12824         Run this to induce the change:
12825         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
12826         * ChangeLog: Perform that substitution.
12827         * Makefile: Likewise.
12828         * STATUS-libposix: Likewise.
12829         * build-aux/bootstrap: Likewise.
12830         * doc/maintain.texi: Likewise.
12831         * gnulib-tool: Likewise.
12832         * lib/allocator.h: Likewise.
12833         * lib/argp-ba.c: Likewise.
12834         * lib/argp-pv.c: Likewise.
12835         * lib/canon-host.c: Likewise.
12836         * lib/canonicalize-lgpl.c: Likewise.
12837         * lib/float.in.h: Likewise.
12838         * lib/fstat.c: Likewise.
12839         * lib/getdelim.c: Likewise.
12840         * lib/getprogname.c: Likewise.
12841         * lib/glthread/thread.h: Likewise.
12842         * lib/intprops.h: Likewise.
12843         * lib/mbsrtowcs-state.c: Likewise.
12844         * lib/safe-read.c: Likewise.
12845         * lib/signal.in.h: Likewise.
12846         * lib/stat.c: Likewise.
12847         * lib/stdbool.in.h: Likewise.
12848         * lib/stdio-impl.h: Likewise.
12849         * lib/stdio.in.h: Likewise.
12850         * lib/sysexits.in.h: Likewise.
12851         * lib/timespec.h: Likewise.
12852         * lib/wcsrtombs-state.c: Likewise.
12853         * m4/alloca.m4: Likewise.
12854         * m4/extern-inline.m4: Likewise.
12855         * m4/fstatat.m4: Likewise.
12856         * m4/gnulib-common.m4: Likewise.
12857         * m4/lib-ignore.m4: Likewise.
12858         * m4/printf.m4: Likewise.
12859         * m4/regex.m4: Likewise.
12860         * m4/stat-size.m4: Likewise.
12861         * m4/std-gnu11.m4: Likewise.
12862         * m4/stdbool.m4: Likewise.
12863         * m4/sys_types_h.m4: Likewise.
12864         * m4/threadlib.m4: Likewise.
12865         * m4/vararrays.m4: Likewise.
12866         * pygnulib/GLImport.py: Likewise.
12867         * tests/test-exp.h: Likewise.
12868         * tests/test-exp2.h: Likewise.
12869         * tests/test-expm1.h: Likewise.
12870         * tests/test-fflush2.c: Likewise.
12871         * tests/test-getopt_long.h: Likewise.
12872         * tests/test-intprops.c: Likewise.
12873         * tests/test-log.h: Likewise.
12874         * tests/test-log10.h: Likewise.
12875         * tests/test-log1p.h: Likewise.
12876         * tests/test-log2.h: Likewise.
12877         * tests/test-printf-posix.h: Likewise.
12878         * tests/test-regex.c: Likewise.
12879         * tests/test-snprintf-posix.h: Likewise.
12880         * tests/test-sprintf-posix.h: Likewise.
12881         * tests/test-stdalign.c: Likewise.
12882         * tests/test-stdbool.c: Likewise.
12883         * tests/test-vasnprintf-posix.c: Likewise.
12884         * tests/test-vasprintf-posix.c: Likewise.
12885         * top/maint.mk: Likewise.
12887 2017-11-12  Bruno Haible  <bruno@clisp.org>
12889         faccessat: Make the last change more robust.
12890         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
12891         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
12893 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
12895         faccessat: port to macOS (Bug#29231)
12896         macOS faccessat has the same bug that lstat does: if the file
12897         name ends in '/' it ignores the trailing slash.
12898         Problem reported for Emacs by Vincent Zhang.
12899         * doc/posix-functions/faccessat.texi (faccessat): Document this.
12900         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
12901         around the initial includes.  Include errno.h, string.h, sys/stat.h.
12902         (orig_faccessat) [HAVE_FACCESSAT]: New function.
12903         Include "unistd.h" after defining it.
12904         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
12905         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
12906         Handle in the usual way.
12907         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
12908         lstat dereferences symlinks, since faccessat is likely to
12909         have the same problem.
12910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
12911         * modules/faccessat (Depends-on): Add fstatat.
12912         Depend if REPLACE_FACCESSAT is 1, too.
12913         (configure.ac): Link if REPLACE_FACCESSAT is 1.
12914         * modules/faccessat-tests (Depends-on): Add symlink.
12915         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
12916         * tests/test-faccessat.c (main): Test for the bug.
12918 2017-11-11  Bruno Haible  <bruno@clisp.org>
12920         getprogname: Fix compilation error on IRIX.
12921         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
12922         'namesize'.
12924 2017-11-11  Bruno Haible  <bruno@clisp.org>
12926         year2038: Tweak last patch.
12927         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
12929 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
12931         year2038: be more insistent about 64-bit time_t
12932         Applications requiring access to arbitrary files should not be
12933         built with 32-bit time_t on hosts that have 64-bit timestamps,
12934         as this can lead to real trouble at runtime.
12935         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
12936         Check on all systems, not just MinGW.  Use a heuristic involving
12937         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
12938         output a failure or just a warning, to make it more likely that
12939         builders will select 64-bit time_t.
12941 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
12943         havelib: fix typo in previous change
12944         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
12946         Don’t use AC_EGREP_CPP if affected by CFLAGS
12947         * m4/float_h.m4 (gl_FLOAT_H):
12948         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
12949         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
12950         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
12951         * m4/year2038.m4 (gl_YEAR2038):
12952         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
12953         likely to be affected by the choice of CFLAGS, since CFLAGS are
12954         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
12955         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
12957         fstatat: pacify GCC on unusual platform
12958         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
12959         Omit, as it’s unused in this case.
12961 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
12963         timespec: prefer ‘assume’ to ‘assure’
12964         This avoids some runtime tests.  The rest of the module makes
12965         similar assumptions and there is little point to testing here.
12966         * lib/timespec.h: Include verify.h instead of assure.h.
12967         (timespec_cmp): Use ‘assume’, not ‘assure’.
12968         Also, remove an unnecessary cast to ‘int’, as lots of other
12969         code in this module now causes -Wconversion to complain, and
12970         this is a problem with -Wconversion not with the code.
12972         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
12974         Port recent gnulib-tool change to Dash
12975         * gnulib-tool (func_create_testdir): Don't assume that the shell
12976         retokenizes after expanding "$@" inside the call to
12977         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
12979 2017-10-27  Jim Meyering  <meyering@fb.com>
12981         timespec.h: use "assure" to avoid a spurious warning
12982         * lib/timespec.h: Include "assure.h" and use it to help
12983         gcc7's -Wstrict-overflow avoid a false positive warning
12984         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
12985         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
12986         * modules/timespec (Depends-on): Add assure.
12988 2017-10-29  Bruno Haible  <bruno@clisp.org>
12990         Avoid several test failures with traditional locales on Haiku.
12991         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
12992         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
12993         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
12994         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
12995         LOCALE_ZH_CN=none.
12997 2017-10-29  Bruno Haible  <bruno@clisp.org>
12999         strerror_r-posix: Fix behaviour and test failure on Haiku.
13000         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
13001         are positive. Work around return value 0 instead of ERANGE on Haiku.
13002         For unknown error numbers, use a format string consistent with perror().
13003         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
13004         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
13005         are positive.
13007 2017-10-29  Bruno Haible  <bruno@clisp.org>
13009         get-rusage-data: Avoid crash on Haiku.
13010         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
13012 2017-10-29  Bruno Haible  <bruno@clisp.org>
13014         get-rusage-as: Avoid crash on Haiku.
13015         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
13017 2017-10-29  Bruno Haible  <bruno@clisp.org>
13019         ilogbl: Ensure replacement on Haiku.
13020         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
13021         REPLACE_ILOGBL if ilogbl does not work.
13022         (gl_FUNC_ILOGBL_WORKS): New macro.
13023         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
13024         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
13025         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
13026         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
13027         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
13029 2017-10-29  Bruno Haible  <bruno@clisp.org>
13031         expl: Ensure replacement on Haiku.
13032         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
13033         zero.
13034         * doc/posix-functions/expl.texi: Mention the Haiku problem.
13036 2017-10-29  Bruno Haible  <bruno@clisp.org>
13038         math: Fix test failure on Haiku.
13039         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
13040         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
13041         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
13042         * doc/posix-headers/math.texi: Mention the Haiku problem.
13044 2017-10-29  Bruno Haible  <bruno@clisp.org>
13046         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
13047         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
13048         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
13050 2017-10-29  Bruno Haible  <bruno@clisp.org>
13052         crypto/*: Verify that the header file is self-contained.
13053         * tests/test-gc-*.c: Include the module's header file immediately after
13054         <config.h>.
13055         * tests/test-hmac-*.c: Likewise.
13056         * tests/test-arcfour.c: Likewise.
13057         * tests/test-arctwo.c: Likewise.
13058         * tests/test-des.c: Likewise.
13059         * tests/test-md2.c: Likewise.
13060         * tests/test-md4.c: Likewise.
13061         * tests/test-md5.c: Likewise.
13062         * tests/test-rijndael.c: Likewise.
13063         * tests/test-sha1.c: Likewise.
13064         * tests/test-sm3.c: Likewise.
13066 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
13067             Bruno Haible  <bruno@clisp.org>
13069         crypto/gc: fix build failure with -Werror=suggest-attribute=const
13070         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
13072 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
13074         New module: crypto/gc-sm3
13075         * lib/gc.h: Declare SM3-related stuffs.
13076         * lib/gc-gnulib.c: Support sm3 in internal functions.
13077         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
13078         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
13079         * modules/crypto/gc-sm3: Define gc-sm3 module.
13080         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
13081         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
13082         * MODULES.html.sh: List gc-sm3 module.
13084 2017-10-29  Bruno Haible  <bruno@clisp.org>
13086         random, random_r: Mention different prototypes on Haiku.
13087         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
13088         * doc/glibc-functions/random_r.texi: Likewise.
13089         * doc/glibc-functions/initstate_r.texi: Likewise.
13090         * doc/glibc-functions/setstate_r.texi: Likewise.
13092 2017-10-28  Bruno Haible  <bruno@clisp.org>
13094         posix_spawn: Avoid spurious message in configure output.
13095         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
13096         'cmp' command.
13098 2017-10-28  Bruno Haible  <bruno@clisp.org>
13100         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
13101         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
13102         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13104 2017-10-28  Bruno Haible  <bruno@clisp.org>
13106         ioctl: Override non-POSIX declaration on Haiku.
13107         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
13108         * lib/sys_ioctl.in.h: Add comment about Haiku.
13109         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
13110         * doc/glibc-headers/sys_ioctl.texi: Likewise.
13112 2017-10-28  Bruno Haible  <bruno@clisp.org>
13114         crypto/sm3: Add overview documentation to the .h file.
13115         * lib/sm3.h: Add comments.
13117 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
13119         New module: crypto/sm3
13120         This new module can be used to compute SM3 message digest of files or
13121         memory blocks according to the specification GM/T 004-2012
13122         Cryptographic Hash Algorithm SM3, published by State Cryptography
13123         Administration, China.
13124         The official SM3 cryptographic hash algorithm specification is
13125         available at
13126         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
13127         * lib/sm3.h: Declare the APIs of sm3 module.
13128         * lib/sm3.c: Implement SM3 hash algorithm.
13129         * m4/sm3.m4: m4 file for sm3 module.
13130         * modules/crypto/sm3: Define sm3 module.
13131         * tests/test-sm3.c: Implement SM3 test case.
13132         * modules/crypto/sm3-tests: Define sm3 test module.
13133         * MODULES.html.sh: List sm3 module.
13135 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
13137         gc-libgcrypt: fix undefined enum type in switch statement
13138         Resolve the following build failure:
13139         lib/gc-libgcrypt.c: In function 'gc_hash_open':
13140         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
13141         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
13142              case 0:
13143              ^~~~
13144         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
13145         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
13147 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
13149         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
13150         Resolve the following build failure:
13151         lib/gc-libgcrypt.c: In function 'gc_hash_read':
13152         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
13153         in signedness [-Werror=pointer-sign]
13154             digest = gcry_md_read (ctx->gch, 0);
13155                    ^
13156         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
13158 2017-10-26  Bruno Haible  <bruno@clisp.org>
13160         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
13161         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
13162         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
13164 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
13166         glob: fix another heap buffer overflow
13167         Problem reported by Tim Rühsen in:
13168         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
13169         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
13171 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
13173         quotearg: pacify compiler re unsigned
13174         * lib/quotearg.c (quotearg_n_options):
13175         Rewrite to avoid diagnostic from overly-picky compiler.
13176         Problem reported by Sami Kerola in:
13177         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
13179         glob: fix heap buffer overflow
13180         * lib/glob.c (glob): Fix off-by-one error introduced into
13181         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
13182         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
13183         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
13184         Fix suggested by Bruno Haible.
13186 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13188         glob: pacify fuzzer for mempcpy
13189         Problem reported by Tim Rühsen in:
13190         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
13191         * lib/glob.c (glob): Do not pass NULL to mempcpy.
13193 2017-10-12  Bruno Haible  <bruno@clisp.org>
13195         doc: Fix syntax error (regression from 2017-10-03).
13196         * doc/posix-functions/strncpy.texi: Fix syntax error.
13198 2017-10-12  Bruno Haible  <bruno@clisp.org>
13200         doc: Update for Solaris 11.3.
13201         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
13202         mention Solaris 11.3.
13203         * m4/log2.m4: Fix comments.
13204         * m4/log2f.m4: Likewise.
13205         * m4/printf.m4: Update comments.
13206         * m4/rename.m4: Likewise.
13207         * m4/strncat.m4: Likewise.
13209         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
13211 2017-10-10  Bruno Haible  <bruno@clisp.org>
13213         doc: Improve doc about ioctl.
13214         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
13215         prototype.
13217 2017-10-09  Bruno Haible  <bruno@clisp.org>
13219         wcwidth: Don't use obsolete syntax of 'test'.
13220         Reported by Eric Blake.
13221         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
13222         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
13224 2017-10-09  Bruno Haible  <bruno@clisp.org>
13226         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
13227         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
13228         and Daniel P. Berrange <berrange@redhat.com>.
13229         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
13230         on glibc systems. The getopt-pfx-core.h file declares exactly what
13231         unistd.h needs, nothing more.
13233 2017-10-08  Bruno Haible  <bruno@clisp.org>
13235         vma-iter: Improve support for FreeBSD.
13236         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
13237         vma_iterate.
13238         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
13240 2017-10-08  Bruno Haible  <bruno@clisp.org>
13242         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
13243         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
13245 2017-10-07  KO Myung-Hun  <komh@chollian.net>
13247         test-framework-sh: Fix 'invalid path dir' error.
13248         On OS/2, a path separator is ';' not ':'. And ':' is used as a
13249         separator between a drive letter and directory parts.
13250         As a result, an absolute path such as x:/path/to/dir on OS/2 is
13251         treated as an invalid path dir.
13252         * tests/init.sh (PATH_SEPARATOR): Set at startup.
13253         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
13254         instead of hard coded ':'.
13256 2017-10-07  Bruno Haible  <bruno@clisp.org>
13258         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
13259         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
13260         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
13261         (rof_open): On Linux, do multiple read() calls and make sure
13262         MIN_LEFTOVER bytes are left when read() returns.
13264 2017-10-07  Bruno Haible  <bruno@clisp.org>
13266         vma-iter: Improve support for GNU/Hurd.
13267         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
13268         API, not the /proc file system.
13270 2017-10-07  Bruno Haible  <bruno@clisp.org>
13272         test-framework-sh: Don't require bash on Windows and OS/2.
13273         Reported by KO Myung-Hun.
13274         * tests/test-init.sh: Use 'shopt' only when running in bash.
13276 2017-10-06  KO Myung-Hun  <komh@chollian.net>
13278         wcwidth: check a macro version of wcwidth () as well
13279         * lib/wchar.in.h: Revert commit from 2016-01-14.
13280         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
13282 2017-10-06  Bruno Haible  <bruno@clisp.org>
13284         getopt-posix: Clarify copyright header.
13285         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
13286         * lib/getopt-pfx-core.h: Likewise.
13287         * lib/getopt-pfx-ext.h: Likewise.
13288         * lib/getopt-cdefs.in.h: Likewise.
13290 2017-10-03  Bruno Haible  <bruno@clisp.org>
13292         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
13293         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
13294         gl_HOST_CPU_C_ABI.
13296 2017-10-03  Bruno Haible  <bruno@clisp.org>
13298         doc: warn about misuse of strncpy and wcsncpy.
13299         * doc/posix-functions/strcpy.texi: Describe requirements on prior
13300         memory allocation.
13301         * doc/posix-functions/wcscpy.texi: Likewise.
13302         * doc/posix-functions/strncpy.texi: Describe what this function is not
13303         useful for.
13304         * doc/posix-functions/wcsncpy.texi: Likewise.
13306 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
13308         fsuage: fix typo in previous change
13309         * lib/fsusage.c: Remove stray include of full-read.h.
13310         Problem reported by Sam Steingold for macOS (Bug#28669).
13312 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
13314         fsusage: remove SVR2 support
13315         SVR2 was obsolete by 1986 and is no longer supported by anybody,
13316         and its code was getting in the way of use of this module by
13317         Emacs, which has its own ‘read’ function anyway.
13318         * lib/fsusage.c: Do not include sys/filsys.h.
13319         (get_fs_usage): Remove SVR2-specific code.
13320         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
13321         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
13322         * modules/fsusage (Depends-on): Do not depend on full-read.
13324         Simplify autoupdate of licenses
13325         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
13326         place.
13328 2017-10-01  Bruno Haible  <bruno@clisp.org>
13330         vma-iter: Add support for GNU/Hurd.
13331         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
13332         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
13334 2017-09-30  Bruno Haible  <bruno@clisp.org>
13336         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
13337         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
13338         fail when module 'largefile' is in use.
13339         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
13340         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
13341         Don't test HAVE_SYS_PROCFS_H.
13343 2017-09-30  Bruno Haible  <bruno@clisp.org>
13345         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
13346         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
13347         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
13348         * modules/havelib (Depends-on): Add host-cpu-c-abi.
13350 2017-09-30  Bruno Haible  <bruno@clisp.org>
13352         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
13353         * lib/uniname/uniname.c (unicode_name_character): Add braces around
13354         scope of local variables.
13356 2017-09-28  Bruno Haible  <bruno@clisp.org>
13358         string: code style
13359         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
13360         substitutable variables.
13361         * modules/string (Makefile.am): Likewise.
13363 2017-09-26  Bruno Haible  <bruno@clisp.org>
13365         uniname/uniname-tests: Tighten code.
13366         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
13367         local variables into one.
13369 2017-09-26  Bruno Haible  <bruno@clisp.org>
13371         vma-iter: Improvements for Linux and BSD platforms.
13372         - Add support for DragonFly BSD.
13373         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
13374         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
13375         Read the entire file into memory in a single system call.
13376         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
13377         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
13379 2017-09-26  Bruno Haible  <bruno@clisp.org>
13381         vma-iter: Provide the protection flags on FreeBSD.
13382         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
13383         skip three fields between the addresses and the protection flags.
13385 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13387         glob: remove bogus extern decl
13388         * lib/glob.c (__glob_pattern_type): Remove now-spurious
13389         extern declaration.  Problem reported by Adhemerval Zanella in:
13390         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
13392 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13394         uniname/uniname-tests: integer overflow fix
13395         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
13396         Check for integer overflow.
13398         duplocale-tests: fix unlikely crash
13399         * tests/test-duplocale.c (get_locale_dependent_values):
13400         Don’t crash with absurdly long month names.
13402         maint: fix overflow checking in nap.h
13403         * modules/chown-tests:
13404         * modules/fchownat-tests, modules/fdutimensat-tests:
13405         * modules/futimens-tests, modules/lchown-tests:
13406         * modules/stat-time-tests, modules/utime-tests:
13407         * modules/utimens-tests, modules/utimensat-tests:
13408         Depend on intprops.
13409         * tests/nap.h: Include intprops.h.
13410         (diff_timespec): Handle overflow properly.
13412         sys_types: update URL
13413         * m4/sys_types_h.m4: Use https: URL.
13415         parse-datetime: fix dependency
13416         * modules/parse-datetime (Depends-on): Depend
13417         on nstrftime, not strftime.
13419         parse-datetime, posixtm: avoid uninit access
13420         * lib/parse-datetime.y (parse_datetime2):
13421         * lib/posixtm.c (posixtime):
13422         Do not access uninitialized storage, even though the resulting
13423         value is never used.
13425 2017-09-25  Bruno Haible  <bruno@clisp.org>
13427         vma-iter: Improvements for BSD platforms.
13428         - Add support for GNU/kFreeBSD.
13429         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
13430         - Speed up on OpenBSD.
13431         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
13432         (vma_iterate_bsd): New function.
13433         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
13434         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
13435         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
13436         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
13438 2017-09-23  Bruno Haible  <bruno@clisp.org>
13440         strfmon_l: New module.
13441         * modules/strfmon_l: New file.
13442         * lib/strfmon_l.c: New file.
13443         * m4/strfmon_l.m4: New file.
13444         * doc/posix-functions/strfmon_l.texi: Mention the new module.
13445         * modules/strfmon_l-tests: New file.
13446         * tests/test-strfmon_l.c: New file.
13448         monetary: New module.
13449         * modules/monetary: New file.
13450         * lib/monetary.in.h: New file.
13451         * m4/monetary_h.m4: New file.
13452         * doc/posix-headers/monetary.texi: Mention the new module.
13453         * modules/monetary-tests: New file.
13454         * tests/test-monetary.c: New file.
13455         * modules/monetary-c++-tests: New file.
13456         * tests/test-monetary-c++.cc: New file.
13457         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
13459 2017-09-23  Bruno Haible  <bruno@clisp.org>
13461         duplocale tests: Fix test crash on Linux/x86.
13462         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
13463         locale from the current thread before freeing it.
13465 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
13467         mktime: port to OpenVMS
13468         Problem reported by John E. Malmberg in:
13469         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
13470         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
13472 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
13474         manywarnings: port to GCC on 64-bit MS-Windows
13475         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
13476         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
13477         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
13479 2017-09-13  Bruno Haible  <bruno@clisp.org>
13481         all: Replace many more http URLs by https URLs. Update stale URLs.
13482         * users.txt: Remove mention of 'newts'.
13483         * lib/localename.c: Update comment about LANG_SOTHO.
13485 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13487         all: Replace many http URLs by https URLs.
13489 2017-09-12  Bruno Haible  <bruno@clisp.org>
13491         doc: Prefer https URLs where possible.
13492         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
13493         * doc/ld-output-def.texi: Remove unavailable URL.
13495 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
13497         maintainer-makefile: FTP -> HTTPS
13498         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
13499         of FTP, which is planned to be decommissioned on 2017-11-01.
13501 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
13503         libc-config: Fix __GNUC_PREREQ macro.
13504         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
13505         __GNUC_MINOR.
13507 2017-09-09  Bruno Haible  <bruno@clisp.org>
13509         gnulib-tool: Simplify commit from 2015-08-20.
13510         * gnulib-tool (func_add_or_update): Remove local variable
13511         is_binary_file.
13513 2017-09-08  Bruno Haible  <bruno@clisp.org>
13515         stddef: Avoid conflict with system-defined max_align_t.
13516         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
13517         Reported by Werner Lemberg <wl@gnu.org> in
13518         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
13519         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
13520         (max_align_t): Define as a macro.
13521         (GNULIB_defined_max_align_t): New macro. Guards against multiple
13522         definitions of rpl_max_align_t in different copies of gnulib-generated
13523         <stddef.h>.
13525 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
13527         libc-config: port to MSVC
13528         Problems reported by Gisle Vanem in:
13529         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
13530         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
13531         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
13532         * m4/__inline.m4: New file.
13533         * modules/libc-config (Files): Add it.
13534         (Depends-on): Use it.
13536         glob: Use enum for __glob_pattern_type result
13537         From a patch proposed by Adhemerval Zanella in:
13538         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
13539         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
13540         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
13541         * lib/glob_internal.h (__glob_pattern_type):
13542         * lib/glob.c (glob):
13543         * lib/glob_pattern_p.c (__glob_pattern_p):
13544         Use them.
13546         glob: fix for use in glibc
13547         Problem reported by Adhemerval Zanella in:
13548         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
13549         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
13550         Do not redefine if _LIBC.
13552 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13554         glob: fix bugs with long login names
13555         Problem reported by Adhemerval Zanella in:
13556         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
13557         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
13558         (glob): Use the same scratch buffer for both getlogin_r and
13559         getpwnam_r.  Don’t require preallocation of the login name.  This
13560         simplifies storage allocation, and corrects the handling of
13561         long login names.
13563 2017-09-02  Bruno Haible  <bruno@clisp.org>
13565         dirent: Update doc.
13566         * doc/posix-headers/dirent.texi: More concrete list of platforms.
13568 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13570         glob: fix getpwnam_r errno typo
13571         * lib/glob.c (glob): Fix longstanding misuse of errno after
13572         getpwnam_r, which returns an error number rather than setting
13573         errno.
13575         glob: fix typo in recent change
13576         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
13577         Fix recently-introduced typo.
13579 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13581         glob: don't save and restore errno unnecessarily
13582         * lib/glob.c (glob): Don't save and restore errno
13583         merely because we have getpwnam_r.
13585         glob: don't assume getpwnam_r
13586         * lib/glob.c (glob): Port recent patches to platforms
13587         lacking getpwnam_r.
13589         scratch_buffer: don’t use private glibc API
13590         Suggested by Florian Weimer in:
13591         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
13592         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
13593         * lib/scratch_buffer_grow.c: Rename to
13594         lib/malloc/scratch_buffer_grow.c.
13595         * lib/scratch_buffer_grow_preserve.c: Rename to
13596         lib/malloc/scratch_buffer_grow_preserve.c.
13597         * lib/scratch_buffer_set_array_size.c: Rename to
13598         lib/malloc/scratch_buffer_set_array_size.c.
13599         * lib/scratch_buffer.h: New file.
13600         * modules/scratch_buffer (Files, Makefile.am):
13601         Adjust to source-file renaming.
13603 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13605         glob: use scratch_buffer instead of extend_alloca
13606         Much of the lib/glob.c part of this patch comes from a glibc patch
13607         proposed by Adhemerval Zanella in:
13608         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
13609         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
13610         included via glob.h, does this for us now.
13611         (__set_errno): Remove, as libc-config does this for us now.
13612         Include <scratch_buffer.h>.
13613         (GETPW_R_SIZE_MAX): Remove.
13614         (glob): Use struct scratch_buffer instead of extend_alloca.
13615         * lib/glob.in.h: Include libc-config.h rather than
13616         including <sys/cdefs.h> conditionally.
13617         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
13618         (__glibc_unlikely, __restrict, weak_alias):
13619         Remove, as libc-config does this for us now.
13620         * m4/glob.m4 (gl_PREREQ_GLOB):
13621         Remove sys/cdefs.h tests; no longer needed.
13622         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
13623         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
13625         scratch_buffer: new module
13626         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
13627         * lib/scratch_buffer_grow_preserve.c:
13628         * lib/scratch_buffer_set_array_size.c:
13629         New files, copied from glibc with very minor changes that can be
13630         copied back.
13631         * modules/scratch_buffer: New file.
13633         libc-config: new module
13634         * MODULES.html.sh: Add libc-config.
13635         * lib/cdefs.h: New file, copied from the GNU C Library with very
13636         minor changes that can be copied back.
13637         * lib/libc-config.h, modules/libc-config: New files.
13639 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
13641         glob: match dangling symlinks
13642         This fixes a bug I inadvertently introduced to Gnulib when I
13643         merged glibc glob back into gnulib on 2007-10-16.  This fix is
13644         inspired by a patch proposed for glibc by Adhemerval Zanella in:
13645         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
13646         * doc/posix-functions/glob.texi: Update list of affected platforms.
13647         * lib/glob.c (__lstat64): New macro.
13648         (is_dir): New function.
13649         (glob, glob_in_dir): Match symlinks even if they are dangling.
13650         (link_stat, link_exists_p): Remove.  All uses removed.
13651         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
13652         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
13653         * modules/glob-tests (Depends-on): Add symlink.
13654         * tests/test-glob.c: Include errno.h, unistd.h.
13655         (BASE): New macro.
13656         (main): Test dangling symlinks, if symlinks are supported.
13658         glob, backupfile: inode 0 is a valid inode number
13659         * doc/posix-functions/readdir.texi (readdir):
13660         * doc/posix-headers/dirent.texi (dirent.h):
13661         Document more readdir portability issues.
13662         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
13663         (numbered_backup): Don’t treat inode 0 any differently from
13664         other inode values.
13665         * lib/glob.c (struct readdir_result): Remove skip_entry member.
13666         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
13667         All uses removed.
13668         * modules/glob (Depends-on): Remove d-ino.
13670         glob: simplify symlink detection
13671         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
13672         uint8_t, as C99 does not require uint8_t.
13673         (struct readdir_result): Use it.  Do not define skip_entry unless
13674         it is needed; this saves a byte on platforms lacking d_ino.
13675         (readdir_result_type, readdir_result_skip_entry):
13676         New functions, replacing ...
13677         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
13678         ... these functions, which were removed.  This makes the callers
13679         easier to read.  All callers changed.
13680         (D_INO_TO_RESULT): Now empty if there is no d_ino.
13682 2017-08-30  Pádraig Brady  <P@draigBrady.com>
13684         fts-tests: tag as a longrunning-test so not included by default
13685         * modules/fts-tests: This test takes about 20s on current systems,
13686         and uses about 285M of space on ext4.
13688 2017-08-30  Pádraig Brady  <P@draigBrady.com>
13690         renameat2: fix compilation on alpine linux
13691         * m4/renameat.m4: Check for <linux/fs.h> presence.
13692         * lib/renameat2.h: Only include <linux/fs.h> if present.
13693         Reported by Assaf Gordon on Alpine Linux.
13695 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13697         glob: try to port recent changes to MS-Windows
13698         Problem reported by Bruno Haible in:
13699         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
13700         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
13701         * lib/glob.in.h (__glob_pattern_p): ... to here.
13703 2017-08-24  Eric Blake  <eblake@redhat.com>
13705         warnings: fix compilation with old autoconf
13706         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
13707         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
13708         AC_DEFUN.
13709         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
13710         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
13712 2017-08-24  Bruno Haible  <bruno@clisp.org>
13714         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
13715         * modules/glob (Depends-on): Add c99.
13717 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13719         glob: fix typo that broke platforms lacking d_ino
13720         This typo also hurt performance on GNU/Linux and similar hosts.
13721         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
13722         in previous change.
13724 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13726         glob: merge from glibc with Zanella glob changes
13727         Merge glob from glibc, with changes for glob proposed
13728         by Adhemerval Zanella in the thread starting here:
13729         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
13730         plus some fixes for this merge.
13731         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
13732         New files, ported from glibc.
13733         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
13734         with __restrict.
13735         (__size_t): Remove.  All uses replaced by size_t.
13736         (size_t): Define by defining __need_size_t and including <stddef.h>.
13737         This should work even in non-glibc platforms, where any name
13738         pollution is OK.
13739         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
13740         (struct stat64): Don’t worry about __GLOB_GNULIB.
13741         (glob, globfree, glob_pattern_p): Remove macros for
13742         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
13743         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
13744         but set errno.
13745         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
13746         removed since the glibc behavior works on null pointers.
13747         Do not include stdio.h; old SunOS is irrelevant now.
13748         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
13749         Include glob_internal.h.
13750         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
13751         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
13752         worked only coincidentally.
13753         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
13754         Remove macros; now done in glob.in.h.
13755         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
13756         (glob): Properly initialize glob structure with
13757         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
13758         Remove old code using SHELL since Bash no longer
13759         uses this.
13760         (glob, prefix_array): Separate MS code better.
13761         (glob, glob_in_dir): Use C99 decls before statements when glibc
13762         does.
13763         (glob_in_dir): Remove old Amiga and VMS code.
13764         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
13765         separate files.
13766         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
13767         (__glibc_unlikely):
13768         Move here from glob.c.
13769         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
13770         (weak_alias): New macro.
13771         (__size_t): Remove.  All uses replaced by size_t.
13772         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
13773         * modules/glob (Files): Add +lib/glob_internal.h,
13774         lib/glob_pattern_p.c, lib/globfree.c.
13775         (Depends-on): Remove snippet/arg-nonnull.
13777 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
13779         glob: port to clang's Undefined Sanitizer
13780         Problem reported by Tim Rühsen in:
13781         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
13782         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
13783         (glob_in_dir): Do not rely on undefined behavior in accessing
13784         struct members beyond their bounds.  Use a flexible array member
13785         instead.
13787 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
13789         vc-list-files: port to Solaris 10
13790         * build-aux/vc-list-files: Don't assume test -e works.
13792 2017-08-21  Karl Berry  <karl@freefriends.org>
13794         * doc/posix-functions/srandom.texi (srandom): typo }.
13796 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
13798         git-version-gen: port to Solaris 10
13799         Problem reported by Dagobert Michelsen in:
13800         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
13801         * build-aux/git-version-gen (v_from_git):
13802         Use expr instead of shell substitution.
13804 2017-08-19  Bruno Haible  <bruno@clisp.org>
13806         host-cpu-c-abi: Improve detection of MIPS ABI.
13807         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
13808         _MIPS_SIM.
13810 2017-08-17  Bruno Haible  <bruno@clisp.org>
13812         hypot tests: Fix test failure on FreeBSD 11.0/x86.
13813         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
13815 2017-08-17  Bruno Haible  <bruno@clisp.org>
13817         float: Fix LDBL_MIN value on FreeBSD/x86.
13818         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
13820 2017-08-17  Bruno Haible  <bruno@clisp.org>
13822         random: Fix test compilation failure on Cygwin 1.5.25.
13823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
13824         HAVE_DECL_SETSTATE.
13825         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
13826         declared.
13827         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
13828         HAVE_DECL_SETSTATE.
13829         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
13830         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
13831         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
13832         * doc/posix-functions/random.texi: Likewise.
13833         * doc/posix-functions/setstate.texi: Likewise.
13834         * doc/posix-functions/srandom.texi: Likewise.
13836 2017-08-16  Bruno Haible  <bruno@clisp.org>
13838         stdnoreturn: Fix test compilation failure on Cygwin.
13839         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
13840         <stdnoreturn.h> replacement.
13841         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
13842         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
13844 2017-08-16  Bruno Haible  <bruno@clisp.org>
13846         thread: Fix conflict with pthread_sigmask module.
13847         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
13848         it's defined as a macro.
13849         * modules/thread (Depends-on): Add pthread_sigmask.
13851 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
13853         rename: port better to NetBSD
13854         * doc/posix-functions/rename.texi (rename): NetBSD 7
13855         does not have the link-count bug.
13856         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
13857         broken merely because rename ("a", "b") removes "a" when the two
13858         names are hard links to the same file.
13860 2017-08-16  Bruno Haible  <bruno@clisp.org>
13862         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
13863         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
13864         the target file names with '$(srcdir)/'.
13865         * modules/unicase/locale-language (Makefile.am): Likewise.
13866         * modules/unicase/special-casing (Makefile.am): Likewise.
13867         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
13868         * modules/unictype/category-byname (Makefile.am): Likewise.
13869         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
13870         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
13871         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
13872         * modules/unictype/property-byname (Makefile.am): Likewise.
13873         * modules/unictype/scripts (Makefile.am): Likewise.
13874         * modules/uninorm/composition (Makefile.am): Likewise.
13876 2017-08-16  Bruno Haible  <bruno@clisp.org>
13878         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
13879         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
13880         value for OpenBSD.
13882 2017-08-16  Bruno Haible  <bruno@clisp.org>
13884         rename, renameat: Update doc regarding NetBSD.
13885         * doc/posix-functions/rename.texi: Clarify that when using
13886         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
13887         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
13888         version.
13890 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
13892         renameat2: port better to macOS
13893         * lib/renameat2.c (renameat2): Use renameatx_np if available.
13895         futimens: don’t assume struct timespec layout
13896         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
13897         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
13898         * tests/test-fdutimensat.c (main):
13899         * tests/test-futimens.h (test_futimens):
13900         * tests/test-lutimens.h (test_lutimens):
13901         * tests/test-utimens.h (test_utimens):
13902         * tests/test-utimensat.c (main):
13903         Don’t assume that struct timespec is a two-member structure in
13904         tv_sec, tv_nsec order.  Although this is true on all platforms we
13905         know about, POSIX does not guarantee it.
13907         rename: document+test NetBSD rename
13908         Test failure reported by Bruno Haible in:
13909         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
13910         This is an area where NetBSD is better-behaved than POSIX,
13911         so allow the NetBSD behavior in tests.
13912         * doc/posix-functions/rename.texi:
13913         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
13914         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
13916 2017-08-15  Bruno Haible  <bruno@clisp.org>
13918         renameat: Ensure declaration in <stdio.h> on NetBSD.
13919         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
13920         * doc/posix-functions/renameat.texi: Mention this problem.
13922 2017-08-15  Bruno Haible  <bruno@clisp.org>
13924         duplocale: Work around NetBSD 7.0 bug.
13925         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
13926         * lib/duplocale.c: Add comment about NetBSD problem.
13927         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
13929 2017-08-15  Bruno Haible  <bruno@clisp.org>
13931         duplocale tests: Verify use with *_l functions.
13932         * modules/duplocale-tests (configure.ac): Test for uselocale and
13933         some *_l functions.
13934         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
13935         from main.
13936         (get_locale_dependent_values_from, test_with_locale_parameter): New
13937         functions.
13938         (main): Test both test_with_uselocale and test_with_locale_parameter.
13940 2017-08-15  Bruno Haible  <bruno@clisp.org>
13942         extensions: Enable NetBSD specific extensions.
13943         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
13945 2017-08-14  Bruno Haible  <bruno@clisp.org>
13947         open, openat: Update doc about O_CLOEXEC.
13948         * doc/posix-functions/open.texi: More concrete list of platforms.
13949         * doc/posix-functions/openat.texi: Likewise.
13951 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
13953         open: support O_CLOEXEC
13954         * NEWS, doc/posix-functions/open.texi:
13955         * doc/posix-functions/openat.texi: Document this.
13956         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
13957         (GNULIB_defined_O_CLOEXEC): New symbol.
13958         * lib/open.c: Include cloexec.h.
13959         (open): Support O_CLOEXEC.
13960         * lib/openat.c: Include cloexec.h.
13961         (rpl_openat): Support O_CLOEXEC.
13962         * lib/popen-safer.c: Do not include cloexec.h.
13963         (open_noinherit): Remove.
13964         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
13965         * lib/save-cwd.c: Do not include cloexec.h.
13966         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
13967         * m4/open-cloexec.m4: New file.
13968         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
13969         Replace 'open' if O_CLOEXEC is not present.
13970         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
13971         Replace 'openat' if O_CLOEXEC is not present.
13972         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
13973         * modules/open (Files): Add m4/open-cloexec.m4.
13974         (Depends-on): Depend on cloexec if replacing 'open'.
13975         * modules/openat (Files): Add m4/open-cloexec.m4.
13976         (Depends-on): Depend on cloexec if replacing openat.
13977         * modules/popen-safer (Depends-on): Remove cloexec.
13978         * modules/save-cwd (Depends-on): Remove cloexec, and add
13979         fd-safer-flag and 'open'.
13981 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
13983         reallocarray: minor fixes
13984         * doc/glibc-functions/reallocarray.texi: Update version numbers.
13985         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
13986         * modules/reallocarray (License): Change from GPL to LGPL.
13987         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
13988         Indent properly and don't use tabs.
13990 2017-08-13  Darshit Shah  <darnir@gnu.org>
13992         reallocarray: New module
13993         reallocarray is a new function in glibc 2.26 to safely allocate an array
13994         of memory locations with integer overflow protection.
13995         * MODULES.html.sh: Add reallocarray.
13996         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
13997         * lib/reallocarray.c: New file to implement module reallocarray.
13998         * lib/stdlib.in.h: Add function declarations for reallocarray.
13999         * m4/reallocarray.m4: New file.
14000         * m4/stdlib_h.m4: Declare reallocarray.
14001         * modules/reallocarray: New file.
14002         * modules/reallocarray-test: New file.
14003         * modules/stdlib: Coerce stdlib.h to export reallocarray.
14004         * tests/test-reallocarray.c: New test.
14006 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14008         dirent-safer: fix cloexec race
14009         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
14010         (opendir_safer): Use F_DUPFD_CLOEXEC.
14011         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
14012         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
14013         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
14014         instead of dup_safer.
14016         fts: fix cloexec races
14017         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
14018         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
14019         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
14020         (fd_ring_check): Set cloexec flag on new file descriptors.
14021         (fts_build, fd_ring_check): While we’re at it, make sure the
14022         resulting file descriptor is not 0, 1, or 2, since that is easy.
14024 2017-08-11  Bruno Haible  <bruno@clisp.org>
14026         fts tests: Fix link error.
14027         Reported by Tom G. Christensen in
14028         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
14029         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
14031 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14033         fts: port recent changes to CentOS 6
14034         Problem reported by Tom G. Christensen in:
14035         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
14036         * lib/fts.c (fsword): New type.
14037         (struct dev_type, filesystem_type): Use it.
14038         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
14039         Also, check for f_type only if fstatfs and sys/vfs.h work.
14041 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
14043         tempname: do not depend on secure_getenv
14044         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
14045         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
14046         * modules/tempname (Depends-on): Remove secure_getenv.
14048 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
14050         extensions: add _OPENBSD_SOURCE
14051         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
14053 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
14054             Bruno Haible  <bruno@clisp.org>
14056         manywarnings: Add support for C++.
14057         * build-aux/g++-warning.spec: New file.
14058         * m4/manywarnings-c++.m4: New file.
14059         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
14060         redirects to manywarnings-c++.m4.
14061         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
14063 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
14065         git-version-gen: another fix for tags with "-"
14066         * build-aux/git-version-gen: Improve fix for tags containing "-".
14067         Suggested by Markus Armbruster in:
14068         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
14070 2017-08-06  Bruno Haible  <bruno@clisp.org>
14072         warnings, manywarnings: Add support for multiple languages, not just C.
14073         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
14074         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
14075         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
14076         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
14077         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
14078         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
14079         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
14080         of the current language. If C++ is the current language, modify
14081         WARN_CXXFLAGS instead of WARN_CFLAGS.
14082         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
14083         gl_MANYWARN_ALL_GCC.
14084         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
14086 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
14088         git-version-gen: Fix for tags containing '-'
14090         Really old versions of git-describe (before v1.5.0, Feb 2007)
14091         don't have the number of commits in their long format output,
14092         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
14093         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
14094         recognizes both patterns, and normalizes the old format to the new one.
14096         Unfortunately, this normalization code gets confused when the tag
14097         contains '-'.  Reproducer:
14099             $ git-tag -m test v0.2-rc1
14100             $ build-aux/git-version-gen .tarball-version; echo
14101             build-aux/git-version-gen: WARNING: git rev-list failed
14102             UNKNOWN
14104         We take exact tag "v0.2-rc1" for the old format, extract the presumed
14105         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
14106         commits since tha tag.  Fails, because tag "v0.2" does not exist.
14108         * git-version-gen: We could perhaps drop support for versions from
14109         more than a decade ago.  But tightening the pattern match is easy
14110         enough, so do that.  Still breaks when you use version tags ending in
14111         something matching -g????, but you arguably get what you deserve then.
14113 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
14115         valgrind-tests: use ls, and cache
14116         * m4/valgrind-tests.m4: Test ls, not bash.
14117         Problem reported by Reuben Thomas.
14118         Also, cache the result so that it can be overridden.
14120 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
14122         manywarnings: port to 64-bit GCC builds of Emacs
14123         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
14124         object size rather than hardwiring 2147483647.  This is needed to
14125         build GNU Emacs, which has one conditional (and used
14126         only-in-theory) call to malloc with a literal greater than
14127         2147483647.
14129 2017-08-04  Bruno Haible  <bruno@clisp.org>
14131         Relax the license of some modules with no runtime code.
14132         * modules/std-gnu11 (License): Set to 'unlimited'.
14133         * modules/c99 (License): Likewise.
14134         Reported by Reuben Thomas <rrt@sc3d.org>.
14135         * modules/d-ino (License): Set to 'LGPL'.
14136         * modules/host-os (License): Likewise.
14137         * modules/longlong (License): Likewise.
14139 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
14141         renameat2: port to RHEL 7 + NFS
14142         * lib/renameat2.c (renameat2) [SYS_renameat2]:
14143         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
14144         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
14146 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
14148         renameat2: port to non-renameat platforms
14149         Problem reported for MSVC-2015 by Gisle Vanem in:
14150         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
14151         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
14152         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
14154 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
14156         manywarnings: port to 32-bit GCC bug
14157         Problem reported by Pino Toscano in:
14158         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
14159         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
14160         not 2**63 - 1, to work around the following GCC bug:
14161         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
14163 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
14165         backupfile: new function to validate backup suffix
14166         * lib/backupfile.c (set_simple_backup_suffix): New function.
14167         (backupfile_internal): Use it.
14169         canonicalize: fix EOVERFLOW commentary
14170         Problem reported by Bruno Haible in:
14171         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
14172         * lib/canonicalize.c (canonicalize_filename_mode):
14173         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
14175         Don't interpret EOVERFLOW to mean nonexistence
14176         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
14177         may be EOVERFLOW; this is likely more useful than reporting the
14178         stat errno.
14179         * lib/glob.c (link_stat): Rename from link_exists2_p and
14180         return -1/0 instead of 0/1.  Caller changed.
14181         * lib/glob.c (link_exists_p):
14182         * lib/renameat2.c (rename_noreplace, renameat2):
14183         * lib/tempname.c (try_nocreate):
14184         If errno == EOVERFLOW then the directory entry exists, so do not
14185         act as if it does not exist.
14187         backup-rename: new module
14188         It is like backupfile, except it avoids some race conditions,
14189         and it does not output to stderr or exit.
14190         * MODULES.html.sh: Add backup-rename.
14191         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
14192         * modules/backup-rename: New files.
14193         * lib/backupfile.c: Turn this into an internals file, which
14194         contains code common to backupfile and backup_rename.  Include
14195         backupfile-internal.h instead of backupfile.h.  Do not include
14196         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
14197         renameat2.h and fcntl.h.
14198         (BACKUP_NOMEM): New constant.
14199         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
14200         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
14201         (backupfile_internal): Rename from find_backup_file_name.
14202         Support new arg RENAME.
14203         (backup_args, backup_types, get_version, xget_version):
14204         Move to lib/backup-find.c.
14205         * lib/backupfile.h (backup_file_rename): New decl.
14206         * modules/backupfile (Files): Add lib/backup-internal.h,
14207         lib/backup-find.c.
14208         (Depends-on): Add dirfd, fcntl, renameat2.
14209         (lib_SOURCES): Add backup-find.c.
14211         renameat2: port better to older Solaris
14212         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
14213         Add goto to use a label, to silence picky compilers.
14215         fts-tests: port to gcc -Wwrite-strings
14216         * tests/test-fts.c (base, base_d): New static vars.
14217         (argv, remove_tree, main): Use them.
14219 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
14221         relocatable-lib{,-lgpl}: improve documentation
14222         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
14223         Various other updates.
14225 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
14226             Bruno Haible  <bruno@clisp.org>
14228         relocatable-lib{,-lgpl}: add Valgrind suppressions
14229         * lib/relocatable.valgrind: New file.
14230         * modules/relocatable-lib (Files): Add relocatable.valgrind.
14231         * modules/relocatable-lib-lgpl: Likewise.
14233 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
14235         relocatable: Make the license on the sources the GPL.
14236         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
14237         LGPL, which was a special case so that the relocatable source files
14238         could be used without gnulib-tool, to GPL. They can still be used under
14239         the LGPL, using the --lgpl option to gnulib-tool.
14241 2017-07-30  Bruno Haible  <bruno@clisp.org>
14243         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
14244         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
14245         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
14246         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
14247         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
14249 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
14251         faccessat: document AT_SYMLINK_NOFOLLOW issue
14252         * doc/posix-functions/faccessat.texi: Modernize platform list.
14253         Document AT_SYMLINK_NOFOLLOW limitation.
14255         renameat2: port to Solaris 10
14256         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
14257         with AT_SYMLINK_NOFOLLOW (which is not portable).
14258         (renameat): Undef before using, to avoid endless recursion when
14259         the replacement renameat calls renameat2 which calls the
14260         replacement renameat.
14261         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
14262         * modules/renameat2 (Depends-on): Remove faccessat.
14263         * modules/renameat-tests (test_renameat_LDADD):
14264         * modules/renameat2-tests (test_renameat2_LDADD):
14265         Remove $(LIB_EACCESS).
14267         renameat2: new module
14268         Although the Linux syscall renameat2 is not in glibc (yet?), it is
14269         useful to have access to its RENAME_NOREPLACE flag.
14270         * MODULES.html.sh (func_all_modules): Add renameat2.
14271         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
14272         * modules/renameat2-tests, tests/test-renameat2.c: New files.
14273         * lib/renameat.c (renameat): Move most of the implementation
14274         to renameat2, and just call renameat2.
14275         * modules/renameat (Files): Remove lib/at-func2.c.
14276         (Depends-on): Depend only on renameat2.
14277         (Include): Remove <fcntl.h>.
14278         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
14279         since renameat (via renameat2) might use faccessat.
14281 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
14283         vc-list-files: Adjust the script to support git worktrees
14284         * build-aux/vc-list-files: Require existence, not directory.
14286 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
14288         doc: bring MODULES.html.sh up to date
14289         Somehow a few months ago we stopped updating MODULES.html.sh.
14290         I don’t recall explicitly deciding this, so I updated it now.
14291         Alternatively I suppose we could remove it.
14292         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
14293         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
14294         truncate, utime, utime-h, windows-stat-inodes,
14295         windows-stat-override, windows-stat-timespec, year2038.  Sort.
14297 2017-07-26  Jim Meyering  <meyering@fb.com>
14299         fprintftime: fix build-break caused by recent renaming
14300         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
14301         "strftime.c".
14302         * modules/fprintftime: Depend directly on nstrftime.
14304 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
14306         regex: work with GCC7's -Werror=implicit-fallthrough=
14307         * lib/regex_internal.h (FALLTHROUGH): New macro.
14308         * lib/regcomp.c (peek_token_bracket, parse_expression):
14309         * lib/regexec.c (check_node_accept): Use it.
14311 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14313         fts: simplify fts_build
14314         * lib/fts.c (fts_build): Simplify, and be lazier about
14315         calling leaf_optimization.
14317         fts: three levels of leaf optimization
14318         * lib/fts.c (enum leaf_optimization): New type with three values.
14319         (S_MAGIC_AFS): New macro.  Sort them.
14320         (leaf_optimization): Rename from leaf_optimization_applies, and
14321         return enum leaf_optimization instead of bool.  All uses changed.
14322         Add cases for unknown type and for AFS.
14323         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
14325         fts: cache dirent_inode_sort_may_be_useful too
14326         * lib/fts.c (struct dev_type): New struct.
14327         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
14328         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
14329         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
14330         Now takes FTSENT const *, not int.  All uses changed.  Use
14331         filesystem_type to cache.
14332         (link_count_optimize_ok): Remove.  Caller changed to use
14333         leaf_optimization_applies, which now uses shared cache.
14335         fts: introduce MIN_DIR_NLINK
14336         * lib/fts.c (MIN_DIR_NLINK): New constant.
14337         Use it instead of 2, whenever we are talking about link counts.
14339         fts: nlink_t signedness fixups
14340         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
14341         so that root need not be a special case later.
14342         (fts_read): Remove now-redundant test for fts_level.
14343         Do not assume that nlink_t is signed.
14344         (fts_build): Remove useless decrement of nlinks.
14345         (fts_stat): Avoid unlikely signed integer overflow later, if
14346         nlink_t is signed.
14348         fts-tests: new module
14349         * modules/fts-tests, tests/test-fts.c: New files.
14351 2017-07-23  Bruno Haible  <bruno@clisp.org>
14353         Rename module 'strftime' to 'nstrftime'.
14354         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
14355         * lib/nstrftime.c: Renamed from lib/strftime.c.
14356         * modules/nstrftime: Renamed from modules/strftime.
14357         (Files, Makefile.am): Update.
14358         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
14359         Fix comment.
14360         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
14361         (Files, Makefile.am): Update.
14362         * modules/strftime: New file, an obsolete indirection.
14363         * doc/posix-functions/strftime.texi: Update reference.
14364         * config/srclist.txt: Update info.
14365         * NEWS: Mention the change.
14367 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
14369         malloca: Silence a warning from clang's memory sanitizer.
14370         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
14371         (freea): Use it.
14373 2017-07-18  Bruno Haible  <bruno@clisp.org>
14375         host-cpu-c-abi: Fix detection of MIPS ABI.
14376         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
14377         ABI, not the CPU instruction set.
14379 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
14381         explicit_bzero: new module
14382         The explicit_bzero function has been added to glibc.
14383         This module is intended to supports its use in GNU programs.
14384         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
14385         * m4/explicit_bzero.m4, modules/explicit_bzero:
14386         New files.
14387         * doc/gnulib.texi (Glibc string.h): Link to new doc.
14388         * lib/string.in.h (explicit_bzero): Declare.
14389         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
14390         * modules/string (string.h): Substitute its vars.
14392 2017-07-16  Bruno Haible  <bruno@clisp.org>
14394         threadlib: Support static linking.
14395         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
14396         set gl_cv_have_weak to 'no'.
14398 2017-07-16  Bruno Haible  <bruno@clisp.org>
14400         unicase/locale-language: Fix link dependencies.
14401         * modules/unicase/locale-language (Link): New section.
14402         * modules/unicase/locale-language-tests (Makefile.am): Link
14403         test-locale-language program with $(LIBTHREAD).
14405 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
14407         sys_socket: Add support for OpenVMS.
14408         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
14409         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
14411 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
14413         sys_resource: Add support for OpenVMS.
14414         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
14415         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
14417 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
14418             Bruno Haible  <bruno@clisp.org>
14420         math: Add support for OpenVMS.
14421         * lib/math.in.h [__VMS]: Include <fp.h>.
14422         * doc/posix-headers/math.texi: Mention OpenVMS issues.
14424 2017-07-15  Bruno Haible  <bruno@clisp.org>
14426         getdtablesize: Add minimal support for OpenVMS.
14427         Reported by John E. Malmberg <wb8tyw@qsl.net>.
14428         * modules/getdtablesize (Description): Fix.
14429         * lib/getdtablesize.c: Fix comment.
14430         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
14431         getdtablesize() function, even though the test fails.
14432         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
14433         limitation on OpenVMS.
14435 2017-07-13  Bruno Haible  <bruno@clisp.org>
14437         Revisit cross-compilation guesses.
14438         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
14440 2017-07-13  Bruno Haible  <bruno@clisp.org>
14442         Improve cross-compilation guesses for native Windows.
14443         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
14444         Windows.
14445         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
14446         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
14447         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14448         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
14449         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
14450         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
14451         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14452         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14453         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14454         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
14455         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14456         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
14457         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
14458         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
14459         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
14460         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
14461         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
14462         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
14463         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
14464         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
14465         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
14466         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14467         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
14468         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
14469         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
14470         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
14471         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
14472         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
14473         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14474         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
14475         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14476         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
14477         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
14478         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
14479         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
14480         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
14481         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
14482         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14483         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
14484         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14485         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14486         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14487         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
14488         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
14489         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
14490         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
14491         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
14492         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
14493         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
14494         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
14495         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
14496         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
14497         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
14498         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
14499         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
14500         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
14501         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
14502         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
14503         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
14504         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
14505         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14506         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
14507         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
14508         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
14509         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
14510         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14511         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
14512         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
14513         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
14514         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
14515         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
14516         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
14517         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14518         * m4/regex.m4 (gl_REGEX): Likewise.
14519         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
14520         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
14521         gl_FUNC_REMAINDERF_WORKS): Likewise.
14522         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
14523         gl_FUNC_REMAINDERL_WORKS): Likewise.
14524         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14525         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
14526         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14527         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14528         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14529         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14530         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14531         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14532         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
14533         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14534         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
14535         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
14536         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14537         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
14538         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
14539         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14540         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14541         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14542         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14543         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
14544         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
14545         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14546         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14547         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
14548         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14549         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14550         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14551         Likewise.
14552         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14553         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
14554         Windows. Enable also on Autoconf 2.70.
14555         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14556         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14557         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
14558         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
14559         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14560         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
14561         for native Windows.
14562         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
14563         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
14565 2017-07-13  Bruno Haible  <bruno@clisp.org>
14567         Improve cross-compilation guesses for native Windows.
14568         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
14569         Windows.
14570         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
14571         memchr.m4.
14572         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
14574 2017-07-13  Bruno Haible  <bruno@clisp.org>
14576         Improve cross-compilation guesses for native Windows.
14577         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
14578         native Windows.
14579         (gl_FUNC_FFLUSH): Update accordingly.
14580         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
14581         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
14583 2017-07-11  Bruno Haible  <bruno@clisp.org>
14585         More systematic m4 quoting and indentation.
14586         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
14587         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14588         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
14589         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14590         * m4/host-os.m4 (gl_HOST_OS): Likewise.
14591         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
14592         gl_WINSIZE_IN_PTEM): Likewise.
14593         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
14594         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
14595         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
14596         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
14597         Correct indentation.
14598         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14599         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14600         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
14601         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
14602         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
14603         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14605 2017-07-10  Bruno Haible  <bruno@clisp.org>
14607         round, roundf: Avoid compiler warning in configure test.
14608         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
14609         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14611 2017-07-10  Bruno Haible  <bruno@clisp.org>
14613         getlogin tests: Avoid #ifdefs when sharing code between modules.
14614         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
14615         * modules/getlogin-tests (Files): Likewise. Remove
14616         tests/test-getlogin_r.c.
14617         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
14618         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
14619         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
14620         getlogin().
14622 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
14624         getlogin: don’t assume one name per uid
14625         Problem reported by Wolfgang F. Muthmann (Bug#27640).
14626         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
14627         (ttyname): Remove test.
14628         * modules/getlogin_r-tests (ttyname): Remove test.
14629         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
14630         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
14631         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
14632         getlogin rather than getlogin_r.  This avoids code duplication.
14633         (main): Use isatty and fstat rather than ttyname and stat.
14634         Use getpwnam instead of getpwuid, to be portable to test platforms
14635         that have multiple login names for the same uid.
14637 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
14638             Bruno Haible  <bruno@clisp.org>
14640         glob: Fix more memory leaks.
14641         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
14642         returning.
14643         Reported by Tim Rühsen.
14645 2017-07-10  Bruno Haible  <bruno@clisp.org>
14647         Make sure $host and $host_os are defined when used.
14648         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
14649         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
14650         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
14651         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14652         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14653         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
14654         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
14655         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
14656         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14657         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
14658         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
14659         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
14660         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
14661         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
14662         m4_ifdef block.
14664 2017-07-09  Bruno Haible  <bruno@clisp.org>
14666         *printf: Fix cross-compilation guess for Solaris.
14667         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
14668         2010-12-21.
14670 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
14671             Bruno Haible  <bruno@clisp.org>
14673         vasnprintf: port to macOS 10.13
14674         Problem reported by comex in:
14675         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
14676         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
14678 2017-07-06  Bruno Haible  <bruno@clisp.org>
14680         imaxdiv tests: Fix logic.
14681         * tests/test-imaxdiv.c (main): Use == instead of =.
14682         Reported by Coverity.
14684 2017-07-06  Bruno Haible  <bruno@clisp.org>
14686         uninorm/filter: Fix use-after-free bug.
14687         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
14688         sortbuf == filter->sortbuf invariant.
14689         Reported by Coverity.
14691 2017-07-06  Bruno Haible  <bruno@clisp.org>
14693         glob: Fix more memory leaks.
14694         * lib/glob.c (glob): Free dirname before returning.
14695         Reported by Coverity and Tim Rühsen.
14697 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14699         parse-datetime: fix uninit var bug
14700         Reported by Bruno Haible in:
14701         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
14702         * lib/parse-datetime.y (parse_datetime2): Do not use
14703         uninitialized.
14705 2017-07-05  Bruno Haible  <bruno@clisp.org>
14707         doc: Update for MSVC 14.
14708         * doc/posix-headers/*.texi: Add info about MSVC 14.
14709         * doc/posix-functions/*.texi: Likewise.
14710         * doc/pastposix-functions/*.texi: Likewise.
14711         * doc/glibc-headers/*.texi: Likewise.
14712         * doc/glibc-functions/*.texi: Likewise.
14714 2017-07-05  Bruno Haible  <bruno@clisp.org>
14716         sched: Fix build failure on native Windows (regression from 2017-06-19).
14717         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
14719 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
14721         stdioext: Port to OpenVMS.
14722         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
14723         * lib/fpending.c (fpending): Remove non-working VMS specific code.
14724         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
14725         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
14726         * lib/fpurge.c (fpurge): Likewise.
14727         * lib/freadable.c (freadable): Likewise.
14728         * lib/freadahead.c (freadahead): Likewise.
14729         * lib/freading.c (freading): Likewise.
14730         * lib/freadptr.c (freadptr): Likewise.
14731         * lib/freadseek.c (freadseek): Likewise.
14732         * lib/fseeko.c (fseeko): Likewise.
14733         * lib/fseterr.c (fseterr): Likewise.
14734         * lib/fwritable.c (fwriteable): Likewise.
14735         * lib/fwriting.c (fwriting): Likewise.
14737 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
14739         glob: Declare variables at the very start of their scope.
14740         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
14741         its separate scope, so the functions will compile on Haiku.
14743 2017-07-01  Bruno Haible  <bruno@clisp.org>
14745         logbl: Work around a glibc bug on PowerPC64LE.
14746         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
14747         numbers.
14748         * doc/posix-functions/logbl.texi: Update.
14750 2017-06-29  Bruno Haible  <bruno@clisp.org>
14752         stat, fstat: Compile stat-w32.c only on platforms that need it.
14753         Suggested by Paul Eggert.
14754         * modules/stat (configure.ac): Request stat-w32.o only on native
14755         Windows.
14756         * modules/fstat (configure.ac): Likewise.
14758 2017-06-25  Bruno Haible  <bruno@clisp.org>
14760         stat: Improve last change.
14761         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
14763 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
14765         stat: port to xlc 12.01
14766         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
14767         12.01 complains "Compilation unit is empty."
14769 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
14771         xalloc-oversized: port to icc
14772         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
14773         __builtin_mul_overflow if ICC is defined, as this results in
14774         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
14775         20170213.
14777 2017-06-19  Bruno Haible  <bruno@clisp.org>
14779         classpath: Avoid including config.h twice, as it produces warnings.
14780         Reported by John E. Malmberg <wb8tyw@gmail.com>.
14781         * lib/classpath.h: Conditionalize the include of config.h.
14783 2017-06-19  Bruno Haible  <bruno@clisp.org>
14784             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
14786         sched: Fix compilation failure on OpenVMS.
14787         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
14788         test whether <pthread.h> exists and defines struct sched_param.
14789         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
14791 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
14793         diffseq: port to GCC 7 with --enable-gcc-warnings
14794         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
14795         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
14796         not complain about big_snake being defined but not used.
14798 2017-06-15  Bruno Haible  <bruno@clisp.org>
14800         gettext-h: Update theoretical condition for use of variable size arrays.
14801         Reported by Paul Eggert.
14802         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
14803         to include the theoretical condition for availability of variable size
14804         arrays, if we could trust the value of __STDC_VERSION__.
14806 2017-06-12  Bruno Haible  <bruno@clisp.org>
14808         Relicense some modules under LGPLv2+.
14809         Daiki Ueno's approval is in
14810         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
14811         * modules/uniwidth/base (License): Change to LGPLv2+.
14812         * modules/uniwidth/width (License): Likewise.
14814 2017-06-11  Bruno Haible  <bruno@clisp.org>
14816         localename: Fix test failure on DragonFly BSD.
14817         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
14818         like FreeBSD.
14820 2017-06-11  Bruno Haible  <bruno@clisp.org>
14822         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
14823         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
14824         * lib/float.in.h: Likewise.
14825         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
14827 2017-06-11  Bruno Haible  <bruno@clisp.org>
14829         gnulib-tool: Clean up after autotools.
14830         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
14831         useless directory left over by the Autotools.
14833 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
14835         getopt-posix: port to glibc 2.25.90
14836         Problem reported by Daniel P. Berrange in:
14837         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
14838         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
14839         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
14840         #undef if __GETOPT_PREFIX is defined.
14842 2017-06-11  Bruno Haible  <bruno@clisp.org>
14844         strtod-obsolete: Fix license.
14845         * modules/strtod-obsolete (License): Change to LGPL.
14847 2017-06-10  Jim Meyering  <meyering@fb.com>
14849         maint: update to work with GCC7's -Werror=implicit-fallthrough=
14850         * lib/savewd.c (FALLTHROUGH): Define.
14851         (savewd_save, savewd_restore): Use this, rather than a comment,
14852         whenever one switch case falls through into the next.
14854 2017-06-08  Bruno Haible  <bruno@clisp.org>
14856         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
14857         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
14858         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
14859         case.
14861 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
14863         doc: remove robots, add prereqs
14864         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
14865         builds.  Simon's robot site does not seem to be up, so remove
14866         mentions of it for now.
14868 2017-06-08  Bruno Haible  <bruno@clisp.org>
14870         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
14871         * gnulib-tool (func_symlink_target): New function, extracted from
14872         func_symlink.
14873         (func_symlink, func_symlink_if_changed): Use it.
14875 2017-06-08  Bruno Haible  <bruno@clisp.org>
14877         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
14878         * gnulib-tool (func_ln_s): Determine cp_src correctly.
14880 2017-06-07  Bruno Haible  <bruno@clisp.org>
14882         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
14883         Reported by John E. Malmberg <wb8tyw@gmail.com> in
14884         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
14885         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
14886         override, pass 2 arguments to getcwd, not 3.
14888 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
14890         same-inode: port better to VMS 8.2 and later
14891         Problem reported by John E. Malmberg in:
14892         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
14893         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
14894         Use the usual POSIX definition.
14895         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
14897 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
14899         error: fix POSIX violation for va_end
14900         Problem reported by Bruno Haible in:
14901         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
14902         * lib/error.c (error_tail): Do not call va_end here.
14903         (error, error_at_line): Call it here instead.
14905 2017-05-28  Bruno Haible  <bruno@clisp.org>
14907         c-strtod: Make it usable in C++ mode.
14908         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
14910 2017-05-25  Jim Meyering  <meyering@fb.com>
14912         quotearg: fix compilation failure due to FALLTHROUGH misuse
14913         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
14914         macro back to /* fall through */ comment.  The macro can apply only
14915         to a following case statement.  Reported by Assaf Gordon.
14917 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
14919         intprops: port to recent icc
14920         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
14921         but does not support __builtin_add_overflow etc.
14922         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
14923         Define to 0.
14925 2017-05-23  Karl Berry  <karl@freefriends.org>
14927         * config/srclist.txt (iconv.m4): sync broken, comment out
14928         until (hopefully) the next gettext release.
14930 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
14932         Remove repeated words in comments.
14934 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
14936         fallthrough: reinstate a FALLTHROUGH instance in quotearg
14937         quotearg.c: Reinstate this instance which is significant
14938         when the if branch is not taken.
14940 2017-05-21  Bruno Haible  <bruno@clisp.org>
14942         gnulib-tool: Add options to create hard links.
14943         * gnulib-tool (func_usage): Document options --hardlink,
14944         --local-hardlink, --more-hardlinks.
14945         (func_symlink): Renamed from func_ln.
14946         (func_symlink_if_changed): Renamed from func_ln_if_changed.
14947         (func_hardlink): New function.
14948         (copymode, lcopymode): New variables.
14949         (symbolic, lsymbolic): Remove variables.
14950         (Options): Implement options --hardlink, --local-hardlink,
14951         --more-hardlinks.
14952         (func_should_link): Renamed from func_should_symlink. Set copyaction.
14953         (func_add_file, func_update_file): Update invocation of
14954         func_should_link. Invoke func_hardlink when appropriate.
14955         (func_import): Update comments.
14956         (func_create_testdir): Update invocation of func_should_link. Invoke
14957         func_hardlink when appropriate.
14958         Finally, invoke 'git update-index --refresh' to mitigate the effects of
14959         the hard links on git.
14961 2017-05-20  Bruno Haible  <bruno@clisp.org>
14963         argp: Simplify bit manipulation.
14964         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
14965         on a signed integer type.
14967 2017-05-20  Bruno Haible  <bruno@clisp.org>
14969         Avoid wrong configure results with gcc -fsanitize=address.
14970         This completes the work done on 2016-02-06 on this topic.
14971         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
14972         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14973         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14974         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14975         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
14976         returning.
14977         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
14978         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
14979         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14980         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
14981         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
14982         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
14983         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
14984         free allocated memory before returning.
14985         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14986         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
14987         objects before returning.
14988         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
14989         returning.
14991 2017-05-20  Bruno Haible  <bruno@clisp.org>
14993         gnulib-tool: Don't create hard links between gnulib and its testdirs.
14994         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
14996 2017-05-20  Bruno Haible  <bruno@clisp.org>
14998         argp, tsearch tests: Fix file list.
14999         * modules/argp-tests (Files): Add tests/macros.h.
15000         * modules/tsearch-tests (Files): Likewise.
15002 2017-05-20  Bruno Haible  <bruno@clisp.org>
15004         getopt-posix tests: Remove redundant include.
15005         * tests/test-getopt.h: Don't include "macros.h". It's already included
15006         by tests/test-getopt-main.h.
15008 2017-05-19  Jim Meyering  <meyering@fb.com>
15010         dfa: two small simplifications
15011         * lib/dfa.c (build_state): Avoid repeating longer expressions.
15013 2017-05-18  Jim Meyering  <meyering@fb.com>
15015         fallthrough: update for GCC 7/8
15016         * lib/quotearg.c (FALLTHROUGH): New macro.
15017         Use it whenever one switch case falls through into the next,
15018         replacing "/* Fall through */" comments.  This exposed one
15019         instance of an unwarranted "fall through" comment: unwarranted
15020         because it preceded a "goto" label not a case statement.
15021         * lib/freopen-safer.c (freopen_safer): Likewise.
15022         * lib/fts.c (leaf_optimization_applies): Likewise.
15023         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
15024         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
15025         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
15026         tests/macros.h for the definition.
15027         * tests/test-argp.c (group1_parser): Likewise.
15028         * tests/test-getopt.h (getopt_loop): Likewise.
15030 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15032         argp: fix shift bug
15033         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
15034         behavior on shift overflow, caught by gcc -fsanitize=undefined.
15036         argp: fix pointer-subtraction bug
15037         * lib/argp-help.c (hol_append): Don’t subtract pointers to
15038         different arrays, as this can run afoul of -fcheck-pointer-bounds.
15039         See the thread containing Bruno Haible’s report in:
15040         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
15042 2017-05-19  Bruno Haible  <bruno@clisp.org>
15044         printf-posix tests: Avoid test failure with "gcc --coverage".
15045         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
15046         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
15047         than 5000000.
15048         * tests/test-fprintf-posix2.c (main): Likewise.
15050 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15052         closeout: don’t close stderr when sanitizing
15053         * NEWS: Document this.
15054         * lib/closeout.c (__has_feature): New macro, if not already defined.
15055         (SANITIZE_ADDRESS): New constant.
15056         (close_stdout): Don’t close stderr if sanitizing addresses.
15058 2017-05-19  Bruno Haible  <bruno@clisp.org>
15060         get-rusage-data tests: Avoid failure on Linux/glibc.
15061         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
15062         on glibc systems.
15064 2017-05-18  Bruno Haible  <bruno@clisp.org>
15066         localename: Include necessary header files on Cygwin.
15067         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
15068         where NL_LOCALE_NAME is defined.
15070 2017-05-18  Bruno Haible  <bruno@clisp.org>
15072         gettext: Update macros from gettext git.
15073         * m4/intldir.m4: Require Autoconf >= 2.60.
15074         * m4/progtest.m4: Fix typos in copyright notice.
15076 2017-05-18  Bruno Haible  <bruno@clisp.org>
15078         copy-file tests: Fix link error (regression from 2017-05-01).
15079         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15080         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
15081         $(LIB_CLOCK_GETTIME).
15083 2017-05-18  Bruno Haible  <bruno@clisp.org>
15085         unicase/special-casing: Fix incompatibility with gperf-3.0.4
15086         (regression from 2017-02-13).
15087         * lib/unicase/special-casing.in.h: Renamed from
15088         lib/unicase/special-casing.h.
15089         * modules/unicase/special-casing (Files): Add
15090         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
15091         (Makefile.am): Add rule for generating unicase/special-casing.h.
15092         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
15093         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
15094         not "special-casing.h".
15095         * lib/unicase/u*.c: Likewise.
15097 2017-05-17  Bruno Haible  <bruno@clisp.org>
15099         README: Don't ask people to read a TeXinfo file.
15100         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
15101         * README: Tell people how to read the HTML formatted manual.
15103 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
15105         parse-datetime: Fix memleak
15106         * lib/parse-datetime.y (parse_datetime2): Cleanup on
15107         localtime_rz() failure.
15109 2017-05-16  Bruno Haible  <bruno@clisp.org>
15111         javacomp: Fix handle leak.
15112         Found by Coverity.
15113         * lib/javacomp.c (get_classfile_version): Close fd before returning.
15115 2017-05-16  Bruno Haible  <bruno@clisp.org>
15117         relocate: Make it easier to reclaim allocated memory.
15118         * lib/relocatable.h (relocate2): New declaration/macro.
15119         * lib/relocatable.c (relocate2): New function.
15120         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
15121         relocate2 function.
15122         * lib/localcharset.c (relocate2): Define fallback.
15123         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
15124         allocated memory.
15125         * lib/javaversion.c (relocate2): Define fallback.
15126         (javaexec_version): Invoke relocate2 instead of relocate. Free the
15127         allocated memory.
15129 2017-05-16  Bruno Haible  <bruno@clisp.org>
15131         relocate: Simplify EMX specific code.
15132         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
15133         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
15135 2017-05-16  Bruno Haible  <bruno@clisp.org>
15137         sigpipe tests: Fix file list.
15138         * modules/sigpipe-tests (Files): Add tests/macros.h.
15140 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15142         manywarnings: update for GCC 7
15143         * build-aux/gcc-warning.spec:
15144         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
15145         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
15146         requires a non-comment fallthrough attribute.  This is a bit
15147         cleaner than the comment versions.
15148         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
15149         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
15150         Use it whenever one switch case falls through into the next.
15151         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
15152         Use FALLTHROUGH macro.
15154 2017-05-15  Bruno Haible  <bruno@clisp.org>
15156         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
15157         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
15158         @ALLOCA@, not @LTALLOCA@.
15160 2017-05-15  Bruno Haible  <bruno@clisp.org>
15162         sys_select: Avoid "was expanded before it was required" warning.
15163         * modules/sys_select (configure.ac): Require, not invoke,
15164         gl_HEADER_SYS_SELECT.
15166 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
15168         gnulib-tool: improve GNU Make debugging
15169         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
15170         Report autoconf diagnostics when it fails, in the output makefile.
15172 2017-05-14  Bruno Haible  <bruno@clisp.org>
15174         stat-time tests: Improve comment.
15175         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
15177 2017-05-14  Bruno Haible  <bruno@clisp.org>
15179         same-inode: Adapt for windows-stat-inodes.
15180         * lib/same-inode.h: Include <sys/types.h>.
15181         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
15182         * modules/same-inode (Depends-on): Add sys_types.
15184 2017-05-14  Bruno Haible  <bruno@clisp.org>
15186         windows-stat-inodes: New module.
15187         * m4/windows-stat-inodes.m4: New file.
15188         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
15189         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
15190         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
15191         (_GL_WINDOWS_STAT_INODES): New macro.
15192         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
15193         (GetFileInformationByHandleExFunc): New variable.
15194         (initialize): Initialize it.
15195         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
15196         st_ino appropriately.
15197         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
15198         a fallback, because it does not provide st_dev and st_ino values.
15199         * modules/fstat (Depends-on): Add 'verify'.
15200         * modules/windows-stat-inodes: New file.
15201         * doc/windows-stat-inodes.texi: New file.
15202         * doc/gnulib.texi: Include it.
15203         * doc/posix-headers/sys_stat.texi: Mention the new module.
15205 2017-05-14  Bruno Haible  <bruno@clisp.org>
15207         stat-time tests: Workaround for native Windows.
15208         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
15209         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
15210         New variables.
15211         (initialize_filenames): New function.
15212         (main): Invoke it.
15213         (cleanup, prepare_test): Update.
15215 2017-05-14  Bruno Haible  <bruno@clisp.org>
15217         stat-time: Adapt for windows-stat-timespec.
15218         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
15219         entire st_ctim field.
15221 2017-05-13  Jim Meyering  <meyering@fb.com>
15223         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
15224         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
15225         file that uses the assume macro, claiming that verify.h is unused.
15227 2017-05-13  Bruno Haible  <bruno@clisp.org>
15229         Use symbolic values for _WIN32_WINNT.
15230         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
15231         * lib/sethostname.c (_WIN32_WINNT): Likewise.
15233 2017-05-13  Bruno Haible  <bruno@clisp.org>
15235         year2038: New module.
15236         * m4/year2038.m4: New file.
15237         * modules/year2038: New file.
15238         * doc/year2038.texi: New file.
15239         * doc/gnulib.texi: Include it.
15241 2017-05-13  Bruno Haible  <bruno@clisp.org>
15243         largefile: Simplify.
15244         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
15245         of _GL_WINDOWS_64_BIT_ST_SIZE.
15247 2017-05-13  Bruno Haible  <bruno@clisp.org>
15249         largefile: Improve and document.
15250         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
15251         the mingw headers already define 'stat' appropriately.
15252         * modules/largefile (Description): Clarify.
15253         * doc/largefile.texi: New file.
15254         * doc/gnulib.texi: Include it.
15255         * doc/posix-headers/sys_types.texi: Update.
15257 2017-05-13  Bruno Haible  <bruno@clisp.org>
15259         truncate: New module.
15260         * lib/unistd.in.h (truncate): New declaration.
15261         * lib/truncate.c: New file.
15262         * m4/truncate.m4: New file.
15263         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
15264         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
15265         REPLACE_TRUNCATE.
15266         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
15267         HAVE_TRUNCATE, REPLACE_TRUNCATE.
15268         * modules/truncate: New file.
15269         * tests/test-unistd-c++.cc (truncate): Test signature.
15270         * doc/posix-functions/truncate.texi: Mention the new module.
15272         * tests/test-truncate.c: New file.
15273         * modules/truncate-tests: New file.
15275 2017-05-13  Bruno Haible  <bruno@clisp.org>
15277         windows-stat-timespec: New module.
15278         * modules/windows-stat-timespec: New file.
15279         * m4/windows-stat-timespec.m4: New file.
15280         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
15281         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
15282         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
15283         fields st_atim, st_mtim, st_ctim.
15284         (st_atime, st_mtime, st_ctime): Define as macros.
15285         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
15286         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
15287         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
15288         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
15289         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
15290         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
15291         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
15292         FILETIME to 'struct timespec', not 'time_t'.
15293         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
15294         FILETIME to 'struct timespec', not 'time_t'.
15295         * lib/stat-time.h (STAT_TIMESPEC): Define also if
15296         _GL_WINDOWS_STAT_TIMESPEC.
15297         * doc/windows-stat-timespec.texi: New file.
15298         * doc/gnulib.texi: Include it.
15300 2017-05-13  Bruno Haible  <bruno@clisp.org>
15302         windows-stat-override: New module.
15303         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
15304         definition. Define GNULIB_defined_struct_stat.
15305         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
15306         link error if this symbol is used and the corresponding module is not
15307         in use.
15308         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
15309         GNULIB_OVERRIDES_STRUCT_STAT.
15310         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
15311         GNULIB_OVERRIDES_STRUCT_STAT.
15312         * modules/sys_stat (Makefile.am): Substitute
15313         GNULIB_OVERRIDES_STRUCT_STAT.
15314         * modules/windows-stat-override: New file.
15316 2017-05-13  Bruno Haible  <bruno@clisp.org>
15318         fstat: Fix module dependency conditions.
15319         * modules/fstat (Depends-on): Fix typo.
15321 2017-05-13  Bruno Haible  <bruno@clisp.org>
15323         stat, fstat: Complete removal of old native Windows code.
15324         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
15325         * lib/fstat.c: Likewise.
15326         * lib/stat-w32.c: Likewise.
15328 2017-05-13  Bruno Haible  <bruno@clisp.org>
15330         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
15331         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
15333 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
15335         getopt-posix: port to mingw
15336         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
15337         Problem reported by Daniel P. Berrage in:
15338         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
15340 2017-05-11  Bruno Haible  <bruno@clisp.org>
15342         gettimeofday: Increase precision on mingw.
15343         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
15344         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
15345         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
15346         GetSystemTimePreciseAsFileTime based implementation always.
15347         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
15348         mingw.
15350 2017-05-11  Bruno Haible  <bruno@clisp.org>
15352         poll: Fix confusion between SOCKETs and FDs on native Windows.
15353         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
15354         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
15356 2017-05-11  Bruno Haible  <bruno@clisp.org>
15358         doc: Clarify doc about socket functions on native Windows.
15359         This reworks doc that was added on 2008-09-29.
15360         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
15361         clearer wording.
15362         * doc/posix-functions/accept.texi: Use clearer wording.
15363         * doc/posix-functions/bind.texi: Likewise.
15364         * doc/posix-functions/connect.texi: Likewise.
15365         * doc/posix-functions/getpeername.texi: Likewise.
15366         * doc/posix-functions/getsockname.texi: Likewise.
15367         * doc/posix-functions/getsockopt.texi: Likewise.
15368         * doc/posix-functions/ioctl.texi: Likewise.
15369         * doc/posix-functions/listen.texi: Likewise.
15370         * doc/posix-functions/recv.texi: Likewise.
15371         * doc/posix-functions/recvfrom.texi: Likewise.
15372         * doc/posix-functions/send.texi: Likewise.
15373         * doc/posix-functions/sendto.texi: Likewise.
15374         * doc/posix-functions/setsockopt.texi: Likewise.
15375         * doc/posix-functions/shutdown.texi: Likewise.
15376         * doc/posix-functions/socket.texi: Likewise.
15378 2017-05-10  Bruno Haible  <bruno@clisp.org>
15380         poll: Fix link error on native Windows.
15381         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
15383 2017-05-10  Bruno Haible  <bruno@clisp.org>
15385         time: Fix missing initialization of HAVE_TIMEZONE_T.
15386         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
15387         here...
15388         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
15389         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
15390         gl_HEADER_SYS_TIME_H_DEFAULTS.
15391         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
15392         (configure.ac): Remove useless quoting.
15394 2017-05-10  Bruno Haible  <bruno@clisp.org>
15396         Implement a way to opt out from MSVC support, part 2.
15397         * modules/msvc-inval (Include): Document recommended idiom.
15398         * modules/msvc-nothrow (Include): Likewise.
15400         Implement a way to opt out from MSVC support.
15401         This is useful for Emacs.
15402         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
15403         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
15404         * lib/error.c: Likewise.
15405         * lib/fcntl.c: Likewise.
15406         * lib/flock.c: Likewise.
15407         * lib/fstat.c: Likewise.
15408         * lib/fsync.c: Likewise.
15409         * lib/ioctl.c: Likewise.
15410         * lib/isapipe.c: Likewise.
15411         * lib/lseek.c: Likewise.
15412         * lib/nonblocking.c: Likewise.
15413         * lib/poll.c: Likewise.
15414         * lib/select.c: Likewise.
15415         * lib/sockets.h: Likewise.
15416         * lib/sockets.c: Likewise.
15417         * lib/stdio-read.c: Likewise.
15418         * lib/stdio-write.c: Likewise.
15419         * lib/utimens.c: Likewise.
15420         * lib/w32sock.h: Likewise.
15421         * lib/w32spawn.h: Likewise.
15422         * tests/test-cloexec.c: Likewise.
15423         * tests/test-dup-safer.c: Likewise.
15424         * tests/test-dup2.c: Likewise.
15425         * tests/test-dup3.c: Likewise.
15426         * tests/test-fcntl.c: Likewise.
15427         * tests/test-pipe.c: Likewise.
15428         * tests/test-pipe2.c: Likewise.
15429         * lib/ftruncate.c: Likewise.
15430         (chsize_nothrow): Renamed from chsize.
15431         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
15432         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
15433         * lib/close.c: Likewise.
15434         * lib/dup.c: Likewise.
15435         * lib/fclose.c: Likewise.
15436         * lib/raise.c: Likewise.
15437         * tests/test-fgetc.c: Likewise.
15438         * tests/test-fputc.c: Likewise.
15439         * tests/test-fread.c: Likewise.
15440         * tests/test-fwrite.c: Likewise.
15441         * lib/getdtablesize.c: Likewise.
15442         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
15443         * lib/isatty.c: Don't include msvc-inval.h if
15444         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
15445         Include <io.h> as an alternative to msvc-nothrow.h.
15446         * lib/read.c: Likewise.
15447         * lib/write.c: Likewise.
15448         * lib/dup2.c: Likewise.
15449         (dup2_nothrow): New function.
15450         (ms_windows_dup2): Use it.
15451         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
15452         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
15453         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
15454         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
15455         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
15456         * m4/read.m4 (gl_FUNC_READ): Likewise.
15457         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
15458         * doc/windows-without-msvc.texi: New file.
15459         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
15460         section.
15462 2017-05-10  Bruno Haible  <bruno@clisp.org>
15464         wait-process: Adjust native Windows support.
15465         * lib/wait-process.c: Use the usual condition for recognizing a native
15466         Windows platform.
15468 2017-05-10  Bruno Haible  <bruno@clisp.org>
15470         doc: New chapter "Native Windows Support".
15471         * doc/gnulib.texi (Native Windows Support): New chapter.
15472         * doc/windows-libtool.texi: Small wording changes.
15473         * doc/windows-sockets.texi: Small wording and formatting changes.
15475 2017-05-10  Bruno Haible  <bruno@clisp.org>
15477         doc: Move section "Library version handling".
15478         * doc/gnulib.texi: Move section "Library version handling"
15479         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
15481 2017-05-10  Bruno Haible  <bruno@clisp.org>
15483         doc: Move section "Running self-tests under valgrind".
15484         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
15485         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
15487 2017-05-10  Bruno Haible  <bruno@clisp.org>
15489         doc: New chapter "Build Infrastructure Modules".
15490         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
15492 2017-05-10  Bruno Haible  <bruno@clisp.org>
15494         Prepare for reordering sections in the manual.
15495         * doc/gnulib.texi: Move several sections to separate files. Include
15496         these files.
15497         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
15498         * doc/obsolete.texi: Likewise.
15499         * doc/extra-tests.texi: Likewise.
15500         * doc/transversal.texi: Likewise.
15501         * doc/namespace.texi: Likewise.
15502         * doc/check-version.texi: Likewise.
15503         * doc/windows-sockets.texi: Likewise.
15504         * doc/windows-libtool.texi: Likewise.
15505         * doc/licenses-texi.texi: Likewise.
15506         * doc/build-automation.texi: Likewise.
15507         * doc/c-locale.texi: Likewise.
15509 2017-05-10  Bruno Haible  <bruno@clisp.org>
15511         Fix instructions how to update manual on www.gnu.org.
15512         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
15514 2017-05-09  Bruno Haible  <bruno@clisp.org>
15516         tzset: Expand comment about TZ problem on native Windows.
15517         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
15518         Paul Eggert.
15519         * lib/ctime.c (rpl_ctime): Likewise.
15520         * lib/localtime.c (rpl_localtime): Likewise.
15521         * lib/mktime.c (mktime): Likewise.
15522         * lib/strftime-fixes.c (rpl_strftime): Likewise.
15523         * lib/wcsftime.c (rpl_wcsftime): Likewise.
15525 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
15527         intprops: don’t depend on ‘verify’
15528         Problem reported by Ævar Arnfjörð Bjarmason in:
15529         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
15530         * lib/intprops.h: Do not include verify.h, and move compile-time
15531         checks from here ...
15532         * tests/test-intprops.c (main): ... to here, if they’re not here
15533         already.  Check widths of other standard integer types.
15534         * modules/intprops (Depends-on): Remove ‘verify’.
15536 2017-05-07  Bruno Haible  <bruno@clisp.org>
15538         utimens: On native Windows, support 100ns resolution also if fd < 0.
15539         * lib/utime.in.h: Include <time.h>.
15540         (_gl_utimens_windows): New declaration.
15541         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
15542         (utime): Invoke it.
15543         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
15544         instead of utime.
15545         * modules/utime (Depends-on): Add 'time'.
15547 2017-05-07  Bruno Haible  <bruno@clisp.org>
15549         utimens: Improve error code on native Windows.
15550         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
15551         error code EACCES, not EINVAL.
15553 2017-05-07  Bruno Haible  <bruno@clisp.org>
15555         utime: Handle more Windows error codes.
15556         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
15557         Based on explanations by Billy O'Neal.
15559 2017-05-05  Bruno Haible  <bruno@clisp.org>
15561         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
15562         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
15563         union.
15564         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
15565         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
15566         value of cipher->IV.
15568 2017-05-05  Bruno Haible  <bruno@clisp.org>
15570         wctype-h-c++-tests: Update.
15571         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
15573 2017-05-05  Bruno Haible  <bruno@clisp.org>
15575         wchar-c++-tests: Update.
15576         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
15578 2017-05-05  Bruno Haible  <bruno@clisp.org>
15580         utime-h-c++-tests: New module.
15581         * tests/test-utime-h-c++.cc: New file.
15582         (utime): Declare, missing since 2017-04-30.
15583         * modules/utime-h-c++-tests: New file.
15585 2017-05-05  Bruno Haible  <bruno@clisp.org>
15587         unistd-c++-tests: Update.
15588         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
15589         (read): Declare, missing since 2011-04-15.
15590         (sethostname): Declare, missing since 2011-12-03.
15592 2017-05-05  Bruno Haible  <bruno@clisp.org>
15594         time-c++-tests: Update.
15595         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
15596         (localtime, gmtime): Declare, missing since 2017-04-30.
15597         (ctime): Declare, missing since 2017-04-30.
15598         (strftime): Declare, missing since 2017-04-30.
15599         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
15600         2015-07-24.
15602 2017-05-05  Bruno Haible  <bruno@clisp.org>
15604         sys_resource-c++-tests: New module.
15605         * tests/test-sys_resource-c++.cc: New file.
15606         (getrusage): Declare, missing since 2012-04-13.
15607         * modules/sys_resource-c++-tests: New file.
15609 2017-05-05  Bruno Haible  <bruno@clisp.org>
15611         strings-c++-tests: New module.
15612         * tests/test-strings-c++.cc: New file.
15613         (ffs): Declare, missing since 2011-07-12.
15614         * modules/strings-c++-tests: New file.
15616 2017-05-05  Bruno Haible  <bruno@clisp.org>
15618         string-c++-tests: Update.
15619         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
15620         (ffsll): Declare, missing since 2011-07-15.
15622 2017-05-05  Bruno Haible  <bruno@clisp.org>
15624         stdlib-c++-tests: Update.
15625         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
15626         2011-10-18.
15627         (ptsname_r): Declare, missing since 2011-11-07.
15628         (qsort_r): Declare, missing since 2014-08-29.
15629         (random, srandom, initstate, setstate): Declare, missing since
15630         2012-01-14.
15631         (secure_getenv): Declare, missing since 2013-02-05.
15633 2017-05-05  Bruno Haible  <bruno@clisp.org>
15635         stdio-c++-tests: Update.
15636         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
15638 2017-05-05  Bruno Haible  <bruno@clisp.org>
15640         signal-h-c++-tests: Update.
15641         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
15643 2017-05-05  Bruno Haible  <bruno@clisp.org>
15645         math-c++-tests: Update.
15646         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
15647         (fma): Declare, missing since 2011-10-17.
15648         (fmal): Declare, missing since 2011-10-17.
15650 2017-05-05  Bruno Haible  <bruno@clisp.org>
15652         locale-c++-tests: Update.
15653         * tests/test-locale-c++.cc (localeconv): Declare, missing since
15654         2012-03-25.
15656 2017-05-05  Bruno Haible  <bruno@clisp.org>
15658         inttypes-c++-tests: New module.
15659         * tests/test-inttypes-c++.cc: New file.
15660         (strtoimax): Declare, missing since 2012-01-05.
15661         (strtoumax): Declare, missing since 2012-01-05.
15662         * modules/inttypes-c++-tests: New file.
15664 2017-05-05  Bruno Haible  <bruno@clisp.org>
15666         dirent-c++-tests: Update.
15667         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
15668         (rewinddir): Declare, missing since 2011-09-13.
15669         (dirfd): Declare, missing since 2010-03-08.
15671 2017-05-04  Bruno Haible  <bruno@clisp.org>
15673         argp: Fix mistake in 2017-04-23 commit.
15674         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
15675         assume that strerror_r returns 'int', not 'char *'.
15677 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
15679         argp: Fix typo.
15680         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
15682 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
15684         utimens: port to Emacs + MS-Windows
15685         Skip the new MS-Windows-specific code if Emacs.
15686         * lib/utimens.c [EMACS_CONFIGUATION]:
15687         Avoid new MS-Windows-specific code.
15688         (USE_SETFILETIME): New macro.
15689         (fdutimens): Use it.
15691 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
15693         tzset: update doc for TZ problems on MS-Windows
15694         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
15695         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
15696         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
15697         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
15698         * doc/posix-functions/wcsftime.texi:
15699         Mention some issues with TZ under MS-Windows.
15701 2017-05-01  Bruno Haible  <bruno@clisp.org>
15703         copy-file: Fix build error on mingw.
15704         * modules/copy-file (Depends-on): Add 'close'.
15706 2017-05-01  Bruno Haible  <bruno@clisp.org>
15708         tzset: Work around TZ problem on native Windows.
15709         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
15710         Windows, set REPLACE_TZSET to 1.
15711         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
15712         invoke '_tzset' instead of 'tzset'.
15713         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
15715         * modules/time_rz (Depends-on): Add tzset.
15716         * lib/time_rz.c (tzset): Remove fallback definition.
15717         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
15719 2017-05-01  Bruno Haible  <bruno@clisp.org>
15721         mktime: Fix dependencies.
15722         * modules/mktime (Depends-on): Add 'time'.
15724 2017-05-01  Bruno Haible  <bruno@clisp.org>
15726         New module 'localtime-buffer', split off from module 'gettimeofday'.
15727         * lib/localtime-buffer.h: New file.
15728         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
15729         * lib/time.in.h (tzset): New declaration.
15730         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
15731         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
15732         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
15733         moved to lib/localtime-buffer.c or lib/tzset.c.
15734         * m4/localtime-buffer.m4: New file.
15735         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
15736         HAVE_TZSET, REPLACE_TZSET.
15737         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
15738         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
15739         gl_LOCALTIME_BUFFER_NEEDED.
15740         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
15741         since 2007-01-18.
15742         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
15743         tzset.
15744         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
15745         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
15746         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
15747         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
15748         * modules/localtime-buffer: New file.
15749         * modules/time (Depends-on): Remove 'gettimeofday'.
15750         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
15751         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
15752         * modules/tzset (Description): Enable hyperlink to POSIX spec.
15753         (Files): Add lib/tzset.c.
15754         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
15755         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
15756         gl_TIME_MODULE_INDICATOR.
15757         * modules/gettimeofday (Depends-on): Add localtime-buffer.
15759 2017-05-01  Bruno Haible  <bruno@clisp.org>
15761         copy-file: Preserve sub-second time stamps.
15762         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
15763         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
15764         transport the time stamps from the original file to the destination
15765         file.
15766         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
15767         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
15768         utime-h.
15770 2017-05-01  Bruno Haible  <bruno@clisp.org>
15772         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
15773         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
15774         also on MSVC.
15775         Reported by Eli Zaretskii <eliz@gnu.org>.
15777 2017-05-01  Bruno Haible  <bruno@clisp.org>
15779         wchar: Fix compilation error with the original mingw.org mingw.
15780         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
15781         <stddef.h> instead.
15782         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
15783         gl_WCTYPE_H.
15784         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
15785         gl_TYPE_WINT_T_PREREQ instead.
15786         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
15787         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
15788         Reported by Eli Zaretskii <eliz@gnu.org>.
15790 2017-04-30  Bruno Haible  <bruno@clisp.org>
15792         utimecmp: Add support for native Windows.
15793         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
15795 2017-04-30  Bruno Haible  <bruno@clisp.org>
15797         utimens: Add support for native Windows.
15798         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
15799         (fdutimens): Provide a native Windows implementation, like utime.c with
15800         added tv_nsec support.
15801         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
15802         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
15804 2017-04-30  Bruno Haible  <bruno@clisp.org>
15806         wcsftime: New module.
15807         * lib/wchar.in.h (wcsftime): New declaration.
15808         * lib/wcsftime.c: New file.
15809         * m4/wcsftime.m4: New file.
15810         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
15811         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
15812         HAVE_WCSFTIME, REPLACE_WCSFTIME.
15813         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
15814         HAVE_WCSFTIME, REPLACE_WCSFTIME.
15815         * modules/wcsftime: New file.
15816         * doc/posix-functions/wcsftime.texi: Mention the new module.
15818 2017-04-30  Bruno Haible  <bruno@clisp.org>
15820         strftime-fixes: New module.
15821         * lib/time.in.h (strftime): New declaration.
15822         * lib/strftime-fixes.c: New file.
15823         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
15824         (gl_FUNC_STRFTIME): Remove macro.
15825         * m4/strftime-fixes.m4: New file.
15826         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
15827         REPLACE_STRFTIME.
15828         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
15829         REPLACE_STRFTIME.
15830         * modules/strftime-fixes: New file.
15831         * doc/posix-functions/strftime.texi: Mention the new module.
15833 2017-04-30  Bruno Haible  <bruno@clisp.org>
15835         mktime: Work around TZ problem on native Windows.
15836         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
15837         from the native Windows workaround.
15838         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
15839         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
15840         'guessing no'.
15841         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
15842         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
15843         NEED_MKTIME_WINDOWS.
15844         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
15845         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
15846         NEED_MKTIME_INTERNAL.
15847         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
15848         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
15849         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
15850         not REPLACE_MKTIME.
15851         * doc/posix-functions/mktime.texi: Mention the native Windows
15852         workaround.
15854 2017-04-30  Bruno Haible  <bruno@clisp.org>
15856         localtime: New module.
15857         * lib/time.in.h (localtime): Declare also if requested by module
15858         'localtime'.
15859         * lib/localtime.c: New file.
15860         * m4/localtime.m4: New file.
15861         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
15862         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
15863         * modules/localtime: New file.
15864         * doc/posix-functions/localtime.texi: Mention the new module.
15866 2017-04-30  Bruno Haible  <bruno@clisp.org>
15868         ctime: New module.
15869         * lib/time.in.h (ctime): New declaration.
15870         * lib/ctime.c: New file.
15871         * m4/ctime.m4: New file.
15872         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
15873         REPLACE_CTIME.
15874         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
15875         * modules/ctime: New file.
15876         * doc/posix-functions/ctime.texi: Mention the new module.
15878 2017-04-30  Bruno Haible  <bruno@clisp.org>
15880         gettimeofday: Provide higher resolution on native Windows.
15881         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
15882         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
15883         (initialize): Initialize it.
15884         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
15885         'struct timeval'. Don't use _ftime().
15886         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
15887         <sys/timeb.h> and _ftime.
15889 2017-04-30  Bruno Haible  <bruno@clisp.org>
15891         Document the problem with the Cygwin environment variable TZ.
15892         * doc/posix-functions/tzset.texi: Add note about TZ.
15893         * doc/posix-functions/ctime.texi: Likewise.
15894         * doc/posix-functions/localtime.texi: Likewise.
15895         * doc/posix-functions/mktime.texi: Likewise.
15896         * doc/posix-functions/strftime.texi: Likewise.
15897         * doc/posix-functions/wcsftime.texi: Likewise.
15898         * doc/pastposix-functions/ftime.texi: Likewise.
15900 2017-04-30  Bruno Haible  <bruno@clisp.org>
15902         utime-tests: New module.
15903         * tests/test-utime.c: New file, based on tests/test-utimens.h.
15904         * tests/test-utimens-common.h: Include <sys/stat.h>.
15905         * modules/utime-tests: New file.
15907 2017-04-29  Bruno Haible  <bruno@clisp.org>
15909         utime: New module.
15910         * lib/utime.in.h: Add comment for snippets.
15911         (utime): New declaration.
15912         * lib/utime.c: New file.
15913         * m4/utime.m4: New file.
15914         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
15915         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
15916         REPLACE_UTIME.
15917         * modules/utime-h (Depends-on): Add snippets.
15918         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
15919         Insert snippets.
15920         * modules/utime: New file.
15921         * doc/posix-functions/utime.texi: Mention the new module.
15923 2017-04-29  Bruno Haible  <bruno@clisp.org>
15925         utime-h: Modernize handling of 'struct utimbuf'.
15926         * lib/utime.in.h: Include next <utime.h> if it exists.
15927         (utimbuf): Define to _utimbuf on native Windows.
15928         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
15929         Set UTIME_H on native Windows.
15930         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
15931         * modules/utime-h (Depends-on): Add include_next.
15932         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
15933         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
15935         * lib/utimens.c (utimbuf): Remove fallback definition.
15936         * m4/utimens.m4 (gl_UTIMENS): Don't require
15937         gl_CHECK_TYPE_STRUCT_UTIMBUF.
15938         * m4/utimbuf.m4: Remove file.
15939         * modules/utimens (Files): Remove m4/utimbuf.m4.
15941 2017-04-29  Bruno Haible  <bruno@clisp.org>
15943         Make use of module 'utime-h'.
15944         * modules/copy-file (Depends-on): Add utime-h.
15945         * lib/copy-file.c: Assume that <utime.h> exists.
15946         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
15948         * modules/utimens (Depends-on): Add utime-h.
15949         * lib/utimens.c: Assume that <utime.h> exists.
15951 2017-04-29  Bruno Haible  <bruno@clisp.org>
15953         utime-h: New module.
15954         * m4/utime_h.m4: New file.
15955         * lib/utime.in.h: New file.
15956         * modules/utime-h: New file.
15957         * doc/posix-headers/utime.texi: Mention the new module.
15959         * tests/test-utime-h.c: New file.
15960         * modules/utime-h-tests: New file.
15962 2017-04-30  Bruno Haible  <bruno@clisp.org>
15964         Fix a few typos.
15965         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
15966         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
15967         * doc/posix-functions/fstat.texi: Fix a plural typo.
15968         * doc/posix-functions/stat.texi: Likewise.
15969         * m4/include_next.m4: Update comments.
15971 2017-04-29  Bruno Haible  <bruno@clisp.org>
15973         error: Fix mistake in 2017-04-23 commit.
15974         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
15975         assume that strerror_r returns 'int', not 'char *'.
15977 2017-04-29  Bruno Haible  <bruno@clisp.org>
15979         stat: Fix time_t values and other problems on native Windows platforms.
15980         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
15981         implementations of stat().
15982         * lib/stat.c: Include filename.h instead of dosname.h. Include
15983         malloca.h, stat-w32.h.
15984         (is_unc_root): New function.
15985         (rpl_stat): New implementation for native Windows. Remove
15986         REPLACE_FUNC_STAT_DIR code.
15987         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
15988         Don't define REPLACE_FUNC_STAT_DIR.
15989         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
15990         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
15991         (Depends-on): Remove dosname. Add filename, malloca.
15992         (configure.ac): Also compile lib/stat-w32.c.
15994 2017-04-29  Bruno Haible  <bruno@clisp.org>
15996         fstat: Fix time_t values on native Windows platforms.
15997         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
15998         * lib/stat-w32.h: New file.
15999         * lib/stat-w32.c: New file.
16000         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
16001         stat-w32.h instead.
16002         (fstat_nothrow): Remove function.
16003         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
16004         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
16005         always.
16006         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
16007         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
16008         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
16009         (configure.ac): Also compile lib/stat-w32.c.
16011 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
16013         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
16014         Problem reported by Assaf Gordon and Gavin Smith in:
16015         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
16016         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
16017         #define this, too.
16019 2017-04-29  Bruno Haible  <bruno@clisp.org>
16021         strerror_r-posix: Fixes for MSVC 14.
16022         * lib/strerror_r.c: Include <stdarg.h>.
16023         (strerror_r): Provide error messages for errno values 100...140.
16024         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
16026 2017-04-28  Bruno Haible  <bruno@clisp.org>
16028         noreturn: New module.
16029         * lib/noreturn.h: New file.
16030         * modules/noreturn: New file.
16031         * tests/test-noreturn.c: New file.
16032         * modules/noreturn-tests: New file.
16033         * tests/test-noreturn-c++.cc: New file.
16034         * modules/noreturn-c++-tests: New file.
16036 2017-04-27  Bruno Haible  <bruno@clisp.org>
16038         wctype-h: Fix compilation error with the original mingw.org mingw.
16039         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
16040         HAVE_CRTDEFS_H.
16041         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
16042         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
16043         <stddef.h> instead.
16044         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
16046 2017-04-26  Pádraig Brady  <P@draigBrady.com>
16048         nap.h: Fix compilation on non windows platforms
16049         * tests/nap.h: Move misplaced endif.
16051 2017-04-26  Pádraig Brady  <P@draigBrady.com>
16052         and Paul Eggert  <eggert@cs.ucla.edu>
16054         time_rz: fix heap buffer overflow vulnerability
16055         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
16056         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
16057         whether there is enough buffer space available, thus avoiding
16058         the problematic promotion of signed to unsigned causing an invalid
16059         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
16060         the start of the buffer.
16061         * tests/test-parse-datetime.c (main): Add a test case written by
16062         Paul Eggert, which overwrites enough of the heap so that
16063         standard glibc will fail with "free(): invalid pointer"
16064         without the patch applied.
16066 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
16068         xalloc: add missing integer overflow check
16069         * lib/xalloc.h (x2nrealloc): Also check for multiplication
16070         overflow when P is null.
16072 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
16074         parse-datetime: make it standalone
16075         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
16076         (_GL_ATTRIBUTE_FORMAT): New macro.
16077         These are needed to get './gnulib-tool --test parse-datetime' to work.
16079 2017-04-23  Bruno Haible  <bruno@clisp.org>
16081         nap.h: Port to native Windows.
16082         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
16083         use nap_fd instead. On native Windows, close and reopen nap_fd.
16084         (nap_works): Don't compare the ctimes, because on native Windows, these
16085         are the creation times.
16086         (nap): Update.
16088 2017-04-23  Bruno Haible  <bruno@clisp.org>
16090         nap.h: Fix logic.
16091         * tests/nap.h (nap): Avoid signed integer overflow in loop.
16093 2017-04-23  Bruno Haible  <bruno@clisp.org>
16095         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
16096         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
16097         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
16098         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
16099         * lib/argp-help.c (__argp_failure): Likewise.
16101 2017-04-23  Bruno Haible  <bruno@clisp.org>
16103         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
16104         * m4/strerror_r.m4: Revert changes since 2016-10-16.
16105         * lib/strerror_r.c: Likewise.
16107 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
16109         Target a C99 subset, not a C89 subset
16110         For many years Gnulib has targeted C89 and has resisted using C99
16111         features, as some Gnulib-using programs still wanted to target
16112         C89.  As this no longer seems to be the case, relax the porting
16113         requirements to allow some C99 features.  This is merely a change
16114         to the documentation, to give other Gnulib developers a chance to
16115         weigh in on the topic.
16116         * doc/extern-inline.texi (extern inline):
16117         * doc/gnulib-readme.texi (Portability guidelines):
16118         * doc/gnulib-tool.texi (Initial import):
16119         * doc/gnulib.texi (Header files):
16120         Modernize to talk about C99 and C11 instead of C89 and C99.
16121         * doc/gnulib-readme.texi (Portability guidelines):
16122         Now a section, not merely a subsection, so that it
16123         can be split up.  Modernize a bit.
16124         (C language versions, C99 features assumed)
16125         (C99 features avoided):
16126         New sections.
16128 2017-04-23  Bruno Haible  <bruno@clisp.org>
16130         doc: New section "Modules that modify the way other modules work".
16131         * doc/gnulib.texi (Modules that modify the way other modules work): New
16132         section.
16134 2017-04-23  Bruno Haible  <bruno@clisp.org>
16136         stat-time: Update comments.
16137         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
16138         * tests/test-utimens-common.h: Add reference regarding st_ctime on
16139         Windows.
16141 2017-04-01  Bruno Haible  <bruno@clisp.org>
16143         glob: Fix more memory leaks.
16144         * lib/glob.c (glob): Free allocated memory before returning.
16145         Reported by Coverity via Tim Rühsen.
16147 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16149         poll: improve fast check for out-of-range NFD
16150         * lib/poll.c: Do not include intprops.h.
16151         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
16152         * modules/poll (Depends-on): Remove intprops.
16154         ftoastr: cite a newer paper
16155         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
16156         instead of Loitsch 2010.
16158 2017-04-22  Bruno Haible  <bruno@clisp.org>
16160         poll: Enable argument check also in the Windows implementation.
16161         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
16162         Reported by Paul Eggert.
16164 2017-04-22  Bruno Haible  <bruno@clisp.org>
16166         getlogin_r: Work around bug in Mac OS X 10.12.
16167         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
16168         bug.
16169         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
16170         given size minus 1, call getlogin_r a second time, on a larger buffer.
16171         * modules/getlogin_r (Depends-on): Add malloca.
16172         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
16174 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16176         parse-datetime: fix %z and prefer signed int
16177         %z problem reported by Pádraig Brady in:
16178         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
16179         While fixing it, I decided to prefer signed ints to size_t, as
16180         they are less error-prone (e.g., ubsan catches overflow).
16181         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
16182         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
16183         counts, since signed integers make for better debugging.
16184         (date): Don’t assume %z works in printf formats.
16185         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
16186         sizes of buffers known to be small, e.g., because we’re using snprintf.
16187         (parse_datetime2): Simplify call to debug_mktime_not_ok.
16189 2017-04-22  Bruno Haible  <bruno@clisp.org>
16191         *printf: Work around rounding bug on Mac OS X.
16192         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
16193         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
16194         Mac OS X and FreeBSD.
16195         * doc/glibc-functions/*printf.texi: Likewise.
16197 2017-04-22  Bruno Haible  <bruno@clisp.org>
16199         vasnprintf tests: Avoid warnings.
16200         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
16201         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
16202         test.
16204 2017-04-22  Bruno Haible  <bruno@clisp.org>
16206         sys_file tests: Avoid warning.
16207         * tests/test-sys_file.c (main): Add a default clause to the switch
16208         statement.
16210 2017-04-22  Bruno Haible  <bruno@clisp.org>
16212         sethostname: Update doc.
16213         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
16214         Mac OS X.
16216 2017-04-22  Bruno Haible  <bruno@clisp.org>
16218         quotearg tests: Avoid warnings.
16219         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
16220         false.
16222 2017-04-22  Bruno Haible  <bruno@clisp.org>
16224         poll: Enable argument check.
16225         * lib/poll.c: Include intprops.h.
16226         (poll): Check value of nfd correctly.
16227         * modules/poll (Depends-on): Add intprops.
16229 2017-04-22  Bruno Haible  <bruno@clisp.org>
16231         get-rusage-data: Avoid warnings on Mac OS X.
16232         * lib/get-rusage-data.c: On Mac OS X, don't define
16233         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
16234         (get_rusage_data) [Mac OS X]: Just return 0.
16236 2017-04-22  Bruno Haible  <bruno@clisp.org>
16238         xbinary-io: Fix build error.
16239         * modules/xbinary-io (Depends-on): Add gettext-h.
16240         * lib/xbinary-io.c: Include gettext.h and define _().
16241         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
16242         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
16244 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16246         parse-datetime: overflow and debug cleanups
16247         This long patch was triggered by this bug report from Ruediger Meier:
16248         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
16249         I fixed the bug he noted, then found some others nearby, and then
16250         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
16251         up some of the code to follow GNU standards while I was at it.
16252         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
16253         use c_isdigit.
16254         (EPOCH_YEAR): Remove; unused.
16255         (TM_YEAR_BASE): Now an enum rather than a macro.
16256         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
16257         time zone offset, since timezones now are in terms of seconds and
16258         not minutes.
16259         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
16260         appropriate.  Verify that intmax_t is wide enough.
16261         (time_overflow, time_zone_str): New functions, used to deal
16262         more reliably with overflow.
16263         (dbg_printf): Add printf attribute, to help catch integer width errors.
16264         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
16265         (%union, to_hour, yylex, parse_datetime2):
16266         Use intmax_t instead of long int and/or long_time_t.
16267         All uses changed.
16268         (DBGBUFSIZE): Move earlier.
16269         (relative_time, set_hhmmss, parser_control):
16270         Just use int for nanoseconds and for time zones; that’s wide enough.
16271         (parser_control): Use bool for members like year_seen that can
16272         be booleans instead of counters.  All uses changed.
16273         Remove debug_default_input_timezone; no longer needed.
16274         All uses removed.
16275         (apply_relative_time): Return a bool overflow flag.
16276         All uses changed to check for overflow.
16277         (apply_relative_time, zone, date, relunit, relunit_snumber)
16278         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
16279         Check for integer overflow portably.
16280         (str_days): Use just int for N, as it’s wide enough.
16281         Prefer 2D char arrays to arrays of char * when it looks like
16282         2D is a win on typical platforms.
16283         Prefer snprintf to strncpy/strncat, for simplicity;
16284         all buffers are smaller than INT_MAX so this is safe.
16285         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
16286         (debug_print_current_time): Don’t assume tv_nsec is of type long,
16287         as this is not true on x32.  Output "." before any nanoseconds.
16288         (debug_print_current_time, parse_datetime2):
16289         Output local zones using a more-consistent format.
16290         (debug_print_current_time, date, parse_datetime2):
16291         (main) [TEST]:
16292         Don’t assume time_t is the same width as long.
16293         (print_rel_part): New function, replacing ...
16294         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
16295         (debug_print_relative_time): Use bool for boolean.
16296         (local_zone): dsts_seen now counts only tDST instances.
16297         (date): Fix printf of size_t to use %z.  Do not assume numeric
16298         tokens have negative values merely because the context suggests
16299         a syntax with "-" separating tokens.
16300         (time_zone_hhmm): Return bool success indicator, which checks for
16301         overflow.  Store result into PC->time_zone instead.  All callers
16302         changed.
16303         (tm_year_str): New function.  Return a bool success indicator and
16304         store the result into a buffer.  All callers changed.  Output the
16305         numerically correct string even if adding 1900 to the year would
16306         overflow.
16307         (to_tm_year): New function, replacing the old to_year.  All
16308         callers changed.
16309         (tm_diff): Sync with glibc.
16310         (lookup_word): Use to_uchar instead of doing it by hand.
16311         (TZBUFSIZE): Now local to the only function that needs it.
16312         (debug_strfdatetime): Simplify now that time zones are int seconds.
16313         (debug_strfdate): Work even if tm_year + 1900 would overflow.
16314         (get_effective_timezone): Remove.  All uses removed.
16315         (parse_datetime2): Use fprintf in pieces instead of snprintfing
16316         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
16317         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
16318         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
16319         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
16320         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
16321         * modules/parse-datetime (Depends-on): Add inttypes.
16323 2017-04-21  Bruno Haible  <bruno@clisp.org>
16325         gettext-h: Avoid -Wundef warning.
16326         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
16327         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
16328         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
16330 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
16332         error: Avoid "function declaration isn't a prototype" warning.
16333         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
16335 2017-04-21  Bruno Haible  <bruno@clisp.org>
16337         vasnprintf: Fix for MSVC 14.
16338         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
16339         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
16340         of !HAVE_SNPRINTF_RETVAL_C99.
16342 2017-04-21  Bruno Haible  <bruno@clisp.org>
16344         mbrtowc tests: Fix test failures on MSVC 14.
16345         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
16346         behaviour for invalid input.
16348 2017-04-21  Bruno Haible  <bruno@clisp.org>
16350         mbsinit: Fix for MSVC 14.
16351         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
16352         implementation that is in sync with mbrtowc.c. On other platforms, use
16353         an adequate ad-hoc implementation.
16355 2017-04-21  Bruno Haible  <bruno@clisp.org>
16357         Fix test-mbrtowc5.sh failure on native Windows.
16358         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
16359         "C".
16361 2017-04-21  Bruno Haible  <bruno@clisp.org>
16363         Avoid accidental use of native Windows APIs on Cygwin.
16364         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
16365         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
16366         * lib/localename.c (WINDOWS_NATIVE): Likewise.
16368 2017-04-20  Bruno Haible  <bruno@clisp.org>
16370         Remove red warnings from the generated MODULES.html.
16371         * modules/fcntl (Description): Disambiguate function references.
16372         * modules/getcwd-lgpl (Description): Likewise.
16373         * modules/hostent (Description): Likewise.
16374         * modules/servent (Description): Likewise.
16375         * modules/tempname (Description): Likewise.
16377 2017-04-20  Bruno Haible  <bruno@clisp.org>
16379         verify tests: Fix spurious failure with parallel make.
16380         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
16381         EXTRA_PROGRAMS.
16382         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
16383         * tests/test-verify-try.c: New file.
16384         * modules/verify-tests (Files): Add it.
16385         (EXTRA_PROGRAMS): Add test-verify-try.
16386         (MOSTLYCLEANFILES): Update accordingly.
16387         Reported by Adam James Stewart <ajstewart@anl.gov>.
16389 2017-04-18  Bruno Haible  <bruno@clisp.org>
16391         vma-iter: Fix compilation error on Solaris 7.
16392         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
16393         like on IRIX, OSF/1.
16394         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16396 2017-04-18  Bruno Haible  <bruno@clisp.org>
16398         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
16399         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
16400         included.
16401         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
16402         <sys/procfs.h>.
16403         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
16404         <sys/procfs.h> cannot be included.
16405         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16407 2017-04-18  Bruno Haible  <bruno@clisp.org>
16409         getopt-gnu: Add comments.
16410         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
16411         * modules/getopt-gnu (configure.ac): Likewise.
16413 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
16415         regex: port better to Solaris 10
16416         Solaris 10 <locale.h> includes <libintl.h>, which #defines
16417         gettext, and this causes a double #define.
16418         Problem reported by Gavin Smith in:
16419         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
16420         * lib/regex_internal.h (gettext): #undef before #defining.
16422 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
16424         intprops: improve comments
16425         * lib/intprops.h: Improve and shorten commentary.
16426         For the record, if we ever run into a pedantic compiler that
16427         behaves differently from GCC when converting an out-of-range value
16428         to a signed integer, we can work around the problem with something
16429         like the following code, where UCT is the signed counterpart of T
16430         (UCT is sometimes narrower than UT) and all callers are changed
16431         accordingly:
16432         #if __SUNPRO_C <= 0x5120
16433         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
16434            ((t) ((ut) (a) op (ut) (b)))
16435         #else
16436         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
16437            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
16438             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
16439                + TYPE_MINIMUM (t)) \
16440             : (t) (uct) ((ut) (a) op (ut) (b)))
16441         #endif
16443 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
16445         intprops: try to avoid tickling similar bugs
16446         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
16447         needs to be the same width as T; it can be wider.
16448         Change callers so that UT is at least as wide as unsigned int,
16449         as I suspect that this is less likely to run into compiler bugs.
16451         intprops: port to Oracle Studio 12.3 x86
16452         Problem reported by Gavin Smith in:
16453         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
16454         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
16455         Convert unsigned to signed via the usual rather than the standard way,
16456         to avoid a compiler bug in Oracle Studio 12.3 x86.
16458 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
16460         getopt: prefer - to _ in new file names
16461         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
16462         * lib/getopt-core.h: Rename from lib/getopt_core.h.
16463         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
16464         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
16465         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
16466         All uses changed.
16468         getopt: port recent getopt changes to macOS
16469         Problem reported by Harald Maier (Bug#26398).
16470         The macOS C compiler uses __nonnull for its own purposes and that
16471         clashes with glibc's __nonnull.
16472         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
16473         * lib/getopt_cdefs.in.h (__nonnull): Remove.
16474         * lib/getopt_core.h (getopt):
16475         * lib/getopt_ext.h (getopt_long, getopt_long_only):
16476         Use _GL_ARG_NONNULL, not __nonnull.
16477         * lib/unistd.in.h: Move snippet hooks to before where the getopt
16478         .h files are included, so that _GL_ARG_NONNULL is defined in time.
16479         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
16480         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
16482 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
16484         getopt-gnu: omit some duplicate code
16485         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
16486         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
16487         gnulib-tool already does this.
16488         * modules/getopt-gnu (configure.ac): Omit code duplicated from
16489         getopt-posix, which we depend on.
16491         getopt-posix: use angle-bracket include
16492         * lib/getopt1.c: Include <config.h>, not "config.h".
16494 2017-04-06  Zack Weinberg  <zackw@panix.com>
16496         getopt: annotate files with relationship to glibc
16498         As the final act in this patchset, adjust the message at the top of
16499         each file to indicate which files are synced with glibc.  (This has
16500         already been done for most of the headers.)
16502         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
16503         Mention in top-of-file boilerplate that these files are shared
16504         between glibc and gnulib.
16507         getopt: split up getopt.in.h and eliminate __need_getopt
16509         Over in glibc, all of the __need macros are being phased out in favor
16510         of small headers that declare only the necessary components, as this
16511         is much simpler and less prone to bugs.  As getopt is shared with
16512         glibc, gnulib needs to do the same for __need_getopt.
16514         __need_getopt is misnamed; what it really means is "we want only the
16515         getopt features specified in POSIX, not the GNU extensions".  glibc
16516         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
16517         these files can be shared verbatim with gnulib.  The portability
16518         wrapper, on the other hand, they have renounced altogether; glibc's
16519         getopt.h will no longer be shared with gnulib at all.  In exchange,
16520         certain glibc-specific quirks (having to do with __posix_getopt) no
16521         longer need appear in gnulib's headers at all.
16523         This patch merges getopt_core.h and getopt_ext.h from glibc, and
16524         splits up the current gnulib-side portability wrapper into three
16525         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
16526         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
16527         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
16528         unistd.in.h just use them.  All new files are clearly marked with
16529         whether they are shared with glibc.
16531         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
16532         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
16533         with glibc, and ...
16534         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
16535         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
16536         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
16537         instead of defining __need_getopt and including the full getopt.h.
16539         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
16540         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
16541         * modules/getopt-posix (Files): Add new headers and sort list.
16542         (Depends-on): No longer need snippet/arg-nonnull.
16543         (Makefile.am): Generate getopt_cdefs.h.
16546         getopt: better handling of ambiguous options
16548         glibc's getopt uses alloca to construct a linked list of possibilities
16549         for an "ambiguous" long option.  In gnulib, malloc should be used
16550         instead.  Providing for both cases complicates things a fair bit.
16552         This patch rewrites ambiguous-option handling to use a boolean vector
16553         instead of a linked list.  There is then only one allocation that
16554         might need freeing; in glibc it can honor __libc_use_alloca as usual,
16555         and in gnulib we define __libc_use_alloca to always be false, so we
16556         don't need ifdefs in the middle of the function.  This should also be
16557         slightly more efficient in the normal case of long options being fully
16558         spelled out -- I think most people aren't even aware they _can_
16559         sometimes abbreviate long options.
16561         One interesting consequence is that the list of possibilities is now
16562         printed in exactly the order they appear in the list of long options,
16563         instead of the first possibility being shuffled to the end.
16565         (The patch looks bigger than it really is because there's a fair bit
16566         of reindentation and code rearrangement.)
16568         * lib/getopt.c: When used standalone, define __libc_use_alloca
16569         as always false and alloca to abort if called.
16570         (process_long_option): Rewrite handling of ambiguous long options
16571         to use a single boolean vector, not a linked list; use
16572         __libc_use_alloca to decide whether to allocate this using alloca.
16575         getopt: refactor long-option handling
16577         There were two copies of the bulk of the code to handle long options.
16578         Now there is only one.
16580         This change temporarily removes the logic to avoid using alloca when
16581         standalone; the next patch in the series will restore it.
16583         * lib/getopt.c (process_long_option): New function split out
16584         from _getopt_internal_r.
16585         (_getopt_internal_r): Replace both copies of the long-option
16586         processing code with calls to process_long_option.
16589         getopt: tidy up _getopt_initialize a bit
16591         _getopt_data.__posixly_correct is completely redundant to
16592         _getopt_data.__ordering, and some work that logically belongs in
16593         _getopt_initialize was being done by _getopt_internal_r, making the
16594         code harder to understand.
16596         As a side effect, getenv will no longer be called if the first
16597         character of the options string is '+' or '-', which is probably a
16598         Good Thing.  (Perhaps we should have a flag character that
16599         specifically asks for the permutation behavior?)
16601         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
16602         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
16603         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
16606         getopt: merge from glibc: repetition reduction
16608         The definitions of the entry point functions 'getopt' and
16609         '__posix_getopt' can be made substantially less repetitive with a
16610         helper macro.
16612         While I was merging the const-correctness changes from gnulib into
16613         glibc I noticed there are still some unnecessary casts in
16614         _getopt_internal_r.
16616         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
16617         a macro.  Consistently cast 'argv' to 'char **' when calling
16618         _getopt_internal.
16619         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
16622         getopt: clean up error reporting
16624         getopt can print a whole bunch of error messages, and when used
16625         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
16626         cancellation point and getopt isn't, and also applying fprintf to a
16627         stream in wide-character mode is not allowed.  So every single error
16628         reporting case has an #ifdef _LIBC block in which it calls internal
16629         libc functions instead.  The counterpart patch series in glibc makes
16630         it possible to simplify all of that down to a set of #defines at the
16631         top of the file; core code is written as if it is safe to just call
16632         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
16633         call any *other* stdio functions.)
16635         * lib/getopt.c: When _LIBC is defined, define fprintf to
16636         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
16637         to _IO_funlockfile.  When neither _LIBC nor
16638         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
16639         funlockfile as no-ops.
16640         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
16641         standalone error-printing code can now be used for libc as well.
16642         Add an flockfile/funlockfile pair around one case where the error
16643         message is printed in several chunks.  Don't use fputc.
16646         getopt: fix fencepost error in ambiguous-W-option handling
16648         getopt_long contains an undocumented (AFAICT) feature in which, if you
16649         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
16650         treated as equivalent to '--foo'.  This is implemented with a partial
16651         second copy of the code for handling long options, and that code
16652         increments optind one too many times when recovering from an ambiguous
16653         abbreviated option, which can cause the main loop to walk past the end
16654         of argv and crash.
16656         I discovered this while writing a test case that tries to exercise all
16657         of getopt's error reporting paths; I wouldn't be surprised to learn
16658         that this feature is never used by real applications.
16660         * lib/getopt.c (_getopt_internal_r): Don't increment
16661         d->optind a second time when reporting ambiguous -W options.
16664         getopt: clean up getopt.c and getopt1.c file headers
16666         In getopt.c, there is no need to include wchar.h at all, and it is
16667         safe nowadays to assume that stdlib.h does declare getenv (several
16668         other gnulib modules make this assumption).
16670         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
16671         by using "" inclusions consistently, and there is no actual need to
16672         include stdlib.h (except in the #ifdef TEST block, where it should be
16673         unconditional), nor to provide a backup definition of NULL at all.
16675         * lib/getopt1.c: Simplify #ifdeffage at top of file.
16676         Move inclusion of stdlib.h to #ifdef TEST block and make
16677         unconditional.  Do not define NULL.
16678         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
16679         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
16680         * modules/getopt-gnu, modules/getopt-posix: Don't call
16681         gl_PREREQ_GETENV.
16684         getopt: harmonize comments with glibc
16686         The comments explaining how the behavior of 'getopt' varies depending
16687         on whether it's the standalone version and whether there are special
16688         characters at the beginning of the options string were inconsistent
16689         between gnulib and glibc, and also out of sync with the code.
16691         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
16694         getopt: remove USE_NONOPTION_FLAGS
16696         getopt includes code to parse an environment variable named
16697         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
16698         in decimal); but all of it has been #ifdefed out since 2001, with no
16699         official way to turn it back on.
16701         According to commentary in glibc's config.h.in, bash version 2.0
16702         set this environment variable to indicate argv elements that were
16703         the result of glob expansion and therefore should not be treated
16704         as options, but the feature was "disabled later" because "it
16705         caused problems".  According to bash's CHANGES file, "later" was
16706         release 2.01; it gives no more detail about what the problems
16707         were.
16709         Version 2.0 of bash was released on the last day of 1996, and version
16710         2.01 in June of 1997.  Twenty years later, I think it is safe to
16711         assume that this environment variable isn't coming back.
16713         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
16714         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
16715         __libc_argc and __libc_argv externs, which were only used by
16716         #ifdef USE_NONOPTION_FLAGS blocks.
16719         getopt: tabify, in preparation for merge with glibc
16721         glibc sticks to the GNU default of indenting with a mix of
16722         8-column tabs and spaces; make the gnulib copy match.
16724         getopt.h is not included because it is *not* going to be merged in its
16725         present form.
16727         * getopt.c, getopt1.c, getopt_int.h: Tabify.
16729 2017-04-02  Bruno Haible  <bruno@clisp.org>
16731         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
16732         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
16733         like it was done in modules/relocatable-lib on 2011-05-21 and in
16734         modules/relocatable-prog on 2011-08-15.
16735         Reported by Reuben Thomas <rrt@sc3d.org>.
16737 2017-03-31  Bruno Haible  <bruno@clisp.org>
16739         glob: Fix invalid free() call.
16740         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
16741         static storage to home_dir.
16742         Reported by Coverity via Tim Rühsen.
16744 2017-03-31  Bruno Haible  <bruno@clisp.org>
16746         glob: Fix memory leaks.
16747         * lib/glob.c (glob): Free allocated memory before returning.
16748         Reported by Coverity via Tim Rühsen.
16750 2017-03-31  Bruno Haible  <bruno@clisp.org>
16752         md5, sha1, sha256, sha512: Add comments regarding correctness.
16753         * lib/md5.h (buflen): Add comments regarding range.
16754         * lib/sha1.h (buflen): Likewise.
16755         * lib/sha256.h (buflen): Likewise.
16756         * lib/sha512.h (buflen): Likewise.
16757         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
16758         * lib/sha1.c (sha1_process_bytes): Likewise.
16759         * lib/sha256.c (sha256_process_bytes): Likewise.
16760         * lib/sha512.c (sha512_process_bytes): Likewise.
16761         Reported by Coverity via Tim Rühsen.
16763 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
16765         getopt: merge from glibc
16766         This does not change anything substantial; it merely simplifies
16767         hypothetical merges back to glibc.
16768         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
16769         Change copyright notice to match what is in glibc.
16770         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
16771         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
16772         __open_memstream rather than open_memstream and __glibc_likely
16773         instead of __builtin_expect.
16774         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
16776 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
16778         dfa: make [0-9] faster in non-C locales
16779         Problem reported by John P. Linderman (Bug#26193).
16780         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
16781         If both ends of the range are ASCII digits, do not worry about
16782         multi-character collating sequences and the like.  Be consistent
16783         about using isalpha as a precondition for setbit_case_fold_c.
16785 2017-03-19  Bruno Haible  <bruno@clisp.org>
16787         lock: Fix compilation error with HP-UX IA64 cc.
16788         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
16789         weak on non-glibc platforms.
16791 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16793         stdalign: tweak version# and test for HP-UX IA64
16794         Problems reported by Bruno Haible in:
16795         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
16796         * lib/stdalign.in.h (_Alignas):
16797         * m4/stdalign.m4 (gl_STDALIGN_H):
16798         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
16799         used octal (as that is how they document it), but it is decimal in
16800         practice now and the ancient implementations no longer matter.
16801         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
16803 2017-03-19  Bruno Haible  <bruno@clisp.org>
16805         vma-iter: Add support for Solaris.
16806         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
16807         approach.
16808         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
16809         * lib/get-rusage-as.c: Update comment about Solaris.
16810         * lib/get-rusage-data.c: Likewise.
16812 2017-03-19  Bruno Haible  <bruno@clisp.org>
16814         vma-iter: Prefer HP-UX specific API on HP-UX.
16815         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
16816         * lib/vma-iter.h: Update.
16817         Just in case HP-UX ever implements mquery().
16819 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
16821         stdalign: restore previous behavior for HP-UX IA64
16822         See Bruno Haible's email in:
16823         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
16824         which cites p 150 of a manual saying that 'aligned' works on Itanium.
16825         * lib/stdalign.in.h (_Alignas):
16826         Assume the '061200' applies to Itanium, not to PA-RISC.
16827         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
16829 2017-03-17  Bruno Haible  <bruno@clisp.org>
16831         stat-time, timespec: Support use of the header files in C++ mode.
16832         * lib/stat-time.h: Add "C" linkage declaration.
16833         * lib/timespec.h: Likewise.
16835 2017-03-17  Bruno Haible  <bruno@clisp.org>
16837         stdalign: Make it work with HP-UX cc.
16838         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
16839         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
16840         for HP-UX cc.
16842 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
16844         flexmember: try to detect HP-UX 11.31 cc bug
16845         Problem reported by Bruno Haible in:
16846         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
16847         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
16848         Attempt to detect bug in HP-UX 11.31 cc.
16850 2017-03-16  Bruno Haible  <bruno@clisp.org>
16852         stdint: Fix test compilation failure with HP-UX 11 cc.
16853         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
16854         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
16855         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
16856         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
16858 2017-03-14  Bruno Haible  <bruno@clisp.org>
16860         gnulib-tool: Don't produce a tests directory with only snippet .h files.
16861         * gnulib-tool (func_modules_transitive_closure_separately): If
16862         testsrelated_modules ends up with no "real" modules, aside from
16863         modules with applicability 'all', set it to empty.
16865 2017-03-14  Bruno Haible  <bruno@clisp.org>
16867         vma-iter: Add support for HP-UX.
16868         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
16869         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
16870         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
16871         * lib/get-rusage-as.c: Update comment about HP-UX.
16872         * lib/get-rusage-data.c: Likewise.
16873         (get_rusage_data): Use get_rusage_data_via_setrlimit.
16875 2017-03-14  Bruno Haible  <bruno@clisp.org>
16877         limits-h: Make it work with HP-UX cc.
16878         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
16879         defined.
16881 2017-03-14  Bruno Haible  <bruno@clisp.org>
16883         Fix test failures on DragonFlyBSD.
16884         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
16885         * tests/test-select.h (test_bad_fd): Likewise.
16886         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
16888 2017-03-14  Bruno Haible  <bruno@clisp.org>
16890         freadahead: Silence warning on DragonFlyBSD.
16891         * lib/freadahead.c (__sreadahead): Declare ourselves.
16893 2017-03-14  Bruno Haible  <bruno@clisp.org>
16895         vma-iter: Add comment about AIX.
16896         * lib/vma-iter.c: Add comment about why this module is not implemented
16897         on AIX.
16899 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
16901         snippets: move unadjusted snippet sources to lib
16902         Problem reported by Michal Privoznik in:
16903         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
16904         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
16905         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
16906         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
16907         * lib/unused-parameter.h: Rename from
16908         build-aux/snippet/unused-parameter.h.
16909         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
16910         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
16911         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
16912         * modules/snippet/c++defs (Files:, CXXDEFS_H):
16913         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
16914         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
16915         Adjust to file renamings.
16917 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
16919         gnulib-tool: don't automatically distribute files from top/
16920         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
16921         not distribute top/README-release by default, don't distribute files
16922         from top/ unconditionally.
16923         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
16924         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
16926 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
16928         gnulib-tool: fix typo in comment output
16929         * gnulib-tool (func_import): Fix typo with previous change.
16931         snippets: work around GNU Make 3.82 VPATH
16932         When using 'gnulib-tool --gnu-make' on Emacs, and building
16933         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
16934         an out-of-source (VPATH) build failed because the sans-copyright
16935         snippet file was not built before the file that used it.
16936         Presumably this is some sort of VPATH thing.  Work around the
16937         problem by using the original snippet, i.e., don’t bother to
16938         remove its copyright notice.
16939         * modules/snippet/_Noreturn, modules/snippet/link-warning:
16940         Don’t assume Automake in comments.  Omit long-incorrect comment.
16941         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
16942         (MOSTLYCLEANFILES):
16943         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
16944         (MOSTLYCLEANFILES):
16945         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
16946         (MOSTLYCLEANFILES):
16947         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
16948         (MOSTLYCLEANFILES):
16949         Remove.
16950         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
16951         * modules/snippet/c++defs (CXXDEFS_H):
16952         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
16953         * modules/snippet/warn-on-use (WARN_ON_USE_H):
16954         Don’t bother to remove the copyright notice; just use the
16955         original snippet as-is.
16957 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
16959         gnulib-tool: minor --gnu-make fixups
16960         * gnulib-tool (func_emit_lib_Makefile_am):
16961         Remove useless code that was a blind alley during implementation.
16962         Problem reported by Thien-Thi Nguyen in:
16963         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
16964         (func_import): Note the "--gnu-make" option in the output comment.
16966 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
16968         gnulib-tool: new option --gnu-make
16969         This is for applications like GNU Emacs that use GNU Make
16970         features instead of Automake.
16971         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
16972         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
16973         Do not assume Automake.
16974         * gnulib-tool (func_determine_path_separator)
16975         (func_modules_transitive_closure, func_update_file)
16976         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
16977         (func_import): Add support for --gnu-make.
16979 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
16981         gnulib-common.m4: avoid aclocal.m4 bloat
16982         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
16983         Hide AM_PROG_AR from aclocal, so that aclocal does not
16984         install irrelevant macro definitions into aclocal.m4.
16986 2017-03-10  Bruno Haible  <bruno@clisp.org>
16988         vma-iter: Let callers know about error.
16989         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
16990         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
16992 2017-03-05  Bruno Haible  <bruno@clisp.org>
16994         Fix value of LD for 64-bit compilers on AIX.
16995         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
16996         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
16998 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
17000         dtotimespec: simplify
17001         * lib/dtotimespec.c (dtotimespec): Simplify.
17003 2017-03-04  Bruno Haible  <bruno@clisp.org>
17005         test-calloc-gnu: Reenable test also for GCC 7.
17006         * tests/test-calloc-gnu.c (eight): New function.
17007         (main): Don't skip test; use eight() instead.
17009 2017-03-04  Jim Meyering  <meyering@fb.com>
17011         test-calloc-gnu: port to GCC7
17012         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
17013         that attempts to calloc more than SIZE_MAX bytes, because GCC7
17014         and newer would detect that at compilation time.
17016 2017-03-04  Bruno Haible  <bruno@clisp.org>
17018         tests: Avoid compiler warning about uses of null_ptr.
17019         * tests/null-ptr.h: New file.
17020         * tests/test-canonicalize.c: Include null-ptr.h.
17021         (null_ptr): Remove function.
17022         * tests/test-canonicalize-lgpl.c: Likewise.
17023         * tests/test-memmem.c: Likewise.
17024         * tests/test-ptsname_r.c: Likewise.
17025         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
17026         * modules/canonicalize-lgpl-tests: Likewise.
17027         * modules/memmem-tests: Likewise.
17028         * modules/ptsname_r-tests: Likewise.
17029         Reported by Jim Meyering.
17031 2017-03-03  Bruno Haible  <bruno@clisp.org>
17033         doc: Mention Mac OS X deficiencies regarding semaphores.
17034         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
17035         * doc/posix-functions/sem_destroy.texi: Likewise.
17036         * doc/posix-functions/sem_getvalue.texi: Likewise.
17038 2017-03-03  Bruno Haible  <bruno@clisp.org>
17040         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
17041         Reported by Assaf Gordon <assafgordon@gmail.com> via
17042         Pádraig Brady <P@draigBrady.com>.
17043         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
17044         semaphores.
17045         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
17046         (atomic_int_semaphore): New macro.
17048 2017-02-28  Bruno Haible  <bruno@clisp.org>
17050         perror tests: Tweak for z/OS.
17051         Reported by Daniel Richard G. <skunk@iskunk.org>.
17052         * tests/test-perror.sh: Don't fail z/OS style perror output.
17054 2017-02-26  Bruno Haible  <bruno@clisp.org>
17056         nproc: Refactor large function.
17057         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
17058         from num_processors.
17059         (num_processors): In this function, only deal with OMP.
17061 2017-02-26  Pádraig Brady  <P@draigBrady.com>
17063         nproc: adjust handling of OpenMP environment variables
17064         to match the return value from omp_get_num_threads(), i.e.:
17065          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
17066          - Treat 0 as an invalid value and ignore
17067         Also remove the call to omp_get_num_threads() because
17068         it's ineffective without the omp pragmas in place.
17069         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
17070         so that it can be ignored.
17071         (num_processors): Honor OMP_THREAD_LIMIT even without
17072         OMP_NUM_THREADS being set.  Also fix a typo in the environment
17073         variable being checked, from the previous recent commit.
17075 2017-02-26  Pádraig Brady  <P@draigBrady.com>
17077         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
17078         * lib/nproc.c (parse_omp_threads): A new function refactored
17079         from num_processors() to support parsing both of the
17080         above environment variables.
17081         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
17082         to accurately reflect the current OpenMP nesting level.
17083         Also support the OMP_THREAD_LIMIT environment variable
17084         to limit the max value determined from OMP_NUM_THREADS.
17085         * modules/nproc: Depend on minmax header.
17086         Suggested by Oliver Heimlich.
17088 2017-02-25  Bruno Haible  <bruno@clisp.org>
17090         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
17091         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
17093 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
17095         ftoastr: port to -Wdouble-promotion
17096         Work around -Wdouble-promotion false alarm in recent GCCs.
17097         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
17098         (ftoastr_snprintf, FTOASTR): Use it.
17100 2017-02-21  Bruno Haible  <bruno@clisp.org>
17102         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
17103         Reported by Rene Saavedra <rennes@openmailbox.org> in
17104         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
17105         * lib/glthread/lock.h: On glibc systems without
17106         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
17107         implementation of rwlocks.
17108         * lib/glthread/lock.c: Likewise.
17110 2017-02-20  Bruno Haible  <bruno@clisp.org>
17112         lock tests: Fix build failure on z/OS.
17113         Reported by Daniel Richard G. <skunk@iskunk.org>.
17114         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
17115         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
17116         exist.
17118 2017-02-19  Bruno Haible  <bruno@clisp.org>
17120         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
17121         This helps when CC=clang.
17122         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
17123         of /usr/bin/gcc.
17125         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
17126         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
17128 2017-02-19  Bruno Haible  <bruno@clisp.org>
17130         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
17131         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
17132         --with-tests --single-configure is specified.
17134 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
17136         users.txt: Update links, use HTTPS where possible
17137         * users.txt: Updated to HTTPS where possible,
17138         fixed some links to new locations.
17140 2017-02-16  Bruno Haible  <bruno@clisp.org>
17142         xbinary-io: Fix inlining.
17143         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
17145 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
17147         xbinary-io: rename from xsetmode
17148         This patch is taken from suggestions by Bruno Haible in:
17149         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
17150         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
17151         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
17152         not ENOTTY, when it is an inappropriate device.
17153         * lib/binary-io.h (SET_BINARY): Resurrect.
17154         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
17155         (xset_binary_mode_error): Rename from xsetmode_error.
17156         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
17157         (xset_binary_mode): Rename from xsetmode.
17158         All uses changed.
17159         * modules/xbinary-io: Rename from modules/xsetmode.
17160         Update file names.
17161         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
17162         * NEWS: Update to match revised behavior.
17164 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
17166         tests: Adjust to recent SET_BINARY change
17167         * tests/test-binary-io.c (main):
17168         * tests/test-binary-io.sh: Remove test for SET_BINARY.
17169         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
17170         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
17171         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
17173         xsetmode: new module
17174         This is to fix a problem noted by Eric Blake.
17175         Code was using xfreopen to change files to binary mode, but this
17176         fails for stdout when in append mode.  Such code should use
17177         xsetmode instead.
17178         * NEWS: Document incompatible changes to binary-io module.
17179         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
17180         New function.
17181         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
17182         (set_binary_mode): New function, which also checks for tty.
17183         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
17185 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
17187         headers: fix begin-end typos
17188         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
17189         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
17191         selinux-h: port to PGI 16.10
17192         * lib/se-selinux.in.h: Don't assume that include_next skips over
17193         duplicate -I DIR options.
17195         argp: port to PGI 16.10
17196         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
17198 2017-02-13  Darshit Shah  <darnir@gnu.org>
17200         unicase: Update function protoype to match definition.
17201         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
17202         uses 'size_t' as the datatype for the 'len' parameter in the functions
17203         it generates. Update the prototype specified here to match the newly
17204         generated function.
17206 2017-02-12  Bruno Haible  <bruno@clisp.org>
17208         times test: Avoid gcc warnings on Linux/x32.
17209         * tests/test-times.c (main): Really cast printf arguments from clock_t
17210         to 'long int'.
17212 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17214         glob: port better to emscripten
17215         Problem reported by Bruno Haible in:
17216         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
17217         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
17219 2017-02-11  Bruno Haible  <bruno@clisp.org>
17221         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
17222         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
17223         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
17224         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
17225         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
17226         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
17227         Distinguish hppa64 from hppa.
17229 2017-02-10  Bruno Haible  <bruno@clisp.org>
17231         search: Don't assume that tsearch() exists if 'VISIT' is defined.
17232         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
17233         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
17234         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
17236 2017-02-09  Bruno Haible  <bruno@clisp.org>
17238         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
17239         * doc/gnulib.texi (Libtool and Windows): Recommend
17240         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
17241         Reported by Reuben Thomas <rrt@sc3d.org>.
17243 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
17245         stddef-tests: port to SIZE_MAX <= INT_MAX
17246         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
17247         Do not assume that INT_MAX < SIZE_MAX.
17249 2017-02-01  Bruno Haible  <bruno@clisp.org>
17251         lock tests: Fix link error.
17252         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
17253         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17255 2017-01-31  Bruno Haible  <bruno@clisp.org>
17257         lock: Fix link error (regression from 2017-01-05).
17258         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
17259         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
17260         pthread_rwlockattr_destroy weak.
17261         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17263 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
17265         Port to PGI 16.10 x86-64
17266         This patch fixes one real bug in gl_anylinked_list2.h, along with
17267         some minor glitches that are not bugs.  It does not silence PGI’s
17268         thousands of bogus warnings when compiling test-intprops.c.
17269         Fortunately, the warnings do not cause a failure.
17270         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
17271         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
17272         My goodness, PGI goes back a long ways - this predates C89!
17273         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
17274         For example, ASYNCSAFE (const void *) should expand to
17275         ‘const void *volatile’, not to ‘volatile const void *’.
17276         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
17277         * lib/verify.h (verify) [!__GNUC__]:
17278         Use shorter albeit meaningless string to bypass silly compiler limits.
17279         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
17280         * tests/nan.h (NaNf, NaNd, NaNl):
17281         Use static functions to avoid misguided compiler diagnostics.
17282         Is there some reason we don’t use static functions on all platforms?
17284 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
17286         parse-datetime: handle timezones reentrantly
17287         This API change was prompted by a report by Pádraig Brady in:
17288         https://bug.debian.org/851934#10
17289         To help fix the bug, make parse_datetime2 more reentrant.
17290         * NEWS: Document this incompatible change.
17291         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
17292         Add two arguments, the timezone and the timezone name.
17293         All callers changed.  If TZ="..." is specified, use it for
17294         calculating defaults.
17295         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
17296         this code should be usable in a library.
17297         (mktime_ok, get_effective_timezone):
17298         Accept timezone arg too.  All callers changed.
17299         (get_tz): Remove.
17300         (get_effective_timezone): Check for failures.
17302 2017-01-20  Eric Blake  <eblake@redhat.com>
17304         localename: port to cygwin 2.6
17305         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
17306         Cygwin.
17307         * modules/localename (Depends-on): Add extensions, since
17308         NL_LOCALE_NAME() is not visible without it.
17310 2017-01-17  Pádraig Brady  <P@draigBrady.com>
17312         parse-datetime: fix dependence on AC_PROG_SED
17313         * modules/parse-datetime: Use `sed` directly like all other modules.
17314         Reported by J William Piggott
17316 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
17318         intprops: update doc URLs
17319         * doc/intprops.texi (Integer Range Overflow): Update URLs.
17321 2017-01-16  Bruno Haible  <bruno@clisp.org>
17323         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
17324         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
17325         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
17326         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
17327         distinguish s390 and s390x.
17328         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
17329         * NEWS: Mention the change regarding 'armel'.
17331 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
17333         localeinfo: case_folded_counterparts and WEOF
17334         * NEWS: Document this.
17335         * lib/localeinfo.c (case_folded_counterparts):
17336         First arg is now wint_t, not wchar_t.  This generalizes the
17337         function to also work on WEOF, where it returns 0.
17339         dfa: port to gcc -fsanitize=undefined
17340         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
17341         as this runs afoul of gcc -fsanitize=undefined.
17343 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
17345         strftime: %z is -00 if unknown
17346         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
17347         the caller's responsibility to set 'negative_number'.  All uses changed.
17348         (__strftime_internal): Put '-' before a zero UTC offset if the time
17349         zone abbreviation starts with "-", which is the recently-introduced
17350         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
17351         * tests/test-strftime.c: Test for this.
17353 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
17355         dfa: port to older GCC
17356         Problem reported by Assaf Gordon in:
17357         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
17358         * modules/c99: New module.  This merely attempts to use the latest
17359         C version, which should be enough to solve this particular problem.
17360         The idea is to document which Gnulib modules assume C99 or later.
17361         * modules/dfa (Depends-on): Add it.
17363 2017-01-10  Bruno Haible  <bruno@clisp.org>
17365         Update DEPENDENCIES.
17366         * DEPENDENCIES: List only https URLs. Update recommended version for
17367         autoconf, automake, gperf.
17369 2017-01-10  Jim Meyering  <meyering@fb.com>
17371         maint.mk: enforce spelling of "timestamp" (i.e., no space)
17372         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
17373         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
17375 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
17377         dfa: minor simplification with emptyset
17378         * lib/dfa.c (build_state): Simplify by using emptyset.
17380 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
17382         dfa: shrink constraints from 4 bits to 3
17383         * lib/dfa.c (newline_constraint, letter_constraint)
17384         (other_constraint, prev_newline_dependent)
17385         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
17386         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
17387         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
17388         Constraints need only 3 bits, not 4.  Using smaller integers
17389         shrinks the code a bit and makes grep a tad faster on x86-64.
17391         dfa: omit unnecessary ptrdiff_t check
17392         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
17393         overflow, since xnmalloc does that now.
17395         dfa: omit unnecessary allocation
17396         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
17397         an all-zero follow set works just fine.
17399         dfa: omit unused local
17400         * lib/dfa.c (build_state): Fix up recent change.
17402         maint: remove stray .texi files
17403         Although these were superseded by other files like
17404         doc/posix-functions/ctime.texi, the old files were not removed.
17405         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
17407 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
17409         getprogname: fix port to IRIX
17410         * lib/getprogname.c (getprogname) [__sgi]:
17411         Don't dump core if malloc returns NULL.
17413         dfa: fix reallocation bug when matching newlines
17414         Problem reported for sed by S. Gilles (Bug#25390).
17415         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
17416         (dfastate): Reallocate before moving any newline transition ...
17417         (build_state): ... instead of reallocating here, where it is too late.
17419 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
17421         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
17422         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
17424 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
17426         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
17427         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
17429 2017-01-07  Bruno Haible  <bruno@clisp.org>
17431         stdioext: Port to Minix 3.2 and newer.
17432         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
17433         * lib/fseeko.c (fseeko): Likewise.
17434         Reported by Nelson Beebe via Paul Eggert.
17436 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
17438         getprogname: port to IRIX
17439         * lib/getprogname.c (getprogname): Port to IRIX.
17440         Based on an idea by Bastien Roucariès at:
17441         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
17442         via code from Bruno Haible at:
17443         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
17445         localename-tests: port to NetBSD 7
17446         Problem reported by Nelson H. F. Beebe.
17447         * tests/test-localename.c:
17448         Test newlocale and uselocale only if both exist.
17450         glob, intprops, xalloc: work around Clang bug
17451         Work around LLVM bug 16404, which is still not fixed.
17452         https://llvm.org/bugs/show_bug.cgi?id=16404
17453         Problem reported by Nelson H. F. Beebe.
17454         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
17455         Remove.
17456         * lib/glob.c (size_add_wrapv):
17457         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
17458         * lib/xalloc-oversized.h (xalloc_oversized):
17459         Do not use overflow builtins if Clang.
17461         dfa: fix 'return' typo
17462         Problem reported by Nelson H. F. Beebe.
17463         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
17465 2017-01-05  Pádraig Brady  <P@draigBrady.com>
17467         parse-datetime: fix generated paths for coverage files
17468         * modules/parse-datetime: Adjust the paths for parse-datetime.y
17469         within parse-datetime.c, so that gcc generates appropriate .gcno
17470         files, allowing lcov to proceed without error.  Previously it
17471         would error trying to find "lib/lib/parse-datetime.y".
17473 2017-01-05  Pádraig Brady  <P@draigBrady.com>
17475         maint.mk: support parallel execution of coverage
17476         * top/maint.mk (coverage): Run dependencies serially,
17477         thus supporting parallel processing of each one,
17478         particularly build-coverage, which builds and runs tests.
17480 2017-01-05  Bruno Haible  <bruno@clisp.org>
17482         lock tests: Prefer semaphore over mutex.
17483         * tests/test-lock.c (USE_SEMAPHORE): New constant.
17484         (struct atomic_int, init_atomic_int, get_atomic_int_value,
17485         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
17486         Suggested by Torvald Riegel <triegel@redhat.com>.
17488 2017-01-05  Bruno Haible  <bruno@clisp.org>
17490         lock: Provide guarantee to avoid writer starvation for rwlocks.
17491         The rationale is: 1) Read-preferring read-write locks are prone to
17492         writer starvation if the number of reader threads multiplied by the
17493         percentage of time they have the lock held is too high. 2) Write-
17494         preferring read-write locks are the only reliable way to avoid this.
17495         3) There have been reports of 'test-lock' hanging on glibc systems
17496         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
17497         and glibc indeed implements read-preferring rwlocks by default, see
17498         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
17499         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
17500         * m4/pthread_rwlock_rdlock.m4: New file.
17501         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
17502         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
17503         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
17504         of rwlock initialization on glibc systems without
17505         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
17506         of rwlocks altogether on non-glibc systems without
17507         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
17508         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
17509         * lib/glthread/lock.c [USE_POSIX_THREADS]
17510         (glthread_rwlock_init_for_glibc): New function.
17511         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
17512         comment.
17513         [USE_PTH_THREADS]: New implementation of rwlocks.
17514         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
17515         readers.
17516         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
17517         (Depends-on): Add 'extensions'.
17518         * tests/test-rwlock1.c: New file.
17519         * lock-tests (Files): Add it.
17520         (Depends-on): Add usleep.
17521         (Makefile.am): Add test-rwlock1 to the tests.
17523 2017-01-05  Bruno Haible  <bruno@clisp.org>
17525         thread: Fix pth port.
17526         * lib/glthread/thread.h (pth_init): Declare weak.
17527         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
17528         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
17529         function.
17531 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
17533         parse-datetime: fix debug message on lone year number
17534         Input dates such as
17535           date -d "Apr 11 22:59:00 2011"
17536         are parsed as date (Apr 11, with default year 2016), then time, then a
17537         number (2011). Based on the combination of previously seen tokens,
17538         'digits_to_date_time' determines 2011 to be a year value.
17539         This fixes the debug messages to correctly show the updated year.
17540         Before:
17541             $ date --debug -d 'Apr 11 22:59:00 2011'
17542             date: parsed date part: (Y-M-D) 2016-04-11
17543             date: parsed time part: 22:59:00
17544             date: parsed number part: today/this/now
17545         After:
17546             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
17547             date: parsed date part: (Y-M-D) 2016-04-11
17548             date: parsed time part: 22:59:00
17549             date: parsed number part: year: 2011
17550         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
17551         'debug_year_seen' member fields.
17552         (digits_to_date_time): Update 'year_seen' as needed.
17553         (debug_print_current_time): Inform about year updates.
17554         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
17556         parse-datetime: fix local timezone debug messages
17557         "Local timezones" are strings that affect only DST relative to the
17558         default timezone. The debug messages in parse-datetime.y printed
17559         wrong information when encountering local timezones.
17560         Examples:
17561         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
17562              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
17563              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
17564         When the default timezone relates to the zone strings, EET/EEST are
17565         parsed as local timezones (tLOCAL_ZONE), and only change the DST
17566         value (0/1, respectively):
17567              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
17568              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
17569         * lib/parse-datetime.y (debug_print_current_time): If local timezone
17570         was seen, inform about DST change, don't print actual timezone.
17571         (debug_strfdatetime): If local timezone was seen, use default timezone
17572         (and adjust as needed) instead of using incorrect timezone.
17573         (parse_datetime2): Use correct time-zone source string, and adjust
17574         default timezone as needed.
17576         parse-datetime: add debug warning about DST changes
17577         Incorrect date arithmetic due to daylight saving time (DST) are a
17578         common (false) bug report in coreutils.
17579         Detect two such cases and print a warning:
17580         1. year/month/day adjustments (performed on 'struct tm'),
17581            where 'mktime' returns a different isdst value.
17582         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
17583            where the result of 'localtime(3)' on the value will return a
17584            different isdst value.
17585         Note: DST changes could be harmless or unnoticeable.
17586         Examples (with 'TZ=America/New_York'):
17587         Unnoticeable: result is 2016-Dec-14
17588            $ date -d '2016-06-15 EDT + 6 months' +%b
17589            Dec
17590         Unnoticeable: result is 2016-Dec-15 11:00:00
17591            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
17592            2016-12-15
17593         This is unexpected:
17594            $ date -d '2016-06-01 EDT + 6 months' +%F
17595            2016-11-30
17596         The new debug warnings will show:
17597            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
17598            ...
17599            date: warning: daylight saving time changed after date adjustment
17600            ...
17601         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
17602         print an appropriate warning message.
17604         parse-datetime: add debug warning about date arithmetic
17605         Date arithmetic are done directly on the fields of 'struct tm',
17606         which can result in invalid dates. Normalization with 'mktime(3)'
17607         will then produce a different date - which might cause unexpected
17608         results.
17609         Examples:
17610           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
17611           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
17612         Note that date normalization is not inherently wrong and not rejected,
17613         as it has legitimate uses:
17614           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
17615         If the user asked to adjust months but 'mday' changed,
17616         or user asked to adjust years but 'month' changed - warn about it.
17617             $ ./src/date --debug -d '2016-10-31 - 1 month'
17618             ...
17619             date: warning: when adding relative months/years, \
17620                            it is recommended to specify the 15th of the month
17621             ...
17622             date: warning: month/year adjustment resulted in shifted dates:
17623             date:      adjusted Y M D: 2016 09 31
17624             date:    normalized Y M D: 2010 10 01
17625             ...
17626         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
17627         a warning message. Improve recommendation of when to use 15 of the
17628         month or noon for date arithmetic.
17630         parse-datetime: fix debug message of relative part after timezone
17631         Relative part (e.g '+8 days') after a timezone string was not
17632         reported (was only reported after a timezone number). Due to the
17633         parser's structure, timezone strings with numbers were handled
17634         separately.
17635         before:
17636              # Timezone number + relative part: OK
17637              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
17638              ...
17639              date: parsed relative part: -8 day(s)
17640              # Timezone string + relative part: missing
17641              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
17642              [ missing message ]
17643         After: messages are printed in both cases.
17644         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
17646         parse-datetime: fix incorrect debug message on lone number
17647         A lone number is an absolute value, not a relative time part.
17648         before:
17649            $ date --debug -d '20130101'
17650            date: parsed number part: today/this/now
17651         After:
17652            $ ./src/date --debug -d '20130101'
17653            date: parsed number part: (Y-M-D) 2013-01-01
17654         * lib/parse-datetime.y ('item'/'number' tokens): Call
17655         'debug_print_current_time' instead of 'debug_print_relative_time'.
17657 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
17659         doc: modernize for C11 etc.
17660         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
17661         for C11, MinGW, etc.  This responds to Paul Smith's question in:
17662         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
17664         dfa: prefer functions to FETCH_WC macro
17665         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
17666         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
17667         wint_t result into DFA->lex.wctok instead of to a separate arg.
17668         All callers changed.  Move more local decls closer to where
17669         they're used.
17671         dfa: narrow more local var scopes
17672         * lib/dfa.c: Move more local decls to be more local.
17674         dfa: remove duplicate assignment
17675         Problem reported by Bruno Haible in:
17676         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
17677         * lib/dfa.c (parse_bracket_exp): Simplify.
17679 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17681         dfa: simplify constraint-dependency checking
17682         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
17683         (prev_other_constraint): Remove.
17684         (prev_newline_dependent, prev_letter_dependent):
17685         Simplify, to avoid an unnecessary bitwise AND operation.
17687         dfa: prefer functions and constants to macros
17688         * lib/dfa.c: Prefer constants to macros where either will do.
17689         (streq, isasciidigit, newline_constraint)
17690         (letter_constraint, other_constraint, succeeds_in_context)
17691         (prev_newline_constraint, prev_letter_constraint)
17692         (prev_other_constraint, prev_newline_dependent)
17693         (prev_letter_dependent, accepting, accepts_in_context):
17694         Now static functions instead of function-like macros.
17695         Use lower-case names accordingly.  All uses changed.
17697         dfa: narrow more local var scopes
17698         * lib/dfa.c: Move some more local decls down to nearer where
17699         they're needed.
17701 2016-12-31  Jim Meyering  <meyering@fb.com>
17703         dfa: narrow the scope of many local variables
17704         * lib/dfa.c: Now that we are no longer constrained to c89, move
17705         declarations of many variables (often indices) "down" into the
17706         scope(s) where used or to the point of definition.  This is a
17707         no-semantic-change diff.
17709 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17711         version-etc: new year
17712         * build-aux/gendocs.sh (version):
17713         * doc/gendocs_template:
17714         * doc/gendocs_template_min:
17715         * doc/gnulib.texi:
17716         * lib/version-etc.c (COPYRIGHT_YEAR):
17717         Update copyright dates by hand in templates and the like.
17718         * all files: Run 'make update-copyright'.
17720 2016-12-31  Eric Blake  <eblake@redhat.com>
17722         do-release-commit-and-tag: avoid shell syntax error
17723         * build-aux/do-release-commit-and-tag (curr_br): $branch can
17724         contain spaces when rebasing.
17726         maint.mk: hoist gnulib_dir definition earlier
17727         * top/maint.mk (gnulib_dir): Move near top of file.
17729 2016-12-31  Jim Meyering  <meyering@fb.com>
17731         maint.mk: do not always evaluate intprops-related shell
17732         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
17733         using gnulib_dir undefined (gnulib_dir is defined later in the
17734         file, which will be fixed separately), and besides, there is no
17735         need to incur the cost of this shell invocation for every single
17736         use of this .mk file.  Reported by Eric Blake in
17737         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
17739 2016-12-30  Jim Meyering  <meyering@fb.com>
17741         maint.mk: improve sc_prohibit_intprops_without_use
17742         * top/maint.mk (_intprops_names): Don't hard-code the list of
17743         symbol names.  Instead, derive it on the fly.
17745 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
17747         dfa: shorten sbit, success
17748         * lib/dfa.c (struct regex_syntax.sbit):
17749         (struct dfa.success): Use char, not int, for array elements, since
17750         they are all in the range 0..7.
17752         dfa: simplify multibyte_prop etc.
17753         This follows up on a change made when dfa.c was in grep, namely grep
17754         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
17755         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
17756         That earlier simplification allows for some more simplification
17757         and trimming down here.
17758         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
17759         (struct lexer_state): New mamber brack.
17760         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
17761         since they must be in the range 0..3 now.
17762         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
17763         the brack member now supersedes them.
17764         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
17765         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
17766         (dfaparse): Remove unnecessary initializations of already-0 storage.
17767         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
17768         (dfassbuild): No need to clear sup->mbcsets.
17770         dfa: minor performance tweak
17771         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
17773         dfa: wrap charclass inside a struct
17774         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
17775         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
17776         about 5% faster, where list.txt is generated by 'aspell dump
17777         master | head -n 100000 >list.txt'.  See Bug#22239.
17778         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
17779         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
17780         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
17781         Adjust to this, e.g., by using charclass * rather than charclass.
17782         All callers changed as needed.
17783         (copyset): Remove.  All uses changed to simple assignment.
17784         (parse_bracket_exp): Use zeroset instead of memset.
17786 2016-12-30  Jim Meyering  <meyering@fb.com>
17788         maint.mk: update list of intprops.h symbol names
17789         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
17790         This avoids a false failure of the sc_prohibit_intprops_without_use
17791         rule in grep.
17793 2016-12-29  Eric Blake  <eblake@redhat.com>
17795         getopt: fix parallel test failure
17796         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
17797         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
17798         * tests/test-getopt-main.h (main): Use different file names
17799         in case test-getopt-gnu and test-getopt-posix run in parallel.
17801 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17803         xalloc: x2nrealloc check for ptrdiff_t overflow
17804         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
17805         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
17807 2016-12-24  Bruno Haible  <bruno@clisp.org>
17809         lock test: Fix performance problem on multi-core machines.
17810         * tests/test-lock.c (USE_VOLATILE): New macro.
17811         (struct atomic_int): New type.
17812         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
17813         functions.
17814         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
17815         as 'struct atomic_int'.
17816         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
17817         reclock_checker_thread, test_recursive_lock): Use the new functions.
17818         Reported by Eric Blake in
17819         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
17820         and by Pádraig Brady in
17821         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
17823 2016-12-19  Bruno Haible  <bruno@clisp.org>
17825         vma-iter: Fix endless loop on 64-bit Windows.
17826         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
17827         'unsigned long'.
17829 2016-12-19  Bruno Haible  <bruno@clisp.org>
17831         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
17832         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
17833         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
17834         Invoke gt_TYPE_WINT_T instead.
17835         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
17836         * modules/stdint (Files): Add m4/wint_t.m4.
17837         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
17838         * modules/wctype-h (Makefile.am): Likewise.
17839         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
17840         not only on MSVC.
17841         * lib/wctype.in.h (wint_t): Likewise.
17843 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17845         getopt-posix-tests: fix Makefile typo
17846         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
17847         Fix typo: the last ‘_’ was missing in the name.
17848         I suspect that the typo explains this build failure:
17849         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
17850         although I can’t reproduce the problem on Solaris 10 sparc.
17852 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17854         dfa: improve worst-case 'replace' performance
17855         See my note in Bug#22357#71.
17856         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
17857         (merge_constrained): New function, which is like
17858         the old 'merge' function, except with a new argument C2.
17859         Simplify the body by avoiding the need for different sections
17860         of code depending on whether one input is exhausted.
17861         (merge): Use the new function.
17862         (delete): Return the constraint of the deleted position,
17863         not the entire position.  Caller changed.
17864         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
17866 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
17868         dfa: performance improvement for removal of epsilon closure
17869         See Bug#22357#32.
17870         * lib/dfa.c (delete): Use binary search to find deleted index.
17871         (replace): New function.  It replaces a position with the followed set.
17872         (epsclosure): Replace it with a new algorithm.  Update caller.
17874 2016-12-18  Bruno Haible  <bruno@clisp.org>
17876         Split tests for getopt-posix and getopt-gnu.
17877         * tests/test-getopt-posix.c: New file.
17878         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
17879         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
17880         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
17881         GNULIB_TEST_GETOPT_GNU.
17882         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
17883         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
17884         (Makefile.am): Test test-getopt-posix instead of test-getopt.
17885         * modules/getopt-gnu-tests: New file.
17886         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
17888 2016-12-18  Bruno Haible  <bruno@clisp.org>
17890         posix-modules: Add options for specific platforms.
17891         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
17892         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
17893         Invoke func_tmpdir. Filter out the excludes.
17895 2016-12-18  Bruno Haible  <bruno@clisp.org>
17897         getopt: Fix link error for users of getopt() in <unistd.h>.
17898         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
17899         __need_getopt is defined. Undefine all macros before defining them.
17900         * modules/getopt (Include): Clarify that including <unistd.h> is also
17901         OK.
17902         * tests/test-getopt.c: Add comment.
17904 2016-12-17  Bruno Haible  <bruno@clisp.org>
17906         getaddrinfo tests: Avoid compilation error on MSVC.
17907         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
17908         getaddrinfo on native Windows.
17910 2016-12-17  Bruno Haible  <bruno@clisp.org>
17912         getlogin, getlogin_r: Fix link errors on MSVC.
17913         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
17914         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
17915         (Link): New section.
17916         * modules/getlogin_r (Files): Add m4/getlogin.m4.
17917         (configure.ac): Require gl_LIB_GETLOGIN.
17918         (Link): New section.
17919         * NEWS: Mention the new link requirements.
17920         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
17921         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
17923 2016-12-17  Bruno Haible  <bruno@clisp.org>
17925         Un-deprecate the 'progname' module.
17926         * NEWS: Describe the appropriate use-cases of 'progname' versus
17927         'getprogname'. Based on discussion summary at
17928         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
17930 2016-12-17  Bruno Haible  <bruno@clisp.org>
17932         Reorganize NEWS a bit.
17933         * NEWS: Move some not so important changes away from section
17934         "Important Notes".
17936 2016-12-17  Bruno Haible  <bruno@clisp.org>
17938         tanhf: Avoid redefinition error on MSVC.
17939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
17940         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
17941         may be defined as an inline function.
17942         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
17943         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
17945 2016-12-17  Bruno Haible  <bruno@clisp.org>
17947         tanf: Avoid redefinition error on MSVC.
17948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
17949         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
17950         may be defined as an inline function.
17951         * modules/math (Makefile.am): Substitute REPLACE_TANF.
17952         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
17954 2016-12-17  Bruno Haible  <bruno@clisp.org>
17956         sqrtf: Avoid redefinition error on MSVC.
17957         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
17958         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
17959         may be defined as an inline function.
17960         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
17961         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
17963 2016-12-17  Bruno Haible  <bruno@clisp.org>
17965         sinhf: Avoid redefinition error on MSVC.
17966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
17967         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
17968         may be defined as an inline function.
17969         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
17970         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
17972 2016-12-17  Bruno Haible  <bruno@clisp.org>
17974         sinf: Avoid redefinition error on MSVC.
17975         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
17976         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
17977         may be defined as an inline function.
17978         * modules/math (Makefile.am): Substitute REPLACE_SINF.
17979         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
17981 2016-12-17  Bruno Haible  <bruno@clisp.org>
17983         logf: Avoid redefinition error on MSVC.
17984         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
17985         may be defined as an inline function.
17987 2016-12-17  Bruno Haible  <bruno@clisp.org>
17989         log10l: Avoid redefinition error on MSVC.
17990         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
17991         may be defined as an inline function.
17993 2016-12-17  Bruno Haible  <bruno@clisp.org>
17995         log10f: Avoid redefinition error on MSVC.
17996         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
17997         may be defined as an inline function.
17999 2016-12-17  Bruno Haible  <bruno@clisp.org>
18001         hypotl: Avoid redefinition error on MSVC.
18002         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
18003         may be defined as an inline function.
18005 2016-12-17  Bruno Haible  <bruno@clisp.org>
18007         hypotf: Avoid redefinition error on MSVC.
18008         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
18009         may be defined as an inline function.
18011 2016-12-17  Bruno Haible  <bruno@clisp.org>
18013         fmodl: Avoid redefinition error on MSVC.
18014         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
18015         may be defined as an inline function.
18017 2016-12-17  Bruno Haible  <bruno@clisp.org>
18019         fmodf: Avoid redefinition error on MSVC.
18020         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
18021         may be defined as an inline function.
18023 2016-12-17  Bruno Haible  <bruno@clisp.org>
18025         expf: Avoid redefinition error on MSVC.
18026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
18027         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
18028         may be defined as an inline function.
18029         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
18030         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
18032 2016-12-17  Bruno Haible  <bruno@clisp.org>
18034         coshf: Avoid redefinition error on MSVC.
18035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
18036         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
18037         may be defined as an inline function.
18038         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
18039         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
18041 2016-12-17  Bruno Haible  <bruno@clisp.org>
18043         cosf: Avoid redefinition error on MSVC.
18044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
18045         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
18046         may be defined as an inline function.
18047         * modules/math (Makefile.am): Substitute REPLACE_COSF.
18048         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
18050 2016-12-17  Bruno Haible  <bruno@clisp.org>
18052         atan2f: Avoid redefinition error on MSVC.
18053         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
18054         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
18055         may be defined as an inline function.
18056         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
18057         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
18059 2016-12-17  Bruno Haible  <bruno@clisp.org>
18061         atanf: Avoid redefinition error on MSVC.
18062         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
18063         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
18064         may be defined as an inline function.
18065         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
18066         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
18068 2016-12-17  Bruno Haible  <bruno@clisp.org>
18070         asinf: Avoid redefinition error on MSVC.
18071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
18072         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
18073         may be defined as an inline function.
18074         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
18075         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
18077 2016-12-17  Bruno Haible  <bruno@clisp.org>
18079         acosf: Avoid redefinition error on MSVC.
18080         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
18081         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
18082         may be defined as an inline function.
18083         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
18084         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
18086 2016-12-17  Bruno Haible  <bruno@clisp.org>
18088         Avoid redefinition errors on MSVC.
18089         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
18090         the function may be defined as an inline function.
18091         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
18092         the function may be defined as an inline function.
18094 2016-12-17  Bruno Haible  <bruno@clisp.org>
18096         Avoid redefinition errors on MSVC.
18097         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
18098         * lib/unistd.in.h: Include <stdio.h> when necessary.
18100 2016-12-17  Bruno Haible  <bruno@clisp.org>
18102         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
18103         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
18104         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
18105         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
18106         WINT_MAX.
18108 2016-12-17  Bruno Haible  <bruno@clisp.org>
18110         Avoid autoconf warning.
18111         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
18112         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
18114 2016-12-17  Bruno Haible  <bruno@clisp.org>
18116         fpending: Revert workaround against Emacs bug.
18117         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
18118         The Emacs bug is fixed by Eli Zaretskii in
18119         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
18121 2016-12-17  Bruno Haible  <bruno@clisp.org>
18123         getlogin_r tests: Port to mingw.
18124         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
18125         regression introduced on 2014-05-19.
18127 2016-12-17  Bruno Haible  <bruno@clisp.org>
18129         getlogin: Port to newer mingw.
18130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
18131         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
18132         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
18133         HAVE_GETLOGIN.
18134         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
18135         HAVE_GETLOGIN.
18136         * doc/posix-functions/getlogin.texi: Mention the issue.
18137         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
18138         regression introduced on 2014-05-14.
18140 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
18142         builtin-expect: improve port to IBM XL C
18143         Problem reported for z/OS by Daniel Richard G. in:
18144         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
18145         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
18146         Test for <builtins.h> directly.
18148         builtin-expect: port to IBM XL C
18149         Problem reported for z/OS by Daniel Richard G. in:
18150         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
18151         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
18152         Also allow __builtin_expect defined via a standard include file.
18154         regex: fix dependency
18155         Problem reported by Bruno Haible in:
18156         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
18157         * modules/regex: Depend on builtin-expect.
18159         builtin-expect: new module
18160         Fix fnmatch to use it.
18161         Problem reported for z/OS by Daniel Richard G.
18162         * lib/fnmatch.c (__builtin_expect):
18163         * lib/glob.c (__builtin_expect):
18164         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
18165         * lib/memmem.c (__builtin_expect) [!_LIBC]:
18166         * lib/scandir.c (__builtin_expect):
18167         * lib/strstr.c (__builtin_expect) [!_LIBC]:
18168         Remove macro; config.h now does this.
18169         * lib/gl_anytreehash_list1.h (add_to_bucket):
18170         * lib/regex_internal.h (BE):
18171         Assume __builtin_expect.
18172         * m4/builtin-expect.m4, modules/builtin-expect: New files.
18173         * modules/avltreehash-list, modules/fnmatch, modules/glob:
18174         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
18175         * modules/scandir, modules/strstr-simple:
18176         Depend on builtin-expect.
18178 2016-12-15  Bruno Haible  <bruno@clisp.org>
18180         init.sh: Add possibility to not delete temporary files.
18181         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
18182         to yes, don't erase the temporary directory.
18184 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
18186         regex: fix integer-overflow bug in never-used code
18187         Problem reported by Clément Pit–Claudel in:
18188         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
18189         * lib/regex_internal.h: Include intprops.h.
18190         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
18191         behavior on integer overflow.
18192         * modules/regex (Depends-on): Add intprops.
18194         fpending: fix port to MinGW on Emacs
18195         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
18196         Problem reported by Eli Zaretskii in:
18197         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
18198         Is Plan 9 still a valid porting target, anyway?
18200 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
18202         safe-alloc: use xalloc-oversized
18203         * lib/safe-alloc.c: Include xalloc-oversized.h.
18204         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
18205         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
18207         xalloc: do not exceed PTRDIFF_MAX
18208         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
18209         xalloc_oversized check, since objects larger than PTRDIFF_MAX
18210         bytes have pointer-subtraction problems.
18212         malloca: do not exceed PTRDIFF_MAX
18213         * lib/malloca.h: Include xalloc-oversized.
18214         (nmalloca): Use xalloc_oversized instead of rolling our own.
18215         * modules/malloca (Depends-on):
18216         * modules/relocatable-prog-wrapper (Depends-on):
18217         Add xalloc-oversized.
18219         quotearg: pacify GCC better
18220         * modules/quotearg (Depends-on): Add minmax, stdint.
18221         * lib/quotearg.c: Include minmax.h, stdint.h.
18222         (nslots): Now int, as there seems little point to going to extra
18223         work merely to support the INT_MAX slot, which nobody ever uses.
18224         (quotearg_n_options): Redo size-overflow checks to pacify GCC
18225         and to catch (mostly-theoretical) ptrdiff_t problems too.
18226         This can be done via one comparison.
18228 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
18230         xalloc-oversized: check for PTRDIFF_MAX too
18231         This avoids undefined behavior when subtracting pointers to
18232         objects containing more than PTRDIFF_MAX bytes.
18233         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
18234         Also return 1 if the result would exceed PTRDIFF_MAX>
18235         * modules/xalloc-oversized (Depends-on):
18236         Add stdint.
18238         dfa: fix glitches in previous commit
18239         Sorry, I don't know how I managed to commit the wrong version.
18240         * lib/dfa.c (MIN): Move up.
18241         (xpalloc): Now static.
18243         dfa: fix some unlikely integer overflows
18244         I found these while reviewing the recent Coverity-related fix.
18245         This patch changes part of dfa.c to prefer ptrdiff_t instead of
18246         size_t for object counts.  Using ptrdiff_t is the style typically
18247         used in Emacs; although it wastes a sign bit as sizes can never be
18248         negative, it makes -fsanitize=undefined more likely to catch
18249         integer overflows in index calculation, and nowadays the upside is
18250         typically more important than the downside.  Although perhaps the
18251         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
18252         of dfa.c already does, since it uses state_num which is signed),
18253         that is a bigger change and is not needed to fix the bugs I found.
18254         * lib/dfa.c: Include stdint.h and intprops.h.
18255         (TOKEN_MAX): New macro.
18256         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
18257         (charclass_index, parse_bracket_exp, addtok, insert, merge)
18258         (realloc_trans_if_necessary, free_mbdata):
18259         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
18260         This is safe because xpalloc checks that the sizes do not exceed
18261         either SIZE_MAX or PTRDIFF_MAX.
18262         (xpalloc): New function, mostly taken from Emacs.
18263         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
18264         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
18265         (charclass_index): Check for integer overflow in computing
18266         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
18267         added to it later.
18268         (alloc_position_set): Check for integer overflow.  On typical
18269         platforms this check has zero overhead, since the constant
18270         expression is false.
18271         (realloc_trans_if_necessary):
18272         Remove assertion, which I hope Coverity no longer needs.
18274         * modules/dfa (Depends-on): Add intprops, stdint.
18276 2016-12-12  Jim Meyering  <meyering@fb.com>
18278         dfa: add an assertion to avoid coverity false positive
18279         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
18280         warned that "newalloc1 - 2" could overflow.
18282 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
18284         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
18285         * dfa.h (DFA_CASE_FOLD): Remove.
18286         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
18288 2016-12-13  John W. Eaton  <gnu@jweaton.org>
18290         link: fix test to declare use of rename()
18291         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
18292         -Werror=implicit-function-declaration
18294 2016-12-12  Bruno Haible  <bruno@clisp.org>
18296         fpending: Port to native Windows with MSVC.
18297         * lib/fpending.c: Include stdio-impl.h.
18298         (__fpending): Include all known implementations. Err out if it's not
18299         ported.
18300         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
18301         * modules/fpending (Files): Add lib/stdio-impl.h.
18302         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
18304 2016-12-12  Bruno Haible  <bruno@clisp.org>
18306         stdioext: Port to native Windows with MSVC.
18307         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
18308         (struct _gl_real_FILE): New type.
18309         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
18310         Windows.
18311         * lib/fbufmode.c (fbufmode): Add code for native Windows.
18312         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
18313         other SystemV derived implementations.
18314         * lib/fpurge.c (fpurge): Likewise.
18315         * lib/freadable.c (freadable): Likewise.
18316         * lib/freadahead.c (freadahead): Likewise.
18317         * lib/freading.c (freading): Likewise.
18318         * lib/freadptr.c (freadptr): Likewise.
18319         * lib/freadseek.c (freadptrinc): Likewise.
18320         * lib/fseeko.c (fseeko): Likewise.
18321         * lib/fseterr.c (fseterr): Likewise.
18322         * lib/fwritable.c (fwritable): Likewise.
18323         * lib/fwriting.c (fwriting): Likewise.
18324         Reported by Gisle Vanem <gvanem@yahoo.no>.
18326 2016-12-11  Jim Meyering  <meyering@fb.com>
18328         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
18329         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
18330         to work with most shells, but not with the one provided by many
18331         Solaris 10 systems, so running configure with such a /bin/sh evokes
18332         e.g., "./configure: syntax error at line 33602: `(' unexpected".
18333         Reported by Assaf Gordon in
18334         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
18336 2016-12-10  Bruno Haible  <bruno@clisp.org>
18338         threadlib: Optimize out runtime test on Solaris >= 10.
18339         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
18340         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
18341         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
18343 2016-12-10  Bruno Haible  <bruno@clisp.org>
18345         stdint: Update doc about Solaris 9.
18346         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
18348 2016-12-09  Bruno Haible  <bruno@clisp.org>
18350         c-ctype tests: Fix link error on Solaris 9.
18351         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
18352         Reported at <https://savannah.gnu.org/bugs/?46827>.
18354 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
18356         dfa: fix performance bug that recomputes trans
18357         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
18358         25 on-demand changes.  The bug caused build_state to reset all
18359         d->trans elements to -2 even when d->trans was already non-null.
18360         Use C99 style decls after statements in this function.
18362         same-inode: port to MinGW
18363         Here st_ino is always 0, so change the definition of SAME_INODE so
18364         that 1 means the two files are the same, 0 with st_ino != 0 means
18365         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
18366         reported by Bruno Haible (Bug#25146).
18367         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
18368         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
18370 2016-12-04  Bruno Haible  <bruno@clisp.org>
18372         javacomp-script: Support Java 7 and 8.
18373         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
18374         target-version 1.7, 1.8.
18376 2016-12-02  Daiki Ueno  <ueno@gnu.org>
18378         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
18379         GPLv2" rewriting.
18381 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
18383         * gnulib-tool (func_import): Adhere to the license guideline when
18384         rewriting the license text to "LGPLv3+ or GPLv2":
18385         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
18387 2016-12-02  Bruno Haible  <bruno@clisp.org>
18389         localcharset: Avoid theoretical buffer overrun.
18390         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
18391         return value from setlocale if it would lead to a buffer overrun.
18393 2016-12-01  Bruno Haible  <bruno@clisp.org>
18395         Relicense some modules under LGPLv2+.
18396         Kevin Cernekee's approval is in
18397         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
18398         * modules/fseterr (License): Change to LGPLv2+.
18399         * modules/mbchar (License): Likewise.
18400         * modules/mbiter (License): Likewise.
18401         * modules/mbsnlen (License): Likewise.
18402         * modules/wcwidth (License): Likewise.
18404 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
18406         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
18407         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
18408         OS/2 kLIBC.
18410 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
18412         alphasort, scandir: Port to OS/2 kLIBC
18413         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
18414         declaration.
18415         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
18417 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
18419         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
18420         * lib/relocatable.c (relocate): Do not touch pathname if it is started
18421         with '/@unixroot'.
18423 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
18425         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
18426         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
18427         OS/2 kLIBC unless TCPV40HDRS is defined.
18429 2016-11-29  Jim Meyering  <meyering@fb.com>
18431         dfa: avoid new infinite loop
18432         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
18433         * lib/dfa.c (dfastate): When constructing a new state table, we could
18434         initially declare that we had found a match, and later find that
18435         constraints eliminate that possibility, yet continue to use the
18436         now stale "matched" indicator.  That would lead to an infinite loop.
18437         The solution is to update "matched" when necessary.
18438         Introduced by commit v0.1-983-g403adf1.
18440 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
18442         dfa: avoid match middle in multibyte character
18443         * lib/dfa.c (transit_state): If fails in matching single byte characters
18444         on a state including period expression in non-UTF8 multibyte locales,
18445         skip trailing bytes.
18446         (dfa_supported): Revert previous change.
18448 2016-11-27  Jim Meyering  <meyering@fb.com>
18450         dfa: avoid false match in non-UTF8 multibyte locales
18451         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
18452         as "not supported" so that callers will resort to using regex-based
18453         matcher.  This will surely hurt performance, but correctness trumps
18454         performance here, and the affected locales are less and less relevant,
18455         these days.  See grep's bug report https://bugs.gnu.org/24975.
18457 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
18459         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
18460         * lib/ptsname_r.c: Include the appropriate headers.
18461         [__sun]: Delete sys/sysmacros.h include.
18462         [_AIX || __osf__]: Likewise.
18463         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
18465 2016-11-27  Pádraig Brady  <P@draigBrady.com>
18467         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
18468         * lib/md4.c (md4_process_bytes): The existing define is made internal
18469         in recent versions of glibc, so also use this new public define.
18470         * lib/md5.c (md5_process_bytes): Likewise.
18471         * lib/sha1.c (sha1_process_bytes): Likewise.
18472         * lib/sha256.c (sha256_process_bytes): Likewise.
18473         * lib/sha512.c (sha512_process_bytes): Likewise.
18475 2016-11-27  Pádraig Brady  <P@draigBrady.com>
18477         maint: use a more standard return from mbrtowc test
18478         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
18479         from the test program as this often indicates an
18480         unhandled case in the test program.
18481         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
18482         (gl_MBRTOWC_SANITYCHECK): Likewise.
18483         (gl_MBRTOWC_NULL_ARG2): Likewise.
18484         (gl_MBRTOWC_NUL_RETVAL): Likewise.
18486 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
18488         freopen: work around glibc bug with closed fd
18489         Work around glibc bug#15589, where freopen mishandles the case
18490         where stdin etc. are already closed.
18491         * doc/posix-functions/freopen.texi (freopen): Document the bug.
18492         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
18493         instead of __need_FILE, as the latter does not work with glibc.
18494         Include <fcntl.h>, for open flags.
18495         (rpl_freopen): Work around glibc bug.
18496         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
18497         * modules/freopen (Depends-on): Add fcntl-h.
18498         * tests/test-freopen.c (main): Test for bug.
18500 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18502         fnmatch: fix typo introduced on 2016-08-17
18503         This fixes the port to non-GCC compilers that lack __builtin_expect.
18504         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
18506         dfa: simplify with new function fillset
18507         * lib/dfa.c (fillset): New function.
18508         Use it for clarity when applicable.
18510         dfa: fix glitches with on-demand states
18511         Also, adjust commentary to better match new code.
18512         Some of these glitches predate the recent change.
18513         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
18514         only non-initial states.
18515         (dfastate): Rename locals to better match new roles.
18516         Move them into nested scopes if this is easy.
18517         Omit unnecessary calls to zeroset.
18518         Simplify test for whether to throw in the positions of state 0.
18519         Omit C99-ism (decl after statement) since Gawk still wants C89.
18520         (build_state): Omit unnecessary test and assignment.
18521         Fix some confusion that counted transition tables inaccurately
18522         and could cause a memory leak.
18523         (dfaexec_main): Redo to make it clearer to the compiler that
18524         -1 and -2 are the only negative state numbers here.
18526 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
18528         dfa: addition of new state on demand
18529         * src/dfa.c (dfastate): Add argument UC, the current input character.
18530         Fill only a group including the character in transition table.
18531         (realloc_trans_if_necessary): Add the dummy state which means that a
18532         transition table is assigned but the next state is not assigned.
18533         (build_state): Return the next state.  All callers updated.
18534         (transit_state_singlebyte): If we get the dummy state,
18535         fill the transition table.
18536         (dfaexec_main): Handle the dummy state.
18537         (free_mbdata, dfafree): Consider the dummy state.
18539 2016-11-24  Daiki Ueno  <ueno@gnu.org>
18541         srclist: sync with released gettext
18542         * config/srclist.txt: Set "release" option to the files under
18543         $GETTEXT.
18545 2016-11-24  Daiki Ueno  <ueno@gnu.org>
18547         srclist: add "release" option
18548         * config/srclist.txt: Change the format so that the first column
18549         of each line points to the top-level directory of the source
18550         archive.
18551         * config/srclist-update: Accept "release" option that checks files
18552         from the most recently tagged revision in the source archive.
18554 2016-11-21  Bruno Haible  <bruno@clisp.org>
18556         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
18557         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
18558         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
18559         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
18560         Inline and remove member function 'rpl ()' of the wrapper struct.
18562 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
18564         dfa: fix logic typo
18565         Problem reported by Stephane Chazelas (Bug#24973).
18566         * lib/dfa.c (using_simple_locale): Fix typo that caused some
18567         non-simple locales like fr_FR to be treated as simple.
18569 2016-11-20  Jim Meyering  <meyering@fb.com>
18571         fix test driver leaks: exclude, malloc, realloc
18572         * tests/test-exclude.c (main): Fix trivial leak.
18573         * tests/test-malloc-gnu.c (main): Likewise.
18574         * tests/test-realloc-gnu.c (main): Likewise.
18575         With these changes, grep's tests are now leak free.
18576         I.e., running them with ASAN elicits no failure:
18577           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
18578             AM_LDFLAGS='-fsanitize=address -static-libasan' check
18580 2016-11-11  Bruno Haible  <bruno@clisp.org>
18582         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
18583         * modules/libunistring: (License): Change from LGPL to
18584         "LGPLv3+ or GPLv2".
18585         * modules/libunistring-optional: Likewise.
18586         * modules/unicase/*: Likewise.
18587         * modules/uniconv/*: Likewise.
18588         * modules/unictype/*: Likewise.
18589         * modules/unigbrk/*: Likewise.
18590         * modules/unilbrk/*: Likewise.
18591         * modules/uniname/*: Likewise.
18592         * modules/uninorm/*: Likewise.
18593         * modules/unistdio/*: Likewise.
18594         * modules/unistr/*: Likewise.
18595         * modules/uniwbrk/*: Likewise.
18596         * modules/uniwidth/*: Likewise.
18598 2016-11-12  Bruno Haible  <bruno@clisp.org>
18600         Relicense some modules under LGPLv2+.
18601         Paul Eggert's approval is in
18602         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
18603         Eric Blake's approval is in
18604         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
18605         Ludovic Courtès's approval is in
18606         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
18607         * modules/isnand-nolibm (License): Change to LGPLv2+.
18608         * modules/isnanf-nolibm (License): Likewise.
18609         * modules/isnanl-nolibm (License): Likewise.
18611 2016-11-19  Bruno Haible  <bruno@clisp.org>
18613         Relicense some modules under LGPLv2+.
18614         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
18615         modules/vasnprintf.
18616         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
18617         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
18618         All other significant changes to the files in lib/ of these modules
18619         are from me.
18620         * modules/memcmp2 (License): Change to LGPLv2+.
18621         * modules/amemxfrm (License): Likewise.
18622         * modules/fpieee (License): Likewise.
18623         * modules/fpucw (License): Likewise.
18624         * modules/frexp-nolibm (License): Likewise.
18625         * modules/frexpl-nolibm (License): Likewise.
18626         * modules/printf-frexp (License): Likewise.
18627         * modules/printf-frexpl (License): Likewise.
18628         * modules/printf-safe (License): Likewise.
18629         * modules/signbit (License): Likewise.
18631 2016-11-17  Bruno Haible  <bruno@clisp.org>
18633         Enable Unicode decoder safety unconditionally.
18634         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
18635         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
18636         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18637         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18638         * lib/unistr/u8-prev.c (u8_prev): Likewise.
18639         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
18640         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
18641         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
18642         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
18643         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
18644         * lib/unistr/u16-prev.c (u16_prev): Likewise.
18645         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
18646         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
18647         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
18648         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
18649         * lib/unistr/u32-prev.c (u32_prev): Likewise.
18650         * lib/unistr/u32-next.c (u32_next): Likewise.
18651         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
18652         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
18653         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
18654         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
18655         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
18656         CONFIG_UNICODE_SAFETY tests unconditionally.
18657         * tests/unistr/test-u32-mblen.c (main): Likewise.
18658         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
18659         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
18660         * tests/unistr/test-u32-next.c (main): Likewise.
18661         * tests/unistr/test-u32-strmblen.c (main): Likewise.
18662         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
18663         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
18664         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
18665         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
18666         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18667         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
18668         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
18669         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
18670         * lib/unistr/u16-check.c (u16_check): Update comment.
18671         * NEWS: Mention the changes that callers should be aware of.
18673 2016-11-19  Bruno Haible  <bruno@clisp.org>
18675         relocatable-prog-wrapper: Fix breakage on Cygwin.
18676         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
18677         (Depends-on): Remove intprops.
18678         * lib/relocwrapper.c: Update dependency tree.
18679         (strerror): Undefine.
18680         * build-aux/install-reloc (func_create_wrapper): Do not compile
18681         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
18683 2016-11-19  Bruno Haible  <bruno@clisp.org>
18685         strerror: Make it compile in C++ mode.
18686         * lib/strerror.c (strerror): Ignore the return value of memcpy().
18688 2016-11-15  Pedro Alves  <palves@redhat.com>
18690         sys_time: add gnulib::timeval for C++
18691         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
18692         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
18693         timeval macro.
18695 2016-11-14  Pedro Alves  <palves@redhat.com>
18697         snippet/c++defs: fix real-floating arg functions in C++ mode
18698         Also, define isfinite, isinf, isnan, signbit in the gnulib
18699         namespace instead of in the global namespace.
18700         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
18701         (_GL_END_NAMESPACE): New.
18702         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
18703         (isfinite, isinf, isnan, signbit) [__cplusplus &&
18704         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
18705         instead of in the global namespace.
18706         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
18707         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
18708         of in the global namespace.
18710 2016-11-13  Jim Meyering  <meyering@fb.com>
18712         strftime: don't use __THROW
18713         Each use of __THROW would provoke this from gcc-7-to-be:
18715           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
18716             on unit local functions [-Wattributes]
18717           static int iso_week_days (int, int) __THROW;
18718           ^~~~~~
18719         * lib/strftime.c (__THROW): Don't define.
18720         Remove each use of __THROW.
18721         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
18722         (tm_diff, iso_week_days, __strftime_internal): Likewise.
18724 2016-11-14  Paul Eggert  <eggert@union>
18726         obstack: port to gcc -fcheck-pointer-bounds
18727         Problem found by 'make check' failure on bleeding-edge coreutils
18728         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
18729         6.2.0-5ubuntu12), configured via "./configure
18730         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
18731         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
18732         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
18733         New macro, copied from fts_.h.
18734         (struct _obstack_chunk.contents): Use it.
18736 2016-11-14  Eric Blake  <eblake@redhat.com>
18738         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
18739         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
18740         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
18742 2016-11-14  Pádraig Brady  <P@draigBrady.com>
18744         strptime: fix compile error in recent change
18745         * lib/strptime.c (__strptime_internal): Fix ported code.
18747 2016-11-11  Bruno Haible  <bruno@clisp.org>
18749         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
18750         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
18751         (func_import): Extend determination of license_incompatibilities.
18752         (func_create_testdir): Extend table of license compatibility. Handle
18753         also the licenses GPLv3+, GPL, LGPLv3+.
18755 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
18757         strftime: tune %q
18758         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
18760         Merge strftime.c changes from glibc
18761         This incorporates:
18762         2007-10-16 [BZ #5184] Add tzset_called argument
18763         2008-06-13 [BZ #6612] pass reference to tzset_called around
18764         2009-10-30 Implement Burmese language locale for Myanmar
18765         2010-01-09 Add support for XPG7 testing
18766         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
18767         2015-10-20 Convert miscellaneous function definitions to prototype style
18768         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
18769         it anyway and this lessens the difference between gnulib and glibc.
18770         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
18771         (__THROW): Define if standard headers do not.
18772         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
18773         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
18774         Declare with __THROW.
18775         (__strftime_internal): Rename from strftime_case_. Add arg for
18776         whether tzset is called.  All uses changed.  Call tzset at most
18777         once.  Allow %OC, for Burmese.
18778         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
18779         Don't assume values are in range.
18781 2016-11-12  Eric Blake  <eblake@redhat.com>
18783         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
18784         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
18785         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
18786         different value.
18788 2006-11-12  Pedro Alves  <palves@redhat.com>
18790         Fix gnulib C++ namespace support and std::frexp
18791         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
18792         _GL_CXXALIASWARN.
18794 2006-11-12  Pedro Alves  <palves@redhat.com>
18796         GNULIB_NAMESPACE::func need not pull in rpl_func
18797         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
18798         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
18799         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
18800         struct instead of a function pointer.
18802 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
18804         manywarnings: fix -Wno-missing-field-initializers detection
18805         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
18806         to be independent of -Wunused-variable.  I.E. ensure the latter
18807         warning doesn't occur so that detection of the former is accurate.
18809 2016-11-05  Pádraig Brady  <pbrady@fb.com>
18811         strftime,strptime: support %q to represent the quarter
18812         * lib/strftime.c (strftime_case_): Add %q case.
18813         * lib/strptime.c (__strptime_internal): Likewise.
18814         * tests/test-strftime.c (quarter_test): A new test case.
18816 2016-11-03  Eric Blake  <eblake@redhat.com>
18818         bootstrap: Fix get_version() for AIX 5.3
18819         * build-aux/bootstrap (get_version): Factor out sed script, since
18820         indented comments choke AIX 5.3 sed.
18821         Reported-by: Michael Felt <aixtools@gmail.com>
18823 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
18825         intprops: port to older XL C
18826         Problem reported by Alexander Samoilov in:
18827         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
18828         http://savannah.nongnu.org/bugs/?49448
18829         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
18830         Define to 1 only for XL C 12.1 or later, since this bug
18831         occurs in XL C for AIX 6.0 but not in 12.1.
18833 2016-11-02  Pádraig Brady  <P@draigBrady.com>
18835         backupfile: initialize default suffix within the implementation
18836         * lib/backupfile.c (find_backup_file_name): Initialize the
18837         global variable here, to simplify usage, and to only call
18838         getenv() when needed.
18840 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
18842         futimens: remove FIXME for old Linux kernels
18843         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
18844         this in 2012" FIXME, like that for utimensat.
18846         utimensat: remove FIXME for old Linux kernels
18847         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
18848         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
18849         this in 2012" FIXME, by assuming the file system bug is absent
18850         unless demonstrated to be present.  We no longer need to worry
18851         about Linux kernel 2.6.32 when building with newer kernels.
18853 2016-10-16  Bruno Haible  <bruno@clisp.org>
18855         qsort_r: Fix macrology for platforms that lack the function.
18856         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
18857         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
18858         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
18859         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
18860         not exist.
18861         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
18862         the function exists.
18863         * modules/qsort_r: Add comments.
18865 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18867         sys_types: fix Texinfo typos
18868         * doc/glibc-functions/gnu_dev_major.texi:
18869         * doc/glibc-functions/gnu_dev_makedev.texi:
18870         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
18872 2016-10-26  John David Anglin  <dave.anglin@bell.net>
18874         getprogname: port to HP-UX
18875         See Bug#24805.
18876         * lib/getprogname.c (getprogname) [__hpux]: Port.
18877         * tests/test-getprogname.c (STREQ) [__hpux]:
18878         Special-case for HP-UX limitations on program name length.
18880 2016-10-20  Bruno Haible  <bruno@clisp.org>
18882         Update doc about target platforms.
18883         * doc/gnulib-intro.texi (Target Platforms): Update list.
18885 2016-10-15  Bruno Haible  <bruno@clisp.org>
18887         opendir, readdir, closedir: Relicense under LGPLv2+.
18888         * modules/opendir (License): Change to LGPLv2+.
18889         * modules/readdir (License): Likewise.
18890         * modules/closedir (License): Likewise.
18892 2016-10-16  Bruno Haible  <bruno@clisp.org>
18894         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
18895         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
18896         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
18897         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
18898         HAVE_DECL_STRERROR_R.
18900 2016-10-16  Bruno Haible  <bruno@clisp.org>
18902         Make the 'argp' module work without the 'error' module.
18903         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
18905 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
18907         diffseq: restore TOO_EXPENSIVE heuristic
18908         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
18909         (Bug#24715).  The simplest solution is to restore the
18910         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
18911         using a higher threshold to avoid Bug#16848 on smaller files.
18912         * lib/diffseq.h (struct context): Restore member too_expensive.
18913         (struct partition): Restore members lo_minimal, hi_minimal.
18914         (diag, compareseq): Restore arg find_minimal.  All uses changed.
18915         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
18916         1993 to make 'diff' run faster (but not as well) on large inputs,
18917         but use a threshold of 4096 instead of the old 256.
18918         * lib/fstrcmp.c (strcmp_bounded):
18919         * lib/git-merge-changelog.c (compute_differences):
18920         Adjust to diffseq.h changes.
18922 2016-10-22  Bruno Haible  <bruno@clisp.org>
18924         iconv: Avoid compilation error when bootstrapping GNU libiconv.
18925         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
18926         declaration yet, define ICONV_CONST to empty.
18928 2016-10-15  Bruno Haible  <bruno@clisp.org>
18930         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
18931         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
18932         module.
18934 2016-10-16  Bruno Haible  <bruno@clisp.org>
18936         system-quote tests: Avoid compiler warning on AIX.
18937         * tests/test-system-quote-child.c (fopen): Redefine like the system's
18938         <stdio.h> does.
18940 2016-10-16  Bruno Haible  <bruno@clisp.org>
18942         Fix some "gcc -Wall" warnings.
18943         * tests/test-ffsl.c (main): Use variable x, not i.
18944         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
18945         freopen.
18946         * tests/test-sethostname1.c (main): Explicitly ignore the return value
18947         of sethostname.
18949 2016-10-16  Bruno Haible  <bruno@clisp.org>
18951         gnulib-tool: Make --create-testdir on all modules work again.
18952         * gnulib-tool (func_create_testdir): Don't include the
18953         non-recursive-gnulib-prefix-hack module.
18955 2016-10-21  Daiki Ueno  <ueno@gnu.org>
18957         libunistring: change the maintainer to 'all'
18958         * modules/gen-uni-tables, modules/libunistring:
18959         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
18960         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
18961         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
18962         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
18963         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
18964         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
18965         * modules/uniwidth/*: Change the maintainer to 'all'.
18967 2016-10-16  Bruno Haible  <bruno@clisp.org>
18969         Simplify "configure: checking ..." messages.
18970         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
18971         AC_MSG_NOTICE.
18972         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
18974 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
18976         quotearg-tests: pacify gcc -Wall
18977         Problem reported by Bruno Haible in:
18978         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
18979         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
18980         * tests/test-quotearg.h: ... from here.
18982 2016-10-20  Pádraig Brady  <P@draigBrady.com>
18984         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
18985         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
18986         Needed on Centos <= 4.
18988 2016-10-20  Jim Meyering  <meyering@fb.com>
18990         printf.m4: fix a bug in detecting printf %j support
18991         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
18992         uintmax_t is defined in neither stdint.h nor inttypes.h.
18993         Before, this macro might have mistakenly set
18994         gl_cv_func_printf_sizes_c99=yes on such a system.
18995         Spotted by Zev Weiss.
18997 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
18999         sched: substitute HAVE_SYS_CDEFS_H too
19000         Problem reported by Tom G. Christensen in:
19001         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
19002         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
19003         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
19005 2016-10-19  Pádraig Brady  <P@draigBrady.com>
19007         quotearg: never write beyond the returned length
19008         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
19009         scan of the string when we initially encounter a single quote when
19010         shell quoting, so that if we then switch to a more concise quoting method
19011         we will not have written beyond that returned length.
19012         This is significant for sh-quote, which has separate routines
19013         to determine the length and do the actual quoting.
19014         * tests/test-quotearg.h: Reinstate the buffer bounds checking
19015         now that we never write more than the returned length.
19017 2016-10-18  Bruno Haible  <bruno@clisp.org>
19019         getprogname tests: Avoid failure in packages that use libtool.
19020         * tests/test-getprogname.c (main): Strip "lt-" prefix.
19021         Based on a patch by Jim Meyering.
19023 2016-10-16  Bruno Haible  <bruno@clisp.org>
19025         getprogname: Fix test failure on Cygwin. Comments.
19026         * lib/getprogname.h: Add comments.
19027         * lib/getprogname.c: Add comments. Fix #elif indentation.
19028         * tests/test-getprogname.c (main): On Cygwin, expect a result without
19029         ".exe" suffix.
19031 2016-10-16  Bruno Haible  <bruno@clisp.org>
19033         Make sure the libunistring detection rejects older versions with a
19034         known bug.
19035         * modules/unistr/u8-strtok (configure.ac): Bump required version.
19036         * modules/unistr/u16-strtok (configure.ac): Likewise.
19037         * modules/unistr/u32-strtok (configure.ac): Likewise.
19039 2016-10-18  Bruno Haible  <bruno@clisp.org>
19041         sh-quote, system-quote: revert regression of unit test.
19042         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
19043         * tests/test-system-quote-main.c (check_one): Likewise.
19045 2016-10-16  Pádraig Brady  <P@draigBrady.com>
19047         quotearg: fix stale tests
19048         * tests/test-quotearg.c [locale_results]: Add the missing str7
19049         entries to the expected results.
19050         * tests/test-system-quote-main.c (check_one): Don't enforce that we
19051         don't write beyond the returned length, since that's no longer the
19052         case if we switch to a more concise quoting style.
19053         * tests/test-sh-quote.c (check_one): Likewise.
19054         (main): Adjust for the new more concise quoting style.
19055         Reported by Bruno Haible.
19057 2016-10-16  Jim Meyering  <meyering@fb.com>
19059         non-recursive-gnulib-prefix-hack: fix inconsequential typo
19060         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
19061         to "$1".  This macro is always invoked with $1 == lib.
19062         Spotted by Bruno Haible
19064 2016-10-16  Bruno Haible  <bruno@clisp.org>
19066         Fix a test crash.
19067         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
19068         fails.
19070 2016-10-16  Pádraig Brady  <P@draigBrady.com>
19072         test-limits-h: suppress -Woverlength-strings
19073         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
19075 2016-10-15  Bruno Haible  <bruno@clisp.org>
19077         gettime, timespec, utimens: Relicense under LGPL.
19078         * modules/gettime (License): Change to LGPL.
19079         * modules/timespec (License): Likewise.
19080         * modules/utimens (License): Likewise.
19082 2016-10-14  Bruno Haible  <bruno@clisp.org>
19083             Pádraig Brady  <P@draigBrady.com>
19085         canonicalize-lgpl: Support the case path_max > INT_MAX.
19086         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
19087         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
19089 2016-10-13  Jim Meyering  <meyering@fb.com>
19091         getprogname: IBM z/OS: avoid NULL-dereference
19092         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
19093         upon strdup failure.
19095 2016-10-12  Jim Meyering  <meyering@fb.com>
19097         test-stdint: use _GL_VERIFY rather than "verify" for some tests
19098         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
19099         and an abbreviated diagnostic rather than verify with the full one,
19100         because the full-length strings would evoke warnings from gcc with
19101         -Woverlength-strings.
19103 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19105         stdint: port SIZE_MAX to glibc s390
19106         Problem reported by Eric Blake in:
19107         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
19108         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
19109         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
19110         correct type, if possible.
19112 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
19114         getprogname: port to IBM z/OS
19115         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
19117 2016-10-11  Jim Meyering  <meyering@fb.com>
19119         maint: remove stray space after "." in AC_DEFINE comment.
19120         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
19121         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19123 2016-10-05  Jim Meyering  <meyering@fb.com>
19125         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
19126         * lib/long-options.c (parse_long_options): Add a break statement
19127         to avoid this new warning/failure:
19128         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
19129           --create-testdir --dir=/t/x --with-tests --test long-options
19130         ../../gllib/long-options.c: In function 'parse_long_options':
19131         ../../gllib/long-options.c:66:12: error: this statement may \
19132           fall through [-Werror=implicit-fallthrough]
19133                    (*usage_func) (EXIT_SUCCESS);
19134                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
19136 2016-10-05  Jim Meyering  <meyering@fb.com>
19138         utimecmp: avoid new GCC 7 warning from -Wbool-operation
19139         Testing this module would fail when using GCC 7 like this:
19140         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
19141           --dir=/tmp/x --with-tests --test utimecmp
19142         ../../gllib/utimecmp.c: In function ‘utimecmp’:
19143         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
19144           [-Werror=bool-operation]
19145                          time_t s = src_s & ~ (res == 2 * BILLION);
19146                                             ^
19147         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
19148           [-Werror=bool-operation]
19149                src_s &= ~ (res == 2 * BILLION);
19150                         ^
19151         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
19152         Instead, make it explicit that we intend to apply it to 0 or 1.
19154 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
19156         dfa: save memory for states
19157         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
19158         states if dfa has a lot of caches.
19160 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
19162         wchar, wctype-h: fix for MinGW 3.22.2
19163         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
19164         special invocation, to fix issues with MinGW 3.22.2 wchar.h
19165         when included from <string.h>.
19166         * lib/wctype.in.h [__MINGW32__]: Add special invocation
19167         convention for MinGW 3.22.2, to solve issues with their
19168         wctype.h when included from <ctype.h>.
19170 2016-10-05  Jim Meyering  <meyering@fb.com>
19172         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
19173         * lib/long-options.c (parse_long_options): Add a break statement
19174         to avoid this new warning/failure:
19175         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
19176           --create-testdir --dir=/t/x --with-tests --test long-options
19177         ../../gllib/long-options.c: In function ‘parse_long_options’:
19178         ../../gllib/long-options.c:66:12: error: this statement may \
19179           fall through [-Werror=implicit-fallthrough]
19180                    (*usage_func) (EXIT_SUCCESS);
19181                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
19183         utimecmp: avoid new GCC 7 warning from -Wbool-operation
19184         Testing this module would fail when using GCC 7 like this:
19185         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
19186           --dir=/tmp/x --with-tests --test utimecmp
19187         ../../gllib/utimecmp.c: In function ‘utimecmp’:
19188         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
19189           [-Werror=bool-operation]
19190                          time_t s = src_s & ~ (res == 2 * BILLION);
19191                                             ^
19192         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
19193           [-Werror=bool-operation]
19194                src_s &= ~ (res == 2 * BILLION);
19195                         ^
19196         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
19197         Instead, make it explicit that we intend to apply it to 0 or 1.
19199 2016-10-03  Pádraig Brady  <P@draigBrady.com>
19201         quotearg: minimize shell quoting using double quotes
19202         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
19203         quote in encountered then use double quotes (c style quoting)
19204         when possible, as it simplifies the quoting.
19205         * tests/test-quotearg-simple.c: Add test cases.
19206         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
19207         for the fact we now may write beyond the returned length.
19209 2016-10-02  Jim Meyering  <meyering@fb.com>
19211         vasnprintf.c: avoid spurious warning from GCC 7
19212         The presence of cpp directives renders this "FALLTHROUGH" comment
19213         ineffective, so does not suppress the -Wimplicit-fallthrough warning
19214         from GCC 7 built from git on 2016-10-02.
19215         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
19216         directives, so that it takes effect once again.  This is clearly
19217         not a proper change, and I will revert it once this bug is fixed:
19218         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
19220 2016-10-01  Jim Meyering  <meyering@fb.com>
19222         getprogname: correct the test for a __progname variable
19223         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
19224         and AC_LINK_IFELSE to check for a global __progname.  If found,
19225         define HAVE_VAR___PROGNAME.
19226         * lib/getprogname.c (getprogname): Reflect the new name of the
19227         feature- checked preprocessor symbol:
19228         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
19230 2016-09-28  Jim Meyering  <meyering@fb.com>
19232         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
19233         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
19234         fall-through case with a /* fallthrough */ comment.
19236         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
19237         * lib/dfa.c (dfassbuild): Mark the end of this case with a
19238         /* fallthrough */ comment.
19240         getprogname: avoid __progname vs program_invocation_short_name pitfall
19241         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
19242         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
19243         not with Fedora 24's glibc-2.23.1-10.
19244         * lib/getprogname.c (__progname): Move this declaration down...
19245         (getprogname): ... into the #elif block where used, and make it
19246         explicitly "extern".
19248         getprogname: port to OpenBSD 5.1
19249         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
19250         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
19251         * modules/getprogname (configure.ac): Move most of this code...
19252         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
19253         increment serial number, and add a test for __progname.
19254         https://bugs.gnu.org/24562
19255         Reported by Nelson H. F. Beebe.
19257 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
19259         sched: port to GCC 6.2.1 on macOS Sierra
19260         Problem reported by Denis Davydov in:
19261         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
19262         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
19263         Include <sys/cdefs.h> before <sched.h>.
19264         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
19265         so that we needn’t worry about the sched.h include bug here.
19266         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
19267         and include it before <sched.h> if it exists, when
19268         checking for <sched.h>.
19270         tests/init.sh: port Alpine fix to AIX 7.1
19271         * tests/init.sh (compare_): When attempting to use diff -U3,
19272         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
19273         diff -u not outputting a space after leading '+', as the users
19274         of 'compare' should not be that picky about its output format.
19275         In the AIX 7.1 case, return with diff exit status (or with 2 if
19276         trouble), instead of some random nonzero exit status.
19277         * tests/test-init.sh (test_compare): Remove space after leading
19278         '+', so that AIX 7.1 'diff' passes the test.
19280 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19282         nl_langinfo: pacify GCC
19283         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
19284         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
19286         stdint: also set GL_GENERATE_LIMITS_H
19287         Problem reported by Jim Meyering in:
19288         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
19289         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
19291         limits-h, stdint: Don't assume extensions, fix typo
19292         * m4/limits-h.m4 (gl_LIMITS_H):
19293         * m4/stdint.m4 (gl_STDINT_H):
19294         Don't assume AC_USE_SYSTEM_EXTENSIONS.
19295         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
19296         reported by Jim Meyering in:
19297         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
19299 2016-09-21  Jim Meyering  <meyering@fb.com>
19301         getprogname: port to AIX
19302         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
19303         and strdup to obtain a short program name string.  Using code from
19304         Bruno Haible and an idea from Bastien ROUCARIÈS, in
19305         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
19306         Assaf Gordon reported that this new file would fail to compile on
19307         AIX-7.1 32bit.
19309 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
19311         extensions: fix typo in comment
19312         * m4/extensions.m4: Sync from Autoconf master.
19314         stdint: support new _WIDTH macros
19315         * doc/posix-headers/stdint.texi: Document this.
19316         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
19317         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
19318         support for INTMAX_WIDTH, etc. as well as for support for just C99.
19319         * modules/stdint (Depends-on): Add limits-h.
19320         (Makefile.am): Substitute HAVE_C99_STDINT_H.
19321         * modules/stdint-tests (Depends-on): Add extensions, so that
19322         INTMAX_MAX etc. are defined.
19323         * tests/test-stdint.c: Verify the new macros.
19325         limits-h: new module
19326         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
19327         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
19328         * doc/posix-headers/limits.texi: Document new module.
19329         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
19330         * modules/limit-h-tests, tests/test-limits-h.c: New files.
19332         stdio: don't redefine __USE_MINGW_ANSI_STDIO
19333         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
19334         if it is already defined.  Apparently GNU Emacs relies on this.  See:
19335         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
19337 2016-09-15  Eric Blake  <eblake@redhat.com>
19339         sys_types: avoid glibc 2.25 warnings about major()
19340         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
19341         older autoconf.
19342         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
19343         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
19344         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
19345         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
19347         mountlist: include sysmacros.h for glibc
19348         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
19349         AC_HEADER_MAJOR.
19350         * lib/mountlist.c (includes): Use correct headers.
19352 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
19354         extensions: port to more ISO C TSes
19355         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
19356         master, to add support for more recent ISO C TRs and TSes.
19358 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19360         intprops: new macro TYPE_WIDTH
19361         * lib/intprops.h (TYPE_WIDTH): New macro.
19362         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
19363         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
19364         * lib/parse-datetime.y (parse_datetime2):
19365         Use it.
19367         extensions: port to recent ISO C TRs
19368         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
19369         Sync from Autoconf master, to add support for recent ISO C TRs.
19370         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
19371         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
19372         the MinGW option is not an extension.
19374 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
19376         dfa: port to Solaris 9
19377         Problems reported by Tom G. Christensen in:
19378         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
19379         * modules/dfa (Depends-on): Add isblank.
19380         * modules/dfa-tests (dfa_match_aux_LDADD):
19381         Rename from test_stat_LDADD, to fix typo.
19382         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
19384 2016-09-10  Jim Meyering  <meyering@fb.com>
19386         strverscmp: avoid link failure on OS X
19387         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
19388         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
19390 2016-08-16  Jim Meyering  <meyering@fb.com>
19392         dfa: new module, importing grep's DFA matcher
19393         Since grep's DFA matcher is now being used by two gnulib-enabled
19394         projects, grep and sed, it makes sense to version-control its
19395         sources and unit tests in one place: here.
19396         * modules/dfa: New module.
19397         * modules/dfa-tests: New file.
19398         * lib/dfa.c: New file, from grep.
19399         * lib/dfa.h: Likewise.
19400         * lib/localeinfo.c: Likewise.
19401         * lib/localeinfo.h: Likewise.
19402         * tests/dfa-match-aux.c: Likewise.
19403         * tests/dfa-invalid-char-class.sh: Likewise.
19404         * tests/dfa-match.sh: Likewise, with minor changes.
19405         * MODULES.html.sh (Misc): Add "dfa" to this list.
19407 2016-09-09  Jim Meyering  <meyering@fb.com>
19409         getprogname-tests: don't depend on assert-h
19410         * modules/getprogname-tests (Depends-on): Remove assert-h.
19411         It was not needed, and in fact would cause build failure for
19412         coreutils on some systems.  Reported by Assaf Gordon in https:
19413         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
19415 2016-09-07  Jim Meyering  <meyering@fb.com>
19417         getprogname-tests: work also when EXEEXT is nonempty
19418         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
19419         * tests/test-getprogname.c (main): Use it.
19420         Suggested by Gisle Vanem.
19422 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
19424         getprogname: fix errors in previous change
19425         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
19426         s/program_invocation_name/base/
19427         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
19429 2016-09-08  Pádraig Brady  <P@draigBrady.com>
19431         parse-datetime: restrict debug output to input string
19432         * lib/parse-datetime.y (parse_datetime2): If we parse
19433         all of the input but determine it's invalid, ensure
19434         we don't output the now invalid input pointer.
19435         This issue was seen with `date -d 'now +1'`.
19437 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
19439         flexmember: new macro FLEXALIGNOF
19440         * lib/flexmember.h: Include <stddef.h>, for offsetof.
19441         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
19442         this macro.  Update comments.
19444 2016-09-07  Jim Meyering  <meyering@fb.com>
19446         getprogname: port to systems with __argv (mingw, msvc)
19447         * lib/getprogname.c (getprogname): Include "dirname.h" and use
19448         last_component: more general than open coding it with hard-coded "/".
19449         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
19450         * modules/getprogname (Depends-on): Add dirname-lgpl.
19451         (configure.ac): Check for __argv in <stdlib.h>.
19452         * modules/getprogname-tests: New file.
19453         * tests/test-getprogname.c: New file.
19454         Suggested by Gisle Vanem in
19455         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
19457 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
19459         flexmember: port better to GCC + valgrind
19460         With a char[] flexible array member in a struct with nontrivial
19461         alignment, GCC-generated code can access past the end of the
19462         array, because GCC assumes there are padding bytes to get the
19463         struct aligned.  So the common idiom of malloc (offsetof (struct
19464         s, m), n) does not properly allocate an n-byte trailing member, as
19465         malloc’s argument should be the next multiple of alignof (struct s).
19466         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
19467         Although C11 apparently permits this GCC optimization (i.e., there
19468         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
19469         See the thread containing:
19470         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
19471         * lib/flexmember.h: New file.
19472         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
19473         * lib/localename.c, lib/time_rz.c:
19474         Include flexmember.h.
19475         * lib/fnmatch_loop.c (struct patternlist):
19476         * lib/localename.c (struct hash_node):
19477         Use FLEXIBLE_ARRAY_MEMBER.
19478         * lib/fnmatch_loop.c (EXT):
19479         * lib/fts.c (fts_alloc):
19480         * lib/glob.c (glob_in_dir):
19481         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
19482         * lib/localename.c (gl_lock_define_initialized):
19483         * lib/time_rz.c (tzalloc):
19484         Use FLEXSIZEOF instead of offsetof.
19485         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
19486         Check that the size of the struct can be taken.
19487         * modules/flexmember (Files): Add lib/flexmember.h.
19488         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
19489         Add flexmember.
19491 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
19493         getprogname: port to Solaris 10
19494         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
19495         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
19496         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
19498         stdalign: correct mistake in alignof doc
19499         Problem reported by Joseph Myers in:
19500         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
19501         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
19502         alignof(S) where S is a structure containing a flexible array
19503         member.  The Gnulib substitute does not support this, but C11 does.
19505 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
19507         main.mk: remove sc_program_name, since there is no more need to
19508         use set_program_name in tools (getprogname is enough for most
19509         of the cases).
19510         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
19511         * top/maint.mk (sc_program_name): Remove.
19513 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
19515         Port tests away from progname, since modules that need the
19516         program name already depend on getprogname.
19517         * modules/acl-tests (Depends-on): Remove progname.
19518         * modules/argmatch (Depends-on): Likewise.
19519         * modules/argmatch-tests (Depends-on): Likewise.
19520         * modules/argp-tests (Depends-on): Likewise.
19521         * modules/argp-version-etc-tests (Depends-on): Likewise.
19522         * modules/array-list-tests (Depends-on): Likewise.
19523         * modules/array-oset-tests (Depends-on): Likewise.
19524         * modules/avltree-list-tests (Depends-on): Likewise.
19525         * modules/avltree-oset-tests (Depends-on): Likewise.
19526         * modules/avltreehash-list-tests (Depends-on): Likewise.
19527         * modules/carray-list-tests (Depends-on): Likewise.
19528         * modules/copy-file-tests (Depends-on): Likewise.
19529         * modules/exclude-tests (Depends-on): Likewise.
19530         * modules/fchownat-tests (Depends-on): Likewise.
19531         * modules/fdopendir-tests (Depends-on): Likewise.
19532         * modules/filenamecat-tests (Depends-on): Likewise.
19533         * modules/fstatat-tests (Depends-on): Likewise.
19534         * modules/fstrcmp-tests (Depends-on): Likewise.
19535         * modules/linked-list-tests (Depends-on): Likewise.
19536         * modules/linkedhash-list-tests (Depends-on): Likewise.
19537         * modules/mkdirat-tests (Depends-on): Likewise.
19538         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
19539         * modules/nonblocking-socket-tests (Depends-on): Likewise.
19540         * modules/obstack-printf-tests (Depends-on): Likewise.
19541         * modules/openat-tests (Depends-on): Likewise.
19542         * modules/parse-datetime-tests (Depends-on): Likewise.
19543         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
19544         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
19545         * modules/quotearg-simple-tests (Depends-on): Likewise.
19546         * modules/quotearg-tests (Depends-on): Likewise.
19547         * modules/rbtree-list-tests (Depends-on): Likewise.
19548         * modules/rbtree-oset-tests (Depends-on): Likewise.
19549         * modules/rbtreehash-list-tests (Depends-on): Likewise.
19550         * modules/spawn-pipe-tests (Depends-on): Likewise.
19551         * modules/system-quote-tests (Depends-on): Likewise.
19552         * modules/uniname/uniname-tests (Depends-on): Likewise.
19553         * modules/uninorm/nfc-tests (Depends-on): Likewise.
19554         * modules/uninorm/nfd-tests (Depends-on): Likewise.
19555         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
19556         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
19557         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
19558         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
19559         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
19560         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
19561         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
19562         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
19563         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
19564         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
19565         * modules/unlinkat-tests (Depends-on): Likewise.
19566         * modules/version-etc-tests (Depends-on): Likewise.
19567         * modules/xalloc-die-tests (Depends-on): Likewise.
19568         * modules/xmemdup0-tests (Depends-on): Likewise.
19569         * modules/xprintf-posix-tests (Depends-on): Likewise.
19570         * modules/xvasprintf-tests (Depends-on): Likewise.
19571         * tests/test-argmatch.c: Do not include progname.h.
19572         (main) Stop calling set_program_name.
19573         * tests/test-argp-version-etc.c: Likewise.
19574         * tests/test-argp.c: Likewise.
19575         * tests/test-argv-iter.c: Likewise.
19576         * tests/test-array_list.c: Likewise.
19577         * tests/test-array_oset.c: Likewise.
19578         * tests/test-avltree_list.c: Likewise.
19579         * tests/test-avltree_oset.c: Likewise.
19580         * tests/test-avltreehash_list.c: Likewise.
19581         * tests/test-carray_list.c: Likewise.
19582         * tests/test-copy-acl.c: Likewise.
19583         * tests/test-copy-file.c: Likewise.
19584         * tests/test-exclude.c: Likewise.
19585         * tests/test-fchownat.c: Likewise.
19586         * tests/test-fdopendir.c: Likewise.
19587         * tests/test-filenamecat.c: Likewise.
19588         * tests/test-fstatat.c: Likewise.
19589         * tests/test-fstrcmp.c: Likewise.
19590         * tests/test-linked_list.c: Likewise.
19591         * tests/test-linkedhash_list.c: Likewise.
19592         * tests/test-mkdirat.c: Likewise.
19593         * tests/test-nonblocking-pipe-main.c: Likewise.
19594         * tests/test-nonblocking-socket-main.c: Likewise.
19595         * tests/test-obstack-printf.c: Likewise.
19596         * tests/test-openat.c: Likewise.
19597         * tests/test-parse-datetime.c: Likewise.
19598         * tests/test-pipe-filter-gi1.c: Likewise.
19599         * tests/test-pipe-filter-gi2-main.c: Likewise.
19600         * tests/test-pipe-filter-ii1.c: Likewise.
19601         * tests/test-pipe-filter-ii2-main.c: Likewise.
19602         * tests/test-quotearg-simple.c: Likewise.
19603         * tests/test-quotearg.c: Likewise.
19604         * tests/test-rbtree_list.c: Likewise.
19605         * tests/test-rbtree_oset.c: Likewise.
19606         * tests/test-rbtreehash_list.c: Likewise.
19607         * tests/test-sameacls.c: Likewise.
19608         * tests/test-set-mode-acl.c: Likewise.
19609         * tests/test-spawn-pipe-main.c: Likewise.
19610         * tests/test-system-quote-main.c: Likewise.
19611         * tests/test-unlinkat.c: Likewise.
19612         * tests/test-version-etc.c: Likewise.
19613         * tests/test-xalloc-die.c: Likewise.
19614         * tests/test-xfprintf-posix.c: Likewise.
19615         * tests/test-xmemdup0.c: Likewise.
19616         * tests/test-xprintf-posix.c: Likewise.
19617         * tests/test-xvasprintf.c: Likewise.
19618         * tests/uniname/test-uninames.c: Likewise.
19619         * tests/uninorm/test-u32-nfc-big.c: Likewise.
19620         * tests/uninorm/test-u32-nfd-big.c: Likewise.
19621         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
19622         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
19623         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
19624         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
19625         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
19626         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
19627         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
19628         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
19629         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
19630         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
19631         * tests/test-c-stack.c: (program_name): Do not define.
19632         (main): Do not set program_name.
19633         * tests/test-closein.c: Likewise.
19634         * tests/test-xstrtol.c: Likewise.
19635         * tests/test-yesno.c: Likewise.
19637 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
19639         Port modules to use getprogname explicitly, instead of requiring
19640         progname to be used (or program_name to be provided).
19641         * lib/argmatch.c: Do not include progname.h.
19642         [TEST] (program_name): Do not define.
19643         [TEST] (main): Call getprogname instead of using program_name.
19644         * lib/c-stack.c: Do not include progname.h.
19645         (program_name): Do not define.
19646         (die): Call getprogname instead of using program_name.
19647         * lib/chdir-long.c: Do not include progname.h.
19648         [TEST_CHDIR] (main): Do not set program_name.
19649         * lib/error.c [!_LIBC]: Include progname.h.
19650         [!_LIBC] (program_name): Define using getprogname.
19651         * lib/euidaccess.c: Do not include progname.h.
19652         [TEST] (main): Do not set program_name.
19653         * lib/git-merge-changelog.c: Include getprogname.h instead of
19654         progname.h.
19655         (usage): Call getprogname instead of using program_name.
19656         (main): Likewise.  Stop calling set_program_name.
19657         * lib/group-member.c: Do not include progname.h.
19658         [TEST] (main): Do not set program_name.
19659         * modules/argmatch (Depends-on): Add getprogname.
19660         * modules/c-stack (Depends-on): Likewise.
19661         * modules/error (Depends-on): Likewise.
19662         * modules/git-merge-changelog (Depends-on): Likewise.
19663         Also remove progname.
19665 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
19667         * NEWS: Document the deprecation of the 'progname' module.
19669 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
19671         getprogname: new module
19672         This provides a LGPL module for getting the name of the current
19673         program, using the same API found on *BSD systems.
19674         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
19675         * modules/getprogname: New files.
19676         * MODULES.html.sh (Misc): Add getprogname.
19678 2016-09-02  Jim Meyering  <meyering@fb.com>
19680         manywarnings: add -fno-common
19681         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
19682         to the list.  Quoting the manual, "Compiling with -fno-common is
19683         useful on targets for which it provides better performance, or if
19684         you wish to verify that the program will work on other systems that
19685         always treat uninitialized variable declarations this way [putting
19686         it in the data section]."  If diffutils had been using this sooner,
19687         it would have prevented this duplicate declaration issue:
19688         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
19690 2016-08-31  Simon Josefsson  <simon@josefsson.org>
19692         parse-datetime: Fix typo.
19693         * lib/parse-datetime.y (parse_datetime2): Fix typo.
19695 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
19697         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
19698         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
19699         GCC 5 and 6 that have __builtin_sub_overflow but not
19700         __builtin_sub_overflow_p.  With the recent changes, these
19701         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
19702         implementation than with INT_SUBTRACT_OVERFLOW implementation,
19703         since the former needs just one runtime comparison whereas the
19704         latter needs two.
19706         strverscmp: sync with glibc
19707         Although this doesn't exactly synchronize with glibc
19708         byte-for-byte, it makes the code behave the same as glibc.
19709         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
19710         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
19711         difference shouldn't matter in practical use.  All uses changed
19712         back to isdigit.
19713         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
19714         (next_state): Now unsigned char array; redo elements.
19715         (result_type): Now signed char array; redo elements.
19716         (__strverscmp): Fix glibc bug 9913 by using new states.
19717         * tests/test-strverscmp.c (main): Test glibc bug 9913.
19719 2016-08-29  Jim Meyering  <meyering@fb.com>
19721         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
19722         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
19723         similarly to how it was done to intprops.h.
19725 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
19727         intprops.h: port recent changes to GCC 6.2.0
19728         * lib/intprops.h (__has_builtin): Move earlier.
19729         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
19730         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
19731         the last argument can be null.  All uses changed.
19732         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
19733         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
19734         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
19735         and it's not clear which GCC versions it works for.
19736         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
19737         its definiens.
19739         intprops.h: use __typeof__ with GCC 7
19740         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
19741         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
19742         This avoids computing the expression's value (which might overflow!).
19744 2016-08-29  Jim Meyering  <meyering@fb.com>
19746         intprops.h, xalloc-oversized.h: work with gcc 7
19747         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
19748         __builtin_mul_overflow each accept a NULL pointer as the third
19749         argument.  However in gcc 7, that is no longer accepted.
19750         Instead, one must use the "_p"-suffixed names, with which, the
19751         third parameter is no longer a pointer.
19752         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
19753         the definition: not true for gcc 7 and subsequent.
19754         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
19755         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
19756         Provide new definitions for gcc 7 and subsequent.
19757         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
19758         that works with gcc-7.
19760         intprops.h: fix missing-backslash problems
19761         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
19762         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
19764 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19766         intprops: fix paren typo on old platforms
19767         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
19768         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
19769         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
19770         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
19771         && !defined LLONG_MAX]:
19772         Remove stray paren.
19774         intprops: port to OpenVMS
19775         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
19776         * doc/posix-headers/limits.texi: Document the problem.
19777         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
19778         Define if not already defined.
19780 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
19782         parse-datetime: improve debug implementation
19783         Follow-up to commit 12ad79069 ("add optional debug printing").
19784         Improve parse-datetime's debug implementation: remove macros,
19785         replace global debug flag variable with a function parameter,
19786         use nstrftime for formatting.
19787         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
19788         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
19789         (parse_datetime2): New function, accepts 'flags' parameter, supporting
19790         debug flag. Existing interface 'parse_datetime' left unmodified.
19791         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
19792         (struct parser_control): add 'parse_datetime_debug' member variable.
19793         (parse_datetime): Call new function 'parse_datetime2' without debug.
19794         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
19795         pc.parse_datetime_debug variable as needed.
19796         (to_year): Accept new flags parameter, instead of using global variable.
19797         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
19798         use struct 'debug' variable instead of global variable.
19799         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
19800         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
19801         correspnding functions directly instead of using macros.
19802         * modules/parse-datetime: Add gnulib's strftime module.
19804 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
19806         c-strcase-tests: port to EBCDIC
19807         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
19808         which assume ASCII encoding semantics to run only in ASCII
19809         mode, as they fail in EBCDIC.
19811         sigpipe-tests: fix typo
19812         * tests/test-sigpipe.sh: C, not B.
19814 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
19816         canonicalize-lgpl: fix errno after malloca fails
19817         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
19818         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
19819         * lib/canonicalize-lgpl.c (__realpath):
19820         Don't assume malloca sets errno on failure.
19822 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19824         strtod: port errno handling to z/OS
19825         * lib/strtod.c (strtod): Save and restore errno more reliably.
19827 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
19829         strtod: port to z/OS
19830         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
19831         implementation.
19833 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19835         strtod: port to z/OS
19836         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
19837         implementation.
19839         regex, string: rename to avoid '__string'
19840         * lib/regex.h, lib/string.in.h: Do not use the identifier
19841         '__string', as it is effectively reserved by string.h on z/OS.
19843         c-strcase-tests, wcwidth-tests: depend on c-ctype
19844         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
19845         Add c-ctype.
19847 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
19849         thread: port to z/OS
19850         * lib/glthread/thread.c, lib/glthread/thread.h:
19851         Rudimentary gl_thread support for z/OS.
19853         maint: port tests to z/OS errno behavior
19854         * tests/test-nonblocking-reader.h:
19855         * tests/test-nonblocking-writer.h:
19856         Accommodate z/OS errno code preferences. (I believe this should
19857         still be within spec; IBM is good at following the letter if not
19858         the spirit of such things.)
19860         maint: preprocessor changes to support z/OS
19861         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
19862         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
19863         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
19864         * tests/test-nonblocking-pipe.h:
19866         fclose, strstr-simple, wchar: port to z/OS
19867         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
19868         Changes to the Autoconf M4 code to support z/OS.  Note that
19869         fclose() is broken in a different way on z/OS than it is on other
19870         systems, thus the special-case in fclose.m4.
19872         iconv_open-utf-tests, iconv-tests: port to EBCDIC
19873         * tests/test-iconv-utf.c, tests/test-iconv.c:
19874         Added appropriately conditional #pragmas so that the test strings
19875         in test-iconv-utf.c are correctly interpreted in ASCII instead of
19876         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
19877         addressed in a more portable way by simply rewriting all the ASCII
19878         literal characters as octal escapes, but then you would lose the
19879         partial readability that the strings have now. Also, iconv_open()
19880         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
19882         c-strcase-tests, wcwidth-tests: port to EBCDIC
19883         * tests/test-c-strcasecmp.c: Include c-ctype.h.
19884         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
19885         * tests/test-wcwidth.c: Likewise.
19887 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19889         stdbool: don't require _Bool for C++
19890         Problem reported by David Seifert in:
19891         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
19892         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
19893         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
19894         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
19895         stricter about checking that bool and _Bool are compatible in C.
19897 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
19899         getdelim: remove dependency on realloc-posix
19900         * lib/canonicalize-lgpl.c (alloc_failed)
19901         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
19902         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
19903         Use __set_errno where needed, for consistency.
19904         * lib/getdelim.c (alloc_failed): New function.
19905         (getdelim): Use it.
19907 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
19909         parse-datetime: add optional debug printing
19910         Print parsing information, warnings, and errors to stderr.
19911         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
19912         * lib/parse-datetime.y:
19913         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
19914         (PROGRESS*): Same as DEBUG, for progress reporting.
19915         (dbg_printf): Print message to stderr, with 'date' prefix.
19916         (struct parser_control): Add 'debug_*_seen' variables.
19917         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
19918         (debug_print_current_time, debug_print_relateive_time): Prints the
19919         current/relative date/time value of parser_control.
19920         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
19921         (to_year): Warn about 2-digit year parsing.
19922         (yylex):   Warn about unrecognized words.
19923         (get_effective_timezone): Returns current timezone in minutes.
19924         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
19925         clearly and unambigiously as possible.
19926         (debug_mktime_not_ok): Print detailed information about failed
19927         date/time values.
19928         (parse_datetime): Add DEBUG messages for failures, warnings. Add
19929         PROGRESS messages for status messages.
19930         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
19932 2016-08-06  Jim Meyering  <meyering@fb.com>
19934         tests/init.sh: exclude dash with bad "local" semantics
19935         * tests/init.sh (gl_shell_test_script_): Add a function to
19936         eliminate a shell like "dash" (unlike bash, zsh) that has
19937         surprising/risky "local var='...'" semantics.  Inspired by
19938         the problem and discussion in https://bugs.gnu.org/24116#11.
19940 2016-08-02  Ján Tomko  <jtomko@redhat.com>
19942         maint.mk: expand the prohibit_doubled_word regex
19943         This check has a static list of words that are checked for
19944         repetitions.  Expand it before running the perl script to
19945         avoid using expensive captures.  This decreases the cost
19946         for libvirt from 1.66s to 0.66s.
19947         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
19948         (sc_prohibit_doubled_word): Use it.
19950 2016-07-26  Ján Tomko  <jtomko@redhat.com>
19952         useless-if-before-free: skip non-matching lines early
19953         * build-aux/useless-if-before-free: First match each line with the
19954         simple/quick /\bif\b/ and reject if there is no match. This often
19955         saves the cost of the much more involved regular expression.
19956         For libvirt, this decreases the cost from 1.44s to 1.02s.
19958 2016-07-26  Ján Tomko  <jtomko@redhat.com>
19960         maint.mk: speed up sc_po_check
19961         sc_po_check would skip files based on their names, or on the
19962         existence of files with derived names. Rewrite it to use perl
19963         instead of shell to make the check faster.
19964         * top/maint.mk (perl_translatable_files_list_): Define.
19965         (sc_po_check): Use it.
19967 2016-07-30  Ján Tomko  <jtomko@redhat.com>
19969         maint.mk: speed up require_config_h_first
19970         Instead of spawning three processes per file,
19971         rewrite the check in perl and run it once for all the files.
19972         * top/maint.mk (perl_config_h_first_): Define.
19973         (sc_require_config_h_first): Use it in place of shell code.
19975 2016-07-26  Ján Tomko  <jtomko@redhat.com>
19977         maint.mk: speed up sc_po_check
19978         sc_po_check would skip files based on their names, or on the
19979         existence of files with derived names. Rewrite it to use perl
19980         instead of shell to make the check faster.
19981         * top/maint.mk (perl_translatable_files_list_): Define.
19982         (sc_po_check): Use it.
19984 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
19986         obstack: pacify GCC 6 with -Wnull-dereference
19987         Problem reported by Assaf Gordon in:
19988         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
19989         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
19990         Declare with __attribute_noreturn__.
19991         * lib/obstack.h (__attribute_noreturn__): New macro.
19993 2016-07-13  Eric Blake  <eblake@redhat.com>
19995         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
19996         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
19997         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
19999 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
20001         doc: mention glibc SSIZE_MAX buglet
20002         * doc/posix-headers/limits.texi (limits.h): Document the bug.
20004 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
20006         printf-posix: Fix mingw build
20007         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
20008         expression for detecting C symbol prefixes but forgot to qoute square
20009         brackets in the command line arguments for grep.  That way when
20010         building with mingw the condition was false although it ought to be
20011         true instead.  In particular scenarios this led to the following
20012         compile error:
20014             Cannot export rpl_printf: symbol not found
20015             Cannot export rpl_scanf: symbol not found
20016             collect2: error: ld returned 1 exit status
20018         Fix this by properly quoting square brackets.
20020 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20022         mktime: call tzset as per POSIX
20023         Problem reported by Ludovic Courtès in:
20024         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
20025         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
20026         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
20028 2016-06-26  Pádraig Brady  <P@draigBrady.com>
20030         fts: handle readdir() errors
20031         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
20032         but also upon error when it will also set errno.  Therefore
20033         flag the error case from readdir().  We treat the case where
20034         no items are read the same as if the dir can't be accessed,
20035         i.e. by setting fts_errno to FTS_DNR.
20037 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
20039         intprops: port better to GCC 7
20040         GCC 7 __builtin_add_overflow supports a new usage form, where the
20041         last argument is a null pointer, and which merely returns 1 if an
20042         overflow would occur.  This is a constant expression if all
20043         arguments are constants, and should generate faster code when code
20044         needs to be generated.
20045         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
20046         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
20047         Use builtin operations if available.
20048         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
20049         operations are available, as it's almost surely faster.
20051 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
20053         intprops-test: port to GCC 6
20054         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
20055         since the bug is not fixed in GCC 6.1.
20057 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
20059         xalloc-oversized: port to GCC 7; fewer warnings
20060         GCC 7 will have a better way to deal with integer overflow.
20061         Plus, fix a warnings problem reported by Tim Ruehsen in:
20062         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
20063         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
20064         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
20065         For GCC 5, use __xalloc_oversized if both args are constants,
20066         or if pedantic.
20068 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
20070         regex: port to Sun C
20071         Reported by Daiki Ueno.
20072         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
20073         __restrict, in prototype.  This fixes a problem I introduced in
20074         the 2016-02-19 merge from glibc.
20076 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
20078         stdbool: Restore __bool_true_false_are_defined check
20079         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
20080         __bool_true_false_are_defined is still defined, even with C++11.
20082 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
20084         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
20085         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
20087 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
20089         Use GCC_LINT, not lint
20090         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
20091         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
20092         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
20093         Document problem with lint and _Noreturn.
20094         * lib/diffseq.h (IF_LINT, IF_LINT2):
20095         * lib/fts.c (sccsid):
20096         * lib/getndelim2.c (IF_LINT):
20097         * lib/gl_anylinked_list2.h (gl_linked_iterator)
20098         (gl_linked_iterator_from_to):
20099         * lib/gl_anytree_list2.h (gl_tree_iterator)
20100         (gl_tree_iterator_from_to):
20101         * lib/gl_anytree_oset.h (gl_tree_iterator):
20102         * lib/gl_array_list.c (gl_array_iterator)
20103         (gl_array_iterator_from_to):
20104         * lib/gl_array_oset.c (gl_array_iterator):
20105         * lib/gl_carray_list.c (gl_carray_iterator)
20106         (gl_carray_iterator_from_to):
20107         * lib/idcache.c:
20108         * lib/inet_ntop.c (IF_LINT):
20109         * lib/regcomp.c (build_charclass_op, create_tree):
20110         * lib/regex_internal.c (re_acquire_state)
20111         (re_acquire_state_context):
20112         * lib/trigl.c (rcsid):
20113         * lib/trim.c (IF_LINT):
20114         * lib/vasnprintf.c (IF_LINT):
20115         * lib/verify.h (assume):
20116         Treat GCC_LINT like lint.
20118 2016-05-29  Bruno Haible  <bruno@clisp.org>
20120         secure_getenv: Port to many more platforms.
20121         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
20122         functions.
20123         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
20124         for non-BSD Unix platforms and for native Windows.
20125         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
20126         Prompted by a request from Nikos Mavrogiannopoulos.
20128 2016-05-27  Eric Blake  <eblake@redhat.com>
20130         canonicalize: Fix broken probe for realpath.
20131         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
20132         in logic introduced in 54615b95.
20134 2016-05-26  Eric Blake  <eblake@redhat.com>
20136         unsetenv: relax to LGPLv2+
20137         * modules/unsetenv (License): Match setenv license.
20139 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
20141         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
20142         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
20143         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
20144         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
20145         (commonarg, dirargs, dirs, infoarg, generate_ascii)
20146         (generate_html, generate_info, generate_tex, outdir)
20147         (source_extra, split, srcfile, texarg): Move above 'version'.
20148         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
20150 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20152         manywarnings: update for GCC 6.1
20153         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
20154         Add GCC 6.1 options that apply to C.
20155         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
20156         do not apply to C, are obsolescent, etc.
20158 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
20160         glob: size_t overflow checks
20161         * lib/glob.c (__has_builtin): New macro.
20162         (size_add_wrapv, glob_use_alloca): New static functions.
20163         (glob, glob_in_dir): Check for size_t overflow in several places,
20164         and fix some size_t checks that were not quite right.
20166         glob: don't assume INT_MAX < SIZE_MAX
20167         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
20168         latter is not portable to (probably theoretical) hosts where
20169         SIZE_MAX <= INT_MAX.
20171 2016-05-09  Bruno Haible  <bruno@clisp.org>
20173         Fix undefined behaviour in gettext.h.
20174         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
20175         pointer's value after the storage it points to has been freed.
20176         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
20177         Spotted by Coverity.
20179 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
20181         git-version-gen: avoid undefined shift
20182         Problem reported by Mosè Giordano in:
20183         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
20184         * build-aux/git-version-gen: Avoid undefined behavior if invoked
20185         with --prefix or --fallback but without a later argument.  While
20186         we're at it, omit unnecessary quotes.
20188 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
20190         glob: merge glibc changes into lib/glob.c
20191         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
20192         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
20193         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
20194           struct dirent [BZ #19779]
20195         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
20196           callback gl_readdir
20197         2015-10-20 Convert miscellaneous function definitions to prototype style
20198         2015-10-20 Convert 113 more function definitions to prototype style
20199           (files with assertions)
20200         2015-06-12 Fix getlogin_r namespace (bug 18527).
20201         2014-02-10 Use glibc_likely instead __builtin_expect.
20202         2013-10-20 When glob pattern contains a trailing slash match only
20203           directories. Fixes bug 10278.
20204         2013-09-04 glob: silence -Wattribute warnings
20205         2013-06-07 Avoid use of "register" as optimization hint.
20206         2012-09-25 Use size_t instead of int for internal variables in glob
20207           (bug 14621)
20208         2011-07-20 Check for overflows in expressions
20209         2011-05-28 Remove unused variable
20210         2011-05-22 Add a few more alloca size checks
20211         2010-03-27 Whitespace fixes
20212         2010-03-27 Fix one more issue with the glob patch
20213         2010-03-24 Fix glob with empty pattern
20214         2008-05-27 Remove useless more "if" tests before "free"
20215         * modules/glob (Depends-on): Add stdint.
20217 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
20219         mktime: port to stricter signed overflow checking
20220         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
20221         (long_int): Require width for INT_MAX * 3 * (seconds per year),
20222         instead of merely for INT_MAX * 2.  In practice platforms that
20223         do the latter also do the former.
20224         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
20225         (shr): New static function, replacing SHR.  All uses changed.
20226         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
20227         and TIME_T_MAX.  All uses changed.
20228         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
20229         Use long_int, not time_t.
20230         (long_int_avg): New static function, replacing time_t_avg.
20231         All uses changed.  Round toward positive infinity, as that
20232         generates slightly better code.
20233         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
20234         by INT_ADD_WRAPV.
20235         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
20236         (convert_time): New static function.
20237         (ranged_convert): Use it
20238         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
20239         Use simpler test for loop exit.
20240         (__mktime_internal): Store negative of guessed offset, to simplify
20241         overflow checking.  Remove no-longer-needed test for small time_t
20242         overflows.
20244         mktime: speed up DEBUG_MKTIME benchmarks
20245         Call tzset just once, at the start, rather than for every test
20246         case.  This lets us measure the CPU cost of mktime as opposed to
20247         that of tzset.  This is relevant when TZ is not set and glibc is
20248         being used.  This speeds up tests by a factor of 40 on my Fedora
20249         23 x86-64 platform.
20250         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
20251         to call tzset and as a sanity check.  Later on, use localtime_r
20252         instead of localtime.
20254         mktime: resurrect DEBUG_MKTIME testing
20255         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
20256         Include <string.h>, for strcmp.
20258         mktime: simplify DEBUG_MKTIME
20259         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
20260         Simplify later usage accordingly.
20262         Port mktime_internal offset to unsigned time_t
20263         This avoids some assumptions about wraparound arithmetic on
20264         signed integer overflow.
20265         * lib/mktime-internal.h (mktime_offset_t): New type.
20266         (mktime_internal): Use it in decl.
20267         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
20269         * lib/mktime.c (__mktime_internal, localtime_offset):
20270         * lib/timegm.c (timegm): Use it.
20271         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
20272         (gl_FUNC_MKTIME): Require it.
20274 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
20276         xstrtol: prohibit monstrosities like "1bB"
20277         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
20278         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
20279         "B" only if the first suffix needs a base.
20280         * tests/test-xstrtol.sh: Test this.
20282 2016-04-21  Pádraig Brady  <P@draigBrady.com>
20284         xstrtod: reinstate setting of *result upon ERANGE
20285         * lib/xstrtod.c (XSTRTOD): The user may decide to use
20286         the returned limits upon ERANGE, so allow and document that.
20288 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
20290         xstrtod: modify *result only if no errors
20291         * lib/xstrtod.c (XSTRTOD).
20293 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
20295         btowc: document problems in C locale
20296         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
20297         with mbrtowc.  See: http://bugs.gnu.org/23269#32
20299 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
20301         mktime: improve integer overflow checking
20302         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
20303         (WRAPV): Remove; no longer needed.
20304         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
20305         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
20306         Remove.  Use intprops.h defns instead.
20307         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
20308         Use bool for Boolean, for clarity.
20309         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
20310         detect integer overflow.
20311         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
20313         intprops: check two's complement assumption
20314         Suggested by Eric Blake in:
20315         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
20316         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
20317         short, int, long, and (if available) long long are two's complement.
20318         * modules/intprops (Depends-on): Add 'verify'.
20320         intprops, mktime, strtol: assume two's complement
20321         These macros were not portable to every conforming C11 ones'
20322         complement platform.  It's not worth the hassle of porting to some
20323         platforms that use ones' complement or signed magnitude, as such
20324         platforms are almost purely theoretical nowadays and porting even
20325         to some of them makes the code harder to review for little
20326         practical benefit.  Problem reported by Florian Weimer in:
20327         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
20328         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
20329         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
20330         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
20331         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
20332         (TYPE_SIGNED_MAGNITUDE):
20333         Remove.  All uses rewritten to assume two's complement, which is
20334         all we can reasonably test nowadays anyway.
20335         * top/maint.mk (_intprops_names): Remove the removed macros.
20337 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
20339         stdint: port to strict C11 left shift
20340         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
20341         Pacify clang -Wshift-negative-value, which should be an issue only
20342         on clang setups where stdint.h does not conform to C11 or to C++11.
20343         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
20345 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
20347         mbrtowc: work around glibc bug#19932
20348         Fix mbrtowc so that it never returns -1 in the C locale,
20349         as this conflicts with a future version of POSIX
20350         http://austingroupbugs.net/view.php?id=663#c2738
20351         and causes problems with GNU grep: http://bugs.gnu.org/23234
20352         See glibc bug 19932:
20353         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
20354         * doc/posix-functions/mbrlen.texi (mbrlen):
20355         * doc/posix-functions/mbrtowc.texi (mbrtowc):
20356         Document the glibc bug.
20357         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
20358         Include hard-locale.h, locale.h.
20359         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
20360         if the bug is possible.
20361         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
20362         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
20363         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
20364         * modules/mbrtowc (Depends-on): Add hard-locale.
20365         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
20366         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
20367         * tests/test-mbrtowc5.sh: New file.
20369 2016-04-03  Pedro Alves  <palves@redhat.com>
20371         stdint: detect good enough pre-C++11 stdint.h in C++ mode
20372         When gnulib is configured in C++ mode for a system with a working C99
20373         implementation of stdint.h that predates C++11, gnulib ends up
20374         substituting stdint.h anyway.  This works on most targets, but on e.g.,
20375         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
20376         MinGW is LLP64.  Instead of trying to detect the right types, detect
20377         good-enough-pre-C++11 stdint.h and in such case define
20378         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
20379         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
20380         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
20381         conforms to C99.  If it does, check whether it hides symbols
20382         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
20383         does, define those macros in config.h.
20385 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
20387         argp: merge changes from glibc
20388         Among other things, this should fix problems found by a Coverity
20389         scan and reported by Andrei Borzenkov:
20390         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
20391         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
20392         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
20393         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
20394         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
20395         * lib/argp.h:
20396         Merge changes from glibc.
20397         * tests/test-argp-2.sh: Adjust to match new behavior.
20399 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
20401         stddef: support configuring with g++
20402         Problem reported by Ángel González in:
20403         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
20404         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
20405         Do not define if _GCC_MAX_ALIGN_T is defined.
20407 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
20409         test-framework-sh: minor cleanups
20410         * tests/init.sh (testdir_prefix_): Output a trailing newline,
20411         since strictly speaking POSIX requires this.
20412         (setup_): Do not use the variable 'fail', as that makes the
20413         trace output harder to read ('fail' is typically used by
20414         tests to mean the test failed).  Treat // portably.
20415         Check that new directory is not merely a sibling of the tmp dir.
20416         Avoid unnecessary invocation of tr.
20418         test-framework-sh: revert port to NetBSD 7.0
20419         It was a false alarm; I misinterpreted Assaf Gordon's report.
20420         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
20421         Restore.
20422         (test_dir_): Adjust to mktempd_ change.
20423         (mktempd_): Restore 2nd arg.  Use -t again.
20424         (base_template_, template_, nx_): Resurrect old code.
20426         Port better to Alpine Linux
20427         Its diff implementation does not support -c, but does support -U3.
20428         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
20429         * tests/init.sh (diff_opt_): New var.
20430         (compare_): Prefer diff -U3 to diff -c to plain diff.
20432 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
20434         test-framework-sh: port to NetBSD 7.0
20435         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
20436         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
20437         Remove.  All uses removed.
20438         (test_dir_): Adjust to mktempd_ change.
20439         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
20440         (base_template_, template_, nx_): Simplify by hardcoding.
20442 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
20444         gitlog-to-changelog: suppress ignored chatter
20445         * build-aux/gitlog-to-changelog: Do not warn about skipping
20446         an SHA if it would have been ignored anyway.
20448 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
20450         setlocale: add "sv" to Windows language table
20451         * lib/setlocale.c (language_table) [W32]: Add "sv".
20452         Reported in <https://savannah.gnu.org/bugs/?44588>.
20454 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
20456         sys_select: port to new Cygwin
20457         Problem reported by Ken Brown in:
20458         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
20459         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
20460         diagnostics.
20462 2016-03-17  Jim Meyering  <meyering@fb.com>
20464         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
20465         * tests/test-userspec.c (main): Remove unnecessary braces and fix
20466         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
20467           test-userspec.c:176:9: error: statement is indented as if it were \
20468             guarded by... [-Werror=misleading-indentation]
20469                    {
20470                    ^
20471           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
20472                  if (!diag && !T[i].result)
20473                  ^~
20475 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
20477         time_rz: port to clang -Wunused-const-variable
20478         * lib/time_rz.c (TZ): Remove.  All uses removed.
20480         std-gnu11: improve clang support
20481         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
20482         2016-03-15 Also try clang
20483         2016-03-15 Port C11 and C++11 testing to clang
20485         select: port more to Intel 2016.1.150 compiler
20486         Problem reported by Balázs Hajgató in:
20487         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
20488         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
20490 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
20492         select: try to port to 2016.1.150 compiler
20493         Problem reported by Balázs Hajgató in:
20494         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
20495         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
20496         POSIX specifies 'restrict'.
20498 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
20500         localename-tests: memory allocation fixes
20501         * tests/test-localename.c (test_locale_name)
20502         (test_locale_name_thread): Don't call freelocale on a locale
20503         that was the base of a successful newlocale, as that
20504         results in a double free.  Problem reported by Assaf Gordon.
20505         (test_locale_name_thread): Free saved names after use, to pacify
20506         gcc -fsanitize=address.
20508 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
20510         intprops: make .h file license match module
20511         * lib/intprops.h: Change the license wording to match glibc format.
20512         This is what is in modules/intprops anyway.  See:
20513         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
20515 2016-03-08  Eric Blake  <eblake@redhat.com>
20517         acl: fix missing return on Cygwin
20518         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
20519         fall off end of function. Fixes http://bugs.gnu.org/22949
20521 2016-03-05  Bruno Haible  <bruno@clisp.org>
20523         extern-inline: port to PGI CC
20524         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
20525         keyword 'inline'.
20526         Reported by Adam James Stewart in:
20527         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
20529 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
20531         signbit: port back to pre-C++11 GCC
20532         * lib/math.in.h (signbit): Do previous change only if
20533         __cplusplus < 201103.  See Jonathan Wakely in:
20534         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
20536 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
20538         mountlist: recognize autofs-mounted remote file systems, too
20539         Originally reported at: https://bugzilla.redhat.com/1309247
20540         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
20541         "-hosts" because it is used by autofs to mount remote file systems.
20543 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
20545         signbit: port to C++ with GCC 6
20546         * lib/math.in.h (signbit) [__cplusplus]:
20547         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
20548         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
20550         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
20552         regex: make it closer to libc
20553         Make Idx a signed type, rather than possibly unsigned.
20554         The unsignedness was not really buying us anything, since the code
20555         overflows for other reasons before getting to PTRDIFF_MAX.  Making
20556         it signed allows us to use -1 and -2 with abandon, like libc does,
20557         thus lessening the number of differences between gnulib and libc.
20558         Also, it should help avoid gratuitous warnings like the one
20559         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
20560         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
20563         regex: merge patches from libc
20565         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
20566         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
20567         Convert miscellaneous function definitions to prototype style.
20568         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
20569         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
20570         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
20571         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
20572         (re_search_internal):
20573         Convert to prototype-style function definition.
20574         Use internal_function for internal functions.
20576 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
20578         stdalign: port to older HP and IBM cc
20579         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
20580         C compilers, by checking their version numbers.  These version
20581         numbers appear in MariaDB and in Qt code that dates way back and
20582         that conditiionally uses the 'aligned' attribute.
20584 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20586         stdalign: port to clang 3.7.0
20587         Problem reported by Herbert J. Skuhra in:
20588         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
20589         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
20590         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
20591         https://llvm.org/bugs/show_bug.cgi?id=26547
20593 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20595         readdir_r: now obsolescent
20596         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
20597         * lib/mountlist.c (read_file_system_list): Add a FIXME.
20599 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20601         misc: port better to gcc -fsanitize=address
20602         Without these patches, ./configure CFLAGS='-fsanitize=address'
20603         would compute incorrect values.  This patch fixes some (but not all)
20604         test failures with recent glibc, with this configuration.
20605         * m4/acl.m4 (gl_ACL_GET_FILE):
20606         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
20607         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
20608         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
20609         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
20610         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
20611         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
20612         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
20613         * m4/getline.m4 (gl_FUNC_GETLINE):
20614         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
20615         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
20616         * m4/regex.m4 (gl_REGEX):
20617         * m4/strndup.m4 (gl_FUNC_STRNDUP):
20618         * tests/test-calloc-gnu.c (main):
20619         * tests/test-duplocale.c (main):
20620         * tests/test-getgroups.c (main):
20621         * tests/test-getline.c (main):
20622         * tests/test-inttostr.c (main):
20623         * tests/test-localename.c (test_locale_name)
20624         (test_locale_name_thread, test_locale_name_environ)
20625         (test_locale_name_default):
20626         * tests/test-regex.c (main):
20627         * tests/test-setlocale1.c (main):
20628         * tests/test-stat.h (test_stat_func):
20629         Free heap-allocated storage before exiting.
20630         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
20631         Don't match *_foo symbols inserted by AddressSanitizer.
20632         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
20634 2016-02-02  Jim Meyering  <meyering@fb.com>
20636         verify-tests: also remove stray test-verify.Tpo
20637         * modules/verify-tests (Makefile.am): Arrange for "make clean"
20638         to remove the test-verify.Tpo file that is left behind by
20639         the automake-generated rule upon compilation failure.
20640         Otherwise, that .Tpo file would cause a failed "make distcheck"
20641         at least for grep.
20643 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
20645         std-gnu11: new module
20646         This makes it easier for applications to prefer C11 and C++11
20647         to older variants, when compiling C and C++ code.
20648         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
20649         a nontrivial chunk of GPLed Autoconf source code.
20650         * COPYING: Mention the m4/*.m4 copyright situation.
20651         * MODULES.html.sh (std-gnu11): New module.
20652         * m4/std-gnu11.m4, modules/std-gnu11: New files.
20654 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
20656         get-permissions, strftime: fix grammar in comments
20657         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
20658         some grammar fixes Alan Mackenzie made to GNU Emacs.
20660 2016-01-25  Daiki Ueno  <ueno@gnu.org>
20662         gettext: mark as obsolete
20663         Suggested by Paul Eggert in:
20664         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
20665         * modules/gettext (Status): Mark as obsolete.
20666         (Notice): Suggest to use 'gettext-h' instead.
20667         * modules/gettext-h (Description): Suggest GNU gettext, instead of
20668         the 'gettext' module.
20670 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
20672         gnulib-tool: don't give up on ln -s so easily
20673         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
20674         because an earlier one failed.  The targets could be on different
20675         file systems.  Problem reported by KO Myung-Hun in:
20676         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
20678         closedir: fix OS/2-related typos
20679         Problem reported by KO Myung-Hun in:
20680         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
20681         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
20682         in the last couple of changes.
20684 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
20686         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
20687         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
20688         copying a directory.
20690 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
20692         regex: treat [x] as x if x is a unibyte encoding error
20693         Problem reported by Aharon Robbins in:
20694         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
20695         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
20696         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
20698         closedir, dirfd, opendir: port to OpenSolaris 5.10
20699         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
20700         * m4/dirfd.m4 (gl_FUNC_DIRFD):
20701         * m4/opendir.m4 (gl_FUNC_OPENDIR):
20702         Don't use ${word##pat} substitution, as it doesn't work in
20703         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
20704         http://bugs.gnu.org/22443#11
20706 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20708         bootstrap: use American spelling
20709         * build-aux/bootstrap: Honor American spelling.
20711 2016-01-22  Karl Berry  <karl@freefriends.org>
20713         * doc/posix-functions/localtime.texi,
20714         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
20716 2016-01-21  Bruno Haible  <bruno@clisp.org>
20718         hash-pjw-bare: fix comment
20719         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
20721         wcwidth: Replace also on OpenBSD 5.8
20722         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
20723         * doc/posix-functions/wcwidth.texi: Update.
20725 2016-01-20  Pádraig Brady  <P@draigBrady.com>
20727         gnu-web-doc-update: fix addition of new files
20728         If there were already added (emnpty) dirs,
20729         then cvs aborts the add with the message:
20730           cvs [add aborted]: there is a version in <./dirname> already
20731         * build-aux/gnu-web-doc-update: Add directories separately
20732         to the addition of files, to avoid the above issue
20733         impacting the addition of files.
20735 2016-01-19  Daiki Ueno  <ueno@gnu.org>
20737         utimens-tests: avoid pulling gettext .m4 files
20738         Although this is not the right fix to the original problem:
20739         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
20740         it makes it possible again for consumer projects to use arbitrary
20741         version of gettext, through the steps described at:
20742         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
20743         See here for details:
20744         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
20745         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
20746         'gettext'.
20747         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
20748         'gettext'.
20750 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20752         regex: pacify static checkers
20753         Problem and draft fix reported by Aharon Robbins in:
20754         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
20755         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
20756         Clear memory to pacify static checkers.
20758         regex: fix [ diagnostic
20759         Problem and fix reported by Aharon Robbins in:
20760         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
20761         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
20763         regex: fix memory leaks
20764         Problem and draft fix reported by Aharon Robbins in:
20765         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
20766         * lib/regcomp.c (build_range_exp, build_charclass_op)
20767         * lib/regex_internal.c (re_dfa_add_node):
20768         Fix memory leak on failure.
20770 2016-01-18  Pádraig Brady  <P@draigBrady.com>
20772         fts: don't unconditionally use leaf optimization for NFS
20773         NFS st_nlink are not accurate on all implementations,
20774         leading to aborts() if that assumption is made.
20775         See <https://bugzilla.redhat.com/1299169>
20776         * lib/fts.c (leaf_optimization_applies): Remove NFS from
20777         the white list, and document the issue.
20779 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
20780             KO Myung-Hun  <komh@chollian.net>
20782         gnulib-tool: don't assume ln -s works
20783         * gnulib-tool (func_ln_s): New function.
20784         (func_ln): Use it.
20786 2016-01-15  KO Myung-Hun  <komh@chollian.net>
20788         utimes: detect utimes() correctly on OS/2 kLIBC
20789         utimes() of OS/2 kLIBC has some limitations.
20790         1. OS/2 itself supports a file date since 1980 year in local time.
20791         2. OS/2 itself supports only even seconds for a file time.
20792         3. utimes() of OS/2 kLIBC does not work on an opened file.
20793         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
20794         * doc/posix-functions/utimes.texi: Document the above limitations of
20795         utimes() on OS/2 kLIBC.
20797 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
20798             KO Myung-Hun  <komh@chollian.net>
20800         openat_proc_name: port to OS/2 kLIBC
20801         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
20802         instead of /proc/self/fd.
20803         * lib/openat-proc.c (openat_proc_name):
20804         Don't assume file name length is less than INT_MAX.
20805         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
20807 2016-01-14  KO Myung-Hun  <komh@chollian.net>
20809         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
20810         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
20811         definitions of intptr_t and uintptr_t (which use int and unsigned)
20812         to avoid clashes with declarations of system functions like sbrk.
20813         * lib/stdint.in.h (intptr_t, uintptr_t): Check
20814         _INTPTR_T_DECLARED before defining them.
20816         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
20817         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
20818         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
20819         Declare on kLIBC.
20820         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
20821         fd associated with dirp.
20822         (_gl_register_dirp_fd): New. Register fd associated with dirp to
20823         dirp_fd_list.
20824         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
20825         (dirfd): Implemented for kLIBC.
20826         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
20827         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
20828         succeeds.
20829         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
20830         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20831         (REPLACE_DIRFD): Define to 1 if replaced.
20832         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
20833         * modules/closedir (Depends-on): Add dirfd.
20834         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
20835         condition.
20836         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
20837         * modules/opendir (Depends-on): Add dirfd.
20839         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
20840         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
20841         * lib/dup.c (dup_nothrow): New.
20842         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
20843         (klibc_dup2): New.
20844         * lib/fcntl.c (klibc_fcntl): New.
20845         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
20846         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
20847         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
20848         fd.
20850         pipe_filter_ii_execute: port to OS/2 kLIBC
20851         Pipes on kLIBC do not support O_NONBLOCK like Win32.
20852         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
20853         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
20854         Reuse Win32 code on OS/2 kLIBC.
20855         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
20856         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
20858         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
20859         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
20860         static inline function.  The implementation of wcwidth in wcwidth.c
20861         causes a "conflicting types" error.
20862         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
20864         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
20865         spawn() on OS/2 kLIBC is not silly like one on Windows
20866         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
20867         empty string on OS/2 kLIBC.
20869         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
20870         On OS/2 kLIBC, select() works only on sockets.
20871         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
20873         binary-io: don't put fd in binary mode if it is a console on EMX
20874         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
20875         a console on EMX.
20877 2016-01-15  Pádraig Brady  <P@draigBrady.com>
20879         doc: mention unfixed issues with unsupported localtime() values
20880         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
20881         returns nonsense for localtime(2^56).
20882         * doc/posix-functions/localtime_r.texi: Likewise.
20884 2016-01-14  Pádraig Brady  <P@draigBrady.com>
20886         doc: mention setlocale() issues on OpenBSD
20887         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
20888         never fails, and the need to check categories individually.
20890 2016-01-14  Pádraig Brady  <P@draigBrady.com>
20892         sig2str: list all signals on FreeBSD >= 7
20893         FreeBSD >= 7 is contravening POSIX by not defining NSIG
20894         to the maximal statically defined signal value.
20895         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
20896         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
20897         where available, even when NSIG is defined.
20899 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
20901         acl-permissions: port to USE_ACL==0 platforms
20902         I ran into this problem when building bleeding-edge GNU Emacs
20903         with gcc -fsanitize=address on Fedora 23.  On this platform
20904         the ACL library does not pass the 'configure' test and Emacs
20905         then does not build due in part to what appear to be typos in the
20906         ACL part of Gnulib.
20907         * lib/acl-internal.c (free_permission_context):
20908         * lib/acl-internal.h (struct permission_context):
20909         Test whether USE_ACL is nonzero, not whether it is defined.
20911 2016-01-12  Martin Sebor  <msebor@redhat.com>
20913         mktime: rename macro to avoid glibc clash
20914         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
20915         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
20917 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
20919         Port "$@" to OpenIndiana ksh93
20920         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
20921         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
20922         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
20923         bug long-dead shells, so remove the workaround.
20924         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
20925         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
20926         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
20927         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
20928         Use "$@" instead of ${1+"$@"}.
20930         Port Universal Time settings to strict POSIX
20931         * build-aux/announce-gen, build-aux/bootstrap:
20932         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
20933         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
20934         * build-aux/gnupload, build-aux/mkinstalldirs:
20935         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
20936         * build-aux/update-copyright, build-aux/useless-if-before-free:
20937         * build-aux/vc-list-files, tests/test-strftime.c:
20938         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
20939         but POSIX says the behavior of TZ="UTC" is undefined.
20941 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
20943         msvc-inval: fix problem with unset shell var
20944         Problem reported by Karl Berry in:
20945         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
20946         * modules/msvc-inval (Depends-on):
20947         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
20948         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
20950 2016-01-01  Pádraig Brady  <P@draigBrady.com>
20952         tests: for compare_(), use cmp -s where available
20953         * tests/init.sh (compare_): Only fall back to cmp without
20954         the POSIX defined -s option, where this is not available.
20956 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
20958         version-etc: new year
20959         * build-aux/gendocs.sh (version):
20960         * doc/gendocs_template:
20961         * doc/gendocs_template_min:
20962         * doc/gnulib.texi:
20963         * lib/version-etc.c (COPYRIGHT_YEAR):
20964         Update copyright dates by hand in templates and the like.
20965         * all files: Run 'make update-copyright'.
20967 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
20969         human: fix output buffer overrun by 1
20970         * lib/human.c (human_readable): Fix off-by-one typo in buffer
20971         calculation that could lead to a one-byte buffer overrun.
20973 2015-12-28  Daiki Ueno  <ueno@gnu.org>
20975         maint: fix operator precedence in mbrtowc test
20976         This is a fix for test breakage introduced by commit 45228d96; the
20977         equality expression must be parenthesized when negated with '!',
20978         otherwise we always get:
20980           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
20982         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
20983         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
20985 2015-12-23  James Youngman  <jay@gnu.org>
20987         regexprops-generic: update from regex.h
20988         * doc/regexprops-generic.texi: update by running the regexprops binary
20989         from findutils (the command line is 'regexprops "Regular Expressions"
20990         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
20991         gnulib with GNU grep had made this document out-of-date.
20993 2015-12-23  Pádraig Brady  <P@draigBrady.com>
20995         strftime-tests: avoid false failure on OS X
20996         * tests/test-strftime.c (struct localtime_rz_test): Add an
20997         ahistorical member which is used to warn rather than fail
20998         when tm_isdst isn't set for such entries.  This is the case for
20999         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
21001 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
21003         fts: ensure leaf optimization is used for NFS
21004         NFS provides usable dirent.d_type but not necessarily for all entries
21005         of large directories.  See <https://bugzilla.redhat.com/1252549>
21006         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
21008 2015-12-20  Pádraig Brady  <P@draigBrady.com>
21010         fts: enable leaf optimization for XFS
21011         XFS provides usable dirent.d_type only for DT_DIR,
21012         but the noleaf optimization still applies.
21013         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
21015 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
21017         intprops: comment fix
21018         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
21019         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
21021         intprops-test: work around GCC bug 68971
21022         Problem reported by Pádraig Brady in:
21023         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
21024         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
21025         (main): Add a case that better tests 64-bit long in this area.
21027 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
21029         gnulib-tool: allow multiple --local-dir usage
21030         * gnulib-tool: Use --local-dir to construct compound
21031         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
21032         PATH_SEPARATOR early.
21033         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
21034         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
21035         func_determine_path_separator because that needs to be detected
21036         earlier now.
21037         (func_determine_path_separator): New function.
21038         (func_path_foreach, func_path_foreach_inner): New functions.
21039         (func_path_prepend, func_path_append): Likewise.
21040         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
21041         (func_lookup_file, func_all_modules): Use new functions to work
21042         with local_gnulib_path.
21043         (func_modules_in_dir, func_exists_module): New callbacks for
21044         func_path_foreach.
21045         (func_exists_module, func_get_tests_module): Likewise.
21046         (func_is_local_file, func_should_symlink): New helper methods.
21047         (func_add_file, func_update_file): Use new func_should_symlink
21048         instead, DRY.
21049         (func_reconstruct_cached_local_gnulib_path): New helper.
21050         (func_reconstruct_cached_dir): New callback.
21051         (func_import): The cached_local_gnulib_dir renamed to
21052         cached_local_gnulib_path similarly to local_gnulib_dir.
21053         Use new func_reconstruct_cached_local_gnulib_path.
21054         (func_count_relative_local_gnulib_path): New sub-method.
21055         (func_create_testdir): Use func_should_symlink, DRY.
21056         (func_create_megatestdir): Use new functions to work with
21057         local_gnulib_path correctly.
21058         (func_append_local_dir): New helper.
21060 2015-12-08  Pádraig Brady  <P@draigBrady.com>
21062         fix freadptr to work with ungetc on all uClibc configs
21063         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
21064         where GNU coreutils cut(1) generates invalid output on uClibc
21065         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
21066         * lib/freadptr.c (freadptr): Return NULL if there are
21067         ungotten chars.  In this case freadseek() will iterate
21068         again to process the ungotten character.
21070 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
21072         xalloc-oversized: improve performance with GCC 5
21073         * lib/xalloc-oversized.h (xalloc_oversized):
21074         Improve performance with GCC 5 by using __builtin_mul_overflow.
21076 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
21078         intprops: new public macro EXPR_SIGNED
21079         Emacs can use this macro, so make it public.
21080         * doc/intprops.texi (Arithmetic Type Properties): Rename from
21081         'Integer Type Determination', since some of these macros apply
21082         to non-integer types.  Clarify what kinds of constant expressions
21083         these macros return.  Say when the arguments can be non-integers.
21084         Mention newly published macro EXPR_SIGNED.
21085         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
21086         make it public.  All uses changed.
21088         intprops: fix typo in clang port
21089         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
21090         '__builtin_add_overflow' that is not caught by compiler.
21092 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
21094         test-timespec: fix typo in previous change
21095         * tests/test-timespec.c (main): Fix typo that reduced test quality.
21097         timespec-sub: fix overflow bug; add tests
21098         * lib/timespec-add.c (timespec_add):
21099         * lib/timespec-sub.c (timespec_sub):
21100         Work even if time_t is narrower than int (a theoretical
21101         possibility).  Redo code for a bit more clarity.
21102         * lib/timespec-sub.c (timespec_sub):
21103         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
21104         * modules/timespec-tests, tests/test-timespec.c: New files.
21106         intprops-test: suppress -Woverlength-strings
21107         Problem reported by Pádraig Brady in:
21108         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
21109         It is not worth the hassle to port this test to compilers that
21110         cannot handle long strings in diagnostics.
21111         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
21113 2015-11-03  Pádraig Brady  <P@draigBrady.com>
21115         quotearg: add quotearg_n_style_colon()
21116         This quotes with default options of the specified style,
21117         but with quoting enabled for instances of ':'.
21118         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
21119         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
21121 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
21123         intprops: revise _WRAPV macros, revert _OVERFLOW
21124         The incompatible changes to the _OVERFLOW macros were too much of
21125         a hassle in practice, so revert them.  Instead, change the new
21126         _WRAPV macros to make them closer in behavior to GCC 5's new
21127         builtin_add_overflow etc. functions.  No other software was using
21128         these newly-added macros yet, so this should be OK.
21129         * NEWS: Revert previous change, since the incompatible change
21130         has been reverted, and nobody used the incompatible version.
21131         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
21132         Document revised behavior.
21133         (Integer Range Overflow): Adjust example to match above revisions.
21134         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
21135         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
21136         these can be used in integer constant expressions again.
21137         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
21138         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
21139         needed.
21140         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
21141         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
21142         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
21143         Remove, as they did not seem that useful.
21144         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
21145         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
21146         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
21147         Support new semantics.
21148         (__has_builtin): New macro, if not alreay defined.
21149         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
21150         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
21151         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
21152         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
21153         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
21154         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
21155         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
21156         New macros.
21157         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
21159 2015-11-03  Jim Meyering  <meyering@fb.com>
21161         intprops: add parentheses for when OP has precedence lower than "-"
21162         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
21163         "a OP b" must be parenthesized for when OP is like "<<", which has
21164         lower precedence than the following "-". Reported by Pádraig Brady.
21166 2015-11-03  Pádraig Brady  <P@draigBrady.com>
21168         quotearg: constify get_quoting_style parameters
21169         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
21170         * lib/quotearg.c (get_quoting_style): Likewise.
21172 2015-11-02  Pádraig Brady  <P@draigBrady.com>
21174         quotearg: add support for $'' shell escaping
21175         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
21176         items and descriptions.
21177         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
21178         above types by quoting like "shell", but using $'...' syntax
21179         for non printable characters, which should provide unambiguous
21180         printable output for any input.
21181         * tests/test-quotearg-simple.c: Update accordingly.
21183 2015-11-02  Pádraig Brady  <P@draigBrady.com>
21185         maint: use a more standard return from mbrtowc test
21186         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
21187         from the test program as this is non standard and often
21188         indicates an unhandled case in the test program.
21189         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
21191 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
21193         intprops: add WRAPV and const flavors for GCC 5
21194         If available, use GCC 5's builtin functions for efficient integer
21195         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
21196         and safely compute the low-order bits of the correct answer.
21197         A downside of these efficient functions is that they cannot be
21198         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
21199         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
21200         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
21201         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
21202         Document the changes.
21203         (Wraparound Arithmetic): New section.
21204         (Integer Range Overflow):
21205         Put this subsection last, since it's least useful.
21206         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
21207         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
21208         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
21209         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
21210         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
21211         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
21212         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
21213         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
21214         New macros.
21215         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
21216         Generate calls to GCC builtins if available, for speed.
21217         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
21218         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
21219         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
21220         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
21221         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
21222         (CHECK_QUOTIENT, CHECK_REMAINDER):
21223         Test WRAPV and CONST flavors (when available) too.
21225 2015-10-30  Pádraig Brady  <P@draigBrady.com>
21227         doc: use extended timezone format in iso-8601 example
21228         * doc/parse-datetime.texi: The standard states that extended format
21229         is to be used consistently throughout.
21230         Note that lib/parse-datetime.y can handle either tz format.
21232 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
21234         stdalign: port to Sun C 5.9
21235         * doc/posix-headers/stdalign.texi: Document this.
21236         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
21237         __attribute__ ((__aligned__ (...))).
21239 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
21241         time_rz: fix comment about tzalloc
21242         * lib/time_rz.c (tzalloc): Fix comment.
21244 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
21246         stdalign: work around pre-4.9 GCC x86 bug
21247         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
21248         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
21249         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
21251 2015-10-18  Pádraig Brady  <P@draigBrady.com>
21253         maint.mk: sc_tight_scope: remove extraneous expressions
21254         * top/maint.mk (tight_scope): This is not really required since
21255         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
21256         that matches all nm entries.  But it does remove extraneous entries
21257         that may be confusing or cause issue in future maintenance.
21259 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
21261         time_rz: return NULL if localtime_r fails
21262         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
21263         while still attempting to pacify bleeding-edge GCC.
21265         fts: port to C11 alignof
21266         * doc/posix-headers/stdalign.texi (stdalign.h):
21267         Document the C11 restriction.
21268         * lib/fts.c: Include stddef.h, for max_align_t.
21269         (fts_alloc): Align using max_align_t, not FTSENT.
21270         * modules/fts (Depends-on): Add stddef.
21272 2015-10-18  Jim Meyering  <meyering@fb.com>
21274         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
21275         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
21276         would see this:
21278         lib/time_rz.c: In function 'localtime_rz':
21279         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
21280           [-Werror=nonnull]
21281                    if (tm && !save_abbr (tz, tm))
21282                        ^
21284         That was complaining about "tm" because it is a parameter that was
21285         declared with the __nonnull__ attribute.
21286         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
21287         result of localtime_r.
21289 2015-10-17  Jim Meyering  <meyering@fb.com>
21291         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
21292         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
21293         name-extraction regexp mistakenly used \S+, and would mistakenly
21294         extract "*F" from "extern int *F()" rather than the desired "F".
21295         Use \w+ instead.
21297 2015-10-17  Jim Meyering  <meyering@fb.com>
21299         maint.mk: sc_tight_scope: factor and support OS X
21300         * top/maint.mk (_gl_tight_scope): Address three issues:
21301         - factor out four instances of code that wraps a string in "^...$"
21302         - allow nm-reported symbol names to have an optional leading "_"
21303         - add "main" to the list of ignored variable names, because on os x,
21304         "main" has nm-reported type "S" in the variable-checking section.
21306 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
21308         safe-alloc-tests: fix typo in license header
21309         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
21311 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
21313         copy-file: fix mem leak in error case
21314         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
21315         upon error opening or performing I/O to the src and dest files.
21317 2015-10-15  Mike Frysinger  <vapier@chromium.org>
21319         localename: control langinfo.h inclusion
21320         This header is only used to work around buggy behavior in old
21321         versions of glibc, so do not include it all the time.  Otherwise
21322         we get build failures on systems that do not provide langinfo.h.
21323         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
21324         in the source later on.
21325         The patch was originally submitted to gettext as:
21326         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
21328 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
21330         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
21331         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
21332         * lib/u64.c, lib/unistd.c:
21333         Append 'typedef int dummy;', to pacify compilers that are picky
21334         about empty translation units.
21336 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
21338         accept4-tests: fix to avoid non portable flags
21339         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
21340         as they are the only documented ones, and passing others may trigger
21341         EINVAL (seen on FreeBSD 10.1-RELEASE).
21342         * doc/glibc-functions/accept4.texi: Mention that we don't provide
21343         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
21345 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
21347         gnulib-tool: fix tests of 'extensions' module
21348         This complements f8fe25fab60e3c687a124 commit.
21349         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
21350         emitting of initial gl_EARLY macros.
21351         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
21352         replaced with func_emit_pre_early_macros call.
21354 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
21356         unicase/locale-language: fix typo in utf-8 cookie
21357         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
21358         Problem reported by Zbigniew Jędrzejewski-Szmek.
21360 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
21362         xalloc: do not worry about GCC 5 warning on 32 bit
21363         * lib/xalloc.h: Revert previous change.
21364         I found a better way to fix this in coreutils.
21366 2015-10-02  Pádraig Brady  <P@draigBrady.com>
21368         xalloc: avoid GCC 5.1 warning on 32 bit
21369         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
21370         xalloc_oversized(), which was seen to give this warning
21371         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
21372         when simplifying conditional".
21374 2015-10-02  Daiki Ueno  <ueno@gnu.org>
21376         uniname/uniname-tests: avoid compiler warnings
21377         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
21378         unused local variables.
21379         (test_alias_lookup): Fix alias name display in failure cases.
21381 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21383         c-ctype: do not worry about EBCDIC + char signed
21384         Drop support for EBCDIC with char being signed, as this breaks too
21385         many programs.  Problem reported by Ben Pfaff in:
21386         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
21387         * lib/c-ctype.h: Verify that we are not using EBCDIC with
21388         char being signed.
21389         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
21390         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
21391         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
21392         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
21393         * tests/test-c-ctype.c (test_all):
21394         Simplify by assuming standard char values cannot be negative.
21395         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
21397 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
21399         c-ctype: port better to z/OS EBCDIC
21400         Problems reported by Daniel Richard G. in:
21401         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
21402         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
21403         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
21404         (_C_CTYPE_OTHER_CNTRL): New macro.
21405         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
21406         from SCHAR_MIN, as the functions are defined only from values
21407         promoted from char or from unsigned char, not necessarily from
21408         signed char.
21410 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
21412         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
21414         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
21415         and ARFLAGS variables.  Doing this unconditionally could break
21416         later Automake's AM_PROG_AR invocation (at least it's
21417         AC_CHECK_TOOLS call to detect correct 'ar' binary).
21419         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
21420         Amsterdam Compiler Kit, so make the previous code to have effects
21421         only on ACK, and rather automatically call the Automake's
21422         AM_PROG_AR as soon as possible to decide other cases.
21424         References:
21425         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
21427         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
21428         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
21429         is possible, keep setting AR/ARFLAGS to reasonable defaults.
21430         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
21431         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
21432         'extensions' module is used.
21433         * modules/extensions (configure.ac-early): Remove as this snippet
21434         is added to gnulib-comp.m4 earlier anyway.
21436 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
21438         sockets: MS Windows initalization fixes
21439         Problem reported by Test User in:
21440         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
21441         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
21442         Correct the endianness.
21443         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
21444         number mismatch, not just on <.  Cleanup before any such failure.
21446 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
21448         gc: fix detection of installed libgcrypt version
21449         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
21450         at least as recent as 1.4.4.  The previously used macro is not
21451         available now, since modules were removed in version 1.6.0.
21453 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
21455         c-ctype: rewrite to use inline functions
21456         This simplifies maintenance, since it makes for just one
21457         implementation of each function, letting the compiler have the fun
21458         of optimization.  In practice this works well nowadays with GCC.
21459         E.g., c_isascii might need only three instructions even though the
21460         source code lists every ASCII character individually in a large
21461         switch statement.
21462         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
21463         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
21464         * NEWS: Document the API change.
21465         * lib/c-ctype.c: Drastically simplify, since this now just expands
21466         inline functions.
21467         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21468         (C_CTYPE_INLINE): New macro.
21469         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
21470         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
21471         Verify that either ASCII or EBCDIC is being used.
21472         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
21473         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
21474         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
21475         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
21476         New private macros.
21477         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
21478         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
21479         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
21480         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
21481         (c_tolower, c_toupper): When converting, return the unsigned char,
21482         as that is what z/OS does.
21483         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
21484         of some c-ctype.h macros.
21485         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
21486         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
21487         c_tolower promotion to be compatible with z/OS.
21489 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
21491         gitlog-to-changelog: trim only trailing whitespaces
21492         This is fix for --format regression introduced by commit
21493         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
21494         doubled %n string) had no effect anymore.  This format
21495         specification has been used e.g. by GNU paxuitils (commit
21496         edfd8bcc3).
21498         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
21499         newlines in commmit messages.
21501 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
21503         Test that c_iscntrl agrees with iscntrl, etc.
21504         Suggested by Daniel Richard G. in:
21505         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
21506         * modules/c-ctype-tests (Depends-on): Add ctype.
21507         * tests/test-c-ctype.c: Include <ctype.h>.
21508         (NCHARS): New constant.
21509         (test_agree_with_C_locale): New function.
21510         (main): Use it.
21511         (test_all): Use named constants.
21513         c-ctype: improve c_isascii testing
21514         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
21515         Add a test to count the number of ASCII characters.
21517 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21519         savewd: remove SAVEWD_CHDIR_READABLE
21520         It was problematic in the light of file systems that ignore umask.
21521         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
21522         * NEWS: Document this.
21523         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
21524         successful, -1 (setting errno) on failure, rather than something
21525         more complicated than that.
21526         * lib/mkdir-p.c (make_dir_parents):
21527         Do not use SAVEWD_CHDIR_READABLE.
21528         * lib/savewd.c (savewd_chdir):
21529         Remove support for SAVEWD_CHDIR_READABLE.
21530         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
21532         c-ctype: port better to EBCDIC
21533         Problems reported by Daniel Richard G. in
21534         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
21535         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
21536         Include "verify.h".
21537         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
21538         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
21539         Define as enum constants with value false, if not defined, so that
21540         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
21541         code more portable, as both branches of the 'if' are compiled on
21542         all platforms.
21543         (C_CTYPE_EBCDIC): New constant.
21544         Verify that the character set is either ASCII or EBCDIC.
21545         (to_char): New static function.
21546         (c_isascii, c_iscntrl):
21547         Assume standard control-character assignments for EBCDIC.
21548         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
21549         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
21550         Rewrite to use 'if' instead of 'ifdef'.
21551         Use to_char if non-ASCII.  Prefer <= to >=.
21552         Prefer true and false to 1 and 0, for booleans.
21553         (c_iscntrl): Use 'if', not 'ifdef'.
21554         * modules/c-ctype (Depends-on): Add verify.
21555         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
21556         (to_char): New function.
21557         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
21559 2015-09-21  Pádraig Brady  <P@draigBrady.com>
21561         nanosleep: fix return code for interrupted replacement
21562         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
21563         that we return -1 in the case the call is interrupted by a signal,
21564         rather than the current value of 1.
21565         Diagnosed and tested by Daniel Richard G.
21567 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
21569         Diagnose ERE '()|\1'
21570         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
21571         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
21572         track of the set of previously-completed subexpressions available
21573         before the first alternative, and restore this set just before
21574         parsing each subsequent alternative.  This lets us diagnose the
21575         invalid back-reference in the ERE '()|\1'.
21577         regex: merge patches from libc
21579         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
21580         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
21581         * lib/regex_internal.h:
21582         Include <libc-lock.h> instead of <bits/libc-lock.h>.
21584         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
21585         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
21586         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
21587         wcscoll.
21588         * lib/regexec.c (check_node_accept_bytes): Likewise.
21590         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
21591         Fix regex wcrtomb namespace (bug 18496).
21592         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
21593         instead of wcrtomb.
21595         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
21596         Fix regex wctype namespace (bug 18495).
21597         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
21598         instead of towlower.
21599         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
21600         instead of iswlower.  Call __towupper instead of towupper.
21601         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
21602         instead of iswalnum.
21604         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
21605         * lib/regcomp.c (parse_bracket_exp): Initialize type to
21606         COLL_SYM in a couple of places to avoid uninitialized variable
21607         wanings on tilegx gcc 4.8.2.
21609         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
21610         * lib/regex_internal.h: Remove NOT_IN_libc.
21612         2014-11-17  Andreas Schwab  <schwab@suse.de>
21613         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
21615         2014-09-11  Roland McGrath  <roland@hack.frob.com>
21616         Move findidx nested functions to top-level.
21617         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
21618         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
21619         Pass new arguments to findidx.
21620         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
21621         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
21622         Don't #include it inside the function.  Pass new arguments to findidx.
21623         * lib/regex_internal.h:
21624         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
21625         (re_string_elem_size_at): Don't #include it inside the function.
21626         Pass new arguments to findidx.
21628         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
21629         Check if DEBUG is defined in regex_internal.c
21630         * lib/regex_internal.c: Check if DEBUG is defined and is set.
21632 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
21634         ceill: detect buggy OpenBSD implementation
21635         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
21636         which returns zero for small values.  Discussed here:
21637         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
21639 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
21641         mountlist: add me_mntroot field on Linux machines
21642         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
21643         mount_entry so Linux machines based on /proc/self/mountinfo can
21644         distinguish between bind mounts and original mounts.  In reality bind
21645         mounts aren't treated differently than mountroot=/ mounts by the
21646         kernel, but the user often wants these bind mounts distinguished.
21647         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
21648         More details at https://pad.lv/1432871
21650 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
21652         doc: Describe to use multiple instances of gnulib
21653         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
21654         instances of gnulib with different modules can be used, for example one
21655         for a lib and another one for associated tools.
21657 2015-09-01  Pádraig Brady  <P@draigBrady.com>
21659         base32: mark function as __attribute__ const
21660         * lib/base32.h (isbase32): Mark __attribute__ const as
21661         suggested by GCC, and consistent with the base64 module.
21663 2015-08-20  Daiki Ueno  <ueno@gnu.org>
21665         gnulib-tool: don't transform binary files with sed
21666         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
21667         .mo and .class files.
21668         Reported by Denis Denisov.
21670 2015-08-10  Daiki Ueno  <ueno@gnu.org>
21672         gperf: respect silent rules
21673         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
21674         V_GPERF_0 for silent rules.
21675         * modules/iconv_open (Makefile.am): Use V_GPERF.
21676         * modules/unicase/locale-language (Makefile.am): Likewise.
21677         * modules/unicase/special-casing (Makefile.am): Likewise.
21678         * modules/unictype/category-byname (Makefile.am): Likewise.
21679         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
21680         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
21681         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
21682         * modules/unictype/property-byname (Makefile.am): Likewise.
21683         * modules/unictype/scripts (Makefile.am): Likewise.
21684         * modules/uninorm/composition (Makefile.am): Likewise.
21686 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
21688         Improve port of stdalign to C++11
21689         Problem reported by Sundaram in:
21690         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
21691         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
21692         (__alignas_is_defined): Define if C++11 or newer.
21694 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
21696         pmccabe2html: fix gawk regex escaping
21697         * build-aux/pmccabe2html: Add one more backslash to properly
21698         escape the gsub replacement value.  Fixes this error:
21699         gawk: ./build-aux/pmccabe2html:425: \
21700         warning: escape sequence `\&' treated as plain `&'
21702 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
21704         time_rz: port to pedantic memcpy
21705         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
21706         that reject memcpy (..., NULL, 0).
21708 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
21710         time_rz: port better to MinGW
21711         Don't change tzname, as this makes MinGW dump core (Bug#21020).
21712         Instead, store the tzname copy in the struct tm_zone object.
21713         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
21714         * lib/strftime.c [!_LIBC]:
21715         * lib/time_rz.c: Include time-internal.h.
21716         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
21717         name from *TZ rather than from TZNAME, doable because *TZ now has
21718         a tzname_copy member.
21719         * lib/time-internal.h: New file, with contents taken from
21720         lib/time_rz.c.  It's separate because strftime.c now accesses
21721         struct tm_zone members.
21722         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
21723         New member tzname_copy.
21724         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
21725         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
21726         Initialize tzname_copy member.
21727         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
21728         in tzname_copy member.
21729         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
21730         (restore_tzname): Remove; no longer needed.  All calls removed.
21731         * modules/time_rz (Files): Add lib/time-internal.h.
21733         time: port __need_time_t to MinGW
21734         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
21735         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
21737 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
21739         strftime: fix newly-introduced bug on Solaris
21740         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
21741         consistently at the start, rather than doing some of the setup at
21742         the start and some in the %Z format spec.  This is cleaner, and
21743         works better with time_rz on platforms like Solaris where struct
21744         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
21745         mktime_z and localtime_rz can mess up the tzname cache.
21747         test-strftime: test for Solaris bug
21748         * modules/strftime-tests (Depends-on): Add strerror.
21749         * tests/test-strftime.c: Include <errno.h>.
21750         (posixtm_test): New function, containing the old 'main'.
21751         (struct tzalloc_test, struct localtime_rz_test): New types.
21752         (TZ, LT): New static vars.
21753         (tzalloc_test): New function.
21754         (main): Rewrite in terms of posixtm_test and tzalloc_test.
21756         time_rz: port to Solaris etc.
21757         Works around a tzname problem on platforms like Solaris that have
21758         tzname but not tm_zone, by setting tzname at the appropriate time
21759         and restoring it later.
21760         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
21761         New static vars.
21762         (save_abbr) [HAVE_TZNAME]: Set them.
21763         (revert_tz) [HAVE_TZNAME]: Clear or use them.
21764         (restore_tzname): New function.
21765         (localtime_rz, mktime_z): Use it.
21767         time_rz: now LGPL
21768         * modules/time_rz (License): Now LGPL, because strftime depends on it.
21770         time_rz: make a constant 'const'
21771         * lib/time_rz.c (local_tz): Now const.
21773         time_rz: fix off-by-one typo
21774         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
21776 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
21778         fprintftime, strftime: use timezone_t args
21779         * NEWS: Document the change.
21780         * lib/fprintftime.h (fprintftime):
21781         * lib/strftime.c (extra_args) [my_strftime]:
21782         * lib/strftime.h (nstrftime):
21783         Time zone arg is now of type timezone_t, not int.
21784         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
21785         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
21786         (my_strftime) [emacs && !my_strftime]:
21787         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
21788         Remove; Emacs doesn't need this any more.
21789         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
21790         fprintftime and nstrftime to call tzset.
21791         (ut) [!my_strftime]: Remove, replacing with ...
21792         (tz) [!my_stftime]: ... this new macro.  All uses changed.
21793         (strftime_case_): Use localtime_rz and mktime_z instead
21794         of localtime_r and mktime.
21795         * modules/fprintftime (Depends-on): Add time_rz.
21796         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
21797         * tests/test-strftime.c (main): Adjust to new nstrftime API.
21799         time_rz: new module
21800         * MODULES.html.sh: Add time_rz.
21801         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
21802         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
21803         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
21804         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
21805         New var HAVE_TIMEZONE_T (default 0).
21806         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
21807         New var GNULIB_TIME_RZ (default 0).
21808         * modules/time (time.h): Substitute the new vars.
21810         flexmember: license is now unlimited
21811         * modules/flexmember (License): Change to unlimited,
21812         since its only source file gives an unlimited license.
21814 2015-07-15  Eric Blake  <eblake@redhat.com>
21816         maint: update copyright paper procedures
21817         * config/srclist.txt: Drop outdated files.
21818         * doc/Copyright/conditions.txt: Update to latest.
21819         * doc/Copyright/assign.changes.manual: Delete.
21820         * doc/Copyright/assign.future.manual: Likewise.
21821         * doc/Copyright/assign.manual: Likewise.
21822         * doc/Copyright/assign.translation.manual: Likewise.
21823         * doc/Copyright/disclaim.changes.manual: Likewise.
21824         * doc/Copyright/disclaim.manual: Likewise.
21825         * doc/Copyright/disclaim.program: Likewise.
21827 2015-07-07  Daiki Ueno  <ueno@gnu.org>
21829         localename: fix link error on Illumos
21830         Illumos defines __sun, but does not have getlocalename_l nor the
21831         equivalent.  This partially reverts commit 387c214.
21832         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
21833         available, as well as uselocale.
21834         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
21835         use getlocalename_l if it is not available.
21837 2015-07-07  Daiki Ueno  <ueno@gnu.org>
21839         unistr/uN-strtok-tests: avoid a trivial leak
21840         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
21841         input and delim after the multibyte delimiter tests.
21843 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
21845         file-has-acl, acl-permissions: fix HP-UX typos
21846         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
21847         * lib/file-has-acl.c (file_has_acl):
21848         * lib/set-permissions.c (context_acl_from_mode)
21849         (context_aclv_from_mode, set_acls):
21850         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
21851         They were introduced by the recent ACL changes.
21853         regex: match current GNU grep behavior
21854         These symbols have not matched GNU grep behavior for quite some time.
21855         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
21856         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
21857         Change to match current GNU behavior.
21858         Simplify by expressing it as differences from POSIX BREs and EREs.
21859         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
21861 2015-07-03  Jim Meyering  <meyering@fb.com>
21863         set-permissions.c: adjust acl_from_mode's cpp guard
21864         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
21865         directives identical to those guarding the sole use.
21866         Otherwise, on some systems, we'd get a warning about
21867         the function being defined but not used.
21868         Also, filter through cppi to correct misleading indentation
21869         of cpp directives.
21871 2015-07-03  Pádraig Brady  <P@draigBrady.com>
21873         tests: restrict shells to those that support 'local'
21874         The local keyword is very widely supported and used
21875         in tests in coreutils and grep at least.  Therefore
21876         restrict to testing with shells that support it.
21877         This mainly excludes /bin/sh on Solaris.
21878         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
21880 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
21881         and Daiki Ueno  <ueno@gnu.org>
21883         unistr/uN-strtok: handle multibyte delimiters
21884         Previously, uN_strtok moved PTR to the next unit to the token end.
21885         When DELIM contained a multibyte character, the new position could
21886         be a middle of a multibyte character.
21887         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
21888         after the token.
21889         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
21890         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
21891         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
21892         * modules/unistr/u8-strtok (Depends-on): Depend on
21893         unistr/u8-strmblen.
21894         * modules/unistr/u16-strtok (Depends-on): Depend on
21895         unistr/u16-strmblen.
21896         * modules/unistr/u32-strtok (Depends-on): Depend on
21897         unistr/u32-strmblen.
21898         * tests/unistr/test-u-strtok.h: New file.
21899         * tests/unistr/test-u8-strtok.c: New file.
21900         * tests/unistr/test-u16-strtok.c: New file.
21901         * tests/unistr/test-u32-strtok.c: New file.
21902         * modules/unistr/u8-strtok-tests: New file.
21903         * modules/unistr/u32-strtok-tests: New file.
21904         * modules/unistr/u16-strtok-tests: New file.
21906 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
21908         update-copyright: fix test failure with perl >= 5.22 (trivial)
21909         * build-aux/update-copyright: Escape a literal left curly bracket,
21910         required with perl >= 5.22
21912 2015-07-02  Daiki Ueno  <ueno@gnu.org>
21914         u{16,32}-strstr-tests: relax timeout condition
21915         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
21916         tests can take longer than 5 seconds to complete.
21917         Reported by Dagobert Michelsen in:
21918         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
21919         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
21920         seconds to 10 seconds.
21921         * tests/unistr/test-u32-strstr.c (main): Likewise.
21923 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
21925         gnulib-common.m4: change the ARFLAGS default to 'cr'
21926         In some GNU/Linux distributions people started to compile 'ar'
21927         binary with --enable-deterministic-archives (binutils project).
21928         That, however, in combination with previous autotools long time
21929         working default AR{_,}FLAGS=cru causes warnings on such
21930         installations:
21931         ar: `u' modifier ignored since `D' is the default (see `U')
21932         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
21933         set already.
21935 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
21937         selinux-h: avoid double free after *getfilecon()
21938         Originally reported by Ben Shelton on bug-tar:
21939         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
21940         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
21941         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
21942         param should be freed by freecon(3) (regardless the return value).
21944 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
21946         fix pty related tests issues on Windows (trivial)
21947         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
21948         however it's still present in tests/ subdirectory of the final project.
21949         Therefore avoid it to pass `make check`.
21950         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
21951         will just return -ENOSYS, so avoid this non applicable test allowing
21952         the build to proceed.
21954 2015-07-01  Pádraig Brady  <P@draigBrady.com>
21956         acl: fix definition of acl_from_mode on FreeBSD
21957         This was causing basic coreutils copy operations to fail
21958         with ENOTSUP or ENOENT error messages.
21959         * lib/acl-internal.h (acl_from_mode): Only define when
21960         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
21961         of acl_from_mode() defined in lib/set-permissions.c to
21962         be used on FreeBSD at least.
21963         * lib/set-permissions.c: Fix up comment spelling,
21964         and a redundant variable assignment; noticed in passing.
21966 2015-06-30  Pádraig Brady  <P@draigBrady.com>
21968         readutmp: port to FreeBSD >= 9
21969         * lib/readutmp.h: Map utmpxname() to setutxdb().
21970         With that coreutils who(1) and pinky(1) tests pass.
21972 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
21974         mgetgroups: port to strict OS X
21975         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
21976         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
21977         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
21978         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
21980 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
21982         mgetgroups: port to strict OS X
21983         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
21984         Document the getgrouplist problem.
21985         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
21986         New macro.
21987         (mgetgroups): Use it.
21988         * m4/mgetgroups.m4 (gl_MGETGROUPS):
21989         Check for OS X signature for getgrouplist.
21991 2015-06-29  Jim Meyering  <meyering@fb.com>
21993         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
21994         It started like this when building coreutils' latest on OS X,
21995         invoking ./configure with a nonempty --cache=.cache:
21997           lib/linkat.c:46:42: error: operator '||' has no right operand
21998           lib/linkat.c: In function 'rpl_linkat':
21999           lib/linkat.c:330:27: error: #if with no expression
22001         Here's linkat.c's line 46:
22003           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
22005         Here's some context:
22007           $ grep linkat_nofoll .cache
22008           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
22009           $ grep LINKAT_SYM lib/config.h
22010           #define LINKAT_SYMLINK_NOTSUP
22012         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
22013         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
22014         but that violates a tenet of AC_CACHE_CHECK: it must
22015         have no side effect other than setting its cache variable.
22017         What happens is that when the cache is set, we'd skip the
22018         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
22019         defined to whatever value it happened to have in configure's
22020         environment.  In my case, it was not defined, so this later code:
22022           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
22023             [Define to 1 if linkat can create hardlinks to symlinks])
22025         would emit code with an empty RHS.
22027         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
22028         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
22030 2015-06-28  Jim Meyering  <meyering@fb.com>
22032         mountlist: avoid an unused-label warning on OS X
22033         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
22034         Building on OS X, I saw a warning about the "free_then_fail" label
22035         being unused.  Give it the _GL_UNUSED_LABEL attribute.
22037         error.c: correct printf-style format: %d -> %u
22038         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
22039         rather than %d, to match the type of "line_number", unsigned int.
22041 2015-06-25  Pádraig Brady  <P@draigBrady.com>
22043         fts: avoid reading beyond the heap allocation
22044         GCC 5.1.1 with -O2 and -fsanitize=address reports
22045         a read of size 4 from a heap object of size 3 is indeed invalid,
22046         though this may be due to incorrect padding assumptions by GCC, see:
22047         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
22048         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
22049         * modules/fts: Depend on stdalign.
22051 2015-06-24  Pádraig Brady  <P@draigBrady.com>
22053         savedir: avoid undefined behavior in qsort call
22054         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
22055         "runtime error: null pointer passed as argument 1,
22056          which is declared to never be null"
22057         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
22059 2015-06-24  Pádraig Brady  <P@draigBrady.com>
22061         userspec: avoid undefined behavior in gettext call
22062         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
22063         "runtime error: null pointer passed as argument 2,
22064          which is declared to never be null"
22065         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
22067 2015-06-20  Glenn Morris  <rgm@gnu.org>
22069         gitlog-to-changelog: improve gitmerge.el commits
22070         Let the Emacs ChangeLog generation process exclude "skipped"
22071         messages from merge commits (Bug#20717).
22072         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
22074 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
22076         wchar: fix MinGW compilation warnings
22077         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
22078         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
22079         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
22081 2015-06-20  Daiki Ueno  <ueno@gnu.org>
22083         uniname/uniname-tests: use pristine data files
22084         For copyright and maintenance reasons, use the data files from UCD
22085         without modification.
22086         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
22087         (getfield): Remove.
22088         (aliases_count): New global variable.
22089         (fill_names): Skip comments and empty lines in the input.  Don't
22090         use getfield.
22091         (fill_aliases): Likewise.
22092         (main): Change the expected command line arguments to:
22093         NAMES... ["--" ALIASES...].
22094         * tests/uniname/test-uninames.sh: Adjust to the change in
22095         test-uninames.c.
22096         * tests/uniname/UnicodeDataNames.txt: Remove.
22097         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
22098         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
22099         file from Unicode 8.0.0.
22101 2015-06-19  Pádraig Brady  <P@draigBrady.com>
22103         linked-list, linkedhash-list: avoid compiler warnings
22104         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
22105         -Werror=suggest-attribute=pure (from GCC 5.1.1).
22107 2015-06-19  Daiki Ueno  <ueno@gnu.org>
22109         libunistring: bump minimum version to 0.9.6
22110         * all modules depending on updated Unicode data: Regenerate.
22111         The modules are listed by a script that does:
22112         - for each file listed by: git show --oneline --name-only 705f4efc
22113           - deduce the containing modules, based on "Files:"
22114         - deduce the modules which depend on the containing modules, based
22115           on "Depends-on:"
22117 2015-06-18  Daiki Ueno  <ueno@gnu.org>
22119         uniname/uniname: update to Unicode 8.0.0
22120         * lib/uniname/uninames.h: Regenerate.
22121         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
22122         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
22124 2015-06-18  Daiki Ueno  <ueno@gnu.org>
22126         libunistring: update to Unicode 8.0.0
22127         * lib/gen-uni-tables.c (SIZEOF): New macro.
22128         (output_numeric): Increase the maximum number of fractions from
22129         128 to 160.  Increase the level3 value width from 7 bits to 8
22130         bits.  Use SIZEOF instead of a hard-coded integer.
22131         (output_blocks): Decrease the cut-off threshold from 0x30000 to
22132         0x28000.
22133         (fill_blocks): Increase the maximum number of blocks from 256 to
22134         384.  Use SIZEOF instead of a hard-coded integer.
22135         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
22136         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
22137         value width.
22138         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
22139         a new case added to LBP22.
22140         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
22141         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
22142         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
22143         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
22144         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
22145         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22146         lib/uniwidth/width.c.
22147         * all generated files under lib/uni* and tests/uni*: Regenerate.
22149 2015-06-16  Pádraig Brady  <P@draigBrady.com>
22151         gnu-web-doc-update: add --mirror to remove stale files
22152         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
22153         out of date files from the CVS server.  Since this is usually
22154         appropriate, a prompt is given when the option is not specified,
22155         along with the `cvs remove` command that would be run.
22157 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
22159         acl-permissions: pacify -Wsuggest-attribute=const
22160         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
22161         * lib/acl-internal.h (free_permission_context):
22162         Declare with attribute const if ! (defined USE_ACL &&
22163         (HAVE_ACL_GET_FILE || defined GETACL)).
22165         fsync: document AIX misbehavior
22166         * doc/posix-functions/fsync.texi (fsync):
22167         Document failure on AIX with read-only file descriptor.
22169 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
22171         stdio: Don't redefine gets when using C++
22172         * lib/stdio.in.h (gets): Disable warning on C++.
22174 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
22176         acl-permissions: port to AIX, C89 HP-UX
22177         Problems reported by Michael Felt.
22178         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
22179         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
22180         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
22181         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
22182         Add cast for AIX, whose system calls are declared to accept
22183         char * even though the arguments are really char const *.
22184         * lib/get-permissions.c (get_permissions):
22185         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
22186         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
22187         that broke a build.
22188         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
22189         Rework types to pacify xlc.
22191 2015-06-03  Pádraig Brady  <P@draigBrady.com>
22193         vasprintf-posix: avoid compiling vasnprintf where possible
22194         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
22195         module where not required.  For example on a GNU/Linux system
22196         when gnulib-tool is run with the --conditional-dependencies option.
22198 2015-06-02  Pádraig Brady  <P@draigBrady.com>
22200         file-has-acl: fix build on Mac OS X 10
22201         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
22202         which has an incompatible 6 parameter getxattr() call.
22203         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
22204         call on Mac OS X >= 10.4.
22205         * doc/glibc-functions/fgetxattr.texi: Likewise.
22206         * lib/file-has-acl.c: Revert to more complete combined check.
22207         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
22208         Reported by Jack Howarth.
22210 2015-06-02  Pádraig Brady  <P@draigBrady.com>
22212         prefix-gnulib-mk: remove no longer needed special case
22213         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
22214         continued lib_SOURCES lines are no longer present,
22215         so special case handling of such entries is not required.
22217 2015-06-01  Pádraig Brady  <P@draigBrady.com>
22219         acl: don't depend on the deprecated qacl module
22220         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
22222 2015-06-01  Pádraig Brady  <P@draigBrady.com>
22224         gnulib-tool: concatenate lib_SOURCES to a single line
22225         * gnulib-tool: Refactor the line merging sed logic,
22226         and use that to output a single lib_SOURCES line for each module.
22227         gnulib using projects often postprocess this output to prepend
22228         subdir paths to each item, and having a single line simplifies this
22229         processing allowing better decoupling from the gnulib-tool output.
22231 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
22233         pthread_sigmask: discount system version if a simple macro (trivial)
22234         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
22235         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
22236         function to ensure it's available.
22238 2015-05-31  Pádraig Brady  <P@draigBrady.com>
22240         readlinkat: avoid OS X 10.10 trailing slash bug
22241         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
22242         has this bug.
22243         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
22244         that OS X 10.10 has this function.
22245         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
22246         as done for readlink().
22247         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
22248         trailing slash bug, and assume readlinkat() has the same issue.
22249         Also fix a typo where $gl_cv_decl_readlink_works was tested,
22250         rather than the correct $gl_cv_decl_readlinkat_works.
22252 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
22254         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
22255         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
22256         module rewrite.
22258         acl-permissions: Fix build on Solaris and Cygwin
22259         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
22260         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
22261         ace_entries variables have moved into struct permission_context but
22262         they were still accessed as local variables here.
22264 2015-05-29  Pádraig Brady  <P@draigBrady.com>
22266         linkat: avoid OS X 10.10 trailing slash with symlink bug
22267         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
22268         causes the symlink to be dereferenced, and if it points
22269         to a non existent file, that file will be created as
22270         a hard link to "path1".
22271         This fixes a test failure in test-linkat.c.
22272         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
22273         this case.  The existing workaround in linkat.c for
22274         trailing slash issues, suffices for this case.
22275         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
22276         the list of platforms with trailing slash issues.
22278 2015-05-28  Pádraig Brady  <P@draigBrady.com>
22280         unlinkat: handle ignoring of ".." on Darwin 14
22281         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
22282         on Mac OS X 10.10, where it ignores paths with a trailing "..",
22283         so handle in the same manner.
22284         * m4/unlinkat.m4: Comment on this Darwin issue.
22285         * doc/posix-functions/unlink.texi: Update the latest version
22286         where the issue was seen.
22287         * doc/posix-functions/unlinkat.texi: Mention this issue.
22288         Fixes a test failure in test-unlinkat.c.
22290 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
22292         qacl: split into qcopy-acl and qset-acl
22293         Emacs needs the former, but not the latter.
22294         * modules/acl-permissions: New file, containing most of the old qacl.
22295         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
22296         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
22297         * modules/qcopy-acl, modules/qset-acl: New files.
22298         * MODULES.html.sh (File system functions):
22299         Mention the new modules, and mention qacl while we're at it.
22301 2015-05-27  Glenn Morris  <rgm@gnu.org>
22303         gitlog-to-changelog: new option --ignore-line
22304         (This patch is imported from the GNU Emacs master.)
22305         This option ignores individual commit lines matching a pattern.
22306         * build-aux/gitlog-to-changelog: Add --ignore-line option.
22308 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
22310         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
22311         Implement get_permissions and set_permissions primitives for getting all
22312         the permissions of a file, storing them, and later setting them. (In the
22313         minimal case, the permissions consist only of a file mode.) Reimplement
22314         qset_acl and qcopy_acl based on these new primitives: this avoids code
22315         duplication and makes error handling more consistent.
22316         The Solaris and Cygwin code still uses duplicate code paths for setting
22317         a file mode while making sure that no acls exist and setting an explicit
22318         acl; this is no worse than before, but could be cleaned up.  The AIX
22319         code still doesn't read ACLs, it only makes sure that acls don't get in
22320         the way when setting a file mode.
22321         * lib/acl-internal.h (struct permission_context): New data structure.
22322         (get_permissions, set_permissions, free_permission_context): Declare.
22323         * lib/acl-internal.c (free_permission_context): New helper function.
22324         * lib/get-permissions.c (get_permissions): New helper function split off
22325         from qcopy_acl.
22326         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
22327         AIX, set a file's permissions based only on a file mode.
22328         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
22329         other platforms construct a temporary acl from the file mode and set
22330         that acl in the same way as setting an acl read from the source file.
22331         This should help avoid code duplication and inconsistent / buggy
22332         behavior.
22333         (set_acls): New helper function Split off from qcopy_acl.
22334         (chmod_or_fchmod): Moved here from qset-acl.c.
22335         (set_permissions): New helper function.
22336         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
22337         set_permissions.
22338         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
22339         * modules/qacl: Add get-permissions.c and set-permissions.c.
22341         file-has-acl: Split feature tests again (Bug#20667)
22342         * lib/file-has-acl.c: Instead of testing for
22343         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
22344         define them when needed.
22345         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
22346         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
22348 2015-05-27  Pádraig Brady  <P@draigBrady.com>
22350         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
22351         This avoids a conflict with "FORTIFY_SOURCE" variants
22352         of the string functions when they're replaced on NetBSD-6.0.1
22353         and Darwin-14.3.0 at least.
22354         * lib/string.in.h: Avoid including our "lib/string.h" while
22355         including the system <string.h>.
22357 2015-05-26  Eric Blake  <eblake@redhat.com>
22359         stdio: limit __gnu_printf__ witness to gcc 4.4+
22360         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
22361         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
22363         error: use correct printf attributes on mingw
22364         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
22366         inttypes: force correct mingw PRIdMAX even without <stdio.h>
22367         * modules/inttypes (Depends-on): Require extensions, so that mingw
22368         always uses GNU style inttypes.
22369         * lib/inttypes.in.h: On mingw, include <stdio.h>.
22371         stdio: fix probe on mingw under gcc 5.1
22372         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
22373         around new gcc preprocessor rules.
22375 2015-05-07  Glenn Morris  <rgm@gnu.org>
22377         gitlog-to-changelog: parse "Tiny-change"
22378         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
22379         "Copyright-paperwork-exempt".  (Bug#20324)
22381 2015-05-06  Pádraig Brady  <P@draigBrady.com>
22383         doc: document glibc posix_fallocate() issues
22384         * doc/posix-functions/posix_fallocate.texi: Mention the
22385         glibc efficiency problems and issues with NFS.
22387 2015-05-05  Karl Berry  <karl@freefriends.org>
22389         * build-aux/gendocs.sh (usage): document new css default
22390         for HTML (--htmlarg).
22392 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
22394         extern-inline: no need for workaround in GCC 5.1
22395         * doc/extern-inline.texi (extern inline):
22396         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
22397         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
22398         around these bugs in GCC 5.1 and later.  Maybe in a decade or
22399         two we can remove these workarounds.
22401 2015-04-28  Pádraig Brady  <P@draigBrady.com>
22403         eealloc, pagealign_alloc, xalloc: avoid clang warnings
22404         Avoid [-Wunknown-attributes] warnings like:
22405         warning: unknown attribute '__alloc_size__' ignored
22406         * lib/xalloc.h: Don't use the __alloc_size__  attribute
22407         with clang, as support has been fully removed as of clang 3.5:
22408         https://github.com/llvm-mirror/clang/commit/c047507a
22409         * lib/eealloc.h: Likewise.
22410         * lib/pagealign_alloc.h: Likewise.
22412 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
22414         tests: pacify GCC 5.1's stricter printf checking
22415         * tests/test-dirname.c (main):
22416         * tests/test-getaddrinfo.c (simple):
22417         * tests/test-getlogin.c (main):
22418         * tests/test-getndelim2.c (main):
22419         * tests/test-inttostr.c (CK):
22420         * tests/test-md5.c (main):
22421         * tests/test-read-file.c (main):
22422         * tests/test-sha1.c (main):
22423         Fix mismatches between printf format and value signedness.
22424         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
22425         Remove, as CAST_VAL always returned a value of type uintmax_t.
22427         fts: port to GCC 5.1 with --enable-gcc-warnings
22428         Without this fix, GCC 5.1 (correctly) warns about a subscript
22429         error on the fts_name component of FTSENT.  It's actually a
22430         flexible member, so define it that way on C99 or later hosts.
22431         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
22432         structure that now has a flexible array member.
22433         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
22434         (FTSENT): fts_name is now flexible on C99-or-later platforms.
22435         * modules/fts (Depends-on): Add flexmember.
22437 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22439         file-has-acl: port to CentOS 6
22440         Problem reported by Tom G. Christensen in:
22441         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
22442         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
22443         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
22444         HAVE_GETXATTR.
22445         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
22446         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
22447         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
22448         file-has-acl.c actually needs.
22450 2015-04-26  Pádraig Brady  <P@draigBrady.com>
22452         file-has-acl: always return false when ACLs aren't supported
22453         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
22454         change the GNU/Linux getxattr path, to transform "not supported"
22455         errors to a false return rather than an error.  This is handled
22456         within file_has_acl() due to the platform specific tests to
22457         determine if ACLs are not supported.
22459 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22461         gettext: propagate po/Makefile.in.in too
22462         * build-aux/po/Makefile.in.in: Copy from latest gettext.
22463         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
22464         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
22465         between Makefile.in.in and the gettext-runtime m4 files.
22467 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22469         file-has-acl: new module, split from acl
22470         And add a new module file-has-acl-tests to match.
22471         I ran into a problem with the recent changes to the acl module,
22472         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
22473         When using the fixed version with Emacs, I discovered that
22474         file-has-acl wasn't separated out well enough for Emacs (e.g., it
22475         had multiple libraries, but needed only one), so I fixed that too.
22476         * NEWS: Document this incompatible change.
22477         * modules/file-has-acl, modules/file-has-acl-tests: New files.
22478         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
22479         Initialize gl_need_lib_has_acl.
22480         (gl_FUNC_ACL): Require it.
22481         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
22482         Move the file-has-acl.c-relevant stuff to ...
22483         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
22484         use_xattrs = 0' typo, and omit some needless work.  Set
22485         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
22486         when gl_FUNC_ACL is called.
22487         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
22488         (Link): Remove $(LIB_HAS_ACL).
22489         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
22490         (check_PROGRAMS): Move stuff relevant to file-has-acl to
22491         modules/file-has-acl-tests.
22492         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
22494         manywarnings: add GCC 5.1 warnings
22495         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
22496         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
22497         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
22498         -Wsuggest-override, -Wuse-without-only.  Change
22499         -Wnormalized=... operands to match 5.1.
22500         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
22501         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
22502         -Wdiscarded-qualifiers, -Wformat-signedness,
22503         -Wincompatible-pointer-types, -Wint-conversion,
22504         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
22505         -Wshift-count-negative, -Wshift-count-overflow,
22506         -Wsizeof-array-argument, -Wsuggest-final-methods,
22507         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
22508         and add -Warray-bounds=2 as a special case.
22510 2015-04-21  Simon Josefsson  <simon@josefsson.org>
22512         doc: update FDL template to match FDL examples.
22513         * doc/alloca-opt.texi:
22514         * doc/alloca.texi:
22515         * doc/c-ctype.texi:
22516         * doc/c-strcase.texi:
22517         * doc/c-strcaseeq.texi:
22518         * doc/c-strcasestr.texi:
22519         * doc/c-strstr.texi:
22520         * doc/c-strtod.texi:
22521         * doc/c-strtold.texi:
22522         * doc/ctime.texi:
22523         * doc/error.texi:
22524         * doc/gcd.texi:
22525         * doc/gnulib-tool.texi:
22526         * doc/inet_ntoa.texi:
22527         * doc/intprops.texi:
22528         * doc/lib-symbol-visibility.texi:
22529         * doc/maintain.texi:
22530         * doc/parse-datetime.texi:
22531         * doc/quote.texi:
22532         * doc/regexprops-generic.texi:
22533         * doc/standards.texi: Remove spurious 'with' in FDL license
22534         template.
22536 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
22538         lstat: fix cross-compilation 'ln -s' problem
22539         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
22540         Have the test program call 'symlink' rather than a separate
22541         script run 'ln -s'; this is more likely to work in
22542         cross-compilation environments.  Reported by Pavel Fedin in:
22543         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
22545 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
22547         gendocs.sh: default to a common CSS style sheet for HTML output
22548         * build-aux/gendocs.sh (htmlarg): Change default value.
22550 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
22552         gnulib-tool: output bold attribute more portably
22553         * gnulib-tool (func_show_module_list): Change hexadecimal
22554         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
22555         encoded numbers as arguments to `printf' is not portable,
22556         and is not claimed by POSIX.  This is the case with FreeBSD.
22558 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
22560         qacl: Simplify HP-UX acl_nontrivial check
22561         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
22562         acl_nontrivial. Check if the acl has at most three entries instead (it must
22563         have exactly three entries according to the HP-UX documentation). Ignore
22564         uids and gids as long as an entry is either for a user (i.e., the owner),
22565         a group (i.e., the owning group), or others.
22566         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
22567         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
22569 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
22571         acl: On Linux, check for acls without libacl
22572         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
22573         library function to check for the presence of acls, avoiding a library.
22574         * lib/file-has-acl.c: Include xattr headers if we have them.
22575         (file_has_acl): On Linux, use getxattr().
22576         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
22577         file_has_acl(). Check for xattr headers and getxattr().
22579 2015-04-14  Ángel González  <keisial@gmail.com>
22581         tempname: avoid unused parameter warnings (trivial)
22582         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
22583         (try_nocreate): Likewise.
22585 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
22587         fseeko: fix build failure on NetBSD >= 6 (trivial)
22588         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
22589         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
22591 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22593         gitlog-to-changelog: port to MS-Windows
22594         * build-aux/gitlog-to-changelog (git_dir_option):
22595         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
22596         MS-Windows Perl.  Reported by Eli Zaretskii in:
22597         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
22599 2015-04-07  Karl Berry  <karl@gnu.org>
22601         gendocs: new option --tex for passing args to texi2dvi.
22602         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
22603         (TEXI2DVI): cut to just command name.
22604         (usage): mention new option, and update copyright.
22605         <generate_tex>: use it.
22607 2015-04-07  Karl Berry  <karl@gnu.org>
22609         * config/srclistvars.sh (GETTEXT): new definition.
22610         * config/srclist.txt: use it for gettext .m4 files.
22611         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
22612         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
22613         and continuing into April.
22615 2015-04-07  Daiki Ueno  <ueno@gnu.org>
22617         uniname/uniname-tests: fix failure due to alias
22618         Reported by Jack Howarth in:
22619         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
22620         * tests/uniname/test-uninames.c (name_has_alias): New function.
22621         (test_inverse_lookup): Exclude character name with valid alias,
22622         from randomly generated character names.
22623         (main): Fill unicode_aliases before calling test functions.
22625 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
22627         hash: remove deprecated hash_insert0 function
22628         * lib/hash.h (hash_insert0): Remove deprecated function.
22629         * lib/hash.c (hash_insert0): Likewise.
22631 2015-04-02  Pádraig Brady  <P@draigBrady.com>
22633         mountlist: remove dependency on libmount
22634         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
22635         directly, rather than depending on libmount, which has many
22636         dependencies due to its dependence on libselinux, as detailed at:
22637         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
22638         Note we restrict this to __linux__ as that's probably where this
22639         interface will remain.  If ever porting, it would be best
22640         to first pull the makedev() wrapper from coreutils to a gnulib module.
22641         Note also we don't add a getline dependency to the mountlist module,
22642         as all Linux versions are sufficient.
22644 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
22646         stddef: port to pre-C11 GCC on x86
22647         On this platform, max_align_t should have an alignment of 8 even
22648         though the storage alignments of double, long, etc. max out at 4.
22649         Inspired by a comment of Andreas Schwab's here:
22650         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
22651         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
22652         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
22653         * tests/test-stddef.c: Test __alignof__ too, if available.
22655 2015-03-24  Pádraig Brady  <P@draigBrady.com>
22657         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
22658         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
22660 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
22662         yesno: make EOL optional in ENABLE_NLS case also (trival)
22663         * lib/yesno.c (yesno): Check for EOL before replacing.
22664         * tests/test-yesno.sh: Add a test case (test along with gettext).
22666 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
22668         fdopendir-tests: test it does not close its arg
22669         * tests/test-fdopendir.c (main): Test that fdopendir does not
22670         close its argument.  From a suggestion by David Grayson in:
22671         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
22673 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22675         gitlog-to-changelog: trim trailing white space
22676         * build-aux/gitlog-to-changelog (main):
22677         Trim trailing white space from commit message lines.
22678         This is helpful for processing the GNU Emacs repository,
22679         which dates back to 1985 and contains a lot of such lines.
22681         gitlog-to-changelog: new option --ignore-matching
22682         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
22683         Support new option --ignore-matching=PAT, which ignores all
22684         commit messages whose first line matches PAT.
22686 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22688         fdopendir: port better to MinGW
22689         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
22690         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
22691         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
22692         * modules/fdopendir (Depends-on): Add dirfd.
22694 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
22696         fdopendir: fix typo in comment
22697         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
22699 2015-03-09  Eric Blake  <eblake@redhat.com>
22701         error: document all entry points provided
22702         * doc/glibc-functions/error_print_progname.texi
22703         (error_print_progname): Mention the error module.
22704         * doc/glibc-functions/error_at_line.texi (error_at_line):
22705         Likewise.
22706         * doc/glibc-functions/error_message_count.texi
22707         (error_message_count): Likewise.
22708         * doc/glibc-functions/error_one_per_line.texi
22709         (error_one_per_line): Likewise.
22711 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
22713         vasnprintf: pacify clang 3.5.0
22714         Problem reported by Werner Lemberg in:
22715         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
22716         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
22717         The casts aren't needed, since the characters in question are ASCII.
22719 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22721         glob, etc.: port to MSVC v18 on MS-Windows 8.1
22722         * lib/dirent--.h (GNULIB_defined_opendir):
22723         * lib/dirent.in.h (GNULIB_defined_opendir)
22724         (GNULIB_defined_closedir):
22725         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
22726         #undef only if Gnulib defined it.
22728         poll: port to MSVC v18 on MS-Windows 8.1
22729         Problem reported by Gisle Vanem in:
22730         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
22731         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
22732         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
22733         Add sys_socket.
22735 2015-02-24  Pádraig Brady  <P@draigBrady.com>
22737         tests: support stderr verification with returns_()
22738         * tests/init.sh (returns_): Disable tracing for this wrapper
22739         function, so that stderr of the wrapped command is unchanged,
22740         allowing for verification of the contents.
22742 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
22744         passfd: avoid valgrind uninitalised data warning
22745         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
22746         to include just the fd we've initialized, rather than including
22747         the extra space used for alignment.
22749 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
22751         uniwbrk/u32-wordbreaks-tests: fix copyright
22752         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
22754         dup2: doc and test for Android bug
22755         Reported by Kevin Cernekee in:
22756         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
22757         * doc/posix-functions/dup2.texi (dup2): Document the bug.
22758         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
22760 2015-02-23  Kevin Cernekee  <cernekee@google.com>
22762         Replace dup2() on Android
22763         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
22764         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
22765         fails.  Using rpl_dup2() fixes this because it has an explicit test
22766         for this condition.
22768 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
22770         Android doesn't define RLIM_SAVED_*
22771         Portability problem reported by Kevin Cernekee in:
22772         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
22773         * doc/posix-headers/sys_resource.texi (sys/resource.h):
22774         Mention the portability problem.
22775         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
22776         Define if not defined.
22777         * m4/dup2.m4 (gl_FUNC_DUP2):
22778         * m4/fcntl.m4 (gl_FUNC_FCNTL):
22779         Likewise.
22781 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
22783         vasnprintf-posix-tests: use consistent test
22784         * tests/test-vasnprintf-posix.c (test_function):
22785         Use "<" in assert instead of "<=", for consistency with other tests.
22787 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
22789         printf, isinf, etc.: noncanonical != NaN
22790         Do not require that isinf, printf, etc. treat noncanonical
22791         values as NaNs.  Instead, require only that they do not crash.
22792         Problem reported by Joseph Myers in:
22793         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
22794         * doc/posix-functions/dprintf.texi (dprintf):
22795         * doc/posix-functions/fprintf.texi (fprintf):
22796         * doc/posix-functions/isfinite.texi (isfinite):
22797         * doc/posix-functions/isinf.texi (isinf):
22798         * doc/posix-functions/isnan.texi (isnan):
22799         * doc/posix-functions/printf.texi (printf):
22800         * doc/posix-functions/snprintf.texi (snprintf):
22801         * doc/posix-functions/sprintf.texi (sprintf):
22802         * doc/posix-functions/vdprintf.texi (vdprintf):
22803         * doc/posix-functions/vfprintf.texi (vfprintf):
22804         * doc/posix-functions/vprintf.texi (vprintf):
22805         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22806         * doc/posix-functions/vsprintf.texi (vsprintf):
22807         Document this.
22808         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
22809         * m4/isinf.m4 (gl_ISINFL_WORKS):
22810         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
22811         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
22812         * tests/test-isfinite.c (test_isfinitel):
22813         * tests/test-isinf.c (test_isinfl):
22814         * tests/test-isnan.c (test_long_double):
22815         * tests/test-isnanl.h (main):
22816         * tests/test-snprintf-posix.h (test_function):
22817         * tests/test-sprintf-posix.h (test_function):
22818         * tests/test-vasnprintf-posix.c (test_function):
22819         * tests/test-vasprintf-posix.c (test_function):
22820         Test only that noncanonical values do not cause crashes, not that
22821         they are treated as NaNs.  In some cases this means a larger
22822         output buffer is needed.
22824 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
22826         fts: remove redundant close() (trivial)
22827         * lib/fts.c (fts_read): Remove redundant call to close().
22828         Spotted by coverity.
22830 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
22832         getdtablesize: port better for Android
22833         Problem reported by Kevin Cernekee in:
22834         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
22835         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
22836         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
22837         Instead, just use getrlimit, taking care to avoid Cygwin bug.
22839         poll: fixes for large fds
22840         * lib/poll.c (poll): Don't check directly for NFD too large.
22841         Don't rely on undefined behavior in FD_SET when an arg exceeds
22842         FD_SETSIZE.  Always set revents afterwards, even if to zero.
22843         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
22844         as that makes the test a bit stricter.
22846 2015-02-19  Kevin Cernekee  <cernekee@google.com>
22848         fcntl: Fix cross compiling
22849         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
22850         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
22852 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
22854         dup2, fcntl: cross-compile better for Android
22855         Problem reported by Kevin Cernekee in:
22856         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
22857         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
22858         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
22859         there's little need to cross-compile for older kernels nowadays.
22860         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
22861         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
22863 2015-02-18  Pádraig Brady  <P@draigBrady.com>
22865         getopt: don't crash on memory exhaustion
22866         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
22867         memory exhaustion.  In the _LIBC case we use alloca() as is
22868         already done in glibc, so we don't need to consider the separate
22869         error path in that awkward case.  Also fix a memory leak when
22870         ambiguous options are present.
22871         Reported by Tobias Stoeckmann
22873 2015-02-17  Mike Miller  <mtmiller@ieee.org>
22875         tempname: allow compilation with C++ (trivial)
22876         * lib/tempname.h [C++]: Specify extern "C" linkage.
22877         * lib/tempname.h (try_tempname):
22878         * lib/tempname.c (__try_tempname, __gen_tempname):
22879         Rename 'try' to 'tryfunc'.
22881 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22883         dup2, fcntl: port to AIX
22884         * m4/dup2.m4 (gl_FUNC_DUP2):
22885         * m4/fcntl.m4 (gl_FUNC_FCNTL):
22886         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
22887         The former works on AIX 7.1 but the latter does not.
22888         Also, this may work better with Android; see:
22889         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
22891 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22893         getdtablesize, dup2, fcntl: port to Android
22894         Problem reported by Kevin Cernekee in:
22895         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
22896         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
22897         Mention that getdtablesize doesn't work on Android.
22898         * lib/getdtablesize.c: Use getrlimit substitute only if
22899         getdtablesize is declared.  This should suffice for Cygwin
22900         while not breaking Android.
22901         * m4/dup2.m4 (gl_FUNC_DUP2):
22902         * m4/fcntl.m4 (gl_FUNC_FCNTL):
22903         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
22904         standardized but the latter is not, and sysconf works on Android.
22905         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
22906         Also check that getdtablesize is declared.
22907         This removes the need for a special case for Android.
22909 2015-02-16  Kevin Cernekee  <cernekee@google.com>
22911         localename: Implement gl_locale_name_thread_unsafe for Android
22912         * lib/localename.c: Android API level >= 21 supports two hardcoded
22913         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
22914         the internal __locale_t struct.
22916 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
22918         fts: avoid crash when a cycle is added while traversing
22919         This could be triggered by auto-mounting a recursive bind mount.
22920         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
22921         * lib/fts.c (fts_read): Avoid removing the original hash table item
22922         when leaving a directory that caused a cycle, and preserve the FTS_DC
22923         flag.
22925 2015-02-16  Daiki Ueno  <ueno@gnu.org>
22927         uniname/uniname: support character alias
22928         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
22929         Generate one-way mapping from aliases to codepoints in the
22930         generated tables.  Special case variation selectors to reduce
22931         table size.
22932         * lib/uniname/uniname.c (unicode_character_name): Special case
22933         variation selectors.
22934         (unicode_name_character): Special case variation selectors and
22935         their aliases.
22936         * lib/uniname/uninames.h: Regenerate.
22937         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
22938         * modules/uniname/uniname-tests (Files): Add
22939         tests/uniname/NameAliases.txt.
22940         * tests/uniname/test-uninames.c: Mark as static.
22941         (ALIASLEN): Define.
22942         (struct unicode_alias): New struct.
22943         (unicode_aliases): New variable.
22944         (fill_aliases): New function.
22945         (test_alias_lookup): New test function.
22946         (main): Run the 'test_alias_lookup' test if the second argument is
22947         given.
22948         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
22949         second argument.
22951 2015-02-11  Kevin Cernekee  <cernekee@google.com>
22953         Fix FILE struct compatibility with Android API level >= 21
22954         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
22955         __sferror.  Recent versions of Bionic's stdio.h no longer define
22956         __sferror.
22957         * lib/fbufmode.c: Likewise.
22958         * lib/fflush.c: Likewise.
22959         * lib/fpurge.c: Likewise.
22960         * lib/freadable.c: Likewise.
22961         * lib/freadahead.c: Likewise.
22962         * lib/freading.c: Likewise.
22963         * lib/freadptr.c: Likewise.
22964         * lib/freadseek.c: Likewise.
22965         * lib/fseeko.c: Likewise.
22966         * lib/fseterr.c: Likewise.
22967         * lib/fwritable.c: Likewise.
22969         Assume unbroken ungetc() on Android
22970         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
22971         test case passed when running on an Android host, and the code
22972         hasn't really changed since 2009.
22974         getdtablesize: Fix Android build
22975         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
22976         versions have this symbol in the .so library (at least 32-bit
22977         platforms) but are missing the declaration in the header file,
22978         causing the m4 logic to guess incorrectly.
22980         localename: Fix Android build
22981         * modules/localename (Depends-on): Add langinfo.
22983         getugroups: Fix Android build
22984         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
22985         functions.
22987         euidaccess: Fix Android build
22988         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
22989         AT_EACCESS gets declared.
22991         linkat_nofollow: Add fallback case for cross compiling
22992         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
22994         net_if: Handle content-free <net/if.h> system headers
22995         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
22996         struct if_nameindex.  If not, enable the replacement header.
22998         signal_h: Fix Android build
22999         * lib/signal.in.h: Add Android to the list of platforms that declare
23000         pthread_sigmask() in <pthread.h> instead of <signal.h>.
23002         duplocale: Fix Android build of duplocale-tests
23003         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
23004         is included by test-duplocale.c (but not by duplocale.c).
23005         * modules/duplocale-tests (configure.ac): Check for monetary.h.
23006         * tests/test-duplocale.c: Skip test if monetary.h is absent.
23007         * doc/posix-headers/monetary.texi: Add Android to the list of
23008         platforms missing monetary.h.
23010 2015-02-11  Pádraig Brady  <P@draigBrady.com>
23012         tests: avoid recent -Werror=unused-variable regression in test-locale
23013         * tests/test-locale.c (main): Reference the variable to avoid the
23014         "unused variable" warning.
23016 2015-02-11  Pádraig Brady  <P@draigBrady.com>
23018         maint: various whitespace cleanups in tempname
23019         * lib/tempname.c: Normalize spacing and line length.
23020         * lib/tempname.h: Likewise.
23021         * modules/tempname: Likewise.
23023 2015-02-11  Pádraig Brady  <P@draigBrady.com>
23025         tests: provide returns_() to simplify exit status checking
23026         * tests/init.sh (returns_): A new function for use in tests,
23027         to allow for easier checking of return values, where you expect
23028         a command to exit with failure status.  By checking for a particular
23029         exit code, you don't hide any crashes for example.
23031 2015-02-11  Pádraig Brady  <P@draigBrady.com>
23033         mountlist: only use libmount when specified
23034         There are currently many shared libs dependencies introduced by
23035         libmount with associated runtime and virt mem overhead.
23036         Therefore don't enable by default.
23037         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
23039 2015-02-08  Daiki Ueno  <ueno@gnu.org>
23041         uniname/unimame-tests: don't link with -lunistring
23042         * modules/uniname/uniname-tests (Makefile.am): Don't link against
23043         $(LIBUNISTRING).  Document the rationale why we need to
23044         conditionalize the test.
23046 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
23048         fstrcmp: don't assume strlen < INT_MAX
23049         * lib/fstrcmp.c: Include stddef.h and stdint.h.
23050         (uintptr_t): Remove, as we're now assuming stdint.
23051         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
23052         Prefer ptrdiff_t to int when the value could exceed INT_MAX
23053         if the input string is long.
23054         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
23055         uintptr_t to size_t when the underlying value is a pointer casted
23056         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
23057         * modules/fstrcmp (Depends-on): Add stdint.
23059         diffseq: prefer ptrdiff_t to ssize_t
23060         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
23061         ptrdiff_t is the natural type for signed indexes.
23062         On a few older platforms, ssize_t is narrower than size_t.
23064         xalloc: fix typo that suppressed warnings
23065         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
23066         This typo, introduced a couple of years ago, mistakenly suppressed
23067         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
23068         -Wmissing-declarations warnings.
23070         full-read: fix license notice typo
23071         * lib/full-read.h: Remove a stray line in the license notice.
23072         Reported by Sam Ellis in: http://bugs.gnu.org/19808
23074         crypto/gc: fix a -Wswitch warning
23075         Reported by Bruce Korb in:
23076         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
23077         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
23079 2015-02-03  Pádraig Brady  <P@draigBrady.com>
23081         gnulib-tool: fix handling of patch(1) diagnostics
23082         * gnulib-tool: Send diagnostics from patch(1) to stderr,
23083         as otherwise gnulib-tool will reparse that output and attempt
23084         to lookup modules.
23086 2015-02-03  Pádraig Brady  <P@draigBrady.com>
23088         bootstrap: exit immediately upon gnulib-tool failure
23089         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
23090         This was noticed when gnulib-tool exited early due to failure
23091         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
23092         but various confusing errors were then given as the build proceeded.
23094 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
23096         symlinkat: include all required header files
23097         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
23098         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
23099         Reported at https://savannah.gnu.org/bugs/index.php?44151
23100         and by Jack Howarth.
23102 2015-01-29  Pádraig Brady  <P@draigBrady.com>
23104         localename: support Solaris 12 and illumos
23105         * lib/localename.c (gl_locale_name_thread_unsafe): call
23106         getlocalename_l() on newer __sun platforms.
23107         Reported by Alexander Pyhalov.
23108         Fix suggested by Rich Burridge.
23110 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
23112         locale: fix tests on illumos (trivial)
23113         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
23114         so move from global scope to main().
23116 2015-01-24  Daiki Ueno  <ueno@gnu.org>
23118         unictype: avoid undefined left-shift behavior
23119         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
23120         gcc's -fsanitize=shift and running its tests triggered:
23121           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
23122             places cannot be represented in type 'int'
23123         Cast LHS to 'unsigned int' after integer promotion.
23124         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
23125         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
23127 2015-01-20  Daiki Ueno  <ueno@gnu.org>
23129         libunistring: bump version of unitypes dependants
23130         Due to the header file search order, all the headers which depend
23131         on unitypes.h need to be generated, when the preinstalled
23132         libunistring is older.
23133         * modules/unicase/base (configure.ac): Bump minimum version to
23134         0.9.4.
23135         * modules/uniconv/base (configure.ac): Likewise.
23136         * modules/unilbrk/base (configure.ac): Likewise.
23137         * modules/uninorm/base (configure.ac): Likewise.
23138         * modules/unistdio/base (configure.ac): Likewise.
23139         * modules/unistr/base (configure.ac): Likewise.
23140         * modules/uniwbrk/base (configure.ac): Likewise.
23141         * modules/uniwidth/base (configure.ac): Likewise.
23143 2015-01-20  Daiki Ueno  <ueno@gnu.org>
23145         unictype/category-none: fix link with libunistring
23146         Since _UC_CATEGORY_NONE is not a public symbol, it will be
23147         prefixed with "libstring_" when compiled as part of libunistring.
23148         To avoid undefined symbol at link time, increase the minimum
23149         version when the dependant modules are updated.
23150         * modules/unictype/category-none (configure.ac): Bump minimum
23151         version to 0.9.5.
23153 2015-01-20  Daiki Ueno  <ueno@gnu.org>
23155         unitypes: fix build with installed libunistring
23156         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
23157         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
23158         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
23160 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
23162         time: port to MinGW32 3.21
23163         Problem reported by Eli Zaretskii in:
23164         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
23165         * lib/time.in.h:
23166         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
23167         * modules/time (Depends-on):
23168         Fall back on unistd.h if the other include files don't define
23169         struct timespec.
23171         update-copyright: apply to self
23172         * build-aux/update-copyright: Fix copyright date.  How ironic!
23174 2015-01-15  Daiki Ueno  <ueno@gnu.org>
23176         libunistring: update to Unicode 7.0.0
23177         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
23178         Manichaean names.
23179         * lib/unictype/joininggroup_name.h: Likewise.
23180         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
23181         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
23182         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
23183         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
23184         (fill_arabicshaping, joining_group_as_c_identifier): Support those
23185         enum values.
23186         (is_property_alphabetic): Accept newly added characters to
23187         cuneiform numeric signs.
23188         (is_property_default_ignorable_code_point): Reject U+0605.
23189         (FIELDLEN): Increase from 120 to 160.
23190         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
23191         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
23192         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
23193         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
23194         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
23195         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
23196         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
23197         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
23198         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
23199         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
23200         U+1E8D0..U+1E8D6.
23201         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
23202         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23203         lib/uniwidth/width.c.
23204         * all generated files under lib/uni* and tests/uni*: Regenerate.
23206 2015-01-14  Daiki Ueno  <ueno@gnu.org>
23208         libunistring: update to Unicode 6.3.0
23209         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
23210         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
23211         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
23212         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
23213         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
23214         Update WB5, WB9, WB10, WB13a, and WB13b.
23215         * tests/uniwbrk/test-uc-wordbreaks.c
23216         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
23217         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
23218         (UC_BIDI_PDI): New enumeration values.
23219         (bidi_category_byname): Support those enum values.
23220         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
23221         dedicated property assigned.
23222         (is_property_case_ignorable): Check 0x0027.
23223         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
23224         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
23225         (output_wbp): Support those enum values.
23226         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
23227         (UC_BIDI_PDI): New enumeration values.
23228         * lib/unictype/bidi_byname.gperf: Add those property names.
23229         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
23230         U+180E, U+1A1B, and U+2066..U+2069.
23231         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23232         lib/uniwidth/width.c.
23233         * all generated files under lib/uni* and tests/uni*: Regenerate.
23235 2015-01-14  Daiki Ueno  <ueno@gnu.org>
23237         libunistring: update to Unicode 6.2.0
23238         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
23239         (unilbrk_table): Adjust table size.
23240         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
23241         for LBP_RI.
23242         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
23243         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
23244         Normalize table index skipping ignored properties.
23245         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
23246         WBP_EXTEND and WBP_FORMAT, which are now computed without using
23247         the table.
23248         * lib/uniwbrk/wbrktable.h: Adjust table size.
23249         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
23250         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
23251         Support rule GB8a.
23252         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
23253         * tests/unigbrk/test-uc-is-grapheme-break.c
23254         (graphemebreakproperty_to_string): Support GBP_RI.
23255         * tests/uniwbrk/test-uc-wordbreaks.c
23256         (wordbreakproperty_to_string): Support WBP_RI.
23257         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
23258         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
23259         (output_lbp): Support LBP_RI.  Adjust some characters changed from
23260         LBP_AL to LBP_ID.
23261         (output_lbp): Support LBP_RI.
23262         (WBP_RI): New enumeration value.
23263         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
23264         (output_wbp): Support WBP_RI.
23265         (GBP_RI): New enumeration value.
23266         (output_gbp_test, fill_org_gbp): Support GBP_RI.
23267         * all generated files under lib/uni* and tests/uni*: Regenerate.
23269 2015-01-14  Daiki Ueno  <ueno@gnu.org>
23271         libunistring: update to Unicode 6.1.0
23272         * lib/gen-uni-tables.c (output_joining_group): Switch to
23273         3-level table to accommodate joining groups defined with higher
23274         codepoint value.  Since there are only 88 groups defined in
23275         Unicode 7.0.0, use 7-bit packed format for level3 entries.
23276         (get_lbp): Update for Unicode 6.1.0.
23277         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
23278         3-level table.
23279         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
23280         joining group name.
23281         * lib/unictype/joininggroup_name.h: Likewise.
23282         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
23283         (unilbrk_table): Adjust table size.
23284         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
23285         for LBP_HL.
23286         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
23287         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
23288         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
23289         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
23290         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
23291         U+302E..U+302F.
23292         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23293         lib/uniwidth/width.c.
23294         * all generated files under lib/uni* and tests/uni*: Regenerate.
23295         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
23297 2015-01-15  Daiki Ueno  <ueno@gnu.org>
23299         uniwbrk/u32-wordbreaks-tests: add conformance test
23300         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
23301         tests/uniwbrk/test-uc-wordbreaks.c,
23302         tests/uniwbrk/test-uc-wordbreaks.sh, and
23303         tests/uniwbrk/WordBreakTest.txt.
23304         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
23305         test-uc-wordbreaks to $(check_PROGRAMS), and define
23306         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
23307         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
23308         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
23310 2015-01-15  Daiki Ueno  <ueno@gnu.org>
23312         uniwbrk: ignore Extended/Format characters at BOL not BOS
23313         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
23314         characters if the previous character property is one of
23315         WBP_NEWLINE, WBP_CR, and WBP_LF.
23317 2015-01-11  Jim Meyering  <meyering@fb.com>
23319         test-strstr.c: avoid a trivial leak
23320         * tests/test-strstr.c (main): Free haystack.
23322         update-copyright: recognize groff's \(co marker
23323         * build-aux/update-copyright (circle_c_re): Also accept
23324         uses of \(co, as found in gzip.1.
23326 2015-01-08  Pádraig Brady  <P@draigBrady.com>
23328         maint.mk: fix compatibility with OS X nm
23329         * top/maint.mk (_gl_tight_scope): Use the -g option to
23330         show exported items rather than the -e option which is
23331         ignored on all platforms except OS X where it gives an error.
23332         Reported by Assaf Gordon.
23334 2015-01-07  KO Myung-Hun  <komh@chollian.net>
23336         localcharset: improve charset detection on OS/2
23337         Use system codepage when appropriate.  Map OS/2 codepages to
23338         GNU canonical charset names if possible.
23339         * lib/config.charset: Don't output aliases if "$os" is os2*.
23340         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
23341         result for OS/2.
23342         (locale_charset) [OS2]: Use system codepage if codeset is omitted
23343         from the locale name which is neither "C" nor "POSIX".
23345 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
23347         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
23348         This reverts the last patch but one, as it shouldn't be needed now
23349         that the typo is fixed.
23350         * lib/count-leading-zeros.h (count_leading_zeros_ll):
23351         * lib/count-trailing-zeros.h:
23352         * lib/count-one-bits.h:
23353         Go back to using 64-bit intrinsics.
23355         count-leading-zeros: fix pragma typos
23356         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
23357         Fix typos in declaration of intrinsics when _MSC_VER.
23359 2015-01-06  Pádraig Brady  <P@draigBrady.com>
23361         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
23362         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
23363         intrinsics in this case.
23364         * lib/count-trailing-zeros.h: Likewise.
23365         * lib/count-one-bits.h: Likewise.
23367 2015-01-06  Daiki Ueno  <ueno@gnu.org>
23369         uniname/uniname: update to Unicode 7.0.0
23370         To accommodate new characters added since Unicode 5.1.0, this
23371         changes the internal representation of codepoint ranges.
23372         Previously, we grouped codepoint ranges by manually assigned 4-bit
23373         tag, which only allowed 16 groups.  This removes the limitation by
23374         switching to binary search on a table.  For the detail rationale
23375         and the benchmark results, see:
23376         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
23377         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
23378         to INDEX, as it no longer represents a codepoint.
23379         (range): New struct.
23380         (main): Switch to intervals list from a bit-pattern based
23381         classification.
23382         * lib/uniname/uninames.h: Regenerate.
23383         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
23384         * modules/uniname/base (configure.ac): Bump minimum version to
23385         0.9.5.
23386         * modules/uniname/uniname (configure.ac): Bump minimum version to
23387         0.9.5.
23389 2015-01-05  Eric Blake  <eblake@redhat.com>
23391         doc: update INSTALL from autoconf
23392         * doc/install.texi: Resync from autoconf.
23393         * doc/INSTALL: Reflect recent autoconf update.
23394         * doc/INSTALL.ISO: Likewise.
23395         * doc/INSTALL.UTF-8: Likewise.
23397         stdio: fix use of PRIdMAX on modern mingw
23398         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
23399         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
23400         to work with modern mingw.
23402 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
23404         pthread: detect git mingw builds with only partial pollution
23405         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
23406         pollution, as seen temporarily in Fedora 21.
23408 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
23410         lib-symbol-versions: cache script check
23411         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
23412         Cache the check for linker version scripts.
23413         From a suggestion by Christophe Curis in:
23414         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
23416 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
23418         maint: fix grammar nits in propername (trivial change)
23419         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
23420         and use an adequate verb and tense.
23422 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
23424         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
23425         * module/gendocs: Add 'doc/gendocs_template_min'.
23427         * build-aux/gendocs.sh: Change email addresses and upstream URLs
23428         from to Gnulib's.
23429         (scripturl, templateurl): Adjust accordingly.
23431 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
23433         gendocs: copyright date and version fix
23434         Reported by Karl Berry in:
23435         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
23436         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
23437         Fix copyright date.
23438         * build-aux/gendocs.sh (scriptversion): Update.
23440 2015-01-01  Karl Berry  <karl@gnu.org>
23442         * doc/install.texi,
23443         * build-aux/mdate-sh,
23444         * build-aux/depcomp,
23445         * build-aux/config.guess,
23446         * build-aux/config.sub,
23447         * build-aux/ar-lib,
23448         * build-aux/compile: revert copyright updates (some from last
23449         year) in slaved files.
23451 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
23453         version-etc: new year
23454         * doc/gnulib.texi:
23455         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
23456         * all files: Run 'make update-copyright'.
23458 2014-12-30  Pádraig Brady  <P@draigBrady.com>
23460         xstrtol: ensure errno is reset
23461         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
23462         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
23464         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
23466 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
23468         utimens: fix dependency typo
23469         * modules/utimens (Depends-on): Remove 'assure'.
23470         This bug was introduced in the recent 'assure' patch.
23472 2014-12-22  Eric Blake  <eblake@redhat.com>
23474         docs: mention why libgen.h is bad
23475         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
23477 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23479         assure: new module
23480         This works better than 'assert' when compiling with -DNDEBUG,
23481         as it avoids some compiler diagnostics in that case.
23482         Reported by Norihiro Tanaka in:
23483         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
23484         * MODULES.html.sh (func_all_modules): Add 'assure'.
23485         * lib/assure.h, modules/assure: New files.
23486         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
23487         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
23488         Prefer 'assure' to 'assert'.
23489         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
23490         * modules/chdir-long, modules/cycle-check, modules/fchdir:
23491         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
23492         Depend on 'assure'.
23494 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
23496         stdalign: port better to HP compilers
23497         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
23498         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
23500         stdalign: work around Apple GCC 4.0 bug
23501         Reported by David Fang in:
23502         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
23503         * lib/stdalign.in.h (_Alignas):
23504         * m4/stdalign.m4 (gl_STDALIGN_H):
23505         Do not use aligned attribute with GCC 4.0 on Apple.
23507 2014-12-16  Pádraig Brady  <P@draigBrady.com>
23509         getcwd: fix test failure on OS X 10.9
23510         * m4/getcwd-path-max.m4: Avoid the replacement if it
23511         won't be effective due to the PATH_MAX limitation of lstat().
23512         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
23513         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
23514         for this case for use in tests, and also exclude this
23515         case when setting REPLACE_GETCWD.
23516         * tests/test-getcwd.c (test_long_name): Restrict the
23517         tested path length so that lstat() will not be passed
23518         a path greater than PATH_MAX.
23519         Also key a test condition on HAVE_OPENAT_SUPPORT rather
23520         than AT_FDCWD, since the latter is set unconditionally
23521         since Sep 2009 in commit 52c658e9.
23523 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
23525         parse-datetime: avoid a compiler warning with byacc (trivial)
23526         * lib/parse-datetime.y (yylex): Use the same prototype in the
23527         function definition as the declaration, to avoid a -Wstrict-prototypes
23528         warning seen when using byacc.
23530 2014-12-12  Daiki Ueno  <ueno@gnu.org>
23532         unicase/locale-language-tests: fix LOCALE_FR test
23533         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
23534         a French locale with traditional encoding.
23535         Reported by umerqayam in:
23536         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
23538 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
23540         stddef: support C11's max_align_t
23541         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
23542         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
23543         Do not undef, as that might cause max_align_t to be defined twice.
23544         Instead, change use to check for _GL_STDDEF_WINT_T too.
23545         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
23546         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
23547         Check for max_align_t.
23548         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
23549         * modules/stddef-tests (Depends-on): Add stdalign.
23550         * tests/test-stddef.c: Test max_align_t.
23552 2014-12-11  Daiki Ueno  <ueno@gnu.org>
23554         unistd: fix iOS check conditional
23555         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
23556         as 0 or 1 in <TargetConditionals.h>, and the previous check always
23557         yielded true on non-iOS environment.
23558         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
23559         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
23560         they are defined.
23562 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
23564         posixtm: avoid compiler warning in a better way
23565         * lib/posixtm.c (IF_LINT): Remove.
23566         (year, posix_time_parse):
23567         Return true (not 0) if successful.  All callers changed.
23568         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
23570 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
23572         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
23573         started with '/' on EMX.
23575 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
23577         freopen: workaround freopen() on OS/2 kLIBC
23578         * lib/freopen.c (rpl_freopen): Workaround.
23579         * m4/freopen.m4: Add os2* case.
23581         get_shared_library_fullname: port to EMX
23582         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
23583         on EMX, respectively.
23584         (_DLL_InitTerm): New on EMX.
23585         (get_shared_library_fullname): Implement on EMX.
23587         find_executable: port to EMX
23588         * lib/progreloc.c (find_executable): Implement on EMX.
23590         sched: check struct sched_param in spawn.h as well
23591         * lib/sched.in.h: Include spawn.h on kLIBC.
23592         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
23594 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
23596         bootstrap: Allow perl modules in $buildreq
23597         * build-aux/bootstrap: Add case for perl modules.
23599 2014-12-08  Pádraig Brady  <P@draigBrady.com>
23601         apply _GL_ATTRIBUTE_PURE to some inline functions
23602         clang 3.4.2 flagged these inline functions as pure
23603         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
23604         * lib/sig-handler.h (get_handler): Likewise.
23605         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
23606         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
23608 2014-12-06  Pádraig Brady  <P@draigBrady.com>
23610         vasnprintf: fix potential use after free
23611         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
23612         flagged by clang-analyzer 3.4.2.
23614 2014-12-05  Pádraig Brady  <P@draigBrady.com>
23616         filevercmp, posixtm: avoid compiler warnings with -O3
23617         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
23618         * lib/posixtm.c: (IF_LINT): Define.
23619         (posix_time_parse): Use it to void a "may be used uninitialized"
23620         warning, seen only with -O3.
23622 2014-12-05  Bruno Haible  <bruno@clisp.org>
23624         Fix LDBL80_WORDS macro on big endian platforms.
23625         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
23626         LDBL80_WORDS macro.
23627         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
23628         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23629         * tests/test-isfinite.c (test_isfinitel): Likewise.
23630         * tests/test-isinf.c (test_isinfl): Likewise.
23631         * tests/test-isnan.c (test_long_double): Likewise.
23632         * tests/test-isnanl.h (main): Likewise.
23633         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
23634         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
23635         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
23636         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
23637         Reported by Pádraig Brady.
23639 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
23641         git-version-gen: do not print new line characters
23642         * build-aux/git-version-gen: Use printf instead of echo and tr.
23644         gnulib-tool: recognize x:* as an absolute path
23645         * gnulib-tool (func_gnulib_dir): Add ?:* case.
23646         (func_relconcat): Likewise.
23648 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
23650         argp: avoid extraneous translation and mem leak with empty pre doc
23651         * lib/argp-help.c (argp_doc): Never translate the empty string,
23652         when "\v" is the first or last character of the string, as that
23653         has a reserved meaning to return the header info from a po file.
23654         This also fixes a small memory leak in the !post case.
23655         The issue can be seen with this command for example:
23656         LC_MESSAGES=en_US grub2-mknetdir --help
23658 2014-11-27  Daiki Ueno  <ueno@gnu.org>
23660         uniname/uniname-tests: skip if system's libunistring is used
23661         * modules/uniname/uniname-tests (Makefile.am): Skip test if
23662         uniname/uniname module is not compiled.
23664 2014-11-27  Pádraig Brady  <P@draigBrady.com>
23666         printf: fix configure check on big endian systems
23667         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
23669 2014-11-22  Daiki Ueno  <ueno@gnu.org>
23671         pipe-filter-gi, pipe-filter-ii: port to AIX
23672         On AIX 7.1, 'select' is defined as static and cannot be referred
23673         to from inline function.
23674         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
23675         the definition...
23676         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
23677         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
23679 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
23681         gitlog-to-changelog: add --until
23682         * build-aux/gitlog-to-changelog: Support new --until option.
23683         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
23685 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
23687         extern-inline: update commentary about GCC bugs
23688         * m4/extern-inline.m4: Add another GCC bug number to comments.
23690 2014-11-13  Daiki Ueno  <ueno@gnu.org>
23692         gen-uni-tables: untabify
23693         * lib/gen-uni-tables.c: Untabify.
23695 2014-11-13  Daiki Ueno  <ueno@gnu.org>
23697         gen-uni-tables: check out-of-range values added to 3-level tables
23698         * lib/gen-uni-tables.c (output_category, output_bidi_category)
23699         (output_joining_type, output_ident_category): Check out-of-range
23700         values added to 3-level tables.
23702 2014-11-13  Daiki Ueno  <ueno@gnu.org>
23704         gen-uni-tables: utilize 'assert'
23705         * lib/gen-uni-tables.c: Include <assert.h>.
23706         (output_category, output_combclass, output_decimal_digit_test)
23707         (output_decimal_digit, output_digit_test, output_digit)
23708         (output_numeric, get_mirror_value, fill_properties)
23709         (fill_property30, is_property_alphabetic)
23710         (is_property_default_ignorable_code_point)
23711         (is_property_uppercase, is_property_lowercase)
23712         (is_property_cased, is_property_case_ignorable)
23713         (is_property_changes_when_lowercased, is_property_iso_control)
23714         (is_property_math, fill_arabicshaping, output_joining_group)
23715         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
23716         (output_wbp, fill_org_gbp, get_decomposition)
23717         (output_decomposition, fill_composition_exclusions)
23718         (debug_output_composition_tables, output_composition_tables)
23719         (redistribute_casefolding_rules, output_casing_rules): Use
23720         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
23721         reporting.
23723 2014-11-13  Daiki Ueno  <ueno@gnu.org>
23725         gen-uni-tables: cosmetic improvements
23726         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
23727         variables specification.
23728         (is_outdigit): Remove unused function.
23730 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
23732         fcntl-h-tests: port to PA-RISC GNU/Linux
23733         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
23735 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
23737         fts: port to C89
23738         Problem reported for MSVC 16 by Gisle Vanem in:
23739         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
23740         * lib/fts.c (fts_build): Avoid declaration before statement.
23742 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
23744         unistd: port to iOS
23745         Problem reported by André Klitzing in:
23746         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
23747         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
23749 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
23751         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
23752         Problem reported by Alan Modra in:
23753         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
23754         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
23755         Always cast the function arg, reverting this part of the previous
23756         change.
23758 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
23760         obstack: avoid potentially-nonportable function casts
23761         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
23762         Remove, replacing with ...
23763         (call_chunkfun, call_freefun): New static functions.
23764         All uses changed.  Avoid potentially-nonportable casts.
23765         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
23766         (_obstack_begin_worker): Omit last two args, since they
23767         rely on potentially-nonportable casts.  All callers changed.
23768         * lib/obstack.h (_OBSTACK_CAST): New macro.
23769         Use it everywhere the old API used a potentially-nonportable cast.
23770         The new API doesn't cast.
23771         (struct obstack): Use unions rather than requiring
23772         potentially-nonportable casts.
23773         (obstack_chunkfun, obstack_freefun): Return void.
23775 2014-11-03  Alan Modra  <amodra@gmail.com>
23777         obstack: fix macro return values
23778         * lib/obstack.h (obstack_next_free): Return void *.
23779         (obstack_1grow_fast, obstack_blank_fast): Return void.
23780         For __GNUC__ macros:
23781         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
23782         For !__GNUC__ macros:
23783         (obstack_make_room, obstack_grow, obstack_grow0)
23784         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
23786 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
23788         obstack: do not assume system-supplied obstack is size_t safe
23789         * m4/obstack.m4: New file.
23790         * modules/obstack (Files): Add it.
23792         obstack: port to platforms that #define __alignof__
23793         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
23794         not if !_LIBC.  We don't know of any platforms that #define
23795         __alignof__, but it might be useful in tests.  Conversely,
23796         glibc assumes GCC.
23798 2014-11-03  Pádraig Brady  <P@draigBrady.com>
23800         linkat: don't unconditionally replace on GNU/Linux
23801         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
23802         was redundant for a few reasons.  It was present to support compiling
23803         on new systems but running on the old narrow window of Linux 2.6.1[67].
23804         It setup and cleaned up test files which weren't actually used.
23805         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
23806         implicit in the following check.
23808 2014-11-03  Pádraig Brady  <P@draigBrady.com>
23810         linkat: wrap to handle symlinks on OS X 10.10
23811         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
23812         but not usable because it doesn't support creating hardlinks
23813         to symlinks.  Therefore add a generic test for this capability
23814         and fallback to our emulation if linkat() fails with ENOTSUP.
23816 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
23818         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
23819         * doc/posix-functions/open.texi (open):
23820         * doc/posix-functions/openat.texi (openat):
23821         Document that these functions do not set errno to ELOOP when
23822         a symlink is opened with O_NOFOLLOW.
23824 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
23826         obstack: add NEWS entry for recent incompatible changes
23827         * NEWS: Describe recent changes.
23829 2014-10-30  Pádraig Brady  <P@draigBrady.com>
23831         mountlist: don't use libmount to decide on dummy/remote
23832         * lib/mountlist.c (read_file_system_list): Don't use the libmount
23833         routines to determine whether a file system is dummy or remote,
23834         as they're not currently compatible.  For example the remoteness
23835         is determined on file system type (for which the list seems incomplete),
23836         rather than simply checking for a ':' in the device name.
23837         Also libmount currently determines that 'tmpfs' is a dummy file system
23838         even though it has associated storage.
23840 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
23842         obstack: prefer __alignof__ to alignof
23843         This is for portability to pre-4.7 GCC when compiling glibc.
23844         See Joseph S. Myers in:
23845         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
23846         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
23847         New macro, defined by including and using <alignof.h>.
23848         (MAX): New macro.
23849         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
23850         Do not use enums as they are not portable to some broken compilers.
23851         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
23853         obstack: prefer alignof to calculating alignments by hand
23854         * lib/obstack.c: Include <stdalign.h>.
23855         (struct fooalign): Remove.
23856         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
23857         * modules/obstack (Depends-on): Add stdalign.
23859 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
23861         obstack: use size_t alignments and check for overflow
23862         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
23863         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
23864         * lib/obstack.h (struct obstack.alignment_mask):
23865         Use _OBSTACK_SIZE_T, not int, for alignments.
23866         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
23867         overflows, e.g., when adding the alignment.
23869 2014-10-29  Alan Modra  <amodra@gmail.com>
23871         obstack: 64-bit obstack support, part 3
23872         This finally enables full 64-bit obstack support.  The glibc
23873         shared library specific code is removed from obstack.c too, and
23874         the error handling code conditionally compiled under control of
23875         another macro, _OBSTACK_NO_ERROR_HANDLER.
23876         * lib/obstack.h: Include string.h earlier.
23877         (_OBSTACK_INTERFACE_VERSION): Define.
23878         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
23879         * lib/obstack.c: Don't include shlib-compat.h.
23880         (OBSTACK_INTERFACE_VERSION): Delete.
23881         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
23882         glibc code is compatible with version 2.  Don't include stdio.h for
23883         __GNU_LIBRARY.
23884         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
23885         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
23886         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
23887         glibc shared library specific source.
23889         obstack: 64-bit obstack support, part 2
23890         This gets us 4G obstack support, without changing ABI
23891         compatibility, apart from possibly introducing some
23892         signed/unsigned comparison warnings in code that uses obstack.h.
23893         a) Replace "int" size parameters, return values, and macro local vars
23894            with _OBSTACK_SIZE_T, an "unsigned int" for now.
23895         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
23896         c) Make all obstack macros checking available room use obstack_room.
23897            "next_free + desired > chunk_limit" may wrap the lhs for chunks
23898            allocated near the top of memory.
23899         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
23900         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
23901         in place of "int" size parameters, return values and local vars.
23902         (_CHUNK_SIZE_T): Define.
23903         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
23904         union use an _OBSTACK_SIZE_T integer type.
23905         For __GNUC__ versions of the following macros...
23906         (obstack_room): Rename local var.
23907         (obstack_make_room): Use obstack_room.
23908         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
23909         obstack_int_grow, obstack_blank): Likewise.
23910         (obstack_finish): Use unsigned comparison when comparing aligned
23911         next_free against chunk_limit.
23912         (obstack_free): Cast OBJ to remove possible const qualifier.
23913         For !__GNUC__ versions of the following macros...
23914         (obstack_make_room): Use obstack_room.
23915         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
23916         obstack_int_grow, obstack_blank): Likewise.
23917         (obstack_finish): Use unsigned comparision when comparing aligned
23918         next_free against chunk_limit.
23919         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
23920         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
23921         _OBSTACK_SIZE_T.
23922         (_obstack_begin, _obstack_begin_1): Likewise.
23923         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
23924         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
23926         obstack: 64-bit obstack support, part 1
23927         a) Correct calls to alloc function, to use a size_t arg.  "long" is
23928            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
23929            and "size_t" 64 bits.
23930         b) Consolidate _obstack_begin and _obstack_begin1 code.
23931         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
23932         use "size_t" rather than "long".
23933         (_obstack_begin, _obstack_begin1): Likewise.
23934         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
23935         obstack_chunkfun): Update alloc function casts.
23936         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
23937         (chunkfun_type, freefun_type): New typdefs.
23938         (_obstack_begin_worker): Split out from ..
23939         (_obstack_begin, _obstack_begin_1): ..here.
23941         obstack: tidy part 2
23942         a) Don't be concerned about "not polluting the namespace with stddef.h
23943            symbols" in obstack.h, since gnulib string.h includes stddef.h
23944            anyway, and it seems unlikely that anyone would care.
23945         b) Don't roll our own slow memcpy in _obstack_newchunk.
23946         c) Rename obstack_free to _obstack_free.  This makes the naming
23947            consistent with other obstack functions and obviates the need for
23948            __obstack_free.  Ancient obstack.c defined both obstack_free and
23949            _obstack_free.  We continue to do that for _LIBC via an alias.
23950         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
23951            is clever, but nowadays gcc warns on undefined macros.  You'll get
23952            an undefined macro warning if simulating an old gcc with -U__GNUC__
23953            -U__GNUC_MINOR__ -D__GNUC__=1.
23954         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
23955         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
23956         (__obstack_free): Delete, update refs.
23957         (_obstack_free): Rename from obstack_free.
23958         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
23959         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
23960         * lib/obstack.c: Don't include stddef.h.
23961         (COPYING_UNIT): Delete.
23962         (_obstack_begin): Formatting fix.
23963         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
23964         (_obstack_free): Rename from __obstack_free, update alias.  Move
23965         undef of obstack_free to where it is needed.
23967         obstack: tidy part 1
23968         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
23969            to me, and result in overlong lines after later patches.
23970         b) Move error handling code, to avoid a forward declaration and to
23971            simplify later patches in this series.
23972         * lib/obstack.h (struct obstack <temp>): Rename fields of union
23973         and update all uses.
23974         * lib/obstack.c: Include stdlib.h earlier.
23975         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
23976         in file.
23977         (print_and_abort): Remove now redundant forward declaration.
23979 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
23981         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
23982         Without this change, in bleeding-edge fileutils Autoconf complains
23983         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
23984         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
23985         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
23986         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
23988 2014-10-24  Daiki Ueno  <ueno@gnu.org>
23990         iconv: avoid false detection of non-working iconv
23991         The INBUF arguments of iconv can be either 'const char **'
23992         or 'char **'.  If CC is g++, the difference causes a compile error
23993         and thus leads to a false detection of non-working iconv.
23994         Reported by Eli Zaretskii and Werner LEMBERG in:
23995         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
23996         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
23997         iconv.  Bump serial number.
23999 2014-10-23  Pádraig Brady  <P@draigBrady.com>
24001         bootstrap: print more diagnostics for missing programs
24002         * build-aux/bootstrap: only suppress stderr when checking for
24003         alternative program names.  This supports programs issuing non
24004         standard error messages.
24006 2014-10-23  Pádraig Brady  <P@draigBrady.com>
24008         bootstrap: only update the gnulib submodule
24009         * build-aux/bootstrap: Restrict the "submodule update" command
24010         to the gnulib path.
24012 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
24014         symlinkat: port to AIX 7.1
24015         * doc/posix-functions/symlinkat.texi (symlinkat):
24016         Mention AIX porting problem.
24017         * lib/symlinkat.c: Always include errno.h.
24018         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
24019         * lib/unistd.in.h (symlinkat): Add replacement machinery.
24020         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
24021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
24022         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
24023         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
24024         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
24026         readlinkat: port to AIX 7.1
24027         * doc/posix-functions/readlink.texi (readlink):
24028         * doc/posix-functions/readlinkat.texi (readlinkat):
24029         Mention AIX porting problem.
24030         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
24031         New function.
24032         * lib/unistd.in.h (readlinkat): Add replacement machinery.
24033         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
24034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
24035         * modules/readlinkat (configure.ac): Also compile replacement
24036         if REPLACE_READLINKAT.
24037         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
24039 2014-10-12  Karl Berry  <karl@gnu.org>
24041         * doc/posix-functions/dirname.texi: remove spurious {.
24043 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
24045         basename, dirname: Improve documentation.
24046         * doc/posix-functions/basename.texi: Mention dirname module and
24047         base_name() function.
24048         * doc/posix-functions/dirname.texi: Mention dir_name() and
24049         mdir_name() functions.
24050         Suggested by Werner LEMBERG <wl@gnu.org>.
24052 2014-09-24  Jim Meyering  <meyering@fb.com>
24054         exclude: declare exclude_patopts static
24055         * lib/exclude.c (exclude_patopts): Declare static,
24056         to avoid triggering a -Wmissing-prototypes warning.
24057         The alternative (declaring it in the .h file) would
24058         require publicizing the private "struct patopts".
24060 2014-09-21  Werner Lemberg  <wl@gnu.org>
24062         dirname: support compilation with C++
24063         * lib/dirname.h: Add necessary C linkage declarations.
24065 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
24067         qsort_r: include <config.h>
24068         Problem reported by Tom G. Christensen in:
24069         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
24070         * lib/qsort.c [!_LIBC]: Include <config.h> first.
24072 2014-09-16  Dylan Cali  <calid1984@gmail.com>
24074         avltree-list: avoid compiler warnings (trivial)
24075         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
24076         -Werror=suggest-attribute=pure.
24077         * lib/gl_array_list.c: Likewise.
24078         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
24079         declaration to avoid -Werror=missing-prototypes.  This is not added
24080         to a header as only exported for tests.  Add (void) to the
24081         check_invariants() call to indicate we're discarding the result
24082         in this context which avoids -Werror=unused-value.  Note we don't
24083         use ignore_value here to avoid a dependency as we know we'll not
24084         be adding __attribute__((warn_unused_result)) to check_invariants().
24085         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
24087 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
24089         qsort_r: new module, for GNU-style qsort_r
24090         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
24092 2014-09-15  Werner LEMBERG  <wl@gnu.org>
24094         strerror_r-posix: support compilation with C++
24095         * lib/strerror_r.c: Add necessary C linkage declarations.
24097 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
24099         fcntl-h: fix compilation with Intel C++ compiler (trivial)
24100         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
24102 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
24104         mountlist: use /proc/self/mountinfo when available
24105         Use libmount to propagate device IDs provided by Linux in
24106         /proc/self/mountinfo.  This will give more accurate output when
24107         using df in chroot'ed environments as the device IDs are not
24108         determined by stat() which may be inaccurate within the chroot.
24109         * lib/mountlist.c (read_file_system_list): Use the libmount routines
24110         from util-linux to parse "/proc/self/mountinfo" or fall back to
24111         standard getmntent() processing.
24112         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
24113         getmntent() is used, as is the case on GNU/Linux.
24115 2014-09-07  Eric Wong  <normalperson@yhbt.net>
24117         users.txt: add cmogstored
24118         cmogstored has used gnulib since the beginning in 2012 to support
24119         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
24121 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
24123         Trivial change.
24124         * gnulib-tool: Use same options as build-aux/bootstrap to download
24125         PO files.
24127 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
24129         Trivial change.
24130         * gnulib-tool: Fallback to wget when rsync of PO files fails.
24132 2014-09-04  Eric Blake  <eblake@redhat.com>
24134         maintainer-makefile: add syntax check for useless ';;'
24135         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
24137 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
24139         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
24140         Problem reported by Assaf Gordon in:
24141         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
24142         Apparently Ubuntu is doing some fancy link-time optimization
24143         that doesn't work with -lpthread but does work with -pthread.
24144         Work around the bug by preferring -pthread to -lpthread.
24145         * m4/pthread.m4 (gl_PTHREAD_CHECK):
24146         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
24147         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
24148         Treat -pthread like -lpthread.
24150 2014-09-04  Eric Blake  <eblake@redhat.com>
24152         error: drop spurious semicolon
24153         * lib/error.c (__error_at_line): Fix ';;'.
24155 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
24157         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
24158         * m4/gnulib-common.m4 (AC_C_RESTRICT):
24159         Override AC_C_RESTRICT unconditionally.
24160         Update from autoconf, incorporating:
24161         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
24162         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
24164 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24166         manywarnings: add GCC 4.9 warnings
24167         Also, make it easier to maintain this in the future.
24168         * build-aux/gcc-warning.spec: Add -Wabi-tag,
24169         -Wconditionally-supported, -Wdelete-incomplete,
24170         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
24171         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
24172         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
24173         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
24174         only for older GCC versions that need them.  Handle
24175         -Wnormalized=nfc specially, so that the 'comm' command used
24176         for maintenance doesn't get confused.
24178 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24180         vasnprintf: fix bugs in width computation
24181         * lib/vasnprintf.c (VASNPRINTF):
24182         Rework previous change, which introduced a bug,
24183         to avoid the warning in a different way.
24184         Avoid undefined behavior if the width arg is less than -INT_MAX.
24185         Avoid unnecessary use of HAS_WIDTH local.
24187 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
24189         vasnprintf: Avoid signed/unsigned comparison warning.
24190         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
24191         compare end addr of generated string w/ maximum end addr.
24193 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
24195         parse-datetime: Avoid pointer difference.
24196         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
24197         instead of calculating difference of pointers.  This removes an
24198         annoying warning, devoid of any use.
24200 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24202         qsort_r: new module, for GNU-style qsort_r
24203         This works even on FreeBSD, which has an incompatible qsort_r API.
24204         * MODULES.html.sh: Add it.
24205         * doc/glibc-functions/qsort_r.texi: It's now supported.
24206         * lib/qsort.c: New file, taken from glibc with minor changes
24207         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
24208         removed.
24209         * lib/qsort_r.c: New file, compiled only on FreeBSD.
24210         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
24211         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
24212         * modules/qsort_r, modules/qsort_r-tests: New files.
24213         * modules/stdlib (Makefile): Set up its defaults.
24214         * tests/test-qsort_r.c: New file.
24216 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
24218         vla: new module
24219         GNU RCS can use this, mostly for documentation I expect.  See:
24220         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
24221         * MODULES.html.sh: Add vla.
24222         * lib/vla.h, modules/vla: New files.
24224 2014-08-07  Daiki Ueno  <ueno@gnu.org>
24226         localename: make gl_locale_name_thread really thread-safe on Windows
24227         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
24228         "glthread/lock.h".
24229         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
24230         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
24232 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
24234         getpass: don't assume struct termios
24235         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
24236         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
24237         * lib/getpass.c (getpass): Port to systems lacking struct termios.
24239         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
24240         Problem reported by Jonas 'Sortie' Termansen in:
24241         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
24242         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
24243         Implement via sysconf for platforms that lack getdtablesize.
24245         vararrays: modernize AC_C_VARARRAYS for C11
24246         This backports a change I recently made to Autoconf.
24247         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
24248         VLAs are not supported, as this is what C11 does.  The old macro
24249         HAVE_C_VARARRAYS is still defined if they are supported, but is
24250         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
24252 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
24254         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
24255         * build-aux/install-reloc (func_create_wrapper): Also wrap
24256         strerror-override, stat, stat.
24258 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
24260         sys_select: fix FD_ZERO problem on Solaris 10
24261         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
24262         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
24263         to expand to an expression that invoked memset without necessarily
24264         including <string.h>.  The problem was that the first include
24265         defined _SYS_TIME_H, causing the second include to short-circuit.
24266         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
24267         Also, fix what appears to be a cut-and-paste typo, by replacing
24268         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
24269         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
24271         accept: document Solaris 10 type glitch
24272         * doc/posix-functions/accept.texi (accept): Mention that
24273         Solaris 10 'accept' takes void * last arg, not socklen_t *.
24275 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
24277         extern-inline: port to FreeBSD, DragonFly
24278         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
24279         is present if either __DragonFly__ or __FreeBSD__ is defined.
24280         FreeBSD problem reported by Andrey Borzenkov in:
24281         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
24282         Also, worry about __APPLE__ only if __MACH__ is also defined,
24283         as this is more consistent with the rest of gnulib.
24284         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
24285         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
24287 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
24289         regex: Make #if/#ifdef usage consistent for DEBUG
24290         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
24291         of the inconsistent usage of #if and #ifdef as that works with
24292         both Glibc and Gnulib's style.
24294 2014-07-31  Eric Blake  <eblake@redhat.com>
24296         openat-die: use _Noreturn markup
24297         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
24298         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
24299         _Noreturn.
24301 2014-07-30  Eric Blake  <eblake@redhat.com>
24303         test-open: port to cygwin, which lacks Fortify
24304         * tests/test-open.h (ALWAYS_INLINE): New macro.
24305         (__always_inline): Don't abuse internal symbol on non-glibc.
24307 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
24309         localename: Enforce declarations before statements.
24310         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
24311         first statement.
24313 2014-07-18  Jim Meyering  <meyering@fb.com>
24315         test-userspec: don't look up numeric user names
24316         * tests/test-userspec.c: I found a system for which getpwnam("0")
24317         returned a pointer to a non-root user's entry, and that made the
24318         test fail.
24319         (T): Prefix each numeric input with "+", to inhibit lookup.
24321 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
24323         localcharset, localename: MS-Windows support for non-default locales
24324         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
24325         falling back on the default system codepage, try extracting
24326         the codepage from what 'setlocale' returns.  This allows to
24327         take into account changes of the codeset due to non-default
24328         locale set by a previous call to 'setlocale'.
24329         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
24330         Define if not already defined.
24331         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
24332         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
24333         current locale by calling 'setlocale', then converting the
24334         locale name into LCID by calling 'get_lcid'.  This allows to
24335         take into account changes in the current locale from the
24336         default one, in contrast to GetThreadLocale.
24338 2014-07-14  Daiki Ueno  <ueno@gnu.org>
24340         announce-gen: avoid failure when Digest::SHA is installed
24341         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
24342         Digest::SHA1->new in print_checksums fails.
24343         * build-aux/announce-gen (digest_classes): New associative array
24344         for available message digest implementations.
24345         (print_locations): Use it.
24347 2014-07-13  Pádraig Brady  <P@draigBrady.com>
24349         gettext: revert "update macros to version 0.19"
24350         This reverts commit 9b9370ca, as it currently requires that
24351         developers of any project that explicitly uses the gettext module
24352         or implicitly uses it through the utimens-tests or
24353         futimens-tests modules, use gettext >= 0.19.
24354         However there are some stability and availablity issues with
24355         that version at present.  We can reinstate this soon, when stability
24356         is addressed and packages are more readily available.
24358 2014-07-12  Jim Meyering  <meyering@fb.com>
24360         regex: don't deref NULL upon heap allocation failure
24361         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
24362         failure in one more place.
24363         To trigger the segfault, configure grep -with-included-regex,
24364         build it, and run these commands:
24365         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
24366         I discovered this while replying to a private report from
24367         Jens Schleusener about excessive memory consumption by grep
24368         when using a regular expression like the one above.
24370 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
24372         regex: fix memory leak in compiler
24373         Fix by Andreas Schwab in:
24374         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
24375         * lib/regcomp.c (parse_reg_exp): Deallocate partially
24376         constructed tree before returning error.
24378 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
24380         announce-gen: avoid perl warnings
24381         * build-aux/announce-gen: add two minor checks to avoid
24382         "use of uninitialized value" warnings when command-line parameters are
24383         missing.
24385 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
24387         localename: avoid -Wsuggest-attribute={const,pure} warnings
24388         * lib/localename.c (string_has): Tag internal function as pure.
24389         * lib/localename.h (gl_locale_name_default): Tag extern declaration
24390         as const when appropriate.
24392 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
24394         nl_langinfo: Fix last change.
24395         * lib/nl_langinfo.c (includes): Drop redundant include.
24397 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
24399         error: Fix -Wundef warnings in glibc
24400         * lib/error.c [_LIBC]: Define default macros for
24401         glibc.
24402         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
24403         Check _LIBC before STRERROR_R_CHAR_P.
24405         error: Sync from glibc master
24406         * lib/error.c [_LIBC]: Remove INTUSE usage.
24407         (error_tail): Remove unused macro ALLOCA_LIMIT.
24408         Fix potential buffer overflow.  Fix potential NULL dereference
24409         in strcmp.
24411 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
24413         nl_langinfo: fix build under mingw
24414         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
24416 2014-07-09  Andrew D Warshall  <warshall@99main.com>
24418         mountlist: do not classify a bind-mounted dir entry as "dummy"
24419         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
24420         1-argument getmntent() (instead of assuming absence).
24422 2014-07-08  Eric Blake  <eblake@redhat.com>
24424         maint.mk: less syntax-check noise when SIGPIPE is ignored
24425         * top/maint.mk (_sc_header_without_use)
24426         (sc_require_config_h_first): Parse full list.
24428 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
24429             Paul Eggert  <eggert@cs.ucla.edu>
24431         nl_langinfo: CODESET on MS-Windows and more items from localeconv
24432         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
24433         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
24434         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
24435         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
24436         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
24437         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
24438         Include <stdio.h> if Microsoft Windows.
24439         Include <time.h> if !REPLACE_NL_LANGINFO.
24440         (ctype_codeset): New function, taken from rpl_nl_langinfo,
24441         and with improvements for Microsoft Windows.
24442         (rpl_nl_langinfo): Use it.
24443         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
24444         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
24445         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
24446         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
24447         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
24448         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
24449         corresponding values returned by 'localeconv'.  Compute the values
24450         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
24451         'strftime' with a suitable struct tm value.
24453 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
24455         Bruno Haible has stepped down as maintainer.
24456         See Karl Berry in:
24457         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
24458         Daiki Ueno has volunteered to maintain libunistring; see:
24459         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
24460         * modules/gen-uni-tables, modules/libunistring:
24461         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
24462         * modules/unicase/base, modules/unicase/cased:
24463         * modules/unicase/empty-prefix-context:
24464         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
24465         * modules/unicase/locale-language, modules/unicase/special-casing:
24466         * modules/unicase/tocasefold, modules/unicase/tolower:
24467         * modules/unicase/totitle, modules/unicase/toupper:
24468         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
24469         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
24470         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
24471         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
24472         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
24473         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
24474         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
24475         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
24476         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
24477         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
24478         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
24479         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
24480         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
24481         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
24482         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
24483         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
24484         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
24485         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
24486         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
24487         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
24488         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
24489         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
24490         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
24491         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
24492         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
24493         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
24494         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
24495         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
24496         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
24497         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
24498         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
24499         * modules/unicase/ulc-casexfrm, modules/unicodeio:
24500         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
24501         * modules/uniconv/u16-conv-to-enc:
24502         * modules/uniconv/u16-strconv-from-enc:
24503         * modules/uniconv/u16-strconv-from-locale:
24504         * modules/uniconv/u16-strconv-to-enc:
24505         * modules/uniconv/u16-strconv-to-locale:
24506         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
24507         * modules/uniconv/u32-strconv-from-enc:
24508         * modules/uniconv/u32-strconv-from-locale:
24509         * modules/uniconv/u32-strconv-to-enc:
24510         * modules/uniconv/u32-strconv-to-locale:
24511         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
24512         * modules/uniconv/u8-strconv-from-enc:
24513         * modules/uniconv/u8-strconv-from-locale:
24514         * modules/uniconv/u8-strconv-to-enc:
24515         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
24516         * modules/unictype/bidicategory-all:
24517         * modules/unictype/bidicategory-byname:
24518         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
24519         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
24520         * modules/unictype/bidiclass-byname:
24521         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
24522         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
24523         * modules/unictype/block-all, modules/unictype/block-list:
24524         * modules/unictype/block-of, modules/unictype/block-test:
24525         * modules/unictype/category-C, modules/unictype/category-Cc:
24526         * modules/unictype/category-Cf, modules/unictype/category-Cn:
24527         * modules/unictype/category-Co, modules/unictype/category-Cs:
24528         * modules/unictype/category-L, modules/unictype/category-LC:
24529         * modules/unictype/category-Ll, modules/unictype/category-Lm:
24530         * modules/unictype/category-Lo, modules/unictype/category-Lt:
24531         * modules/unictype/category-Lu, modules/unictype/category-M:
24532         * modules/unictype/category-Mc, modules/unictype/category-Me:
24533         * modules/unictype/category-Mn, modules/unictype/category-N:
24534         * modules/unictype/category-Nd, modules/unictype/category-Nl:
24535         * modules/unictype/category-No, modules/unictype/category-P:
24536         * modules/unictype/category-Pc, modules/unictype/category-Pd:
24537         * modules/unictype/category-Pe, modules/unictype/category-Pf:
24538         * modules/unictype/category-Pi, modules/unictype/category-Po:
24539         * modules/unictype/category-Ps, modules/unictype/category-S:
24540         * modules/unictype/category-Sc, modules/unictype/category-Sk:
24541         * modules/unictype/category-Sm, modules/unictype/category-So:
24542         * modules/unictype/category-Z, modules/unictype/category-Zl:
24543         * modules/unictype/category-Zp, modules/unictype/category-Zs:
24544         * modules/unictype/category-all, modules/unictype/category-and:
24545         * modules/unictype/category-and-not, modules/unictype/category-byname:
24546         * modules/unictype/category-longname, modules/unictype/category-name:
24547         * modules/unictype/category-none, modules/unictype/category-of:
24548         * modules/unictype/category-or, modules/unictype/category-test:
24549         * modules/unictype/category-test-withtable:
24550         * modules/unictype/combining-class:
24551         * modules/unictype/combining-class-all:
24552         * modules/unictype/combining-class-byname:
24553         * modules/unictype/combining-class-longname:
24554         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
24555         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
24556         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
24557         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
24558         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
24559         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
24560         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
24561         * modules/unictype/digit, modules/unictype/joininggroup-all:
24562         * modules/unictype/joininggroup-byname:
24563         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
24564         * modules/unictype/joiningtype-all:
24565         * modules/unictype/joiningtype-byname:
24566         * modules/unictype/joiningtype-longname:
24567         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
24568         * modules/unictype/mirror, modules/unictype/numeric:
24569         * modules/unictype/property-all, modules/unictype/property-alphabetic:
24570         * modules/unictype/property-ascii-hex-digit:
24571         * modules/unictype/property-bidi-arabic-digit:
24572         * modules/unictype/property-bidi-arabic-right-to-left:
24573         * modules/unictype/property-bidi-block-separator:
24574         * modules/unictype/property-bidi-boundary-neutral:
24575         * modules/unictype/property-bidi-common-separator:
24576         * modules/unictype/property-bidi-control:
24577         * modules/unictype/property-bidi-embedding-or-override:
24578         * modules/unictype/property-bidi-eur-num-separator:
24579         * modules/unictype/property-bidi-eur-num-terminator:
24580         * modules/unictype/property-bidi-european-digit:
24581         * modules/unictype/property-bidi-hebrew-right-to-left:
24582         * modules/unictype/property-bidi-left-to-right:
24583         * modules/unictype/property-bidi-non-spacing-mark:
24584         * modules/unictype/property-bidi-other-neutral:
24585         * modules/unictype/property-bidi-pdf:
24586         * modules/unictype/property-bidi-segment-separator:
24587         * modules/unictype/property-bidi-whitespace:
24588         * modules/unictype/property-byname:
24589         * modules/unictype/property-case-ignorable:
24590         * modules/unictype/property-cased:
24591         * modules/unictype/property-changes-when-casefolded:
24592         * modules/unictype/property-changes-when-casemapped:
24593         * modules/unictype/property-changes-when-lowercased:
24594         * modules/unictype/property-changes-when-titlecased:
24595         * modules/unictype/property-changes-when-uppercased:
24596         * modules/unictype/property-combining:
24597         * modules/unictype/property-composite:
24598         * modules/unictype/property-currency-symbol:
24599         * modules/unictype/property-dash:
24600         * modules/unictype/property-decimal-digit:
24601         * modules/unictype/property-default-ignorable-code-point:
24602         * modules/unictype/property-deprecated:
24603         * modules/unictype/property-diacritic:
24604         * modules/unictype/property-extender:
24605         * modules/unictype/property-format-control:
24606         * modules/unictype/property-grapheme-base:
24607         * modules/unictype/property-grapheme-extend:
24608         * modules/unictype/property-grapheme-link:
24609         * modules/unictype/property-hex-digit:
24610         * modules/unictype/property-hyphen:
24611         * modules/unictype/property-id-continue:
24612         * modules/unictype/property-id-start:
24613         * modules/unictype/property-ideographic:
24614         * modules/unictype/property-ids-binary-operator:
24615         * modules/unictype/property-ids-trinary-operator:
24616         * modules/unictype/property-ignorable-control:
24617         * modules/unictype/property-iso-control:
24618         * modules/unictype/property-join-control:
24619         * modules/unictype/property-left-of-pair:
24620         * modules/unictype/property-line-separator:
24621         * modules/unictype/property-logical-order-exception:
24622         * modules/unictype/property-lowercase, modules/unictype/property-math:
24623         * modules/unictype/property-non-break:
24624         * modules/unictype/property-not-a-character:
24625         * modules/unictype/property-numeric:
24626         * modules/unictype/property-other-alphabetic:
24627         * modules/unictype/property-other-default-ignorable-code-point:
24628         * modules/unictype/property-other-grapheme-extend:
24629         * modules/unictype/property-other-id-continue:
24630         * modules/unictype/property-other-id-start:
24631         * modules/unictype/property-other-lowercase:
24632         * modules/unictype/property-other-math:
24633         * modules/unictype/property-other-uppercase:
24634         * modules/unictype/property-paired-punctuation:
24635         * modules/unictype/property-paragraph-separator:
24636         * modules/unictype/property-pattern-syntax:
24637         * modules/unictype/property-pattern-white-space:
24638         * modules/unictype/property-private-use:
24639         * modules/unictype/property-punctuation:
24640         * modules/unictype/property-quotation-mark:
24641         * modules/unictype/property-radical:
24642         * modules/unictype/property-sentence-terminal:
24643         * modules/unictype/property-soft-dotted:
24644         * modules/unictype/property-space:
24645         * modules/unictype/property-terminal-punctuation:
24646         * modules/unictype/property-test, modules/unictype/property-titlecase:
24647         * modules/unictype/property-unassigned-code-value:
24648         * modules/unictype/property-unified-ideograph:
24649         * modules/unictype/property-uppercase:
24650         * modules/unictype/property-variation-selector:
24651         * modules/unictype/property-white-space:
24652         * modules/unictype/property-xid-continue:
24653         * modules/unictype/property-xid-start:
24654         * modules/unictype/property-zero-width, modules/unictype/scripts:
24655         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
24656         * modules/unictype/syntax-c-whitespace:
24657         * modules/unictype/syntax-java-ident:
24658         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
24659         * modules/unigbrk/u16-grapheme-breaks:
24660         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
24661         * modules/unigbrk/u32-grapheme-breaks:
24662         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
24663         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
24664         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
24665         * modules/unigbrk/uc-is-grapheme-break:
24666         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
24667         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
24668         * modules/unilbrk/u16-width-linebreaks:
24669         * modules/unilbrk/u32-possible-linebreaks:
24670         * modules/unilbrk/u32-width-linebreaks:
24671         * modules/unilbrk/u8-possible-linebreaks:
24672         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
24673         * modules/unilbrk/ulc-possible-linebreaks:
24674         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
24675         * modules/uniname/uniname, modules/uninorm/base:
24676         * modules/uninorm/canonical-decomposition:
24677         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
24678         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
24679         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
24680         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
24681         * modules/uninorm/nfkc, modules/uninorm/nfkd:
24682         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
24683         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
24684         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
24685         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
24686         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
24687         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
24688         * modules/unistdio/base, modules/unistdio/u-printf-args:
24689         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
24690         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
24691         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
24692         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
24693         * modules/unistdio/u16-u16-sprintf:
24694         * modules/unistdio/u16-u16-vasnprintf:
24695         * modules/unistdio/u16-u16-vasprintf:
24696         * modules/unistdio/u16-u16-vsnprintf:
24697         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
24698         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
24699         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
24700         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
24701         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
24702         * modules/unistdio/u32-u32-asnprintf:
24703         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
24704         * modules/unistdio/u32-u32-sprintf:
24705         * modules/unistdio/u32-u32-vasnprintf:
24706         * modules/unistdio/u32-u32-vasprintf:
24707         * modules/unistdio/u32-u32-vsnprintf:
24708         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
24709         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
24710         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
24711         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
24712         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
24713         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
24714         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
24715         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
24716         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
24717         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
24718         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
24719         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
24720         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
24721         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
24722         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
24723         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
24724         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
24725         * modules/unistr/u16-check, modules/unistr/u16-chr:
24726         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
24727         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
24728         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
24729         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
24730         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
24731         * modules/unistr/u16-move, modules/unistr/u16-next:
24732         * modules/unistr/u16-prev, modules/unistr/u16-set:
24733         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
24734         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
24735         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
24736         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
24737         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
24738         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
24739         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
24740         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
24741         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
24742         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
24743         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
24744         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
24745         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
24746         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
24747         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
24748         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
24749         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
24750         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
24751         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
24752         * modules/unistr/u32-next, modules/unistr/u32-prev:
24753         * modules/unistr/u32-set, modules/unistr/u32-startswith:
24754         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
24755         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
24756         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
24757         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
24758         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
24759         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
24760         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
24761         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
24762         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
24763         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
24764         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
24765         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
24766         * modules/unistr/u8-check, modules/unistr/u8-chr:
24767         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
24768         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
24769         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
24770         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
24771         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
24772         * modules/unistr/u8-next, modules/unistr/u8-prev:
24773         * modules/unistr/u8-set, modules/unistr/u8-startswith:
24774         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
24775         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
24776         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
24777         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
24778         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
24779         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
24780         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
24781         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
24782         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
24783         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
24784         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
24785         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
24786         * modules/uniwbrk/base, modules/uniwbrk/table:
24787         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
24788         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
24789         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
24790         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
24791         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
24792         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
24793         * modules/uniwidth/width, modules/utf16-ucs4:
24794         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
24795         * modules/utf8-ucs4-unsafe:
24796         Change maintainer from Bruno Haible to Daiki Ueno.
24797         This is my guess at the libunistring modules; please feel free
24798         to fix if I guessed incorrectly.
24799         * modules/accept4, modules/acl, modules/acos, modules/acosf:
24800         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
24801         * modules/areadlink, modules/array-list, modules/array-mergesort:
24802         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
24803         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
24804         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
24805         * modules/binary-io, modules/bison-i18n, modules/btowc:
24806         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
24807         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
24808         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
24809         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
24810         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
24811         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
24812         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
24813         * modules/closedir, modules/concat-filename, modules/copy-file:
24814         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
24815         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
24816         * modules/csharpcomp-script, modules/csharpexec:
24817         * modules/csharpexec-script, modules/ctype, modules/diffseq:
24818         * modules/dprintf, modules/dprintf-posix, modules/dup:
24819         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
24820         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
24821         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
24822         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
24823         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
24824         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
24825         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
24826         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
24827         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
24828         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
24829         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
24830         * modules/findprog, modules/findprog-lgpl, modules/floor:
24831         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
24832         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
24833         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
24834         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
24835         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
24836         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
24837         * modules/freadable, modules/freadahead, modules/freadptr:
24838         * modules/freadseek, modules/freopen, modules/frexp:
24839         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
24840         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
24841         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
24842         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
24843         * modules/ftello, modules/full-read, modules/full-write:
24844         * modules/fwritable, modules/fwriteerror, modules/gcd:
24845         * modules/get-rusage-as, modules/get-rusage-data:
24846         * modules/getdtablesize, modules/getrusage, modules/gettext:
24847         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
24848         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
24849         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
24850         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
24851         * modules/iconv, modules/iconv-h, modules/iconv_open:
24852         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
24853         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
24854         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
24855         * modules/integer_length_ll, modules/ioctl, modules/isatty:
24856         * modules/isblank, modules/isnand, modules/isnand-nolibm:
24857         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
24858         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
24859         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
24860         * modules/javaexec, modules/javaexec-script, modules/javaversion:
24861         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
24862         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
24863         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
24864         * modules/lib-symbol-visibility, modules/libsigsegv:
24865         * modules/linked-list, modules/linkedhash-list, modules/list:
24866         * modules/localcharset, modules/locale, modules/localeconv:
24867         * modules/localename, modules/lock, modules/log, modules/log-ieee:
24868         * modules/log10, modules/log10-ieee, modules/log10f:
24869         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
24870         * modules/log1p, modules/log1p-ieee, modules/log1pf:
24871         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
24872         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
24873         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
24874         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
24875         * modules/logf, modules/logf-ieee, modules/login_tty:
24876         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
24877         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
24878         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
24879         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
24880         * modules/mbscspn, modules/mbsinit, modules/mbslen:
24881         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
24882         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
24883         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
24884         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
24885         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
24886         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
24887         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
24888         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
24889         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
24890         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
24891         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
24892         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
24893         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
24894         * modules/posix_spawn, modules/posix_spawn-internal:
24895         * modules/posix_spawn_file_actions_addclose:
24896         * modules/posix_spawn_file_actions_adddup2:
24897         * modules/posix_spawn_file_actions_addopen:
24898         * modules/posix_spawn_file_actions_destroy:
24899         * modules/posix_spawn_file_actions_init:
24900         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
24901         * modules/posix_spawnattr_getpgroup:
24902         * modules/posix_spawnattr_getschedparam:
24903         * modules/posix_spawnattr_getschedpolicy:
24904         * modules/posix_spawnattr_getsigdefault:
24905         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
24906         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
24907         * modules/posix_spawnattr_setschedparam:
24908         * modules/posix_spawnattr_setschedpolicy:
24909         * modules/posix_spawnattr_setsigdefault:
24910         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
24911         * modules/pow, modules/powf, modules/printf-frexp:
24912         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
24913         * modules/progname, modules/propername, modules/pselect:
24914         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
24915         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
24916         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
24917         * modules/read, modules/readdir, modules/readlink:
24918         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
24919         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
24920         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
24921         * modules/relocatable-script, modules/remainder:
24922         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
24923         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
24924         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
24925         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
24926         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
24927         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
24928         * modules/setlocale, modules/sh-quote, modules/shutdown:
24929         * modules/signal, modules/signbit, modules/sigpipe:
24930         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
24931         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
24932         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
24933         * modules/snippet/link-warning, modules/snippet/unused-parameter:
24934         * modules/snprintf, modules/snprintf-posix, modules/spawn:
24935         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
24936         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
24937         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
24938         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
24939         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
24940         * modules/streq, modules/strerror_r-posix, modules/striconv:
24941         * modules/striconveh, modules/striconveha, modules/strncat:
24942         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
24943         * modules/sublist, modules/sys_resource, modules/sys_utsname:
24944         * modules/sys_wait, modules/system-posix, modules/system-quote:
24945         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
24946         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
24947         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
24948         * modules/truncf, modules/truncf-ieee, modules/truncl:
24949         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
24950         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
24951         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
24952         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
24953         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
24954         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
24955         * modules/wait-process, modules/waitpid, modules/wcpcpy:
24956         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
24957         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
24958         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
24959         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
24960         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
24961         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
24962         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
24963         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
24964         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
24965         * modules/write, modules/xconcat-filename, modules/xlist:
24966         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
24967         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
24968         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
24969         * modules/y0, modules/y1, modules/yn:
24970         Remove Bruno Haible as maintainer; if he's the sole maintainer,
24971         change the maintainer to 'all'.  Let's hope someone volunteers.
24973 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
24975         mktime: merge #if/#ifdef usage from glibc
24976         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
24977         as that works with both Glibc's and Gnulib's style.
24978         See thread starting at Siddhesh Poyarekar's bug report at:
24979         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
24981 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
24983         git-version-gen: improve option descriptions
24984         * build-aux/git-version-gen: Mention that --prefix and --fallback
24985         have a mandatory argument.
24987 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
24989         regex: fix memory leak in compiler
24990         Fix by Andreas Schwab in:
24991         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
24992         * lib/regcomp.c (parse_expression): Deallocate partially
24993         constructed tree before returning error.
24995         regex: merge patch from libc
24996         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
24997         Combine __USE_BSD and __USE_SVID into __USE_MISC.
24998         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
25000 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
25002         acl: port to gcc -Wredundant-decls
25003         From a request by Dmitry Antipov in:
25004         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
25005         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
25006         "#ifndef _GL_ACL_H".
25008 2014-06-11  Bruce Korb  <bkorb@gnu.org>
25009         Jim Meyering  <meyering@fb.com>
25011         parse-duration: eliminate 68-year duration limit
25012         * lib/parse-duration.c: Include "intprops.h".
25013         (TIME_MAX): Rename to MAX_DURATION and define to
25014         TYPE_MAXIMUM(time_t).
25015         * modules/parse-duration (Depends-on): Add intprops.
25016         Reported by Jonas 'Sortie' Termansen.
25018 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
25020         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
25021         * modules/pthread (Depends-on): Add 'extensions', as it defines
25022         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
25023         (configure.ac-early): New section.
25024         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
25025         it is no longer needed.
25027 2014-06-14  Pádraig Brady  <P@draigBrady.com>
25029         pthread: define thread-safe macros on some platforms
25030         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
25031         for thread-safe operation on some platforms.
25033 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
25035         regex: don't be multithreaded if USE_UNLOCKED_IO.
25036         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
25037         * lib/regex_internal.h: Do not use multithreaded version if
25038         USE_UNLOCKED_IO is defined.  This is a hack, but it works
25039         around a porting bug with coreutils 8.22 on AIX 7.1.
25041 2014-06-11  Daiki Ueno  <ueno@gnu.org>
25043         gettext: update macros to version 0.19
25044         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
25045         depend on gl_EXTERN_INLINE and drop support for older Bison
25046         versions.
25048 2014-06-10  Pádraig Brady  <P@draigBrady.com>
25050         select,poll: fix console handle check on windows 8
25051         lib/poll.c (IsConsoleHandle): Change from testing the lower
25052         2 bits of the handle to the more expensive but accurate syscall.
25053         lib/select.c: Likewise.
25055 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
25057         select: fix waiting on anonymous pipes on MS-Windows
25058         * lib/select.c (rpl_select): Fall back to polling when select()
25059         indicates there is nothing to check, while due to the timeout not
25060         expiring, activity is indicated on one of the handles.
25061         Also clear the TIMEOUT argument if the timer does expire.
25063 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
25065         times: fix to return non constant value on MS-Windows
25066         * lib/times.c (times): Don't use the process creation time,
25067         rather clock() which on windows returns the number of
25068         clock ticks since the process started.
25070 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
25072         isatty: fix to work on windows 8
25073         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
25074         2 bits of the handle to the more expensive but accurate syscall.
25076 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
25078         maint: fix typo in fdl.texi
25079         * doc/fdl.texi: Fix typo (missing '@').
25080         Somehow this was in fdl.texi but not fdl-1.3.texi.
25082 2014-06-06  Ben Walton  <bdwalton@gmail.com>
25084         mountlist: avoid hasmntopt const type warning on solaris
25085         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
25086         with char * instead of const char *.  Passing the constant string
25087         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
25088         to avoid the warning.
25090 2014-06-04  Eric Blake  <eblake@redhat.com>
25092         maintainer-makefile: delete obsolete code
25093         * top/maint.mk (build_aux): Drop old code, as threatened.
25095         maintainer-makefile: avoid spurious error messages
25096         * top/maint.mk (syntax-check): Guard definition and use of
25097         $(shell) by whether Makefile is present.
25099 2014-06-03  Ben Walton  <bdwalton@gmail.com>
25101         rename: avoid unused-but-set-variable compiler warning
25102         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
25103         it is possible that dst_exists may be set but not used.  Mark it with
25104         the unused attribute to avoid compiler warnings.
25106 2014-06-02  Ben Walton  <bdwalton@gmail.com>
25108         rename: mark a label as potentially unused
25109         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
25110         by marking the out label as potentially unused.
25111         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
25113 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
25115         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
25116         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
25118 2014-06-02  Ben Walton  <bdwalton@gmail.com>
25120         acl: apply pure attribute to two functions
25121         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
25122         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
25124 2014-06-01  Pádraig Brady  <P@draigBrady.com>
25126         gnulib-common.m4: add _GL_UNUSED_LABEL
25127         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
25128         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
25130 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
25132         dup2, fcntl, fcntl-h: port to AIX 7.1
25133         This fixes some porting problems discovered when testing the latest
25134         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
25135         in grep but it could be important for other applications.
25136         * doc/posix-functions/dup2.texi:
25137         * doc/posix-functions/fcntl.texi:
25138         * doc/posix-headers/fcntl.texi:
25139         Document AIX bugs.
25140         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
25141         Define to 0 if outside 'int' range.
25142         * m4/dup2.m4 (gl_FUNC_DUP2):
25143         * m4/fcntl.m4 (gl_FUNC_FCNTL):
25144         Check for getdtablesize.  If it's available, test a value just
25145         outside its range instead of testing 1000000.  When cross-compiling,
25146         guess that AIX will fail this improved test.
25148 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
25150         printf, config.rpath: Port to FreeBSD 10.
25151         Problem reported by Tijl Coosemans in:
25152         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
25153         * build-aux/config.rpath (hardcode_libdir_flag_spec)
25154         (hardcode_direct): Simplify FreeBSD configuration.
25155         (library_names_spec): Don't mishandle FreeBSD 10+.
25156         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
25157         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
25158         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
25159         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
25160         Don't mishandle FreeBSD 10+ when cross-compiling.
25162         ftoastr: work around compiler bug in IBM xlc 12.1
25163         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
25164         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
25165         around a compiler bug in IBM xlc 12.1.0.0: it complains
25166         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
25167         _GL_FLT_PREC_BOUND.'
25169 2014-05-30  Kieran Colford  <colfordk@gmail.com>
25171         valgrind-tests: fixed misleading help message
25172         * m4/valgrind-tests.m4: The help message generated by configure
25173         implied that valgrind was disabled by default, which it wasn't.
25174         Adjusted the help message using s/enable/disable/ to clarify.
25176 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
25178         isfinite, isinf, isnan tests: fix for little-endian PowerPC
25179         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
25180         first double of a PowerPC "double double" pair.
25181         * tests/test-isinf.c (test_isinfl): Likewise.
25182         * tests/test-isnan.c (test_long_double): Likewise.
25183         * tests/test-isnanl.h (main): Likewise.
25184         * tests/test-signbit.c (test_signbitl): Likewise.
25186 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
25188         exclude-tests: port to AIX 7.1
25189         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
25190         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
25191         the regex code uses locks.
25193 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
25195         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
25196         Without this fix, Emacs would sometimes call sigprocmask instead
25197         of pthread_sigmask, which is a no-no in multithreaded applications.
25198         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
25199         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
25200         Suppress check for pthread_sigmask working without -lpthread if
25201         the application always links with -lpthread.  Do not link with
25202         $LIBMULTITHREAD if gl_THREADLIB is not defined.
25203         * m4/timer_time.m4 (gl_TIMER_TIME):
25204         Require gl_THREADLIB only if it is defined.  Do not append
25205         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
25207 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
25209         gnulib-tool: wget translations using --no-verbose rather than --quiet
25210         This allows the user to see error messages if any (--quiet hides them)
25211         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
25213 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
25215         gnulib-tool: adjust translation wget to avoid a https redirection
25216         Context: http://translationproject.org/latest/gnulib redirects to
25217            https://translationproject.org/latest/gnulib/
25218         Rationale: if the user falls back to wget, she doesn't have rsync and
25219         is probably in a minimal build environment, where packages such as
25220         'ca-certificates' are missing as well, resulting in a failed (and
25221         difficult to detect since ignored) translation initial fetch.
25222         Consequently let's avoid https if possible, and add the missing
25223         trailing slash.  This also avoids an unnecessary 302 redirection.
25224         * gnulib-tool: Add trailing slash to gnulib URL.
25226 2014-05-22  Pádraig Brady  <P@draigBrady.com>
25228         getlogin_r-tests: check return value rather than errno
25229         * tests/test-getlogin_r.c (main): As per POSIX we should be
25230         verifying the return value from getlogin_r() rather than errno.
25232 2014-05-22  Pádraig Brady  <P@draigBrady.com>
25234         getlogin_r-tests: fix various issues in recent change
25235         * tests/test-getlogin_r.c: Include required headers that were
25236         missed in recent commit eec20b4e.
25237         Also consistently check the errno rather than the return value from
25238         getlogin_r as POSIX only specifies that non zero is returned on error.
25239         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
25241 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
25243         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
25244         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
25245         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
25246         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
25247         * lib/spawn-pipe.c:
25248         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
25249         and then 'int open64(const char *, int, ...);', which means the
25250         declaration for 'open' gets lost if we later '#undef open'.
25251         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
25252         where the compilation reported the non-fatal error "In function
25253         'openat_proc_name' ... warning: implicit declaration of function
25254         'open'".  In this case the error is relatively harmless, but in
25255         other cases it might not be so minor.
25257 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
25259         xalloc: don't potentially generate invalid code for xmemdup calls
25260         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
25261         this function can initialize the newly-allocated storage with new
25262         pointers, which means this function is not malloc-like.  See:
25263         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
25265 2014-05-19  Pádraig Brady  <P@draigBrady.com>
25267         getlogin_r-tests: avoid false failure under sudo/ssh etc.
25268         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
25269         changes from commit 97249cf29 to not depend on environment variables.
25271 2014-05-18  Pádraig Brady  <P@draigBrady.com>
25273         getlogin-tests: avoid false failure under cron
25274         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
25275         since that's not what's under test.  Centos 6 was seen to return
25276         EINVAL for ttyname() when run from cron.
25278 2014-05-16  Jim Meyering  <meyering@fb.com>
25280         mbrtowc.m4: fix a comment typo
25281         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
25282         emitted documentation string.
25284 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
25286         mbrlen, mbrtowc: fix bug with empty input
25287         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
25288         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
25289         so this is mainly for documentation.
25290         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
25291         (gl_FUNC_MBRTOWC): Use it.
25292         * tests/test-mbrtowc.c (main): Test for the bug.
25294 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
25296         doc: document mbrtowc and mbrlen problem with empty input
25297         * doc/posix-functions/mbrlen.texi (mbrlen):
25298         * doc/posix-functions/mbrtowc.texi (mbrtowc):
25299         Document portability problem when the input string is empty.  See:
25300         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
25302         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
25303         Problem reported by Eli Zaretskii in:
25304         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
25305         * doc/posix-functions/execl.texi (execl):
25306         * doc/posix-functions/execle.texi (execle):
25307         * doc/posix-functions/execlp.texi (execlp):
25308         * doc/posix-functions/execv.texi (execv):
25309         * doc/posix-functions/execve.texi (execve):
25310         * doc/posix-functions/execvp.texi (execvp):
25311         Mention spawn+exit problem on non-Cygwin Windows platforms.
25313 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
25315         getlogin-tests: avoid false failure under sudo/ssh etc.
25316         * modules/getlogin-tests (configure.ac): Check for ttyname().
25317         * tests/test-getlogin.c (main): Don't depend on environment variables
25318         to correlate with getlogin(), since sudo and ssh etc. can tamper
25319         with the LOGNAME and USER env vars.  Instead lookup the name from
25320         the uid associated with the stdin tty.
25322 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
25324         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
25325         These were found when building the latest grep snapshot on IRIX 6.5.
25326         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
25327         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
25328         never used later.
25329         * lib/quotearg.c (quoting_options_from_style):
25330         * lib/xstrtol.c (__xstrtol):
25331         Use enum instead of 0, to pacify IRIX 6.5 cc.
25333 2014-04-18  Pádraig Brady  <P@draigBrady.com>
25335         gitlog-to-changelog: revert inclusion of git-log-fix file
25336         * build-aux/git-log-fix: Delete dummy file.
25337         * modules/gitlog-to-changelog: Don't reference (overwrite)
25338         the project specific git-log-fix file.
25340 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
25342         maint.mk: Relax the copyright check to cater for non FSF projects
25343         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
25344         to not require the "Free" suffix after the copyright years.
25346 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
25348         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
25349         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
25350         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
25351         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
25352         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
25354 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
25356         exclude: port to strict C99
25357         Strict C does not allow converting a function pointer to void *
25358         and vice versa.  Pass a pointer to a function pointer instead.
25359         * lib/exclude.c (add_exclude_file):
25360         Pass the address of the function pointer.
25361         (call_addfn): And deference the address here, to match.
25363 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
25365         regex: do not depend on malloc-gnu
25366         * modules/regex (Depends-on): Remove malloc-gnu.
25367         It's no longer needed, because of the 2012-12-29 patch
25368         "regex: port to hosts where malloc (0) == NULL".
25369         Reported by Nathan Kennedy in:
25370         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
25372 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
25374         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
25375         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
25376         * doc/posix-functions/expl.texi: Mention the workaround.
25378 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
25380         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
25381         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
25382         size to be zero even when the pointer is nonnull.  This
25383         accommodates the use case where P is malloc (0) and *PN is 0 on a
25384         host where malloc (0) yields nonnull.
25386 2014-04-09  Eric Blake  <eblake@redhat.com>
25388         fts: avoid unnecessary strlen calls
25389         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
25391 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25393         fts: avoid unnecessary strlen calls
25394         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
25395         when that can be faster than strlen.
25397 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
25399         fts: avoid unnecessary strlen calls
25400         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
25401         (fts_build): Store the length of the dp->d_name entry in a local variable
25402         instead of calling strlen() several times via the above, removed macro.
25403         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
25404         run by ~4%, yet this reduces the execution time by about a third if run
25405         via "ltrace -c rm -rf some-dir".
25407 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
25409         obstack: Remove ancient NeXTSTEP gcc support conditional
25410         This change will ease merging with glibc.  The "#if ... __NEXT__"
25411         causes a warning with -Wundef which glibc now enables by default.
25412         Problem reported by Will Newton in
25413         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
25414         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
25415         so go with that.
25416         * lib/obstack.h (__extension__):
25418 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
25420         obstack: merge with glibc changes
25421         * lib/obstack.c, lib/obstack.h: Merge from glibc.
25422         This is mostly indenting and commentary changes.
25423         Instances of 'register' have been removed.
25425 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
25427         strftime: wrap macros in "do {...} while(0)"
25428         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
25429         this macro in "do {...} while(0)" to prevent false use as a
25430         single statement, e.g., in an un-braced "{}" else-block.
25431         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
25432         (strftime_case_): Remove 'else' after 'goto' - which was the
25433         only non-fatal, un-braced use of one of the above macros.
25434         Spotted by coverity (NESTING_INDENT_MISMATCH).
25436 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
25438         modechange: avoid memory leaks for invalid octal modes
25439         * lib/modechange.c (mode_compile): During the parsing of
25440         notations like +40, free the 'mc' buffer for invalid mode
25441         strings like +17777 (greater than the maximum octal mode),
25442         =18 (bad octal mode characters) or u=1 ('affected' with
25443         octal modes).
25444         Reproducer, e.g.:
25445             $ valgrind --leak-check=full chmod +17777 file
25446         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
25447         add notations +40, 00440, etc.".
25448         Spotted by coverity (RESOURCE_LEAK).
25450 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
25452         gitlog-to-changelog: include a dummy git-log-fix file
25453         Problem reported by Nathan Stratton Treadway in:
25454         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
25455         * build-aux/git-log-fix: New file.
25457 2014-03-13  Jim Meyering  <meyering@fb.com>
25459         gitlog-to-changelog: also include the file, git-log-fix
25460         * modules/gitlog-to-changelog (Files): Add git-log-fix.
25461         Reported by Assaf Gordon.
25463 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
25465         regex: port to OS X 10.8.5 en_US.UTF-8 locale
25466         This fixes a bug when ignoring case and when comparing the
25467         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
25468         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
25469         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
25470         titlecase letter is neither lowercase nor uppercase, but
25471         uppercasing the titlecase letter (via towupper) yields the
25472         uppercase letter, so the two letters should match when ignoring case.
25473         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
25474         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
25475         Don't test whether a character is lowercase before uppercasing it.
25477 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
25479         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
25480         This is basically one of the options Bruno Haible proposed in:
25481         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
25482         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
25483         * lib/stdint.in.h: Use it.
25484         * modules/stdint (Depends-on): Add sys_types.
25486 2014-02-26  Pádraig Brady  <P@draigBrady.com>
25488         parse-datetime: fix crash or infloop in TZ="" parsing
25489         * lib/parse-datetime.y (parse_datetime): Break out of the
25490         TZ="" parsing loop once the second significant " is found.
25491         Also skip over any subsequent whitespace to be consistent
25492         with the non TZ= case.
25493         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
25495 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
25497         savedir: new symbol for fast-read version
25498         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
25499         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
25500         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
25501         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
25503 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
25505         unistd: port readlink to Mac OS X 10.3.9
25506         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
25507         around self-include problem in Mac OS X 10.3.9 when combined with
25508         readlink module.  Problem reported by Klaus Zietler in
25509         <http://bugs.gnu.org/16825>.
25511 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
25513         diffseq: remove TOO_EXPENSIVE heuristic
25514         Problem with diffutils reported by Vincent Lefevre in
25515         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
25516         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
25517         Although appropriate for circa-1993 hardware, these days the heuristic
25518         seems to be more trouble than it's worth.
25519         * lib/diffseq.h: Modernize citations.
25520         (struct context): Remove member too_expensive.
25521         All uses changed.
25522         (struct partition): Remove members lo_minimal, hi_minimal.
25523         All uses changed.
25524         (diag, compareseq): Remove arg find_minimal.  All uses changed.
25525         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
25526         1993 to make 'diff' run faster (but not as well) on large inputs.
25527         These days, computers are fast enough that it's typically better
25528         to run slower but more accurately.
25529         * lib/fstrcmp.c: Remove duplicate comment.
25530         * lib/fstrcmp.c (strcmp_bounded):
25531         * lib/git-merge-changelog.c (compute_differences):
25532         Adjust to diffseq.h changes.
25533         * NEWS: Document the change.
25535         savedir: simplify by using stpcpy
25536         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
25537         (streamsavedir): Use stpcpy instead.
25538         * modules/savedir (Depends-on): Add stpcpy.
25540 2014-02-21  Pádraig Brady  <P@draigBrady.com>
25542         spawn: fix link error on uclibc
25543         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
25544         to incorporate -lrt if needed (on uclibc for example).
25545         * modules/posix_spawn: Reference the substituted LIB.
25547 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
25548         timer: fix uClibc detection of threading
25549         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
25550         enabled in uClibc.
25552 2014-02-21  Eric Blake  <eblake@redhat.com>
25554         maintainer-makefiles: provide AC_PROG_SED for older autoconf
25555         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
25557 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
25559         exclude: add support for posix regexps
25561         This commit adds support for POSIX extended regular expressions
25562         and fixes a long-standing memory leak (pattern buffer was never
25563         freed).  It also implements a new interface function to read
25564         exclude patterns from a FILE, which passes an additional parameter
25565         to its callback function, thereby allowing to preserve its state
25566         between invocations.
25568         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
25569         (pattern_buffer): New struct.
25570         (exclude): New member patbuf.
25571         (exclude_add_pattern_buffer): New function.
25572         (free_exclude_segment): Free regexps.
25573         (free_exclude): Free allocated pattern buffers.
25574         (exclude_patopts): New function.
25575         (file_pattern_matches): Use exclude_patopts.
25576         (add_exclude): support regexps.
25577         (add_exclude_fp): New function.
25578         (add_exclude_file): Rewrite using add_exclude_fp.
25579         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
25580         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
25581         (add_exclude_fp)
25582         (add_exclude_file): Rewrite using add_exclude_fp.
25583         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
25584         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
25585         (add_exclude_fp)
25586         (exclude_add_pattern_buffer): New prototypes.
25587         * modules/exclude: Depends on regex and filename.
25589 2014-02-20  Eric Blake  <eblake@redhat.com>
25591         maintainer-makefiles: use $(SED) for syntax check
25592         * modules/maintainer-makefile (configure.ac): Check for sane sed.
25593         * top/maint.mk: Change sed to $(SED).
25595 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
25596             Paul Eggert  <eggert@cs.ucla.edu>
25598         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
25599         Patch based on an idea by Dick Streefland in
25600         <https://savannah.gnu.org/patch/?7892>.
25601         * NEWS: Document this.
25602         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
25603         (direntry_t, comparison_function): New types.
25604         (direntry_cmp_name): New function.
25605         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
25606         (streamsavedir, savedir): New arg OPTION.
25607         (streamsavedir): Simplify memory allocation.
25608         (fdsavedir): Remove.
25609         * lib/savedir.h (enum savedir_option): New type.
25610         (streamsavedir, savedir): New arg OPTION.
25611         (fdsavedir): Remove.
25613 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
25615         file-type: add support for doors and other less-common file types
25616         Problem with S_ISDOOR reported by Rich Burridge.
25617         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
25618         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
25619         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
25621 2014-01-23  Eric Blake  <eblake@redhat.com>
25623         pthread: work around winpthread header pollution on mingw
25624         * lib/time.in.h: Move pthread workarounds...
25625         * lib/pthread.in.h: ...here.
25626         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
25627         detect macro pollution on mingw.
25628         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
25630 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
25632         qacl: check for fchmod
25633         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
25634         and qset-acl.c both use HAVE_FCHMOD.
25636 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
25638         fdopen-tests: port to Tru64
25639         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
25640         descriptor that is not open, as POSIX doesn't specify the
25641         resulting behavior and the test does not work on Tru64.
25642         Problem reported by Steven M. Schweda in:
25643         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
25645         stdalign: port to HP-UX compilers
25646         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
25647         if __HP_cc or __HP_aCC are nonzero.
25649 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
25651         strtoimax: port to platforms lacking 'long long'
25652         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
25653         check whether strtoll is declared, which causes the C file to
25654         wrongly report an error.  Problem reported by Steven M. Schweda in:
25655         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
25656         * lib/strtoimax.c (strtoull):
25657         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
25658         (strtoll): Declare only if HAVE_LONG_LONG_INT.
25660 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
25662         relocatable-perl: fix texi syntax
25663         * doc/relocatable-maint.texi: Escape braces.
25665 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
25667         relocatable-perl: like relocatable-script, but for Perl scripts
25668         * build-aux/relocatable.pl.in: Add.
25669         * doc/relocatable-maint.texi: Add documentation.
25670         * modules/relocatable-perl: Add.
25672 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
25674         tests: fix export bug in previous patch
25675         Problem reported by Jim Meyering.
25676         * tests/init.sh (re_shell): New var, which is exported instead of
25677         re_shell_.
25679         tests: simplify porting to Solaris 10 /bin/sh
25680         Some test cases in 'grep' need a shell that groks '$(';
25681         export re_shell_ for their benefit.  Problem reported for 'grep'
25682         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
25683         * tests/init.sh (re_shell_): Export if it's used.
25685 2014-01-06  Eric Blake  <eblake@redhat.com>
25687         md5, sha1, sha256, sha512: support older autoconf
25688         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
25689         for autoconf < 2.63b.
25691         include_next: port to autoconf 2.63
25692         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
25694 2014-01-04  Jim Meyering  <meyering@fb.com>
25696         maint: add a gnulib-local rule to keep non-ascii out of .texi files
25697         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
25698         so that "make sc_maint" will ding anyone who puts non-ascii
25699         in any of gnulib's .texi files.
25701 2014-01-03  Jim Meyering  <meyering@fb.com>
25703         freadable, fwritable, fwriting: declare with the "pure" attribute
25704         * lib/freadable.h (freadable): Declare with the "pure" attribute.
25705         * lib/fwritable.h (fwritable): Likewise.
25706         * lib/fwriting.h (fwriting): Likewise.
25707         Suggested by Bruno Haible.
25709         maint.mk: adapt openat.h-include-without-use test
25710         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
25711         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
25712         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
25713         With this change, running "make sc_maint" in gnulib's top-level
25714         directory now passes for me.
25716 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
25718         doc: use ASCII in .texi files where UTF-8 isn't needed
25719         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
25720         * doc/posix-functions/setkey.texi, doc/regex.texi:
25721         Use ASCII input, not UTF-8.
25723 2014-01-02  Jim Meyering  <meyering@fb.com>
25725         freading: declare with the "pure" attribute
25726         * lib/freading.h (freading): Declare with the "pure" attribute.
25728         manywarnings: remove -Wmudflap
25729         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
25730         it is no longer supported in gcc-4.9-to-be.
25732 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25734         relocatable-script: remove unused code
25735         Problem reported by Reuben Thomas in:
25736         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
25737         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
25739 2014-01-01  Jim Meyering  <meyering@fb.com>
25741         maint: fix public-submodule-commit to work with newer git
25742         * top/maint.mk (public-submodule-commit): Remove excess quoting.
25743         We were over-quoting the test arguments, and somewhere prior to
25744         version 1.8.5.2.229, git stopped removing those excess quotes,
25745         which made the test fail, since the unexpanded strings would
25746         always differ; using GIT_TRACE=1 confirmed that the git merge-base
25747         command wasn't even being run.
25749 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25751         doc: update main copyright year
25752         * doc/gnulib.texi: Update copyright date.
25754 2014-01-01  Eric Blake  <eblake@redhat.com>
25756         version-etc: new year
25757         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
25758         * all files: run 'make update-copyright'
25760 2013-12-24  Eric Blake  <eblake@redhat.com>
25762         passfd: give nicer error for recvfd at eof
25763         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
25764         * tests/test-passfd.c (main): Enhance test to cover this.
25766 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
25768         gettimeofday: port recent C++ fix to Emacs
25769         Without this further patch, Emacs won't build due to
25770         the portcheck failing.  Also, this simplifies the patch a bit.
25771         * lib/time.in.h (localtime, gmtime): Don't replace unless
25772         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
25773         * lib/time.in.h (localtime, gmtime):
25774         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
25775         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
25776         * modules/time (time.h):
25777         Don't worry about the possibility of localtime and gmtime
25778         being absent; they're present in all C libraries we know about.
25779         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
25780         Don't assume sys_time is present and has been initialized.
25781         Instead, use a hack that should work even if it hasn't been.
25782         Don't use a portcheck for gmtime or localtime; this supports
25783         the hack.
25784         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
25786 2013-12-17  John W. Eaton  <jwe@gnu.org>
25788         gettimeofday: fix C++ crosscompilation
25790         Never replace gmtime and localtime by macros when compiling with
25791         C++, this prevents <ctime> from being included.
25793         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
25794         define gmtime and localtime as preprocessor macros.  Instead
25795         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
25796         REPLACE_LOCALTIME substitutions.
25797         * lib/time.in.h: Declare gmtime and localtime when needed.
25798         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
25799         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
25800         * modules/time: Depend on gettimeofday, and substitute the above
25801         variables in time.h.
25803 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
25805         qacl: port to Windows better
25806         See Eli Zaretskii in
25807         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
25808         * lib/file-has-acl.c (acl_access_nontrivial):
25809         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
25810         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
25812 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
25814         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
25815         * lib/gl_openssl.h: Cast void pointers to a specific type.
25817 2013-12-07  Pádraig Brady  <P@draigBrady.com>
25819         open-tests: fix build failure with -Werror=old-style-declaration
25820         * tests/test-open.h: Reorder the inline to avoid the issue.
25822 2013-12-07  Pádraig Brady  <P@draigBrady.com>
25824         md5, sha1, sha256, sha512: fix link error with partial libcrypto
25825         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
25826         init time, so that if early checks find crypto routines,
25827         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
25828         avoiding link failures.
25830 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
25832         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
25833         This provides a new way to specify the default for
25834         gl_CRYPTO_CHECK, one that is reflected in the --help message.
25835         Emacs uses this, as well as the old way.
25836         This attempts to implement a suggestion by Pádraig Brady in
25837         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
25838         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
25839         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
25841         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
25842         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
25843         Add support for a new option, --with-openssl=auto, which causes
25844         the library to be used if available and silently ignored if not.
25845         Add support to allow configure.ac to specify its own
25846         default, by setting with_openssl_default before invoking gl_INIT.
25848 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
25850         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
25851         Problem reported by Daiki Ueno in:
25852         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
25853         * tests/test-open.h (__always_inline):
25854         New macro, if not already defined.
25855         (test_open): Use it.
25857 2013-12-04  Eric Blake  <eblake@redhat.com>
25859         include_next: minimize code duplication
25860         * modules/include_next (Depends-on): Add absolute-header.
25861         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
25862         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
25864 2013-12-04  Pádraig Brady  <P@draigBrady.com>
25866         getcwd: fix compile error in configure check
25867         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
25869 2013-12-04  Pádraig Brady  <P@draigBrady.com>
25871         regex: suppress core dumps from detection code
25872         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
25873         to suppress core dumps that may well occur on glibc systems.
25874         These core dumps might not be cleaned up automatically, or could
25875         trigger some system core dump handling logic.
25877 2013-12-03  Pádraig Brady  <P@draigBrady.com>
25879         md5, sha1, sha256, sha512: support mandating use of openssl
25880         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
25881         description, to list the now 3 separate options.  also don't
25882         mention the default=no, since this is implicit given the option
25883         is described as --with-openssl rather than --without-openssl.
25884         If projects change the default they're free to document that.
25885         with --with-openssl[=yes] we now error out when the specified
25886         hash algorithm is not available in libcrypto.
25888 2013-12-03  Ivailo  <xakepa10@gmail.com>
25890         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
25891         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
25892         -Wformat-nonliteral checks, as these edge cases are part of the test.
25894 2013-12-03  Eric Blake  <eblake@redhat.com>
25896         regex: avoid glibc deadlock during configure
25897         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
25898         glibc bug 15078 in turn triggers bug 16159.
25899         Reported by Michal Privoznik.
25901 2013-12-02  Pádraig Brady  <P@draigBrady.com>
25903         md5, sha1, sha256, sha512: use openssl routines if available.
25904         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
25905         routines will be used if available, requiring apps to link @LIB_CRYPTO@
25906         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
25907         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
25908         in the standard system location.
25909         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
25910         * m4/sha256.m4: Likewise with SHA256.
25911         * m4/sha512.m4: Likewise with SHA512.
25912         * m4/md5.m4: Likewise with MD5.
25913         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
25914         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
25915         * lib/sha256.h: Likewise with SHA256.
25916         * lib/sha512.h: Likewise with SHA512.
25917         * lib/md5.h: Likewise with MD5.
25918         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
25919         * lib/sha256.c: Likewise with SHA256.
25920         * lib/sha512.c: Likewise with SHA512.
25921         * lib/md5.c: Likewise with MD5.
25922         * modules/crypto/sha1 (Link:): Add the new optional lib.
25923         (Depends-on:): Add dependency on extern-inline.
25924         * modules/crypto/sha256: Likewise.
25925         * modules/crypto/sha512: Likewise.
25926         * modules/crypto/md5: Likewise.
25927         * modules/crypto/sha1-tests: Reference the lib here too.
25928         * modules/crypto/md5-tests: Likewise.
25929         * modules/crypto/gc-des-tests: Likewise.
25930         * modules/crypto/gc-hmac-md5-tests: Likewise.
25931         * modules/crypto/gc-hmac-sha1-tests: Likewise.
25932         * modules/crypto/gc-hmac-sha256-tests: Likewise.
25933         * modules/crypto/gc-hmac-sha512-tests: Likewise.
25934         * modules/crypto/gc-md5-tests: Likewise.
25935         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
25936         * modules/crypto/gc-sha1-tests: Likewise.
25937         * modules/crypto/gc-tests: Likewise.
25938         * modules/crypto/hmac-md5-tests: Likewise.
25939         * modules/crypto/hmac-sha1-tests: Likewise.
25940         * modules/crypto/hmac-sha256-tests: Likewise.
25941         * modules/crypto/hmac-sha512-tests: Likewise.
25943 2013-11-29  RV1971  <rv1971@web.de>
25945         base64: (trivial) fix compilation regression on some compilers
25946         * lib/base64.c: Don't return the void function,
25947         instead split to a separate return statement.
25949 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
25951         ignore-value: revert previous code change
25952         * lib/ignore-value.h (ignore_value): Use __extension__ and
25953         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
25954         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
25955         Change the comment to try to explain this better.
25957 2013-11-27  Pádraig Brady  <P@draigBrady.com>
25959         selinux-h: improve stub types and add more stub functions
25961         * lib/se-selinux.in.h: Change security_context_t to a typedef
25962         rather than a define, as it's a pointer type and so is better
25963         as a typedef to avoid issues declaring multiple variables
25964         with the comma operator.  Also add stub for string_to_security_class().
25965         * lib/se-context.in.h: Add stub functions for
25966         context_{type,range,role,user}_get().
25968 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
25970         ignore-value: prefer GCC version back through 2.0
25971         The code didn't match the comments, so I did a bit of software
25972         archaeology.  GCC 2.0 seems to support __extension__ and
25973         __typeof__, so fix both code and comments to use 2.0.
25974         * lib/ignore-value.h (ignore_value): Use __extension__ and
25975         __typeof__ for GCC 2.0 through 3.3, too.
25977 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
25979         pty: Activate the signature wrapper of forkpty.
25980         The intended preprocessor macro HAVE_FORKPTY is
25981         never defined, yet `lib/forkpty.c' depends on it.
25983         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
25984         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
25985         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
25987 2013-11-18  Jim Meyering  <meyering@fb.com>
25988         and Paul Eggert  <eggert@cs.ucla.edu>
25990         quotearg: don't attempt to store 1 << 31 into an "int"
25991         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
25992         gcc's new -fsanitize=undefined and running its tests triggered some
25993         new test failures due to undefined behavior, all with this diagnostic:
25994           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
25995             cannot be represented in type int
25996         Rather than shifting "1" left to form a mask, shift the bits right and
25997         simply use "1" as the mask.
25999 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
26001         error: depend on stdio
26002         Problem reported by Nikos Mavrogiannopoulos in
26003         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
26004         * modules/error (Depends-on): Add stdio.
26006 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
26008         * doc/relocatable-maint.texi (Supporting Relocation): Improve
26009         wording.
26010         Reported by Reuben Thomas <rrt@sc3d.org>.
26012 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
26014         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
26015         New function and macro, to work around _DARWIN_C_SOURCE problem.
26016         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
26018 2013-11-11  Pádraig Brady  <P@draigBrady.com>
26020         base64: provide a fast path for encoding well sized buffers
26021         Avoid conditionals in the base64 encoding loop,
26022         which was seen to give 60% better throughput.
26023         * lib/base64.c (base64_encode_fast): A new function to be called
26024         when we don't want to NUL terminate, and we have enough space
26025         in the output to encode the given input.
26026         (base64_encode): Call the _fast() version when appropriate.
26027         Also remove a redundant mask with 0x3F on the first encoded byte.
26029 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
26031         extern-inline: port better to OS X 10.9
26032         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
26033         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
26034         OS X 10.9, except for g++ where the bug is still present.
26035         See <http://trac.macports.org/ticket/41033>.
26037 2013-11-08  Eric Blake  <eblake@redhat.com>
26039         fpending: fix regression on DragonFly BSD
26040         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
26041         * lib/fpending.h (__fpending): Don't declare twice.
26042         Reported by GW in
26043         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
26045 2013-11-05  Jim Meyering  <meyering@fb.com>
26047         hash: relax license to LGPLv2+, for libguestfs
26048         * modules/hash (License): Change from GPL to LGPLv2+.
26050 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
26052         intprops: port to Oracle Studio c99
26053         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
26054         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
26056 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
26058         obstack: pacify HP C
26059         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
26060         warning "conversion from pointer to smaller integer" from HP
26061         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
26062         C89 or later nowadays, so cast to void instead of int.  Privately
26063         reported by H.Merijn Brand.  Also, change header to match glibc's,
26064         to make checking against glibc easier.
26066 2013-10-29  Jim Meyering  <meyering@fb.com>
26068         maint.mk: prefer gpgv2 over gpgv
26069         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
26070         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
26071         Reported by Gary Vaughan.
26073 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
26075         isnan: port to VAX
26076         Reported by John Klos for NetBSD-5/VAX in
26077         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
26078         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
26079         (FUNC): Use it.
26081 2013-10-28  Jim Meyering  <meyering@fb.com>
26083         gnulib-tool: protect against CDPATH
26084         * gnulib-tool: Many "cd" built-in functions print a directory name
26085         to stdout when CDPATH is set, e.g.,
26086           $ bash -c 'CDPATH=/; cd tmp'
26087           /tmp
26088         Unset it, when possible.  Prompted by a comment from Bruce Korb.
26090         maint.mk: restore functionality removed by recent change...
26091         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
26092         the context of a shallow-cloned gnulib repository: "git describe"
26093         would fail in such a directory.  However, that change made it so
26094         the reported gnulib revision no longer includes the version number
26095         or a commit count, even when run from a full clone.
26096         * top/maint.mk (gnulib-version): Use the full "git describe"
26097         output when possible, e.g., the form above, rather than the
26098         abbreviated, no-tag, no-commit-count string, and fall back to
26099         using a 10-byte hash, rather than the default minimal-length
26100         hash prefix, since while the minimal-length one may be fine today,
26101         it is likely not to be unique for very long.
26103 2013-10-26  Jim Meyering  <meyering@fb.com>
26105         maint.mk: fix "release" target to build _version
26106         This fixes a bug in README-release whereby following the outlined
26107         steps, one would publish a tarball whose programs would report
26108         --version output not consistent with the package version number.
26109         This bug caused grep-2.15 to produce a grep program whose
26110         --version option made it print 2.14.56-1e3d rather than 2.15.
26111         * top/maint.mk (release): Making this target build "_version"
26112         ensures that the new version number is reflected in configure.
26114 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
26116         install-reloc: Support multi-binary installation.
26117         * build-aux/install-reloc: Support installing multiple programs in
26118         one invocation, as done by Automake starting with commit
26119         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
26120         Haible <bruno@clisp.org>, archived at
26121         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
26122         Reported by Sylvain <beuc@gnu.org>.
26124 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
26126         selinux-h: Really build without selinux when library is missing.
26127         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
26128         continue without selinux, as already told in the warning message.
26130 2013-10-21  Jim Meyering  <meyering@fb.com>
26132         regex: also remove dependency on HAVE_WCSCOLL
26133         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
26135 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
26137         xfreopen: Fix typo. s/frepoen/freopen/
26138         * lib/xfreopen.c: Fix description.
26139         * modules/xfreopen: Likewise.
26141 2013-10-21  Jim Meyering  <meyering@fb.com>
26143         regex: don't depend on wcscoll
26144         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
26145         It is no longer used.
26147 2013-10-20  Jim Meyering  <meyering@fb.com>
26149         error: add the printf attribute to a static function
26150         * lib/error.c (error_tail): Add the printf attribute, to placate
26151         gcc's -Werror=suggest-attribute=format option.
26153 2013-09-30  Jim Meyering  <meyering@fb.com>
26155         fpending, obstack, strerror-override: use pure+const function attrs
26156         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
26157         * lib/obstack.c (_obstack_allocated_p): Likewise.
26158         * lib/obstack.h (_obstack_memory_used): Likewise.
26159         (_obstack_memory_used): Likewise.
26160         * lib/strerror-override.h (strerror_override): Declare with
26161         the "const" attribute.
26163 2013-10-18  Eric Blake  <eblake@redhat.com>
26165         extern-inline: make safe for -Wundef usage
26166         Reported by Vladimir 'phcoder' Serbinenko in
26167         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
26168         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
26170 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
26172         mkfifo-tests, etc.: allow HP-UX 11.11 bug
26173         Problem reported by Daniel Richard G. in
26174         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
26175         * doc/posix-functions/mkfifo.texi (mkfifo):
26176         * doc/posix-functions/mkfifoat.texi (mkfifoat):
26177         * doc/posix-functions/mknod.texi (mknod):
26178         * doc/posix-functions/mknodat.texi (mknodat):
26179         Document the HP-UX 11.11 bug.
26180         * tests/test-mkfifo.h (test_mkfifo):
26181         Allow the HP-UX 11.11 bug.
26183 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
26185         acl: allow cross-compilation to Gentoo
26186         Problem reported by Gabriel Marcano in
26187         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
26188         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
26189         test only whether it links.
26191 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26193         mgetgroups: remove dependency on realloc-gnu
26194         The dependency violates the comment in realloc-gnu, which
26195         says that tests can't depend on realloc-gnu; some tests depend
26196         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
26197         Problem reported by Daniel Richard G. in
26198         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
26199         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
26200         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
26201         not realloc-gnu.
26203 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
26205         regex-tests: port to HP-UX 11.11
26206         Problem reported by Daniel Richard G. in
26207         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
26208         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
26210 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
26212         verify: document some 'assume' pitfalls
26213         * doc/verify.texi (Compile-time Assertions):
26214         Mention that 'assume (E)' can sometimes slow things down.
26215         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
26217 2013-10-10  Eric Blake  <eblake@redhat.com>
26219         strtoumax: fix typo in previous commit.
26220         * modules/strtoumax (Depends-on): Fix typo.
26221         * modules/strtoimax (Depends-on): Likewise.
26223 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
26225         strtoumax: port to Solaris 8
26226         This problem was introduced in the recent HP-UX patch.
26227         Reported by Tom G. Christensen in
26228         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
26229         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
26230         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
26232 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
26234         strtoimax, strtoumax: port to HP-UX 11.11
26235         Problem reported by Daniel Richard G. in
26236         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
26237         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
26238         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
26239         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
26240         REPLACE_STRTOUMAX.
26241         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
26242         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
26243         Replace the function if defined as a macro but not as a function.
26244         * modules/inttypes-incomplete (inttypes.h): Substitute
26245         REPLACE_STRTOUMAX.
26246         * modules/strtoumax (configure.ac): Replace strtoumax if
26247         REPLACE_STRTOUMAX.
26249 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
26251         strtoimax: port to HP-UX 11.11
26252         Problem reported by Daniel Richard G.
26253         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
26254         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
26255         they might clash with inttypes.h.
26257 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
26259         New module 'count-trailing-zeros'.
26260         * MODULES.html.sh: Mention it.
26261         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
26262         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
26263         * modules/count-trailing-zeros-tests:
26264         * tests/test-count-trailing-zeros.c:
26265         New files.
26267         count-leading-zeros: port to MSC; support types wider than 64 bits
26268         The ideas behind the MSC port are stolen from Emacs.
26269         * lib/count-leading-zeros.h:
26270         Don't include verify.h: it's no longer needed, as types wider than
26271         64 bits are now supported.
26272         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
26273         performance with MSC.  All uses changed.  Do not assume that TYPE
26274         has at most 64 bits.
26275         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
26276         All uses changed.  Fold the subtraction from 31 into the table.
26278         count-one-bits: port to MSC; support types wider than 64 bits
26279         The ideas behind the MSC port are stolen from Emacs.
26280         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
26281         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
26282         Don't include verify.h: it's no longer needed, as types wider than
26283         64 bits are now supported.
26284         (COUNT_ONE_BITS_GENERIC): New macro.
26285         (popcount_supported) [_MSC_VER]: New inline function.
26286         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
26287         performance with MSC.  All uses changed.  Do not assume that TYPE
26288         has at most 64 bits.
26289         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
26291 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
26293         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
26294         * lib/mountlist.c (read_file_system_list): fix leak of directory
26295         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
26297 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
26299         tests: improve diagnostic when an assertion fails
26300         * tests/macros.h (ASSERT): Report the assertion that failed.
26302 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
26304         verify: new macro 'assume'
26305         This is taken from Emacs, and should be generally useful.
26306         * doc/verify.texi (assume): Document it.
26307         * lib/verify.h (assume): New macro.
26308         (__has_builtin): Expand to 0 if not defined.
26310 2013-09-26  Eric Blake  <eblake@redhat.com>
26312         dup2, dup3: work around another cygwin crasher
26313         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
26314         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
26315         * tests/test-dup2.c (main): Likewise.
26316         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
26317         * lib/dup3.c (dup3): Likewise.
26318         * doc/posix-functions/dup2.texi (dup2): Document it.
26319         * doc/glibc-functions/dup3.texi (dup3): Likewise.
26321         getdtablesize: work around cygwin issue
26322         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
26323         * modules/getdtablesize (configure.ac): Build replacement.
26324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
26325         * modules/unistd (Makefile.am): Expose the witness.
26326         * lib/unistd.in.h (getdtablesize): Declare replacement.
26327         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
26328         * tests/test-getdtablesize.c (main): Test it.
26329         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
26331 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
26333         pmccabe2html: escaping of special characters
26334         Escape all '<', '>', and '&' in HTML output.
26335         * build-aux/pmccabe2html (html_fnc): Call gsub()
26336         instead of sub() to capture all '<', '>', and '&'.
26337         Neither of '<' and '>' is special in a regexp,
26338         so first arguments to gsub() are corrected. Also,
26339         in replacement strings, ampersand must be escaped.
26340         Finally, '&' must be handled first, then '<' and '>'.
26342 2013-09-24  Eric Blake  <eblake@redhat.com>
26344         manywarnings: enable nicer gcc warning messages
26345         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
26346         some -f options for optimal warnings.
26348 2013-09-21  Jim Meyering  <meyering@fb.com>
26350         timespec: use the new TIMESPEC_RESOLUTION in a few more places
26351         * lib/timespec-add.c (timespec_add): Also replace 999999999
26352         with TIMESPEC_RESOLUTION - 1.
26353         * lib/timespec-sub.c (timespec_sub): Likewise.
26355 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
26357         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
26358         Problem reported by Dagobert Michelsen via Eric Blake in
26359         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
26360         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
26361         not AC_COMPILE_IFELSE.
26363 2013-09-23  Eric Blake  <eblake@redhat.com>
26365         configmake: support new --runstatedir option
26366         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
26367         even if autoconf was too old to provide the command line option.
26368         * modules/configmake (Makefile.am): Propagate it to .h file.
26370 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26372         ctype, string: depend on extern-inline
26373         This is needed to complete the recent OS X fixes.
26374         Also, fix related documentation as suggested by Eric Blake.
26375         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
26376         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
26377         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
26378         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
26379         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
26380         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
26381         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
26382         * doc/posix-functions/toupper.texi:
26383         List the 'ctype' gnulib module.
26384         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
26385         * doc/posix-functions/strncpy.texi:
26386         List the 'string' gnulib module.
26387         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
26388         Add string.
26389         * modules/ctype, modules/string (Depends-on): Add extern-inline.
26391 2013-09-19  Pádraig Brady  <P@draigBrady.com>
26393         userspec: support optional parameters to parse_user_spec()
26394         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
26395         then avoid group processing and treat the full spec as a user.
26396         (parse_with_separator): Allow the USERNAME and GROUPNAME to
26397         be optional params (NULL), in which case they're ignored.
26399 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
26401         timespec: new function make_timespec, and new constants
26402         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
26403         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
26404         (make_timespec): New function.
26405         * lib/dtotimespec.c (dtotimespec):
26406         * lib/timespec-add.c (timespec_add):
26407         * lib/timespec-sub.c (timespec_sub):
26408         * lib/utimens.c (validate_timespec):
26409         * lib/utimensat.c (rpl_utimensat):
26410         Use these new constants and functions.
26412         stdio: OS X port of putc_unlocked + extern inline
26413         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
26414         * doc/posix-functions/putc_unlocked.texi:
26415         * doc/posix-functions/putchar_unlocked.texi:
26416         Document this portability problem.
26418         signal: OS X port of sigaddset etc. + extern inline
26419         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
26420         (sigismember): #undef on problematic Apple platforms.
26421         * doc/posix-functions/sigaddset.texi:
26422         * doc/posix-functions/sigdelset.texi:
26423         * doc/posix-functions/sigemptyset.texi:
26424         * doc/posix-functions/sigfillset.texi:
26425         * doc/posix-functions/sigismember.texi:
26426         Document this portability problem.
26428         extern-inline: do not always suppress extern inline on OS X
26429         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
26430         extern inline on Apple only if the particular compile-time
26431         configuration is known to have the problem.
26432         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
26433         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
26434         other Gnulib modules.
26436         extern-inline: document fixes for ctype and wctype macros
26437         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
26438         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
26439         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
26440         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
26441         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
26442         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
26443         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
26444         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
26445         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
26446         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
26447         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
26448         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
26449         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
26450         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
26451         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
26452         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
26453         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
26454         * doc/posix-functions/strncpy.texi:
26455         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
26456         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
26457         Document that Gnulib fixes portability problems with these
26458         functions on OS X 10.8 and earlier when called from plain inline
26459         or extern inline functions.
26461 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
26463         fflush, freadahead, fseeko: Fix for Android
26464         Suggested by Bruno Haible in:
26465         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
26466         * lib/stdio-impl.h: Use local __sfileext definition.
26468 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
26470         pmccabe2html: Portability to other awk versions.
26471         The functions systime() and strftime() are available
26472         in Gawk only.  Properly close two HTML-tags 'style'
26473         and 'span'.
26474         * build-aux/pmccabe2html (BEGIN): Store timing
26475         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
26476         systime() in HTML_COMMENT.
26477         (html_header): Correctly close tag 'style'.
26478         (END): Replace strftime() by CHRONOS_TIME.  Close
26479         tag 'span' correctly, not as 'div'.
26481 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
26483         getgroups: statement without effect
26484         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
26485         Change equality conditional to expected assignment.
26487 2013-09-09  Eric Blake  <eblake@redhat.com>
26489         glob: fix compilation
26490         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
26492 2013-09-07  Eric Blake  <eblake@redhat.com>
26494         glob: fix build for platforms without __THROW
26495         * lib/glob.in.h (__THROW): Add definition again.
26497 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
26499         regex-quote: fix buffer access out of bounds
26500         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
26501         * lib/regex-quote.c (regex_quote_spec_pcre):
26502         Fix typo that resulted in an out-of-bounds read.
26504 2013-09-04  Eric Blake  <eblake@redhat.com>
26506         glob: avoid -Wattribute warnings on glibc
26507         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
26508         __THROWNL, not __THROW, on static functions.
26509         * lib/glob.in.h (__THROW): Adjust...
26510         (__THROWNL): ...accordingly.
26512 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
26514         headers: check that _GL_INLINE_HEADER_BEGIN is defined
26515         Suggested by Bruce Korb in:
26516         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
26517         * doc/extern-inline.texi (extern inline):
26518         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
26519         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
26520         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
26521         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
26522         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
26523         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
26524         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
26525         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
26526         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
26527         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
26528         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
26529         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
26530         * lib/xtime.h:
26531         Check that _GL_INLINE_HEADER_BEGIN is defined.
26533 2013-08-29  Pádraig Brady  <P@draigBrady.com>
26535         bootstrap: remove the --version requirement from ancillary tools
26536         * build-aux/bootstrap (check_exists): A new refactored function to
26537         determine if a command exists.
26538         (find_tool): Use the new function which does not require the
26539         --version option to be supported.
26540         (check_versions): Use the new function.
26542 2013-08-26  Simon Josefsson  <simon@josefsson.org>
26544         gc: support HMAC-SHA256 and HMAC-SHA512.
26545         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
26546         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
26547         functions.
26548         (gc_hmac_md5): Use symbolic constant.
26549         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
26550         (gc_hmac_sha256, gc_hmac_sha512): New functions.
26551         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
26552         * m4/sha256.m4: Protect against empty expansion.
26553         * m4/sha512.m4: Likewise.
26554         * lib/hmac-sha256.c: New file.
26555         * lib/hmac-sha512.c: Likewise.
26556         * m4/gc-hmac-sha256.m4: Likewise.
26557         * m4/gc-hmac-sha512.m4: Likewise.
26558         * m4/gc-sha256.m4: Likewise.
26559         * m4/gc-sha512.m4: Likewise.
26560         * modules/crypto/gc-hmac-sha256: Likewise.
26561         * modules/crypto/gc-hmac-sha256-tests: Likewise.
26562         * modules/crypto/gc-hmac-sha512: Likewise.
26563         * modules/crypto/gc-hmac-sha512-tests: Likewise.
26564         * modules/crypto/hmac-sha256: Likewise.
26565         * modules/crypto/hmac-sha256-tests: Likewise.
26566         * modules/crypto/hmac-sha512: Likewise.
26567         * modules/crypto/hmac-sha512-tests: Likewise.
26568         * tests/test-gc-hmac-sha256.c: Likewise.
26569         * tests/test-gc-hmac-sha512.c: Likewise
26570         * tests/test-hmac-sha256.c: Likewise.
26571         * tests/test-hmac-sha512.c: Likewise
26573 2013-08-24  Daiki Ueno  <ueno@gnu.org>
26575         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
26576         of AC_CHECK_DECLS.
26578 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26580         selinux-at: omit unnecessary include
26581         * lib/selinux-at.c: Don't include dosname.h; not needed, since
26582         this source file doesn't use its macros, and subsidiary files that
26583         use the macros already include it.
26585 2013-08-21  Eric Blake  <eblake@redhat.com>
26587         d-ino: avoid false negative on symlink
26588         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
26589         Reported by Stephane Chazelas.
26591 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
26593         bootstrap: port to OpenBSD sed
26594         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
26595         does not interpret `-' as a file argument to mean stdin.
26597 2013-08-15  Eric Blake  <eblake@redhat.com>
26599         warnings: minor optimization
26600         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
26602         warnings: check -Wfoo rather than -Wno-foo
26603         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
26604         -Wno-, test if the compiler recognizes the positive form instead.
26606 2013-08-15  Karl Berry  <karl@gnu.org>
26608         * config/srclist-update: add option "doclicense" to placate
26609         pulling *.texi files from Emacs.  Write terse usage
26610         documentation at the top.
26612 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
26614         xvasprintf-tests: port to GCC with hardening flags
26615         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
26616         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
26617         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
26619 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
26621         fpending: port to recent Cygwin change to stdio_ext.h
26622         Reported by LRN in
26623         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
26624         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
26625         just declare __fpending unless it's a macro.
26626         A duplicate decl shouldn't hurt.
26627         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
26628         call compiles and links, instead of separately checking for
26629         decl and lib function.
26630         * modules/fpending (configure-ac):
26631         Adjust to fpending.m4's renaming of shell variable.
26633 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26635         sys_time: port to OpenBSD
26636         * lib/sys_time.in.h: Simply delegate to the system's header
26637         in the BSDish cases as well.  Problem reported by Mike Miller in
26638         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
26639         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
26640         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
26641         wider than time_t.
26643 2013-08-09  Pádraig Brady  <P@draigBrady.com>
26645         bootstrap: support checksum utils having -c but not --status
26646         * build-aux/bootstrap: Only look for sha1sum if updating po files.
26647         Add sha1 to the list of supported checksum utils since it's now
26648         supported through adjustments below.
26649         (update_po_files): Remove the use of --status
26650         in a way that will suppress all error messages, but since this is
26651         only used to minimize updates, it shouldn't cause an issue.
26652         Exit early if there is a problem updating the po file checksums.
26653         (find_tool): Remove the check for --version support as this
26654         is optional as per commit 86186b17.  Don't even check for the
26655         presence of the command as if that is needed, it's supported
26656         through configuring prerequisites in bootstrap.conf.
26657         Prompt that when a tool isn't found, one can define an environment
26658         variable to add to the hardcoded search list.
26660 2013-08-05  Jim Meyering  <meyering@fb.com>
26662         regex: port to non-glibc/lock-using systems
26663         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
26664         system with GNULIB_LOCK would fail due to absence of the
26665         included "glthread/lock.h".  This would affect any package
26666         for which the "lock" module is used only by the regex module,
26667         and not explicitly used.
26668         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
26669         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
26670         Add a dependency on the "lock" module.
26672 2013-07-20  Daiki Ueno  <ueno@gnu.org>
26674         localecharset: make locale_charset thread-safe on Mac OS X
26675         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
26676         instead of MB_CUR_MAX.
26678 2013-07-20  Daiki Ueno  <ueno@gnu.org>
26680         gettext: update to version 0.18.3
26681         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
26682         require AC_PROG_SED to allow user to specify custom sed command when
26683         generating en@quot PO file.
26685 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
26687         bootstrap: use correct source when copying build-aux files
26688         * build-aux/bootstrap (gnulib_extra_files): This variable is
26689         relative to upstream gnulib layout, not downstream.
26691 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
26693         tmpdir: fix bug in VMS port
26694         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
26695         See Steven M. Schweda in
26696         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
26698 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
26700         tmpdir: port to VMS, to // != /, and to long dirs
26701         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
26702         __secure_getenv, so that we're more like the glibc version.
26703         All uses changed.
26704         (path_search): Don't put slash after directory if __VMS.
26705         Problem reported by Steven M. Schweda in
26706         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
26707         Simplify code to add slash; no need for a loop.
26708         Do not remove trailing slash from "//".
26709         Do not assume dlen <= INT_MAX.
26711 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
26713         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
26714         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
26715         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
26716         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
26718         accept4, dup3, pipe2: port to Cygwin
26719         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
26720         * lib/accept4.c (accept4) [O_BINARY]:
26721         * lib/dup3.c (dup3) [O_BINARY]:
26722         * lib/pipe2.c (pipe2) [O_BINARY]:
26723         Use set_binary_mode, not setmode.
26724         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
26725         * modules/binary-io (Depends-on): Remove module indicator.
26726         These last two bits undo the previous change to pipe2 and binary-io.
26728 2013-07-09  Pádraig Brady  <P@draigBrady.com>
26730         mountlist: add support for deallocating returned list entries
26731         * lib/mountlist.c (free_mount_entry): A new exported function
26732         to deallocate a mount list entry.
26733         (read_file_system_list): Refactor to use the new deallocation function.
26734         Suggested by Anton Ovchinnikov.
26736 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
26738         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
26739         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
26740         * lib/stdalign.in.h (_Alignas, _Alignof):
26741         Port to FreeBSD 9.1, and to C11 and C++11.
26742         (_Alignas): Also support ICC.
26743         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
26744         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
26746 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26748         fnmatch: don't goto over declaration
26749         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
26750         undefined behavior for goto over a declaration.
26751         Problem reported by Charlie Brown in
26752         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
26754         pipe2: decouple from binary-io a bit
26755         This is for Emacs, which needs pipe2 but not binary-io.
26756         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
26757         * modules/binary-io (Depends-on): Add module indicator.
26759 2013-07-03  Eric Blake  <eblake@redhat.com>
26761         mgetgroups: relax license to LGPLv2+
26762         * modules/getugroups (License): Change from GPLv3+.
26763         * modules/mgetgroups (License): Likewise.
26764         * modules/getgroups (License): Change from LGPLv3+.
26766         xalloc-oversized: relax license to LGPLv2+
26767         * modules/xalloc-oversized (License): Change from GPLv3+.
26769         nproc: relax license to LGPLv2+
26770         * modules/nproc (License): Change from LGPLv3+.
26772         bootstrap: honor --no-git
26773         * build-aux/bootstrap: Don't even try to use git when user is
26774         pointing to a static checkout.
26776 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
26778         ignore-value: port to gcc -pedantic
26779         * lib/ignore-value.h (ignore_value):
26780         Port to gcc -pedantic, by using __extension__.
26781         Reindent as per usual gnulib style nowadays.
26782         Simplify GCC version check.
26784 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
26786         extern-inline: port to gcc -std=c89
26787         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
26788         Do not use __gnu_inline__ if pedantic and pre-C99.
26790 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
26792         doc: document extern-inline
26793         * doc/extern-inline.texi: New file.
26794         * doc/gnulib.texi (alloca-opt): Include it.
26795         * m4/extern-inline.m4: Move some comments to documentation,
26796         and others closer to what they describe.
26798         doc: chatter less
26799         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
26800         (updated-stamp): Use it.  This causes 'make' to output just
26801         one file name rather than zillions.
26803         fflush, fseeko: port to musl cross-compiles
26804         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
26805         on some implementation that (1) is not known to be buggy,
26806         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
26807         cross-compiled to so we can't easily check for lack of
26808         conformance.  This is for cross-compiling to musl.
26809         Reported by Rich Felker in
26810         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
26811         * m4/fclose.m4 (gl_FUNC_FCLOSE):
26812         * m4/fflush.m4 (gl_FUNC_FFLUSH):
26813         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
26814         Adjust to above change.
26815         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
26816         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
26817         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
26818         known not to work, or unknown.
26820 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
26822         msvc-inval: port to mingw-w64
26823         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
26824         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
26825         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
26827 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
26829         getcwd-lgpl: port to Tru64
26830         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
26831         Problem reported by Steven M. Schweda in
26832         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
26834         tests: port large-fd POSIX spawn tests to OS X
26835         Problem reported by Daiki Ueno in
26836         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
26837         * tests/test-posix_spawn_file_actions_addclose.c:
26838         * tests/test-posix_spawn_file_actions_adddup2.c:
26839         * tests/test-posix_spawn_file_actions_addopen.c:
26840         Include <limits.h>, for OPEN_MAX, if available.
26841         (big_fd): New static function.
26842         (main): Use it.
26844 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
26846         tests/nap.h: use an adaptive delay to avoid ctime update issues
26847         The recent change in nap.h (5191133e) decreased the probability of lost
26848         races to about a third, however such problems could still be observed
26849         in virtual machines and openSUSE's OBS.
26850         Before, nap() detected the needed time once empirically and then used
26851         that delay (together with a small correction multiplier) in further
26852         calls.  This problem has been reported and discussed several times,
26853         including guesses about possible kernel issues:
26854         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
26855         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
26856         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
26857         http://bugs.gnu.org/12820
26858         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
26859         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
26860         Now, nap() avoids the race alltogether by verifying on a reference
26861         file whether a timestamp difference has happened.
26862         * tests/nap.h (nap_fd): Define file descriptor variable for the
26863         witness file.
26864         (nap_works): Change return value to bool.  Change passing
26865         the old file's status by value instead of by reference as this function
26866         does no longer update that timestamp; rename the function argument from
26867         st to old_st.  Remove the local variables cdiff and mdiff because that
26868         function now returns true/false instead of the precise delay.
26869         (guess_delay): Remove function.
26870         (clear_tmp_file): Add new function to close and unlink the witness file.
26871         (nap): Instead of re-using the delay which has been calculated during
26872         the first call, avoid the race by actually verifying that a timestamp
26873         difference can be observed on the current file system.  Use an adaptive
26874         approach for the delay to minimize execution time.  Assert that the
26875         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
26876         = 2^31 - 1 = 2.1s.
26877         Use atexit to call clear_tmp_file when the process terminates.
26879 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
26881         sig2str: port to C++
26882         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
26883         Reported by Daniel J Sebald in
26884         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
26886 2013-05-30  Eric Blake  <eblake@redhat.com>
26888         docs: mention cygwin shortcoming in <sys/un.h>
26889         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
26891         vasnprintf: silence mingw compiler warning
26892         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
26894 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
26896         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
26897         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
26898         This fixes a porting bug I recently reintroduced in regex, and
26899         some other instances that I discovered while testing the fix.
26900         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
26901         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
26902         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
26903         with an empty argument if this is a pedantic pre-C99 GCC.
26904         * lib/verify.h: Do not use _Static_assert if this is a pedantic
26905         pre-C11 GCC.
26907         regex: adapt to locking regime instead of depending on pthread
26908         Instead of depending on pthread, adapt to whatever thread
26909         modules are in use.  Problem reported by Ludovic Courtès in
26910         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
26911         and by Mats Erik Andersson in
26912         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
26913         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
26914         Support either the 'lock' module, or the 'pthread' module, or
26915         no module.
26916         (lock_lock, lock_unlock): New macros.
26917         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
26918         * modules/lock, modules/pthread (configure.ac): Add module indicator.
26919         * modules/regex (Depends-on): Remove pthread.
26921 2013-05-22  Eric Blake  <eblake@redhat.com>
26923         getgroups: document portability issues
26924         * doc/glibc-functions/initgroups.texi (initgroups): Mention
26925         multithread safety.
26926         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
26927         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
26928         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
26929         getugroups.
26930         * doc/posix-functions/getgroups.texi (getgroups): Mention
26931         multithread safety and mgetgroups.
26933 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
26935         test-lchown, test-chown: also skip test if chown fails with EPERM
26936         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
26937         skip this test, to handle FAT file systems.
26938         * tests/test-chown.h (test_chown): Likewise.
26940 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
26942         regex: fix dfa race in multithreaded uses
26943         Problem reported by Ludovic Courtès in
26944         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
26945         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
26946         New macros.  All uses of __libc_lock_define, __libc_lock_init
26947         changed to use the first two of these.
26948         (__libc_lock_lock, __libc_lock_unlock): New macros, for
26949         non-glibc platforms.
26950         (struct re_dfa_t): Define the lock unconditionally.
26951         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
26952         '#ifdef _LIBC"s.
26953         * modules/regex (Depends-on): Add pthread, if we use the
26954         included regex.
26956         * lib/regcomp.c: Do actions that are not needed for glibc,
26957         but may be needed elsewhere.
26958         (regfree, re_compile_internal): Destroy the lock.
26959         (re_compile_internal): Check for lock-initialization failure.
26961         malloca: port to compilers that reject size-zero arrays
26962         This fixes a bug introduced in my previous patch.
26963         * lib/malloca.c (struct preliminary_header): Use an int
26964         rather than a character array of size int; that's simpler.
26965         (struct header): Remove, replacing with ...
26966         (union header): New type.  This avoids the need for declaring a
26967         character array of size zero, which is not allowed on some platforms.
26968         All uses changed.
26970 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
26972         parse-datetime, tests: don't use "string" + int
26973         Recent versions of 'clang' complain about C source code that
26974         uses expressions of the form '"string literal" + integer',
26975         I guess on the theory that it's confusing for readers who are
26976         used to C++.  On those grounds I suppose it's OK to make this
26977         minor style change.
26978         * lib/parse-datetime.y (parse_datetime):
26979         * tests/test-fchdir.c (main):
26980         * tests/test-snprintf-posix.h (test_function):
26981         * tests/test-snprintf.c (main):
26982         * tests/test-vasnprintf-posix.c (test_function):
26983         * tests/test-vasnprintf.c (test_function):
26984         * tests/test-vsnprintf.c (main):
26985         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
26986         Rewrite '"str" + E' to '&"str"[E]'.
26988 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
26990         argmatch: port to C++
26991         * lib/argmatch.h [__cplusplus]: Add extern "C".
26993         argp: typo fix
26994         * lib/argp-help.c: Typo in comment.
26996 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
26998         manywarnings: update for GCC 4.8.0
26999         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
27000         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
27001         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
27002         -Wmissing-noreturn, as they are duplicates of other warnings.
27003         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
27004         was documented to be flaky in earlier versions of GCC.
27006         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
27007         * tests/test-spawn.c (main):
27008         * tests/test-sys_socket.c (main):
27009         * tests/test-sys_wait.c (main):
27010         Don't have a switch value that isn't covered by a case.
27012         getaddrinfo-tests: port --enable-gcc-warnings to clang
27013         * tests/test-getaddrinfo.c (simple):
27014         Avoid casts from looser to stricter-aligned pointers.
27016         thread: port --enable-gcc-warnings to clang
27017         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
27018         Include <signal.h>, to pacify a warning about pthread_sigmask.
27020         stdio: use __REDIRECT for fwrite, fwrite_unlocked
27021         * lib/stdio.in.h (fwrite):
27022         When working around bug 11959, use __REDIRECT rather than '#define
27023         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
27024         fix the -Wunused-value issue with clang, and it works with GCC too.
27025         Problem with targeting reported by Eric Blake in
27026         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
27027         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
27028         debugging the fwrite issue.
27030         stdio: port --enable-gcc-warnings to clang
27031         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
27032         since the GCC workaround for fwrite does not pacify clang.
27034         sig2str: port --enable-gcc-warnings to clang
27035         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
27037         obstack: port --enable-gcc-warnings to clang
27038         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
27039         Avoid casts from looser to stricter-aligned pointers.
27041         memchr2: port --enable-gcc-warnings to clang
27042         * lib/memchr2.c (memchr2):
27043         Avoid casts from looser to stricter-aligned pointers.
27045         mbsstr: port --enable-gcc-warnings to clang
27046         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
27047         Avoid casts from looser to stricter-aligned pointers.
27049         malloca: port --enable-gcc-warnings to clang
27050         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
27051         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
27053         inttostr: port --enable-gcc-warnings to clang
27054         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
27056         warnings: port to clang
27057         Problem reported by Daniel P. Berrange via Eric Blake in
27058         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
27059         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
27060         (gl_WARN_ADD): Use it.
27062 2013-05-11  Jim Meyering  <meyering@fb.com>
27064         quotearg: do not read beyond end of buffer
27065         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
27066         end of an ARG for which no length was specified.  With an N-byte
27067         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
27068         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
27069         via coreutils' misc/sort-debug-keys.sh test and detected by running
27070         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
27071         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
27072         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
27073         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
27074         characters correctly."
27076 2013-05-11  Daiki Ueno  <ueno@gnu.org>
27078         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
27079         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
27080         compilation target is Mac OS X 10.6.
27081         Problem reported by parafin and Andoni Morales in
27082         <http://savannah.gnu.org/bugs/?37844> and
27083         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
27085 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
27087         mkdir-p: remove assumptions about umask and mode
27088         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
27089         umask is 0, or that MODE is a subset of MODE_BITS.
27091 2013-05-10  Eric Blake  <eblake@redhat.com>
27093         maint.mk: catch more abuse of HAVE_DECL in syntax-check
27094         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
27096 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
27098         deps: require Automake >= 1.9.6 in generated Makefile fragments
27100         That is the same minimal version required in the DEPENDENCIES file.
27101         Moreover, the old code generated a requirement of Automake >= 1.5,
27102         and that is an insanely outdated version.
27104         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
27105         * tests/havelib/rpathlx/Makefile.am: Likewise.
27106         * tests/havelib/rpathly/Makefile.am: Likewise.
27107         * tests/havelib/rpathlyx/Makefile.am: Likewise.
27108         * tests/havelib/rpathlz/Makefile.am: Likewise.
27109         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
27110         * tests/havelib/rpathx/Makefile.am: Likewise.
27111         * tests/havelib/rpathy/Makefile.am: Likewise.
27112         * tests/havelib/rpathz/Makefile.am: Likewise.
27114 2013-05-08  Eric Blake  <eblake@redhat.com>
27116         bootstrap: AC_INIT may have more than four parameters
27117         * build-aux/bootstrap (extract_package_name): Correctly extract
27118         non-empty tarname field.  Avoid range in regex.
27119         Based on a report by Sami Kerola <kerolasa@iki.fi>.
27121 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
27123         qacl: port to MS-Windows port of GNU Emacs
27124         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
27125         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
27126         port of GNU Emacs.  Problem reported by Eli Zaretskii in
27127         <http://bugs.gnu.org/14295#14>.
27129 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
27131         acl: include quote.h
27132         * lib/copy-acl.c: Include quote.h.
27133         * lib/set-acl.c: Likewise.
27135 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
27137         fchownat, renameat, unlinkat: update statat dependencies
27138         These modules use statat and lstatat, not fstatat; so depend on
27139         the statat module, which was split out recently from fstatat.
27140         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
27141         * modules/renameat: Likewise.  Also delete fstat.
27142         URL: http://bugs.gentoo.org/468790
27144 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
27146         Assume gnulib is checked out from Git, not CVS
27148         In fact, access to the gnulib repository through CVS has been
27149         disabled, or more precisely, got broken and was never restored; see:
27150         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
27152         Note that support for CVS is not removed completely and unthinkingly
27153         by this change: only support for CVS checkouts of gnulib itself is
27154         removed.  For example, the 'bootstrap' script still cater to .cvsingore
27155         files and CVS directories, for the benefit of those poor gnulib clients
27156         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
27158         * gnulib-tool: Simplify accordingly.
27159         * posix-modules: Likewise.
27160         * MODULES.html.sh: Likewise.
27161         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
27162         repository.
27163         * doc/gnulib-intro.texi: Likewise.
27164         * doc/gnulib-readme.texi: Likewise.
27165         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
27166         sample '.gitignore' file rather than a sample '.cvsignore'.
27167         * NEWS: Update.
27168         * m4/extensions.m4: While at it, remove a comment mistakenly referring
27169         to "CVS Autoconf" rather than "git Autoconf".
27171 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
27173         utimensat-tests, etc.: try to fix some races
27174         Problem reported by Bernhard Voelker in
27175         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
27176         I don't know whether this patch fixes that race condition, but it
27177         fixes *some* race conditions, so it should be a win.
27178         * modules/chown-tests (Depends-on):
27179         * modules/fchownat-tests (Depends-on):
27180         * modules/fdutimensat-tests (Depends-on):
27181         * modules/futimens-tests (Depends-on):
27182         * modules/lchown-tests (Depends-on):
27183         * modules/stat-time-tests (Depends-on):
27184         * modules/utimens-tests (Depends-on):
27185         * modules/utimensat-tests (Depends-on):
27186         Depend on nanosleep, not usleep.
27187         * modules/chown-tests (test_chown_LDADD):
27188         * modules/lchown-tests (test_lchown_LDADD):
27189         * modules/stat-time-tests (test_stat_time_LDADD):
27190         New macro.
27191         * modules/fchownat-tests (test_fchownat_LDADD):
27192         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
27193         * modules/futimens-tests (test_futimens_LDADD):
27194         * modules/utimens-tests (test_utimens_LDADD):
27195         * modules/utimensat-tests (test_utimensat_LDADD):
27196         Add $(LIB_NANOSLEEP).
27197         * modules/stat-time-tests (Files): Add tests/nap.h.
27198         * tests/nap.h: Include <limits.h>, for INT_MAX.
27199         (lt_mtime): Remove.
27200         (diff_timespec): New function.
27201         (get_stat): Rename from get_mtime.  All callers changed.
27202         (nap_works): Determine the needed delay by inspecting the
27203         file system's timestamp jumps; this should be more reliable.
27204         Look at both mtime and ctime, and take the maximum of the two jumps.
27205         (nap_works, guess_delay):
27206         Return a nanosecond count, not a microsecond count.
27207         All callers changed.
27208         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
27209         failure.
27210         (nap): Multiply the guess by 1.125, to accommodate the case where
27211         the file system's clock is a bit slower than nanosleep's clock.
27212         * tests/test-stat-time.c (BASE): New macro.
27213         Include nap.h.
27214         (nap): Remove; nap.h now defines this.  This removes a duplicate
27215         implementation of 'nap'.
27217         utimens, utimensat: work around Solaris UTIME_OMIT bug
27218         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
27219         Linux kernel 2.6.32 does.  Work around it in the same way.
27220         * doc/posix-functions/futimens.texi (futimens):
27221         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
27222         * lib/utimens.c (fdutimens, lutimens):
27223         * lib/utimensat.c (rpl_utimensat): Work around the bug.
27225         gettext: now it's your responsibility to add -I$(top_builddir)/intl
27226         Formerly, it was your responsibility to do this for all Makefile.ams
27227         other than Gnulib's.  Now it's your responsibility to do it for
27228         Gnulib's Makefile.am, too.
27229         * NEWS: Document this.
27230         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
27232         acl: include errno.h to get errno
27233         Reported by Daiki Ueno in
27234         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
27235         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
27237 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
27239         tests: don't assume getdtablesize () <= 10000000
27240         * modules/cloexec-tests:
27241         * modules/dup2-tests:
27242         * modules/dup3-tests:
27243         * modules/nonblocking-tests:
27244         * modules/posix_spawn_file_actions_addclose-tests:
27245         * modules/posix_spawn_file_actions_adddup2-tests:
27246         * modules/posix_spawn_file_actions_addopen-tests:
27247         * modules/unistd-safer-tests:
27248         Depend on the getdtablesize module.
27249         * tests/test-cloexec.c:
27250         * tests/test-dup-safer.c:
27251         * tests/test-dup2.c:
27252         * tests/test-dup3.c:
27253         * tests/test-fcntl.c:
27254         * tests/test-nonblocking.c:
27255         * tests/test-posix_spawn_file_actions_addclose.c:
27256         * tests/test-posix_spawn_file_actions_adddup2.c:
27257         * tests/test-posix_spawn_file_actions_addopen.c:
27258         Don't assume getdtablesize () <= 10000000.
27260 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
27262         extern-inline: work around bug in Sun c99
27263         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
27264         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
27266 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
27268         qacl: new module, broken out from the acl module
27269         This is for GNU Emacs, which wants the acl functions but does
27270         not want 'error' invoked when they fail.
27271         * lib/acl-internal.h: Do not include error.h, quote.h.
27272         (ENOSYS, ENOTSUP): Remove; no longer needed.
27273         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
27274         * lib/acl.h: Include <stdbool.h>.
27275         (acl_errno_valid): New function.
27276         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
27277         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
27278         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
27279         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
27280         (ACL_INTERNAL_INLINE): Remove; no longer needed.
27281         * lib/file-has-acl.c (file_has_acl):
27282         * lib/qcopy-acl.c (qcopy_acl):
27283         * lib/qset-acl.c (qset_acl):
27284         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
27285         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
27286         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
27287         lib/file-has-acl.c, m4/acl.m4 to qacl module.
27288         Add lib/set-acl.c.
27289         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
27290         Add qacl.
27291         (configure.ac): Move gl_FUNC_ACL to qacl module.
27292         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
27293         Rename set-mode-acl.c to set-acl.c.
27294         * lib/acl-errno-valid.c: New file.
27295         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
27296         copy_acl function remains in copy-acl.c.
27297         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
27298         (_): Remove; not needed.
27299         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
27300         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
27301         * modules/qacl: New file, moved from the old modules/acl.
27302         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
27303         Remove set-mode-acl.c, copy-acl.c.
27304         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
27306         alignof, intprops, malloca: port better to IBM's C compiler
27307         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
27308         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
27309         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
27311 2013-04-25  Daiki Ueno  <ueno@gnu.org>
27313         wctype-h: fix gettext link error on mingw
27314         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
27315         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
27316         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
27317         rpl_towupper and rpl_towupper.
27319 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
27321         regex-tests, regex: allow glibc re_search behavior
27322         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
27323         re_search input data to make the multi-character collating element
27324         in it clearly visible, and treat re_search return code 0 as valid.
27325         * m4/regex.m4 (gl_REGEX): Likewise.
27327 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
27329         stdalign: doc fix
27330         * doc/posix-headers/stdalign.texi (stdalign.h):
27331         Gnulib doesn't support '_Alignof expr'.
27333 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
27335         stdalign: port to stricter ISO C11
27336         ISO C11 says that _Alignof's operand must be a parenthesized type.
27337         Problem reported by Eli Zaretskii in
27338         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
27339         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
27340         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
27342 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
27344         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
27345         Problem reported by Marco Atzeri in
27346         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
27347         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
27348         Simply delegate to the system <sys/select.h> in this case too.
27349         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
27350         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
27351         be needed on Solaris either.
27352         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
27353         Simply delegate to the system <sys/time.h> in this case.
27355 2013-03-19  Karl Berry  <karl@gnu.org>
27357         * build-aux/gnupload: check for erroneous (with gnupload) use of
27358         ftp-upload.gnu.org, tweak help.
27360 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
27362         copy-file, rpmatch: fix problems found by cppcheck
27363         Reported by Arno Onken in
27364         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
27365         * lib/rpmatch.c (try): Fix memory leak.
27366         * lib/copy-file.c: Include "ignore-value.h".
27367         (qcopy_file_preserving): Ignore chown value.
27368         * modules/copy-file (Depends-on): Add ignore-value.
27370 2013-01-27  Jim Meyering  <jim@meyering.net>
27372         prefix-gnulib-mk: give better diagnostics
27373         * build-aux/prefix-gnulib-mk: Don't just "die".
27374         Give better diagnostics upon failure.
27376 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
27378         putenv: port to Solaris 10
27379         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
27380         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
27381         is not what is wanted here.
27382         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
27383         declaration, not for its existence.
27385 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
27387         mktime: fix configure typo
27388         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
27390 2013-03-12  Eric Blake  <eblake@redhat.com>
27392         regex-tests: skip UTF-8 test on mingw
27393         * modules/regex-tests (Depends-on): Add localcharset.
27394         * tests/test-regex.c (main): Use it to skip test on mingw.
27396 2013-03-11  Eric Blake  <eblake@redhat.com>
27398         tests: make it easier to bypass alarm time in debugger
27399         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
27400         * tests/test-memmem.c (main): Likewise.
27401         * tests/test-passfd.c (main): Likewise.
27402         * tests/test-ptsname.c (main): Likewise.
27403         * tests/test-ptsname_r.c (main): Likewise.
27404         * tests/test-strcasestr.c (main): Likewise.
27405         * tests/test-strstr.c (main): Likewise.
27407         regex: port to mingw's recent addition of undeclared alarm
27408         * doc/posix-functions/alarm.texi (alarm): Document that alarm
27409         exists but still doesn't work in newer mingw.
27410         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
27411         not existence.  Ensure SIGALRM is not trapped.
27412         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
27413         * m4/regex.m4 (gl_REGEX): Likewise.
27414         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
27415         * tests/test-regex.c (main): Use correct probe for alarm.
27417         putenv: avoid compilation warning on mingw
27418         * lib/putenv.c (_unsetenv): Protect variable declaration.
27419         (putenv): Fix indentation.
27421 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
27423         unistd: don't prevent Tru64 Unix from using gnulib strtod.
27424         * lib/unistd.in.h: be careful not to include un-needed system
27425         stdlib.h from here, because that prevents gnulib stdlib.h from
27426         defining rpl_strtod correctly.
27428 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
27430         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
27431         changesets, but for the 'precision 0' test.
27432         * tests/test-vasprintf-posix.c (test_function): Don't insist on
27433         round-to-even, since POSIX says rounding is implementation-defined
27434         and OS X 10.8.2 rounds 1.51 to 1 here.
27436         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
27437         changeset.
27438         * tests/test-vasprintf-posix.c (test_function): Don't insist on
27439         round-to-even, since POSIX says rounding is implementation-defined
27440         and OS X 10.8.2 rounds 1.5 to 1 here.
27442 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
27444         vasnprintf-posix-tests: allow rounding 1.5 to 1
27445         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
27446         round-to-even, since POSIX says rounding is implementation-defined
27447         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
27448         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
27450         bootstrap: port to FreeBSD
27451         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
27452         that treat '--' differently.  Reported by Mats Erik Andersson in
27453         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
27455 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
27457         regex: rename remaining __attribute calls to __attribute__.
27458         2012-02-25 changed definition of __attribute, but left some uses
27459         unchanged, preventing compilation of regex module on most non-gcc
27460         environments.
27461         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
27462         (lookup_collation_sequence_value, build_range_exp)
27463         (build_collating_symbol): Set attributes with newly renamed
27464         __attribute__ decorator.
27465         * lib/regex_internal.c (re_string_peek_byte_case)
27466         (re_node_set_compare, re_node_set_contains): Likewise.
27467         * lib/regexec.c (acquire_init_state_context): Likewise.
27469 2013-03-06  Bruno Haible  <bruno@clisp.org>
27471         execute: Revert last change, but use a different condition.
27472         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
27473         on Windows.
27475 2013-03-05  Eric Blake  <eblake@redhat.com>
27477         execute: drop dead code
27478         * lib/execute.c (nonintr_close, nonintr_open): Delete.
27480 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
27482         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
27483         * m4/non-recursive-gnulib-prefix-hack.m4
27484         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
27485         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
27486         <http://bugs.gnu.org/10305#237>.
27488 2013-03-04  Eric Blake  <eblake@redhat.com>
27490         test-getsockopt: avoid compiler warning
27491         * tests/test-getsockopt.c (includes): Ensure close is declared.
27493 2013-03-02  Bruno Haible  <bruno@clisp.org>
27495         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
27496         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
27498 2013-03-02  Bruno Haible  <bruno@clisp.org>
27500         gettext: Update to version 0.18.2.
27501         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
27502         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
27503                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
27505 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
27507         regex: merge patches from libc
27509         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
27510         * lib/regex_internal.h (__attribute__): Rename from __attribute.
27511         All uses changed.
27512         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
27513         (re_string_wchar_at, re_string_elem_size_at):
27514         Mark function as possibly unused.
27516         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
27517         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
27518         elements compare against the byte sequence of it, not its name.
27520 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
27522         putenv: port better to native Windows
27523         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
27524         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
27525         (_unsetenv): Use _putenv if available.
27526         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
27527         a bit less likely to cause damage.
27528         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
27529         Fix the wrong value with SetEnvironmentVariable.
27530         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
27531         code better.
27533 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27535         regex: ignore old-style-definition warnings
27536         * lib/regex.c: Add pragma to ignore these warnings.
27537         Problem reported for GNU tar by Pavel Raiskup.
27539 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
27541         getcwd: support coreutils better
27542         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
27543         but this might not be correct in coreutils, which disables
27544         the raw decl checks.  Problem reported by Nagendra in
27545         <http://bugs.gnu.org/10305#192>.
27546         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
27547         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
27548         Test the getcwd function, not any macro, since getcwd.c wants the
27549         function.
27550         * m4/getcwd.m4 (gl_FUNC_GETCWD):
27551         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
27552         compile, as might happen if there's a macro but no function.
27554         strtod: support coreutils better
27555         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
27556         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
27557         disables the raw decl checks.  This assumes there is an underlying
27558         strtod, but that's a safe assumption these days.
27559         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
27561         mountlist: port to HP NonStop
27562         Reported by Joachim Schmitz in
27563         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
27564         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
27565         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
27567 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
27569         extern-inline: avoid compilation error with HP-UX cc
27570         Reported by Richard Lloyd in
27571         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
27572         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
27573         Suppress extern inline with HP-UX cc.  This should be safe,
27574         though it may hurt performance.  Perhaps someone with some HP-UX
27575         experience can come up with a higher-performance fix.
27577 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
27579         putenv: fix heap corruption with mixed putenv/_putenv
27580         Problem reported by Michael Goffioul in
27581         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
27582         * lib/putenv.c (putenv) [HAVE__PUTENV]:
27583         Rely on _putenv to allocate the new environment.
27584         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
27585         * modules/putenv (configure.ac): Use it.
27587 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
27589         unsetenv etc.: port to Solaris 11 + GNU Emacs
27590         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
27591         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
27592         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
27593         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
27594         idea but is too painful to fix right now), and without this gnulib
27595         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
27596         compiling unsetenv.c on Solaris 11.  Fix the problem for
27597         unsetenv.c, and fix other similar occurrences.
27599 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
27601         secure_getenv: fix C++ declaration typo
27602         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
27603         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
27604         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
27606 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
27608         careadlinkat: stop exporting careadlinkatcwd
27609         Only Emacs used it directly, and Emacs no longer needs it.
27610         * NEWS: Document this simplification.
27611         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
27612         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
27613         for readlink.
27614         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
27615         Don't include stdlib.h; no longer needed.
27616         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
27617         * lib/relocwrapper.c: Adjust comment to match new dependencies.
27618         * modules/areadlink (Depends-on): Add readlink.
27619         (Maintainer): Add self.
27620         * modules/careadlinkat (Depends-on): Remove readlink.
27622         extensions: port better to HP-UX
27623         This is merged from git Autoconf.
27624         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
27625         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
27626         so that it's compatible with the value used when compiling.
27628         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
27629         Problem reported by Mats Erik Andersson in
27630         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
27631         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
27632         openpty function exists, not merely when we intend to replace it.
27633         This corrects the 2013-01-31 patch, which mistakenly defined
27634         HAVE_OPENPTY even on hosts that lacked it.
27636 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27638         secure_getenv: fix include typo
27639         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
27641         secure_getenv: port better to FreeBSD and Solaris
27642         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
27643         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
27644         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
27645         This works better on BSDish platforms.
27646         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
27647         Test for issetugid if __secure_getenv is missing.
27649 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
27651         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
27652         Some of these changes are merged in from git Autoconf.
27653         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
27654         When deciding whether to define _XOPEN_SOURCE, inspect the
27655         preprocessor macro __hpux instead of the more-heavyweight
27656         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
27657         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
27658         as the key for __EXTENSIONS__.
27660         unistd: avoid namespace pollution on non-glibc systems
27661         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
27662         This avoids namespace pollution on non-glibc systems, by causing
27663         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
27664         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
27665         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
27667 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
27669         tmpdir: use secure_getenv
27670         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
27671         Define to secure_getenv, not getenv.
27672         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
27673         as that's now secure_getenv's job.
27674         * modules/tmpdir (Depends-on): Add secure_getenv.
27676         tempname: use secure_getenv
27677         * lib/tempname.c (__secure_getenv) [!_LIBC]:
27678         Define to secure_getenv, not getenv.
27679         * modules/tempname (Depends-on):
27680         Add secure_getenv.
27682         secure_getenv: new module
27683         * MODULES.html.sh (Extra functions based on ANSI C 89):
27684         Add secure_getenv.
27685         * doc/glibc-functions/secure_getenv.texi: New file.
27686         * doc/gnulib.texi: Include it.
27687         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
27688         New files.
27689         * lib/stdlib.in.h (secure_getenv): New decl.
27690         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
27691         * modules/stdlib (stdlib.h):
27692         Add secure_getenv checks.
27694 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
27696         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
27697         Reported for OS X 10.8.2 by Assaf Gordon in
27698         <http://bugs.gnu.org/13516>.
27699         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
27700         !HAVE_OPENAT && !HAVE_FDOPENDIR.
27701         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
27702         so that they can be kept in sync more easily.  Avoid PATH_MAX
27703         test on the Hurd.  Sync from test-getcwd.c for errno tests after
27704         mkdir or chdir failure.
27705         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
27706         lib/getcwd.c.
27707         (test_abort_bug): Do not test for the deep directory bug unless we
27708         have openat support.  Avoid PATH_MAX test on the Hurd.
27710         regex-tests, regex: fix bug: memset undeclared
27711         * tests/test-regex.c: Don't include regex.h twice.  Include
27712         string.h, to declare memset.  Christensen's report also mentioned
27713         this issue.
27714         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
27715         test-regex.c, to avoid future problems like this.  Remove
27716         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
27717         twice.
27719         regex-tests: fix link errors on older Solaris
27720         These need to link with @LIBINTL@ to get libintl_gettext.
27721         Problem reported by Tom G. Christensen in
27722         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
27723         * modules/regex-tests (test_regex_LDADD): New macro.
27725 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
27727         regex-tests: new module
27728         * modules/regex-tests, tests/test-regex.c: New files.
27730         regex: fix off-by-one error in configure test
27731         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
27733 2013-01-31  Eric Blake  <eblake@redhat.com>
27735         regex: avoid infinite configure test
27736         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
27738 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
27740         openpty: fix bug where HAVE_OPENPTY wasn't defined
27741         See the thread starting at:
27742         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
27743         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
27744         openpty function exists, not merely when we intend to replace it.
27746 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
27748         sys_time: port to Solaris 2.6
27749         There is a circularity problem on Solaris 2.6, where <time.h> includes
27750         <sys/time.h> for struct timespec.  The include nesting is gnulib
27751         <time.h>, system <time.h>, gnulib <sys/time.h>, system
27752         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
27753         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
27754         <sys/siginfo.h>; the last, innermost file needs struct
27755         timestruc_t, which is defined in <sys/time.h>, which has not been
27756         fully parsed.  Problem reported by Tom G. Christensen in
27757         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
27758         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
27759         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
27760         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
27761         uses split double-inclusion guards.
27763 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
27765         regex: test for buffer overrun
27766         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
27767         for the just-fixed regex bug.
27769 2013-01-29  Andreas Schwab  <schwab@suse.de>
27771         regex: fix buffer overrun in regexp matcher [BZ #15078]
27772         * lib/regexec.c (extend_buffers): Add parameter min_len.
27773         (check_matching): Pass minimum needed length.
27774         (clean_state_log_if_needed): Likewise.
27775         (get_subexp): Likewise.
27777 2013-01-28  Pádraig Brady  <P@draigBrady.com>
27779         mountlist: don't consider "devtmpfs" as dummy
27780         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
27781         as there is storage associcated with it.
27783 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27785         futimens-tests, utimens-tests: Depend on gettext.
27786         This works around a problem introduced in my 2013-01-12 patch,
27787         which added @LIBINTL@ to these modules.
27788         * modules/futimens-tests (Depends-on):
27789         * modules/utimens-tests (Depends-on): Add gettext.
27791 2013-01-26  Eric Blake  <eblake@redhat.com>
27793         test-getpeername: fix typo
27794         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
27796 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
27798         bootstrap: remove the need for a sorted .gitignore file
27799         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
27800         rename to insert_if_absent(), so that we don't need or generate
27801         a sorted .gitignore file.  We do require a .gitignore with no
27802         existing duplicate entries and enforce that.
27803         (sort_patterns): Remove this function as we now use the simpler
27804         technigue of inserting blacklist entries at the top of the file,
27805         assuming gnulib won't be inserting !whitelist entries.
27807 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27809         readlinkat: don't depend on gl_FUNC_OPENAT
27810         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
27811         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
27812         renameat.m4, symlinkat.m4; but one thing at a time.
27814         statat: new module, split out from fstatat
27815         GNU Emacs needs the POSIX-specified fstatat, but not the
27816         gnulib-specified statat and lstat.  Split the latter two into a
27817         new module 'statat'.
27818         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
27819         * lib/openat.h, lib/statat.c (STATAT_INLINE):
27820         Rename from FSTATAT_INLINE. All uses changed.
27821         * modules/fstatat (Files): Remove lib/statat.c.
27822         (gl_MODULE_INDICATOR([fstatat])): Remove.
27823         (lib_SOURCES): Remove.
27824         (Maintainer): Add self.
27825         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
27826         * tests/test-fstatat.c (BASE): Don't define if already defined.
27827         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
27829 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
27831         tests: don't assume fd 99 is closed
27832         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
27833         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
27834         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
27835         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
27836         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
27837         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
27838         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
27839         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
27840         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
27841         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
27842         * tests/test-fwrite.c, tests/test-getpeername.c:
27843         * tests/test-getsockname.c, tests/test-getsockopt.c:
27844         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
27845         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
27846         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
27847         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
27848         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
27849         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
27850         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
27851         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
27852         * tests/test-unlinkat.c, tests/test-unlockpt.c:
27853         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
27854         Close file descriptor 99, instead of assuming it's already closed.
27856 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
27858         stpncpy: port to OS X 10.8
27859         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
27860         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
27862 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
27864         unistd: port to recent mingw
27865         * lib/unistd.in.h: Remove special invocation convention for mingw,
27866         which breaks for the latest mingw version.  See John W. Eaton in
27867         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
27869         largefile: port better to Mac OS X 10.5
27870         This patch is backported from Autoconf git.
27871         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
27872         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
27873         with ino_t size being different for configuration time versus
27874         build/run time.  Problem reported by PHO in
27875         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
27877 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27879         doc: clarify -Werror
27880         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
27881         clarify that it's intended for developers, not for ordinary builds,
27882         and mention --enable-gcc-warnings as one possible use.
27884 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
27886         stdint: fix build with Android's Bionic fox x86
27887         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
27888         was already included as _SSIZE_T_DEFINED_ might also be defined
27889         in include/machine/_types.h, which is included by stdio.h
27891 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
27893         net_if-tests: port to Solaris 7 + GCC 3.4.6
27894         Problem reported by Tom G. Christensen in
27895         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
27896         * tests/test-net_if.c (ni): Move to next the code that uses it,
27897         so that it's declared only if needed.
27899 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
27901         net_if-tests: port to older Solaris
27902         Problem reported by Tom G. Christensen in
27903         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
27904         * modules/net_if-tests (NET_IF_LIB): New substitution.
27905         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
27906         (HAVE_IF_NAMEINDEX): New C macro.
27907         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
27909         system-quote-tests: port to older Solaris
27910         Problem reported by Tom G. Christensen in
27911         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
27912         * tests/test-system-quote-child.c (fopen, fread): Undef.
27914         c-xvasprintf etc.: fix link errors on older Solaris
27915         These need to link with @LIBINTL@ to get libintl_gettext.
27916         Problem reported by Tom G. Christensen in
27917         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
27918         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
27919         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
27920         * modules/futimens-tests (test_futimens_LDADD):
27921         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
27923 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
27925         locale: port to Solaris 2.6 and 7 + GNU gettext
27926         * lib/locale.in.h: Just include_next <locale.h> when
27927         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
27928         when combining the localename module with GNU gettext 0.18.2.
27929         Problem reported by Tom G. Christensen in
27930         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
27932 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27934         stdlib: port to Solaris 2.6
27935         Also, the code worked on Solaris 7 through 9 only by accident.
27936         Problem reported by Tom G. Christensen in
27937         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
27938         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
27939         simply include the system stdlib.h.
27940         * lib/getopt.in.h (__need_system_stdlib_h):
27941         * lib/pthread.in.h (__need_system_stdlib_h):
27942         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
27943         Define when including <stdlib.h>, to avoid problems at least for
27944         the pthread case on Solaris 2.6 and 7.  These .h files can get by
27945         with the system stdlib.h.
27947 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
27949         doc: update main copyright year
27950         * doc/gnulib.texi: Update copyright date.
27952         doc: improve ISO 8601 discussion
27953         * doc/parse-datetime.texi (Combined date and time of day items):
27954         Specify more carefully what formats are supported and what is
27955         done with excess precision.
27957 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
27959         doc: avoid small caps
27960         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
27961         they're more trouble than they're worth.  Suggested by Karl Berry
27962         in <http://bugs.gnu.org/13360>.
27964         regex: conform to strict C
27965         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
27966         From Aharon Robbins.
27968         gnulib-tool: fix incompatibility with autopoint 0.18.2
27969         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
27970         Problem reported by Tom G. Christensen in
27971         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
27973 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27975         fprintftime: bring back and reword fwrite comment
27976         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
27978         stdio: remove now-unnecessary stdio.c
27979         Since stdio.in.h no longer uses inline functions, we no longer
27980         need to compile the extern versions.
27981         * lib/stdio.c: Remove.
27982         * modules/stdio (Files): Remove lib/stdio.c.
27983         (lib_SOURCES): Remove.
27985         unicodeio: depend on stdio, not ignore-value
27986         * lib/unicodeio.c: Do not include ignore-value.h.
27987         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
27988         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
27990         fprintftime: depend on stdio, not ignore-value
27991         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
27992         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
27993         since the stdio module arranges to silence that warning now.
27994         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
27996 2012-10-04  Simon Josefsson  <simon@josefsson.org>
27998         stdint-tests: Fix expanded-before-required-warning.
27999         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
28001 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
28003         fwrite: silence __wur only for older glibc versions
28004         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
28005         This will help us remove this workaround some time in the far future.
28007 2013-01-03  Eric Blake  <eblake@redhat.com>
28009         fwrite: silence __wur without using inline
28010         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
28011         just gcc, and in a way that avoids inline issues.
28012         * modules/stdio (Depends-on): Drop extern-inline.
28014 2013-01-03  Jim Meyering  <jim@meyering.net>
28016         update-copyright: avoid copyright notice date corruption
28017         Given a sequence of copyright year numbers in which the final
28018         one was a two-digit number that happened to be a substring of
28019         a preceding four-digit year number, we would mistakenly update
28020         the substring (from two- to four-digit) rather than the two-digit
28021         number at the end, which, combined with the addition of the current
28022         4-digit year number would yield two 5-digit year numbers, e.g.,
28023         here, it would convert the first "99" to "1999, 2013" rather than
28024         the final one:
28025           1991, 99
28026           11999, 20131, 1999
28027         * build-aux/update-copyright: Tighten a regexp.
28028         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
28029         Reported by Joseph Myers in
28030         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
28032 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
28034         regex: omit needless signed-pointer casts
28035         * lib/regcomp.c (build_charclass, build_charclass_op):
28036         Use char *, not unsigned char *, for class name and extra.
28037         The char values are always nonnegative so there's no need to
28038         insist on unsigned char * here, and using char * removes the need
28039         for casts.  Reported by Aharon Robbins in
28040         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
28042         regex: support Gawk, which never uses alloca
28043         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
28044         Do not include in this case.  Gawk doesn't supply a substitute
28045         alloca.h and doesn't need one.
28047         regex: port __libc_lock_define usage to C89
28048         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
28049         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
28050         does not conform to C89, as it has an empty macro argument.
28051         Reported by Aharon Robbins in
28052         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
28054 2013-01-01  Eric Blake  <eblake@redhat.com>
28056         maint: update all copyright year number ranges
28057         Run "make update-copyright".
28059         version-etc: bump copyright year reported in --version
28060         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
28062 2012-12-31  Eric Blake  <eblake@redhat.com>
28064         sigprocmask-tests: skip test if pid is unexpectedly large
28065         * tests/test-sigprocmask.c (main): Add range check.
28067         git-version-gen: avoid test -z portability glitch
28068         * build-aux/git-version-gen: Prefer portable test spelling, since
28069         git-version-gen is run on more than just developer machines.
28071 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
28073         git-version-gen: add --fallback option to use if git is not present
28074         * build-aux/git-version-gen: Add support for the new option --fallback,
28075         which comes into play when there is no $tarball_version_file and
28076         git is not working.
28077         (scriptversion): Update.
28079         maint.mk: handle missing git with more grace
28080         * top/maint.mk (no-submodule-changes, public-submodule-commit):
28081         Quietly proceed if git is not present.
28083 2012-12-31  Eric Blake  <eblake@redhat.com>
28085         dup2: work around cygwin bug
28086         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
28087         * lib/dup2.c (rpl_dup2): Work around it.
28088         * doc/posix-functions/dup2.texi (dup2): Document it.
28090 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
28092         regex: remove unnecessary dependency on localcharset.h
28093         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
28094         hasn't been needed for years.
28095         * modules/regex (Depends-on): Remove localcharset.
28097         regex: revert single-byte change
28098         * lib/regexec.c (check_node_accept_bytes): Revert previous change
28099         to this function.  This was alredy fixed in a different way, at
28100         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
28101         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
28102         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
28104         regex: simplify based on Gawk version
28105         * lib/regex_internal.c (re_dfa_add_node): Simplify.
28106         Reported by Aharon Robbins in
28107         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
28109 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28111         regex: check that pattern char is single-byte
28112         Reported by Aharon Robbins in
28113         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
28114         * lib/regexec.c (check_node_accept_bytes):
28115         Return 0 if the pattern string has a multibyte character here.
28117         regex: implement rational ranges
28118         Reported by Aharon Robbins in
28119         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
28120         * lib/regcomp.c (build_range_exp) [!_LIBC]:
28121         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
28122         Implement rational ranges.
28124         regex: avoid redefining __wctype
28125         Reported by Aharon Robbins in
28126         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
28127         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
28128         #undef before defining.
28130         regex: port to hosts where malloc (0) == NULL
28131         Reported by Aharon Robbins in
28132         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
28133         * lib/regex_internal.c (re_node_set_alloc):
28134         Don't assume that malloc (0) yields nonnull.
28135         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
28136         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
28137         * modules/regex (Files): Add m4/eealloc.m4.
28139         regex: port to C89
28140         Reported by Aharon Robbins in
28141         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
28142         * lib/regcomp.c (init_word_char): Declaration before statement.
28144         regex: merge glibc changes
28145         Also, copy the license wording from glibc.  This simplifies
28146         merging changes.  gnulib-tool will change the wording to GPL as
28147         appropriate, when importing it to other packages.  The only
28148         glibc change made since the last merge, which needs merging, is:
28149         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
28150         * lib/regex_internal.h (gettext): Remove use of INTUSE.
28152         * users.txt: Add Emacs.
28154         doc: omit mention of version when not needed
28155         * doc/gnulib-intro.texi (Portability and Application Code):
28156         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
28157         Don't mention particular dates or versions when not necessary, so
28158         that the documentation won't go out of date so quickly.
28160         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
28162 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
28164         bootstrap: pass --force to autoreconf.
28165         * build-aux/bootstrap (AUTORECONFFLAGS): New.
28166         Add "--force" so that Automake's ylwrap and other such tools
28167         be updated at each bootstrap invocation.
28168         Use it.
28170 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
28172         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
28173         The earlier patch forgot to update one of the #if conditions, causing
28174         a problem on Debian testing i386 reported by Mats Erik Andersson
28175         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
28176         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
28177         (__argp_fmtstream_puts, argp_fmtstream_puts)
28178         (__argp_fmtstream_write, argp_fmtstream_write)
28179         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
28181         * doc/gnulib-readme.texi: Minor fixups.
28182         (Portability guidelines): Modernize URLs.  Remove some repetition.
28183         (Indent with spaces not TABs): Reword to avoid too-long lines.
28184         Remove some '@ifset standalone' stuff that isn't used.
28186         * doc/gnulib-readme.texi (Portability guidelines):
28187         ctype.h, not ctime.h.
28189         Correct name of POSIX.1-2001.
28190         * doc/posix-functions/fgetc.texi (fgetc):
28191         * doc/posix-functions/fgets.texi (fgets):
28192         * doc/posix-functions/fread.texi (fread):
28193         * doc/posix-functions/fscanf.texi (fscanf):
28194         * doc/posix-functions/getc.texi (getc):
28195         * doc/posix-functions/getchar.texi (getchar):
28196         * doc/posix-functions/scanf.texi (scanf):
28197         POSIX.1-2001, not POSIX-2001.
28199         doc: move README into manual
28200         * README: Move contents to new file doc/gnulib-readme.texi.
28201         Replace with a one-line summary.
28202         * doc/gnulib.texi (Brief Overview): New section,
28203         with old intro preface.  Include gnulib-readme.texi for contents.
28204         (Philosophy): Rename from "Introduction", since this
28205         section no longer introduces the rest.  Write a new preface.
28206         * doc/gnulib-readme.texi: New file, with the old contents of
28207         README texinfo-ized.  This way, the README info appears
28208         in the online and printed manual.
28210 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
28212         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
28213         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
28214         c_vasprintf() prototype.
28216 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
28218         c-vasprintf: Fix "empty declaration" warning reported by GCC.
28219         * lib/c-vasprintf.h: Remove stray semicolon.
28221 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28223         gettext: avoid obsolete macro AM_PROG_MKDIR_P
28224         It is obsolete and is planned to be removed from Automake 1.14; see
28225         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
28226         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
28227         (installdirs-data, installdirs-data-yes):
28228         Use $(MKDIR_P), not $(mkdir_p).
28229         * m4/intl.m4 (AM_INTL_SUBDIR):
28230         * m4/po.m4 (AM_PO_SUBDIRS):
28231         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
28233 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28235         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
28236         On this platform, we are not optimizing but we are using
28237         the substitute for extern inlines, so compile as if
28238         C99-style extern inline, or a substitute, is available.
28239         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
28240         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
28241         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
28242         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
28243         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
28244         Declare as ARGP_FS_EI, not as extern.
28245         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
28246         (__option_is_short, _option_is_end, __option_is_end)
28247         [!_LIBC && __USE_EXTERN_INLINES]:
28248         Declare as ARGP_EI, not as extern.
28250 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
28252         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
28253         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
28254         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
28255         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
28256         ...), as the latter is fatal with older Autoconfs.
28257         Problem reported and fix suggested by Eric Blake in thread starting at
28258         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
28260 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28262         AC_PROG_MKDIR_P: don't workaround if not buggy
28263         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
28264         Define only for Autoconf versions before 2.62.
28265         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
28266         undocumented m4_PACKAGE_VERSION, for consistency with the
28267         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
28268         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
28269         was introduced in 2.62.
28271 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
28273         New 'c-*printf' modules for formatted output in C locale.
28275         New module 'c-vasnprintf'.
28276         * modules/c-vasnprintf: New file.
28277         * lib/c-vasnprintf.c: New file.
28278         * lib/c-vasnprintf.h: New file.
28280         New module 'c-snprintf'.
28281         * modules/c-snprintf: New file.
28282         * modules/c-snprintf-tests: New file.
28283         * lib/c-snprintf.c: New file.
28284         * lib/c-snprintf.h: New file.
28285         * tests/test-c-snprintf.c: New file.
28286         * tests/test-c-snprintf.sh: New file.
28288         New module 'c-vsnprintf'.
28289         * modules/c-vsnprintf: New file.
28290         * modules/c-vsnprintf-tests: New file.
28291         * lib/c-vsnprintf.c: New file.
28292         * lib/c-vsnprintf.h: New file.
28293         * tests/test-c-vsnprintf.c: New file.
28294         * tests/test-c-vsnprintf.sh: New file.
28296         New module 'c-vasprintf'.
28297         * modules/c-vasprintf: New file.
28298         * modules/c-vasprintf-tests: New file.
28299         * lib/c-asprintf.c: New file.
28300         * lib/c-vasprintf.c: New file.
28301         * lib/c-vasprintf.h: New file.
28302         * tests/test-c-vasprintf.c  +: New file.
28303         * tests/test-c-vasprintf.sh: New file.
28305         New module 'c-xvasprintf'.
28306         * modules/c-xvasprintf: New file.
28307         * modules/c-xvasprintf-tests: New file.
28308         * lib/c-xasprintf.c: New file.
28309         * lib/c-xvasprintf.c: New file.
28310         * lib/c-xvasprintf.h: New file.
28311         * tests/test-c-xvasprintf.c: New file.
28312         * tests/test-c-xvasprintf.sh: New file.
28314 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28316         argp: better 'inline'
28317         Use extern-inline module to declare extern inline functions.
28318         This avoids some bogus warning diagnostics.  Problem discovered
28319         when modifying GNU tar to use the manywarnings module.
28320         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
28321         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
28322         Define based on extern-inline.
28323         * modules/argp (Depends-on): Add extern-inline.
28325 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
28327         filemode, sys_stat: Handle MPX files a la AIX.
28328         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
28329         * lib/sys_stat.in.h (S_ISMPX): New macro.
28330         * tests/test-sys_stat.c: Add tests for MPX files.
28332 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
28334         x-to-1: honor $PERL
28335         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
28336         a chance to use his preferred version of Perl.  This is typically
28337         required by Darwin users whose default /usr/bin/perl does not have all
28338         the libraries required by help2man, and who need to use their MacPorts
28339         installation of Perl instead.
28341 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
28343         gnu-web-doc-update: add all the new files, even in new directories
28344         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
28345         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
28346         Use it.
28347         (main): Don't use cvsutils to get the list of unknown files,
28348         just add all the existing files and directories.
28350 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
28352         gnu-web-doc-update: improve --help
28353         * build-aux/gnu-web-doc-update: Move comments into --help.
28355 2012-12-07  Eric Wong  <normalperson@yhbt.net>
28357         mountlist: recognize more "dummy" file systems
28358         * lib/mountlist.c (ME_DUMMY_0):
28359         Add these dummy FS names to the list:
28360         - "debugfs" virtual filesystem for kernel debugging
28361         - "devpts" PTY slave filesystem
28362         - "devtmpfs" device filesystem on top of tmpfs/ramfs
28363         - "fusectl" control filesystem for FUSE
28364         - "mqueue" enumerates POSIX message queues
28365         - "rpc_pipefs" kernel <-> userspace bridge for NFS
28366         - "sysfs" is for exporting kernel objects
28367         - "devfs" device filesystem for Linux 2.4 and FreeBSD
28369 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
28371         extern-inline: avoid incompatibility with Darwin Libc
28372         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
28373         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
28374         Problem reported by Akim Demaille in
28375         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
28377 2012-12-11  Simon Josefsson  <simon@josefsson.org>
28379         gnupload: Work with GnuPG using gpg-agent (for smartcards).
28380         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
28381         let it handle password prompting.
28383 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
28385         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
28386         * lib/canonicalize.c (canonicalize_filename_mode):
28387         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
28388         fetching the current directory.  Don't overrun the beginning of
28389         rpath if there's no slashes after the MS-Windows drive letter.
28391 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
28393         maint.mk: avoid extra forks
28394         * top/maint.mk (_cfg_mk): The GNU make manual documents that
28395         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
28396         So use that instead of "$(shell test -f FILE && echo FILE)".
28398 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
28400         vasnprintf: fix ASCII_ONLY typo
28401         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
28402         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
28403         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
28404         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
28405         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
28407 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
28409         list, oset, xlist, xoset: fix extern inline issue with C99
28410         This was introduced by my recent changes for 'inline'.
28411         Problem reported for gettext by Daiki Ueno in
28412         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
28413         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
28414         (gl_list_nx_create, gl_list_size, gl_list_node_value)
28415         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
28416         (gl_list_previous_node, gl_list_get_at)
28417         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
28418         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
28419         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
28420         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
28421         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
28422         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
28423         (gl_list_iterator_free, gl_sortedlist_search)
28424         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
28425         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
28426         (gl_sortedlist_remove):
28427         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
28428         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
28429         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
28430         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
28431         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
28432         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
28433         (gl_list_add_at, gl_sortedlist_add):
28434         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
28435         Wrap these extern decls inside "#if 0", because they are implemented
28436         as inline functions, and extern inline is not what's wanted here.
28437         It would simplify these .h files to remove the extern decls entirely,
28438         although a downside would be less-clear separation between
28439         specification and implementation.
28441 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
28443         sys_stat: no 'static inline'
28444         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
28445         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
28447         extern-inline: no 'static inline'
28448         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
28449         Do not require AC_C_INLINE.
28450         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
28451         'static inline', for older compilers.
28453         snippet/warn-on-use: no 'static inline'
28454         * build-aux/snippet/warn-on-use.h:
28455         Remove unnecessary 'inline' in comment.
28457         rbtree-list, rbtreehash-list: no 'static inline'
28458         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
28459         * lib/gl_anytree_list2.h (node_at):
28460         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
28461         (gl_oset_first, add_nodes_to_buckets):
28462         Now static, not static inline.
28464         regex: no 'static inline'
28465         * lib/regex_internal.c (calc_state_hash):
28466         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
28467         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
28468         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
28469         Now static, not static inline.
28470         (inline) [__GNUC__ < 3 && _LIBC]:
28471         Remove macro; no longer needed.
28473         xvasprintf: no 'static inline'
28474         * lib/xvasprintf.c (xstrcat):
28475         Now static, not static inline.
28476         * m4/xvasprintf.m4 (gl_XVASPRINTF):
28477         Do not require AC_C_INLINE.
28479         parse-datetime, parse-duration: no 'static inline'
28480         * lib/parse-datetime.y (to_uchar):
28481         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
28482         (scale_n_add):
28483         Now static, not static inline.
28484         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
28485         * modules/parse-duration (configure.ac):
28486         Do not require AC_C_INLINE.
28488         getaddrinfo: no 'static inline'
28489         * lib/getaddrinfo.c (validate_family):
28490         Now static, not static inline.
28491         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
28492         Do not require AC_C_INLINE.
28494         ftruncate, fts, lstat, openat, raise: no 'static inline'
28495         * lib/ftruncate.c (chsize_nothrow):
28496         * lib/fts.c (opendirat, diropen):
28497         * lib/lstat.c (orig_lstat):
28498         * lib/openat.c (orig_openat):
28499         * lib/raise.c (raise_nothrow):
28500         Now static, not static inline.
28501         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
28502         * m4/fts.m4 (gl_FUNC_FTS_CORE):
28503         * m4/lstat.m4 (gl_PREREQ_LSTAT):
28504         * m4/openat.m4 (gl_PREREQ_OPENAT):
28505         * m4/raise.m4 (gl_PREREQ_RAISE):
28506         Do not require AC_C_INLINE.
28508         fflush, stat: no 'static inline'
28509         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
28510         (clear_ungetc_buffer, disable_seek_optimization)
28511         (restore_seek_optimization, update_fpos_cache):
28512         * lib/stat.c (orig_stat):
28513         Now static, not static inline.
28514         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
28515         (update_fpos_cache):
28516         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
28517         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
28518         * m4/stat.m4 (gl_PREREQ_STAT):
28519         Do not require AC_C_INLINE.
28521         error, filevercmp: no 'static inline'
28522         * lib/error.c (is_open, flush_stdout):
28523         * lib/filevercmp.c (order):
28524         Now static, not static inline.
28525         * m4/error.m4 (gl_PREREQ_ERROR):
28526         * modules/filevercmp (configure.ac):
28527         Do not require AC_C_INLINE.
28529         dup, execute, fatal-signal, etc.: no 'static inline'
28530         * lib/dup.c (dup_nothrow):
28531         * lib/execute.c (nonintr_close, nonintr_open):
28532         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
28533         * lib/fopen.c (orig_fopen):
28534         * lib/freadseek.c (freadptrinc):
28535         * lib/freopen.c (orig_freopen):
28536         * lib/fstat.c (orig_fstat, fstat_nothrow):
28537         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
28538         (get_rusage_as_via_iterator):
28539         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
28540         * lib/getdtablesize.c (_setmaxstdio_nothrow):
28541         * lib/isatty.c (_isatty_nothrow):
28542         * lib/open.c (orig_open):
28543         * lib/read.c (read_nothrow):
28544         * lib/sigprocmask.c (signal_nothrow):
28545         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
28546         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
28547         * lib/wait-process.c (unregister_slave_subprocess):
28548         * lib/write.c (write_nothrow):
28549         Now static, not static inline.
28550         * lib/spawn-pipe.c (nonintr_open): Define only if
28551         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
28552         * m4/dup.m4 (gl_PREREQ_DUP):
28553         * m4/execute.m4 (gl_EXECUTE):
28554         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
28555         * m4/fopen.m4 (gl_PREREQ_FOPEN):
28556         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
28557         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
28558         * m4/fstat.m4 (gl_PREREQ_FSTAT):
28559         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
28560         * m4/isatty.m4 (gl_PREREQ_ISATTY):
28561         * m4/open.m4 (gl_PREREQ_OPEN):
28562         * m4/read.m4 (gl_PREREQ_READ):
28563         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
28564         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
28565         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
28566         * m4/wait-process.m4 (gl_WAIT_PROCESS):
28567         * m4/write.m4 (gl_PREREQ_WRITE):
28568         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
28569         Do not require AC_C_INLINE.
28571         c-strtod, memcoll, readutmp: no 'static inline'
28572         * lib/c-strtod.c (c_locale):
28573         * lib/memcoll.c (strcoll_loop):
28574         * lib/readutmp.c (desirable_utmp_entry):
28575         Now static, not static inline.
28576         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
28577         * m4/memcoll.m4 (gl_MEMCOLL):
28578         * m4/readutmp.m4 (gl_READUTMP):
28579         Do not require AC_C_INLINE.
28581         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
28582         * lib/arctwo.c (to_uchar):
28583         * lib/md4.c (set_uint32):
28584         * lib/md5.c (set_uint32):
28585         * lib/sha1.c (set_uint32):
28586         * lib/sha256.c (set_uint32):
28587         * lib/sha512.c (set_uint64):
28588         Now static, not static inline.  This is a bit simpler, and doesn't
28589         affect performance with GCC and default optimization.
28590         * m4/arctwo.m4 (gl_ARCTWO):
28591         * m4/md4.m4 (gl_MD4):
28592         * m4/md5.m4 (gl_MD5):
28593         * m4/sha1.m4 (gl_SHA1):
28594         * m4/sha256.m4 (gl_SHA256):
28595         * m4/sha512.m4 (gl_SHA512):
28596         Do not require AC_C_INLINE.
28598         cond, lock, thread: better 'inline'
28599         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
28600         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
28601         New macros.  Use them instead of static inline, for header functions.
28602         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
28603         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
28604         * lib/glthread/lock.c (gl_waitqueue_init)
28605         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
28606         * lib/glthread/thread.c (get_current_thread_handle):
28607         Change 'static inline' to 'inline'.
28608         * lib/glthread/cond.h, lib/glthread/thread.h:
28609         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28610         * m4/cond.m4 (gl_COND):
28611         * m4/lock.m4 (gl_PREREQ_LOCK):
28612         * m4/thread.m4 (gl_THREAD):
28613         Do not require AC_C_INLINE.
28614         * modules/cond, modules/thread (Depends-on): Add extern-inline.
28616         chdir-long, cycle-check, savewd: better 'inline'
28617         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
28618         (find_non_slash):
28619         * lib/cycle-check.c (is_zero_or_power_of_two):
28620         * lib/savewd.c (savewd_delegating):
28621         Change 'static inline' to 'inline'.
28622         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
28623         Replace all remaining uses of 'static inline' with it.
28624         * lib/savewd.h:
28625         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28626         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
28627         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
28628         * m4/savewd.m4 (gl_SAVEWD):
28629         Do not require AC_C_INLINE.
28630         * modules/savewd (Depends-on): Add extern-inline.
28632         base32, base64: no need for 'inline'
28633         * lib/base32.c (to_uchar, get_8, decode_8):
28634         * lib/base64.c (to_uchar, get_4, decode_4):
28635         Change 'static inline' to 'inline'.
28636         * m4/base32.m4 (gl_PREREQ_BASE32):
28637         * m4/base64.m4 (gl_PREREQ_BASE64):
28638         Do not require AC_C_INLINE.
28640         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
28641         * lib/gl_array_oset.c (gl_array_nx_add_at):
28642         (gl_array_remove_at):
28643         * lib/gl_linkedhash_list.c (hash_resize_after_add)
28644         (add_to_bucket, remove_from_bucket):
28645         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
28646         Change 'static inline' to 'static', as it's simpler to omit
28647         'inline' unless there's a significant performance advantage.
28649         list, oset, xlist, xoset, xsublist: simplify via extern inline
28650         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
28651         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
28652         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
28653         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
28654         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
28655         New macro.  Replace all uses of 'static inline' with it.
28656         [HAVE_INLINE]: Implement functions as *_INLINE functions,
28657         instead of as macros FOO that are defined to static inline
28658         functions FOO_inline.
28659         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
28660         * lib/gl_xsublist.c:
28661         Reimplement from scratch, by defining the corresponding *_INLINE
28662         macro and including the corresponding .h file.  This is simpler.
28663         * modules/list, modules/oset, modules/xlist, modules/xoset:
28664         (Files): Remove m4/gl_list.m4.
28665         (configure.ac): Remove gl_LIST.
28666         * m4/gl_list.m4: Remove.
28667         * modules/list, modules/oset, modules/xlist, modules/xoset:
28668         * modules/xsublist:
28669         (Depends-on): Depend on extern-inline, not inline.
28671         xalloc: better 'inline'
28672         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
28673         New macro.  Replace all uses of 'static inline' with it.
28674         (static_inline): Remove.
28675         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
28676         Let 'extern inline' do the work automatically, instead of doing
28677         it by hand.
28678         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
28679         Remove.  All uses removed.
28680         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
28682         gethrxtime: better 'inline'
28683         * lib/xtime.c: New file.
28684         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
28685         * lib/xtime.h (XTIME_INCLUDE):
28686         New macros.  Replace all uses of 'static inline' with them.
28687         * lib/gethrxtime.c (gethrxtime): Define only if
28688         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
28689         this source file is now always compiled, because of the extern inline.
28690         * lib/gethrxtime.h, lib/xtime.h:
28691         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28692         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
28693         if gethrtime works, as they're not needed in that case.
28694         (gl_XTIME): Do not require AC_C_INLINE.
28695         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
28696         compiled now.  Move the check into gl_GETHRXTIME.
28697         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
28698         (Depends-on): Add extern-inline.
28699         (configure.ac): gethrxtime is always compiled now.
28700         (lib_SOURCES): Add gethrxtime.c.
28702         wctype-h: better 'inline'
28703         * lib/wctype-h.c: New file.
28704         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
28705         New macro.  Replace all uses of 'static inline' with it.
28706         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28707         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
28708         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
28709         (Depends-on): Add extern-inline.
28711         unistd: better 'inline'
28712         * lib/unistd.c: New file.
28713         * lib/unistd.in.h (_GL_UNISTD_INLINE):
28714         New macro.  Replace all uses of 'static inline' with it.
28715         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28716         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
28717         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
28718         (Depends-on): Add extern-inline.
28720         sys_socket: better 'inline'
28721         * lib/sys_socket.c: New file.
28722         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
28723         New macro.  Replace all uses of 'static inline' with it.
28724         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28725         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
28726         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
28727         (Depends-on): Add extern-inline.
28729         stdio: better 'inline'
28730         * lib/stdio.c: New file.
28731         * lib/stdio.in.h (_GL_STDIO_INLINE):
28732         New macro.  Replace all uses of 'static inline' with it.
28733         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28734         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
28735         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
28736         (Depends-on): Add extern-inline.
28738         sigaction: better 'inline'
28739         * lib/sig-handler.c: New file.
28740         * lib/sig-handler.h (SIG_HANDLER_INLINE):
28741         New macro.  Replace all uses of 'static inline' with it.
28742         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28743         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
28744         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
28745         (Depends-on): Add extern-inline.
28747         selinux-h: better 'inline'
28748         * lib/se-context.c, lib/se-selinux.c: New files.
28749         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
28750         * lib/se-context.in.h (SE_CONTEXT_INLINE):
28751         New macro.  Replace all uses of 'static inline' with it.
28752         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28753         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
28754         New macro.  Replace all uses of 'static inline' with it.
28755         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28756         * modules/selinux-h (Files, lib_SOURCES):
28757         Add lib/se-context.c, lib/se-selinux.c.
28758         (Depends-on): Add extern-inline.
28759         (configure.ac): Do not require AC_C_INLINE.
28761         pthread: better 'inline'
28762         * lib/pthread.c: New file.
28763         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
28764         New macro.  Replace all uses of 'static inline' with it.
28765         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28766         * m4/pthread.m4 (gl_PTHREAD_CHECK):
28767         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
28768         * modules/pthread (Files): Add lib/pthread.c.
28769         (Depends-on): Add extern-inline.
28771         math: better 'inline'
28772         * lib/math.c: New file.
28773         * lib/math.in.h (_GL_MATH_INLINE):
28774         New macro.  Replace all uses of 'static inline' with it.
28775         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28776         * m4/math_h.m4 (gl_MATH_H):
28777         Do not require AC_C_INLINE.
28778         * modules/math (Files, lib_SOURCES):
28779         Add lib/math.c.
28780         (Depends-on): Add extern-inline.
28782         count-one-bits: better 'inline'
28783         * lib/count-one-bits.c: New file.
28784         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
28785         New macro.  Replace all uses of 'static inline' with it.
28786         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28787         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
28788         Do not require AC_C_INLINE.
28789         * modules/count-one-bits (Files, lib_SOURCES):
28790         Add lib/count-one-bits.c.
28791         (Depends-on): Add extern-inline.
28793         count-leading-zeros: better 'inline'
28794         * lib/count-leading-zeros.c: New file.
28795         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
28796         New macro.  Replace all uses of 'static inline' with it.
28797         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28798         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
28799         Do not require AC_C_INLINE.
28800         * modules/count-leading-zeros (Files, lib_SOURCES):
28801         Add lib/count-leading-zeros.c.
28802         (Depends-on): Add extern-inline.
28804         bitrotate: better 'inline'
28805         * lib/bitrotate.c: New file.
28806         * lib/bitrotate.h (BITROTATE_INLINE):
28807         New macros.
28808         Replace all uses of 'static inline' with them.
28809         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28810         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
28811         (Depends-on): Add extern-inline.
28812         (configure.ac): Do not require AC_C_INLINE.
28814 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
28816         maint.mk: avoid gratuitous failure
28817         Reported by Stefano Lattarini in
28818         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
28819         * top/maint.mk (public-submodule-commit): Quote more safely.
28821 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
28823         canonicalize, canonicalize-lgpl: support MS-Windows file names
28824         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
28825         for test cases, which it'd be nice to add at some point.
28826         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
28827         * lib/canonicalize.c (canonicalize_filename_mode):
28828         * lib/canonicalize-lgpl.c (__realpath):
28829         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
28830         slash is at the beginning of the file name.  Use ISSLASH, instead
28831         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
28832         the first character with '/'.  Test for
28833         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
28834         with a drive letter.
28835         * lib/canonicalize.c (SLASHES): New macro.
28836         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
28838 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
28840         fts: introduce FTS_VERBATIM
28841         * lib/fts_.h (FTS_VERBATIM): New bit flag.
28842         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
28843         * lib/fts.c (fts_open): Honor it.
28845 2012-11-09  Pádraig Brady  <P@draigBrady.com>
28847         getlogin-tests: allow errno == ENXIO
28848         * tests/test-getlogin.c (main): Skip tests if getlogin fails
28849         with errno == ENXIO (No controlling tty).
28850         getlogin_r-tests: Likewise. Also allow errno == ENOENT
28851         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
28852         with errno == ENOENT.  This was reported to happen in various
28853         situations on GNU/Linux.
28855 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
28857         getlogin-tests: allow errno == ENOENT
28858         * tests/test-getlogin.c (main): Skip tests if getlogin fails
28859         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
28860         when running a test in an Emacs shell buffer.
28862 2012-11-08  Jim Meyering  <jim@meyering.net>
28864         tests/nap.h: avoid warning about unused variable
28865         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
28867         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
28868         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
28869         white space before each of the special-cased file names, to avoid
28870         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
28871         in http://bugs.gnu.org/12830.
28873 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
28875         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
28876         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
28877         fails with errno == EBADF when fd is opened with O_PATH.
28878         Reported by Jim Meyering in
28879         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
28880         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
28881         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
28883 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
28885         test-utimens: speed up by taking shorter naps
28886         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
28887         New functions.
28888         (nap): Use them, to do a better job of guessing the delay.
28889         On Fedora 17 with ext4 atop md atop hard disks, this made
28890         test-utimens run 10x faster, because the test napped for
28891         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
28892         <http://bugs.gnu.org/12820#11>.
28894 2012-11-07  Jim Meyering  <jim@meyering.net>
28896         mountlist.c: fix a compilation failure
28897         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
28898         I introduced while transforming commit v0.0-7683-g613bcb6
28900 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
28902         errno: port to LynxOS 178 2.2.2
28903         Problem reported by Joel Brobecker in
28904         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
28905         * doc/posix-headers/errno.texi (errno.h): Document this.
28906         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
28907         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
28908         Supply a string for EILSEQ.
28909         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
28911 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
28913         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
28914         Linux kernel 2.6.39 introduced O_PATH (see
28915         <http://lwn.net/Articles/433854/>) and this is a better fallback
28916         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
28917         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
28918         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
28919         * lib/fcntl.in.h (O_ACCMODE):
28920         * tests/test-fcntl-h.c (main):
28921         Do not reject O_ACCMODE merely because it has more than the
28922         minimal number of bits, as POSIX allows extensions here.
28924 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
28926         mountlist: do not classify a bind-mounted dir entry as "dummy"
28927         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
28928         the "none"-testing clause.
28929         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
28930         exception for bind-mounted directories.
28932 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
28934         quote: provide a means to escape strings with nul characters
28935         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
28936         (quote, quote_n): Rename formal arguments for consistency with
28937         quotearg.
28939 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
28941         test-raise: don't assume 199 is an invalid signal
28942         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
28944         sh-quote-tests: port to Solaris 9
28945         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
28946         Problem reported by Dagobert Michelsen in
28947         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
28949 2012-10-28  Jim Meyering  <jim@meyering.net>
28951         maint.mk: rename a new configurable variable
28952         * top/maint.mk (_gl_translatable_string_re): Rename from
28953         translation-markers: _gl_ prefix to insulate from user Makefile code,
28954         and the _re suffix to inform that it's a regular expression.
28956 2012-10-26  Eric Blake  <eblake@redhat.com>
28958         maint.mk: let packages tweak sc_po_check pattern
28959         * top/maint.mk (sc_po_check): Add translation-markers, to allow
28960         finding files with other translation markers.
28962 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28964         euidaccess: speed up 'configure' on GNU hosts
28965         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
28966         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
28967         it's needed only in this case.  Use AC_CHECK_DECLS, not
28968         AC_CHECK_DECLS_ONCE.
28969         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
28970         or AC_REQUIRE for AC_FUNC_GETGROUPS.
28972         * lib/regexec.c (re_search_internal): Fix grammar in comment.
28974 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
28976         fchmodat, fchownat, fstatat: port to non-inlining compilers
28977         Problem reported for FreeBSD 9 by Jim Meyering in
28978         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
28979         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
28980         New files, which define FCHMODAT_INLINE etc.
28981         * lib/fchmodat.c (FCHMODAT_INLINE):
28982         * lib/fchownat.c (FCHOWNAT_INLINE):
28983         * lib/fstatat.c (FSTATAT_INLINE):
28984         Remove, as chmodat.c etc. now do this.
28985         * modules/fchmodat (Files): Add lib/chmodat.c.
28986         * modules/fchownat (Files): Add lib/chownat.c.
28987         * modules/fstatat (Files): Add lib/statat.c.
28989 2012-10-15  Jim Meyering  <jim@meyering.net>
28991         fchmodat.c, fchownat.c: compile-impeding typos
28992         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
28993         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
28994         Introduced in commit v0.0-7636-gd202279.
28996 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
28998         fcntl-h: support GNU flags like O_IGNORE_CTTY
28999         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
29000         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
29001         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
29002         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
29003         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
29004         Define to 0 if not already defined.
29005         * tests/test-fcntl-h.c: Test these new flags.
29007 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
29009         faccessat, etc.: support AT_FDCWD-only use
29010         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
29011         this function only if its first argument is AT_FDCWD.
29012         Emacs wants faccessat for AT_EACCESS but not for any first-arg
29013         values other than AT_FDCWD, so it doesn't want all the openat
29014         machinery with fchdir etc.
29015         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
29016         * modules/fstatat, modules/mkdirat, modules/openat (Files):
29017         * modules/unlinkat (Files):
29018         Remove lib/openat-priv.h, as at-internal supplies this file.
29019         Removing this file here allows us to support programs like Emacs
29020         that avoid at-internal.
29022         faccessat: speed up 'configure' on mainstream hosts
29023         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
29024         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
29025         since it's only on unusual platforms that we need to check for
29026         'access', and it's better not to slow 'configure' down on all
29027         platforms.
29029         faccessat: port to Solaris 10
29030         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
29031         Needed on Solaris 10, which doesn't have AT_EACCESS,
29032         so we need the Gnulib fcntl.h, which defines it.
29034 2012-10-14  Pádraig Brady  <P@draigBrady.com>
29035         canonicalize: fix C89 compilation
29036         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
29037         declarations so C89 is supported.  Also remove the comment
29038         referencing memorty allocation as the suggested feature could
29039         not be implemented as suggested.
29040         Reported by Michael Goffioul.
29042 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
29044         group-member: omit unnecessary dependencies
29045         This is for Emacs, which has its own allocator and where we
29046         don't want to use xalloc.
29047         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
29048         since we no longer use xmalloc.  Do not include stdbool.h, since
29049         the changes below happen to remove the only use of bool.
29050         (GROUPBUF_SIZE): New constant.
29051         (struct group_info): Remove n_groups member.  Add groupbuf member.
29052         This lets us get the groups without using malloc, usually.
29053         (free_group_info, get_group_info): Adjust to this.
29054         (get_group_info): Return the number of groups found, or -1 on error.
29055         Use plain malloc not xmalloc, and treat its failure as if there
29056         are no groups, as the user already loses in case of error.
29057         (group_member): Simplify, based on changes to get_group_info.
29058         * modules/group-member (Depends-on): Remove dependencies on
29059         xalloc and stdbool.  Add dependency on xalloc-oversized.
29061 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
29063         gethrxtime: port to C++
29064         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
29066 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
29068         ptsname: fix macro-name typo
29069         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
29071 2012-10-03  Simon Josefsson  <simon@josefsson.org>
29073         inttostr: Relax license.
29074         * modules/inttostr (License): Change from LGPL to LGPLv2+.
29076 2012-10-03  Eric Blake  <eblake@redhat.com>
29078         ptsname_r: support ptys returned by FreeBSD posix_openpt
29079         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
29080         lives in /dev/pts/.
29082 2012-10-02  Eric Blake  <eblake@redhat.com>
29084         pselect: reject invalid file descriptors
29085         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
29086         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
29087         * modules/pselect (Depends-on): Add dup2.
29088         * doc/posix-functions/pselect.texi (pselect): Document this.
29090         select: reject invalid file descriptors
29091         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
29092         * lib/select.c (rpl_select) [!win32]: Work around it.
29093         * modules/select (Depends-on): Add dup2.
29094         * doc/posix-functions/select.texi (select): Document this.
29096         select: enhance test
29097         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
29098         New functions.
29099         (test_function): Enhance test.
29100         (do_select_bad_fd): Avoid any stale errno values.
29102         ptsname: reject invalid file descriptors
29103         http://www.austingroupbugs.net/view.php?id=503
29104         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
29105         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
29106         * modules/stdlib (Makefile.am): Replace witness.
29107         * lib/stdlib.in.h (ptsname): Allow for replacement.
29108         * modules/ptsname (configure.ac): Trigger replacement.
29109         * doc/posix-functions/ptsname.texi (ptsname): Document this.
29111 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
29113         hash-pjw-bare: new module
29114         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
29115         * lib/hash-pjw-bare.h: Likewise.
29116         * modules/hash-pjw-bare: New file.
29117         * MODULES.html.sh (Misc): Add it.
29119 2012-10-02  Eric Blake  <eblake@redhat.com>
29121         manywarnings: cater to more gcc infelicities
29122         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
29123         -Wuninitialized without -O.
29125 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
29127         select, poll tests: Make setsockopt invocation effective.
29128         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
29129         the bind() call.
29130         * tests/test-select.h (open_server_socket): Likewise.
29132 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
29134         sockets, sys_stat: restore AC_C_INLINE
29135         This undoes the 2012-09-22 patch.
29136         * m4/sockets.m4 (gl_SOCKETS):
29137         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
29138         Restore AC_C_INLINE, since MSVC requires __inline or _inline
29139         and does not support plain 'inline'.  Reported by Bruno Haible in
29140         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
29142 2012-09-30  Bruno Haible  <bruno@clisp.org>
29144         localeconv tests: Avoid test failure on OpenIndiana.
29145         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
29146         skip the 'grouping' and 'mon_grouping' tests.
29147         Reported by Jim Meyering.
29149 2012-09-30  Bruno Haible  <bruno@clisp.org>
29151         havelib: Follow libtool developments.
29152         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
29153         Suggested by Simon Josefsson.
29155 2012-09-29  Jim Meyering  <meyering@redhat.com>
29157         fstatat.c: fix a compile-impeding typo
29158         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
29159         Introduced in commit v0.0-7636-gd202279.
29160         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
29162 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
29164         extern-inline: provide a -Wundef safe config.h
29165         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
29166         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
29167         to produce a -Wundef warning free config.h.
29169 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
29171         hash-pjw: relax license to LGPLv2+
29172         * modules/hash-pjw (License): Relax, with consent of author.
29174 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
29176         maint.mk: fix strict vs. lazy variable issues with RELEASE
29177         * top/maint.mk (_equal): New function.
29178         (member_check): Strip the result to avoid spurious spaces.
29179         (url_dir_list): Do not use ifeq, which is strict, as it will
29180         require RELEASE_TYPE to be defined.
29181         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
29182         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
29183         (announcement_Cc_alpha,announcement_mail_headers_alpha)
29184         (announcement_Cc_beta,announcement_mail_headers_beta)
29185         (announcement_Cc_stable,announcement_mail_headers_stable): these.
29186         (release): Do not depend on $(release-type), as it forces its
29187         evaluation.  Bounce to it.
29189 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
29191         maint.mk: formatting changes
29192         * top/maint.mk: Indent bodies of if's.
29194 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
29196         maint.mk: factor the validation of RELEASE_TYPE
29197         With help from Jim Meyering.
29198         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
29199         * top/maint.mk (_empty, _sp): Move their definition earlier.
29200         (member-check, release-type): New.
29201         Use the latter instead of $(RELEASE_TYPE).
29202         Remove now useless local checks.
29204 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
29206         maint.mk: provide "make upload" to ease uploading
29207         See
29208         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
29209         Do not depend simply on the current $(VERSION), as there may have been
29210         new commits since the tarball generation.  Rather, rely on $(RELEASE),
29211         as "make release-commit" already does.
29213         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
29214         "make TYPE".
29216         * top/maint.mk (upload_command, upload, release): New.
29217         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
29218         (VERSION): first word of $(RELEASE) is always right.
29219         (emit_upload_commands): Adjust.
29220         * top/README-release: Update.
29222 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
29224         maint.mk: silent rules
29225         With help from Stefano Lattarini.
29226         * top/maint.mk (writable-files): Use $(AM_V_GEN).
29227         (announcement): Use $(AM_V_at).
29229 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
29231         localename: port gl_locale_name_thread_unsafe to FreeBSD
29232         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
29233         and use the simpler FreeBSD implementation on Mac OS X as well.
29234         Original idea suggested by Ed Maste in
29235         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
29237 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29239         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
29240         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
29241         * lib/mbuiter.c, lib/xsize.c: New files.
29242         * lib/binary-io.h (BINARY_IO_INLINE):
29243         * lib/eealloc.h (EEALLOC_INLINE):
29244         * lib/mbfile.h (MBFILE_INLINE):
29245         * lib/mbiter.h (MBITER_INLINE):
29246         * lib/mbuiter.h (MBUITER_INLINE):
29247         * lib/xsize.h (XSIZE_INLINE):
29248         New macros.
29249         Replace all uses of 'static inline' with them.
29250         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29251         * m4/eealloc.m4 (gl_EEALLOC):
29252         * m4/mbfile.m4 (gl_MBFILE):
29253         * m4/mbiter.m4 (gl_MBITER):
29254         * m4/xsize.m4 (gl_XSIZE):
29255         Do not require AC_C_INLINE.
29256         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
29257         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
29258         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
29259         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
29260         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
29261         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
29262         * modules/binary-io, modules/eealloc, modules/mbfile:
29263         * modules/mbiter, modules/mbuiter:
29264         (Depends-on): Add extern-inline.
29266         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
29267         * lib/pipe-filter-aux.c: New file.
29268         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
29269         Replace all uses of 'static inline' with it.
29270         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29271         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
29272         (filter_retcode): No real need for inline here.
29273         * modules/pipe-filter-gi, modules/pipe-filter-ii:
29274         (Files): Add lib/pipe-filter-aux.c.
29275         (Depends-on): Add extern-inline.
29276         (configure.ac): Do not require AC_C_INLINE.
29277         (lib_SOURCES): Add pipe-filter-aux.c.
29279         fdutimensat: omit unnecessary AC_C_INLINE
29280         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
29282         fchmodat, fchownat, fstatat: use extern-inline
29283         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
29284         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
29285         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
29286         New macros.
29287         * lib/openat.h:
29288         Replace all uses of 'static inline' with them.
29289         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29290         * modules/fchmodat, modules/fchownat, modules/fstatat:
29291         * modules/openat-h:
29292         (Depends-on):
29293         Add extern-inline.
29294         (configure.ac): Remove AC_C_INLINE.
29296         acl, mbchar, priv-set: use extern-inline
29297         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
29298         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
29299         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
29300         New macros.
29301         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
29302         Replace all uses of 'static inline' with it.
29303         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29304         * m4/acl.m4 (gl_FUNC_ACL):
29305         * m4/mbchar.m4 (gl_MBCHAR):
29306         * m4/priv-set.m4 (gl_PRIV_SET):
29307         Remove AC_C_INLINE, since 'inline' is no longer used directly.
29308         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
29309         Add extern-inline.
29311         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
29312         * m4/sockets.m4 (gl_SOCKETS):
29313         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
29314         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
29315         environments where it's already guaranteed to work, so we needn't
29316         check for it at 'configure'-time.
29318         tls-tests: omit unnecessary 'inline'
29319         * tests/test-tls.c (perhaps_yield): No longer inline.
29320         Simplicity and portability trump efficiency in test cases.
29322         utimens-tests: avoid unnecessary 'inline'
29323         * modules/fdutimensat-tests (configure.ac):
29324         * modules/futimens-tests (configure.ac):
29325         * modules/utimens-tests (configure.ac):
29326         * modules/utimensat-tests (configure.ac):
29327         Remove AC_C_INLINE.
29328         * tests/test-utimens-common.h (ctime_compare):
29329         No longer inline.  Simplicity and portability trump efficiency here.
29331         misc: don't limit commentary to inline functions
29332         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
29333         * lib/xalloc-oversized.h, lib/xsize.h:
29334         Contrast macros to functions in general, not just to inline functions,
29335         when the commentary does not apply only to inline functions.
29337 2012-09-20  Jim Meyering  <meyering@redhat.com>
29339         non-recursive-gnulib-prefix-hack: new module
29340         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
29341         the file that originated in Bison.
29342         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
29343         largely copied from a snippet that resided in bison's configure.ac.
29344         * modules/non-recursive-gnulib-prefix-hack: New file.
29345         * MODULES.html.sh (Support for maintaining and releasing projects):
29346         Add it.
29348 2012-09-18  Jim Meyering  <meyering@redhat.com>
29350         maint.mk: generalize _gl_tight_scope for non-recursive make
29351         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
29352         that *.h would describe additional .h files in the directory
29353         specified by $(_gl_TS_dir).  I.e., add this...
29354         (_gl_TS_other_headers): New variable.
29356         maint.mk: exempt trailing blanks found in "binary" files
29357         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
29358         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
29359         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
29361 2012-09-17  Jim Meyering  <meyering@redhat.com>
29363         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
29364         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
29365         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
29366         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
29368 2012-09-17  Jim Meyering  <meyering@redhat.com>
29370         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
29371         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
29372         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
29373         It is not in the same category as "exit (0)" or "exit (1)", and
29374         besides, I know of no symbolic name for that 77.  Reported by
29375         Richard W.M. Jones in
29376         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
29378 2012-09-17  Jim Meyering  <meyering@redhat.com>
29380         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
29381         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
29382         all uses of #define, not just those that start in column 1.
29383         Richard W.M. Jones reported a false positive in
29384         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
29386 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
29388         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
29389         * lib/localcharset.c (locale_charset) [DARWIN7]:
29390         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
29391         as these two values are incompatible.  Problem reported by Max Horn.
29392         For more discussion, please see
29393         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
29395         doc: document sticky-EOF issue
29396         * doc/posix-functions/fgetc.texi (fgetc):
29397         * doc/posix-functions/fgets.texi (fgets):
29398         * doc/posix-functions/fread.texi (fread):
29399         * doc/posix-functions/fscanf.texi (fscanf):
29400         * doc/posix-functions/getc.texi (getc):
29401         * doc/posix-functions/getchar.texi (getchar):
29402         * doc/posix-functions/scanf.texi (scanf):
29403         Mention that glibc and default Solaris do not conform to
29404         C99 and POSIX-2001 or later, with respect to how getchar
29405         etc. behave when feof reports nonzero.
29407 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
29409         poll: fix poll(0, NULL, msec)
29410         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
29411         but nfd is 0.  In that case poll should behave like select.
29413 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
29414             Paolo Bonzini  <bonzini@gnu.org>
29416         poll: fix for systems that can't recv() on a non-socket
29417         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
29418         is readable.  In this case POLLHUP will not be supported.
29419         * doc/posix-functions/poll.texi: Document this.
29421 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
29423         poll/select: document portability problems not fixed by Gnulib.
29424         * doc/posix-functions/poll.texi: poll does not work well on
29425         pipes under Windows.  It has the same limitations as select on
29426         BeOS.
29427         * doc/posix-functions/select.texi: select does not work well
29428         on pipes under Windows.
29430 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
29432         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
29433         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
29434         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
29435         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
29437 2012-09-06  Eric Blake  <eblake@redhat.com>
29439         net_if: give more details about the bug being fixed
29440         * doc/posix-headers/net_if.texi: Add clarification.
29442 2012-09-05  Eric Blake  <eblake@redhat.com>
29444         net_if: new module
29445         * modules/net_if: New module, borrowing ideas from netinet_in.
29446         * m4/net_if_h.m4: New file.
29447         * lib/net_if.in.h: Likewise.
29448         * doc/posix-headers/net_if.texi (net/if.h): Document it.
29449         * MODULES.html.sh (lacking POSIX:2008): Likewise.
29450         * tests/test-net_if.c: Make function checks conditional.
29451         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
29453 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
29455         readutmp: fix non-portable UT_PID use
29456         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
29457         Use `UT_PID (u) > 0' as absolute condition.
29459 2012-09-04  Jim Meyering  <meyering@redhat.com>
29461         fts: reduce two or more trailing spaces to just one, usually
29462         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
29463         or more slashes, trim all but the final one.  But if a name consists
29464         solely of two slashes, don't modify it.  If it consists solely of
29465         three or more slashes, strip all but one.
29467         This is part of the solution to a minor problem with rm:
29468         it would print a bogus ELOOP diagnostic when failing to remove
29469         the slash-decorated name of a symlink-to-directory:
29471             $ mkdir d && ln -s d s && env rm -r s/
29472             rm: cannot remove 's': Too many levels of symbolic links
29474         With the change below and a trivial don't-trim-trailing-slashes
29475         adjustment to remove.c, it does this:
29477             $ env rm -r s/
29478             rm: cannot remove 's/': Not a directory
29480         Improved by: Eric Blake
29482         fts: when there is no risk of overlap, use memcpy, not memmove
29483         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
29485 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29487         stdbool: be more compatible with mixed C/C++ compiles
29488         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
29489         Define to bool, true, false, respectively, as GCC's builtin
29490         stdbool.h does.  Problem reported by Michael Goffioul in
29491         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
29493 2012-08-28  Jim Meyering  <meyering@redhat.com>
29495         revert last change: it was not needed
29496         * tests/test-vc-list-files-git.sh: There's already a test for
29497         a working git, just below.
29499 2012-08-28  Jim Meyering  <meyering@redhat.com>
29501         tests: test-vc-list-files-git.sh: skip if git is not available
29502         * tests/test-vc-list-files-git.sh: Skip this test when git is
29503         not available.
29505 2012-08-26  Bruno Haible  <bruno@clisp.org>
29507         gnulib-tool: Remove no-op option --no-changelog.
29508         * gnulib-tool (func_usage): Don't mention --no-changelog.
29509         (do_changelog): Remove variable.
29510         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
29512 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29514         doc: remove fdl-1.2.texi
29515         It is no longer used or maintained, and its use of @acronym
29516         is problematic.  See the thread containing
29517         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
29518         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
29519         * doc/old-licenses/fdl-1.2.texi: Remove.
29521         execinfo: port to FreeBSD
29522         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
29523         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
29524         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
29525         * modules/execinfo (Link): Add $(LIB_EXECINFO).
29527 2012-08-23  Jim Meyering  <meyering@redhat.com>
29529         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
29530         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
29531         to placate gcc's -Wold-style-declaration.
29533 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29535         doc: do not use @acronym
29536         * doc/inet_ntoa.texi (inet_ntoa):
29537         * doc/parse-datetime.texi (Seconds since the Epoch)
29538         (Specifying time zone rules):
29539         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
29540         Don't use @acronym.  Problem reported by John Darlington in
29541         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
29543 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29545         stdnoreturn: port to newer GCCs
29546         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
29547         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
29548         Problem reported by Jim Meyering in
29549         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
29550         Also, rename the 'test' function to a void a clash with the
29551         already-supplied 'main' function; this fixes a bug that incorrectly
29552         rejected GCC 4.7.1's <stdnoreturn.h>.
29553         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
29554         Document GCC problem.
29556 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
29558         pipe-filter: fix comment typo
29559         * lib/pipe-filter.h: Mention correct function.
29561 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
29563         execinfo: new module
29564         This is for Emacs.  Currently, it provides a no-effect stub
29565         on all platforms where it does not already work.
29566         It already works on glibc-based systems, and on Solaris 11.
29567         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
29568         New files.
29569         * doc/glibc-headers/execinfo.texi (execinfo.h):
29570         * MODULES.html.sh (Misc): Document it.
29572 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29574         extern-inline: support old GCC 'inline'
29575         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
29576         if available.  This applies to GCC versions 2.7 through 4.2, or
29577         when newer GCC is using -fgnu89-inline.  The goal is to address
29578         some of the performance issues mentioned by Bruno Haible in
29579         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
29581 2012-08-20  Eric Blake  <eblake@redhat.com>
29583         maint.mk: avoid redundant file name in message
29584         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
29585         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
29586         (sc_makefile_path_separator_check): Remove bogus $(ME).
29588 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
29590         timer-time: fix link order when static linking on glibc
29591         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
29592         _after_ -lrt so that it's significant.
29594 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29596         timespec: omit unnecessary AC_C_INLINE
29597         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
29599         stat-time: omit unnecessary AC_C_INLINE
29600         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
29601         Do not require AC_C_INLINE.
29603         ignore-value: omit unnecessary AC_C_INLINE
29604         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
29606         sys_select: avoid 'static inline'
29607         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
29609         mktime: avoid 'static inline'
29610         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
29611         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
29613 2012-08-19  Bruno Haible  <bruno@clisp.org>
29615         gnulib-tool: Improve coding style.
29616         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
29617         func_emit_lib_Makefile_am.
29618         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
29620 2012-08-19  Bruno Haible  <bruno@clisp.org>
29622         gnulib-tool: Fix indentation.
29623         * gnulib-tool (func_import): Fix indentation.
29625 2012-08-19  Bruno Haible  <bruno@clisp.org>
29627         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
29628         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
29629         on the list of removed files.
29631 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
29633         test-parse-datetime: avoid glibc leap-second glitch
29634         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
29635         with the 2012 rules.  Problem reported by Bruce Dubbs in
29636         <http://bugs.gnu.org/12206>.
29638 2012-08-14  Bruno Haible  <bruno@clisp.org>
29640         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
29641         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
29642         from argument.
29643         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
29645 2012-08-14  Eric Blake  <eblake@redhat.com>
29647         ldexp: relax license
29648         * modules/ldexp (License): Trivial relax, since the module only
29649         provides a permissively licensed m4 file.
29651 2012-08-13  Bruno Haible  <bruno@clisp.org>
29653         gnulib-tool: Fix persistence of --witness-c-macro option.
29654         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
29655         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
29657 2012-08-11  Eric Blake  <eblake@redhat.com>
29659         count-leading-zeros: use a lookup table on non-gcc compilers
29660         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
29661         alternate implementation, suggested by Jim Meyering.
29663 2012-08-10  Eric Blake  <eblake@redhat.com>
29665         count-leading-zeros: new module
29666         * modules/count-leading-zeros: New module.
29667         * m4/count-leading-zeros.m4: New file.
29668         * lib/count-leading-zeros.h: Likewise.
29669         * modules/count-leading-zeros-tests: New test.
29670         * tests/test-count-leading-zeros.c: New file.
29671         * MODULES.html.sh (Integer arithmetic functions): Document it.
29673 2012-08-07  Simon Josefsson  <simon@josefsson.org>
29674             Jim Meyering  <meyering@redhat.com>
29676         maintainer-makefile: Fix syntax error with dash.
29677         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
29678         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
29680 2012-08-05  Jim Meyering  <meyering@redhat.com>
29682         extern-inline: also ignore -Wmissing-declarations
29683         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
29684         required with gcc-4.8.0-to-be.
29686         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
29687         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
29688         for /error ?([^,]*)/.  This avoids false-positives for strings like
29689         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
29691 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
29693         gnumakefile: better interaction with Automake-NG
29694         * modules/gnumakefile [Makefile.am]: The makefiles generated by
29695         Automake-NG always contain a definition of VPATH, even in non-VPATH
29696         builds (its value being simply '.' in that case).  So, in the
29697         'clean-GNUmakefile' rule, to determine whether running under a
29698         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
29699         '$(VPATH)' expands to the empty string.
29701 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
29703         base64: Use extern C scope in header file, for C++.
29704         * lib/base64.h: Add C++ namespace protection.
29706 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
29708         stat-time, timespec, u64: support naive out-of-dir builds
29709         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
29710         Use '#include "foo.h"', not '#include <foo.h>', when including
29711         one's own interface.  This works better when configuring with
29712         out-of-directory builds, since packages need not add an
29713         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
29715 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
29717         utimens: use extern-inline
29718         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
29719         * lib/utimens.h: Add copyright notice, since this is now large enough
29720         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29721         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
29722         * modules/utimens (Depends-on): Add extern-inline.
29724         u64: use extern-inline
29725         * lib/u64.c: New file.
29726         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29727         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
29728         * modules/u64 (Files): Add lib/u64.c.
29729         (Depends-on): Add extern-inline.
29730         (configure.ac): No need to require AC_C_INLINE, since extern-inline
29731         does that now.
29732         (lib_SOURCES): Add u64.c.
29734         timespec: use extern-inline
29735         * lib/timespec.c: New file.
29736         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29737         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
29738         * modules/timespec (Files): Add lib/timespec.c.
29739         (Depends-on): Add extern-inline.
29740         (lib_SOURCES): Add timespec.c.
29742         stat-time: use extern-inline
29743         * lib/stat-time.c: New file.
29744         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29745         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
29746         * modules/stat-time (Files): Add lib/stat-time.c.
29747         (Depends-on): Add extern-inline.
29748         (lib_SOURCES): Add stat-time.c.
29750         extern-inline: new module
29751         * modules/extern-inline, m4/extern-inline.m4: New files.
29752         This is for better support of 'extern inline' a la ISO C99,
29753         with a portable alternative on compilers that do not support
29754         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
29755         of the Emacs executable, when compiled with debugging disabled,
29756         which is a typical way that Emacs is built while developing.
29758 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
29760         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
29761         * build-aux/do-release-commit-and-tag: Move variable definitions
29762         together.
29763         ($branch): Instead of defaulting to "master", default to the current
29764         branch (as gnu-web-doc-update does).
29765         (help): Display the current values of the option arguments.
29766         * top/maint.mk (release-commit): New.
29767         * top/README-release: Simplify the corresponding step.
29769 2012-07-30  Eric Blake  <eblake@redhat.com>
29771         passfd: fix comment on recvfd
29772         * lib/passfd.c (recvfd): Fix comment.
29773         Reported by Jann Horn <jannhorn@googlemail.com>.
29775 2012-07-30  Jim Meyering  <meyering@redhat.com>
29777         maint.mk: avoid a sub-shell
29778         * top/maint.mk (release-prep): Remove unneeded sub-shell.
29780 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
29782         maint.mk: use silent-rules support from Automake
29783         * top/maint.mk (news-check, vc-diff-check, announcement)
29784         (no-submodule-changes, alpha beta stable, release-prep)
29785         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
29787 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
29789         maint.mk: provide a web-manual-update target
29790         * top/maint.mk: here.
29791         * top/README-release: Use it to simplify the web manual update step.
29793 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
29795         README-release: shorten the circuit to post a news
29796         * top/README-release: Point directly to the news submission form.
29798 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
29800         gnu-web-doc-update: fix --help
29801         * build-aux/gnu-web-doc-update: The information "top level" was written
29802         twice.
29804 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
29806         maint.mk: absolute VPATH issue
29807         * top/maint.mk (release-prep): Help Git find .git/.
29808         From Jim Meyering.
29810 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
29812         gitlog-to-changelog: fix previous change
29813         * build-aux/gitlog-to-changelog: Fix condition.
29814         Add missing ";".
29816 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
29818         gitlog-to-changelog: don't expect .git to be in $srcdir
29819         Reported by Bruno Haible.
29820         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
29821         * build-aux/gitlog-to-changelog (&git_dir_option): New.
29822         Use it.
29824 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
29826         maint.mk: absolute VPATH build fix
29827         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
29828         $(srcdir) is not a parent of $(builddir).
29830 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
29832         clean-temp: Fix memory leak.
29833         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
29834         'files' members of tmpdir.
29836 2012-07-27  Jim Meyering  <meyering@redhat.com>
29838         maint.mk: new rule: refresh-gnulib-patches
29839         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
29840         Use this rule to refresh them.
29841         * top/maint.mk (refresh-gnulib-patches): New rule.
29843 2012-07-24  Bruno Haible  <bruno@clisp.org>
29845         gnulib-tool: Fix handling of inctests variable.
29846         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
29847         Reported by Nick Bowler <nbowler@elliptictech.com>.
29849 2012-07-22  Bruno Haible  <bruno@clisp.org>
29851         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
29852         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
29853         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
29854         Remove exemption for getpass.h.
29855         Suggested by Eric Blake.
29857 2012-07-20  Eric Blake  <eblake@redhat.com>
29859         verify: document conflict with -Wnested-externs
29860         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
29862         maint.mk: forbid exit(-1)
29863         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
29865 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
29867         fsusage: port back to Solaris
29868         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
29869         error (fsd not declared) on Solaris 10.  Reported privately by
29870         Andrew Borodin.
29872 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
29874         gnu-web-doc-update: fix error messages
29875         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
29877         gnu-web-doc-update: check the requirements.
29878         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
29879         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
29880         * build-aux/bootstrap (find_tool): Comment change.
29882 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
29884         maint.mk: minor simplication.
29885         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
29886         for default values.
29888 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
29890         gitlog-to-changelog: VPATH build issues
29891         If builddir is not a subdirectory of srcdir, running git from it will
29892         fail.
29893         * build-aux/gitlog-to-changelog (--srcdir): New option.
29895 2012-07-15  Bruno Haible  <bruno@clisp.org>
29897         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
29898         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
29899         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
29900         Remove exemption for fpending.h.
29901         Suggested by Eric Blake.
29903 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
29905         pthread_sigmask: fix bug on FreeBSD 9
29906         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
29907         Include string.h.
29908         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
29909         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
29910         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
29911         but pthread_sigmask (1729, NULL, NULL) returns zero.
29912         See <http://bugs.gnu.org/11884>.
29913         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
29914         by inspecting whether the main call changed the old mask.
29916 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
29918         README-release: make it more legible
29919         * top/README-release: Improve typography slightly.
29921 2012-07-15  Jim Meyering  <meyering@redhat.com>
29923         maint: require that each sc_... command start with "@"
29924         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
29925         "make sc_maint" helps us avoid this nit.
29927 2012-07-15  Jim Meyering  <meyering@redhat.com>
29929         maint.mk: add leading "@" to quiet new "make syntax-check" rule
29930         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
29932 2012-07-13  Eric Blake  <eblake@redhat.com>
29934         maint.mk: new syntax check for HAVE_DECL checks
29935         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
29936         * cfg.mk
29937         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
29938         Exempt some false positives.
29939         Based on a report by Karel Zak.
29941         argp: make HAVE_DECL usage consistent
29942         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
29943         macros, not whether they are defined.
29944         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
29945         convention with other declaration checks.
29946         Reported by Karel Zak, with suggestions from Paul Eggert.
29948         stat-time: relax license to LGPLv2+
29949         * modules/stat-time (License): Relax, with consent of all authors.
29951         strndup: fix m4 usage error
29952         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
29953         defined, to either 0 or 1.
29954         Reported by Karel Zak.
29956 2012-07-11  Jim Meyering  <meyering@redhat.com>
29958         maint: enable the sc_avoid_if_before_free syntax-check rule
29959         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
29960         (if_before_free_offenders_): Define.
29961         (if_before_free_basename_re_): Define.
29962         Exempt current files with useless if-before-free.
29964 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
29966         gettext: do not assume '#define ... defined ...' behavior
29967         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
29968         Do not use '#define FOO ... defined BAR ...', as the C standard says
29969         it's not portable to expect that this works after macro expansion.
29970         Problem reported for gzip by Steven M. Schweda in
29971         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
29973 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
29975         getloadavg: clean out old Emacs and Autoconf cruft
29976         See Glenn Morris in <http://bugs.gnu.org/11905>.
29977         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
29978         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
29979         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
29980         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
29982 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
29984         bootstrap: let warn be like tests/init.sh's warn_
29985         Reported by Jim Meyering.
29986         * build-aux/bootstrap (warn): Remove, replaced by...
29987         (warnf_, warn_): these.
29988         Adjust callers.
29989         Shorten messages that no longer fit in 80 columns.
29991 2012-07-09  Bruno Haible  <bruno@clisp.org>
29993         getopt: Simplify after Emacs changed.
29994         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
29995         (gl_GETOPT_IFELSE): Remove macro.
29997 2012-07-09  Jim Meyering  <meyering@redhat.com>
29999         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
30000         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
30002         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
30003         Bugs in both of those conspired to make the
30004         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
30005         _sc_search_regexp's handling of non-empty $in_files would filter
30006         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
30007         choice of in_files value meant there would be no match in most
30008         projects, due to the presence of two or more Makefile.in files.
30009         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
30010         Fix a bug in how a non-empty $$in_files was processed:
30011         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
30012         in spite of the name, it's a regexp, not a list of file names.
30014 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
30016         getloadavg, getopt: fix commentary re configure.in
30017         Autoconf is deprecating the name 'configure.in', so change it to
30018         to the new name 'configure.ac' in a couple of places.
30019         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
30020         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
30021         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
30022         Emacs has renamed it to configure.ac, and it no longer refers
30023         to these macros anyway.
30025         timespec: mark functions with const attributes
30026         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
30027         Mark with _GL_ATTRIBUTE_CONST.
30029 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
30031         canonicalize[-lgpl]: handle "guessing" values when cross-building
30032         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
30033         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
30034         matches "*yes" instead of just "yes".  Regression introduced in commit
30035         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
30037 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
30038             Bruno Haible  <bruno@clisp.org>
30040         canonicalize: make the right guess when cross-compiling to GNU
30041         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
30042         determine whether cross-compiling to glibc systems, so as to
30043         include GNU/Hurd.
30045 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
30047         timespec-sub: avoid duplicate include
30048         * lib/timespec-sub.c: Do not include <config.h> twice.
30049         Reported by Juanma Barranquero.
30051 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
30053         bootstrap: use a more consistent error reporting scheme
30054         * build-aux/bootstrap (warn, die): New.
30055         Use them.
30057 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
30059         sys_time: allow too-wide tv_sec
30060         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
30061         timeval even if tv_sec is wider than time_t.  This allows
30062         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
30063         as without this patch gnulib replaces struct timeval
30064         and OpenBSD futimes therefore has a type mismatch.
30065         * doc/posix-headers/sys_time.texi: Mention this.
30067         pthread: check for both pthread_create and pthread_join
30068         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
30069         alter the check so that it tests for both pthread_create and
30070         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
30071         Suggested by Bruno Haible and Richard Yao in
30072         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
30074         parse-datetime: doc tuneup
30075         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
30076         spacing issues.
30078 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
30080         do-release-commit-and-tag: fix the previous commit
30081         * build-aux/do-release-commit-and-tag: Actually the test was right,
30082         but the comment and the error message were misleading.
30083         Fix comment, and improve error message.
30084         Perform check first, so that NEWS is not modified uselessly.
30086         do-release-commit-and-tag: fix typo
30087         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
30088         _not_ start with a stub.
30090 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
30092         pthread: check for pthread_create, not pthread_join
30093         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
30094         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
30095         pthread_join in libc.  I hope this removes the need for all the
30096         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
30097         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
30099 2012-07-04  Jim Meyering  <meyering@redhat.com>
30101         parse-datetime: fix failure to diagnose invalid input
30102         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
30103         rather than diagnosing the invalid input.  Now it reports this:
30104         date: invalid date '\260'
30105         * lib/parse-datetime.y (to_uchar): Define.
30106         (yylex): Don't sign-extend "other" bytes.
30107         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
30108         Thanks to Bruno Haible for the patch to this file.
30109         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
30110         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
30112 2012-07-03  Jim Meyering  <meyering@redhat.com>
30114         bootstrap: do not require now-removed build-aux/missing
30115         Now that build-aux/missing is, er, missing, bootstrap would
30116         silently fail.
30117         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
30118         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
30119         no longer part of gnulib.
30120         Diagnose the failure.
30122 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
30124         alloca: add support for HP NonStop TNS/E native
30125         * lib/alloca.in.h (alloca): Support the new host.
30126         From a suggestion by Joachim Schmitz in
30127         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
30129 2012-07-02  Pádraig Brady  <P@draigBrady.com>
30131         fsusage: remove code not needed on non GNU/Linux systems.
30133         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
30134         Don't include headers no longer needed in this case.
30135         * lib/fsusage.c [STAT_STATVFS &&
30136         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
30137         STAT_STATFS2_FRSIZE to exclude code not used in this case.
30139 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
30141         fsusage: include files needed for glibc 2.6 fallback
30142         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
30143         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
30144         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
30145         Problem reported by Ludovic Courtès in
30146         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
30148         fsusage: avoid needless check on GNU/Linux
30149         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
30150         on GNU/Linux systems, since it can't possibly work.
30152 2012-07-01  Bruno Haible  <bruno@clisp.org>
30154         log: Fix an autoconf >= 2.64 warning.
30155         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
30156         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
30158 2012-06-28  Bruno Haible  <bruno@clisp.org>
30160         log10f: Fix possible configuration problem.
30161         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
30162         $LOGF_LIBM.
30163         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
30165 2012-06-28  Bruno Haible  <bruno@clisp.org>
30167         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
30168         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
30169         not gl_cv_func_unlink_works.
30170         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
30172 2012-06-27  Eric Blake  <eblake@redhat.com>
30174         config: drop scripts that automake says are not independent
30175         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
30176         * build-aux/elisp-comp: Delete.
30177         * build-aux/missing: Likewise.
30178         * build-aux/ylwrap: Likewise.
30179         * modules/elisp-comp: Likewise.
30180         * MODULES.html.sh: Drop mention of elisp-comp.
30181         * NEWS: Mention this.
30183 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
30185         root-uid: new module
30186         This is for portability to Tandem's NonStop Kernel.
30187         * lib/root-uid.h, modules/root-uid: New files.
30188         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
30189         * lib/write-any-file.c, tests/test-sethostname2.c:
30190         Include "root-uid.h".
30191         * lib/euidaccess.c (euidaccess):
30192         * lib/pt_chown.c (main):
30193         * lib/unlinkdir.c (cannot_unlink_dir):
30194         * lib/write-any-file.c (can_write_any_file):
30195         * m4/mknod.m4 (gl_FUNC_MKNOD):
30196         * tests/test-sethostname2.c (geteuid, main):
30197         Don't assume ROOT_UID == 0.
30198         * modules/euidaccess (Depends-on):
30199         * modules/pt_chown (Depends-on):
30200         * modules/sethostname-tests (Depends-on):
30201         * modules/unlinkdir (Depends-on):
30202         * modules/write-any-file (Depends-on):
30203         Add root-uid.
30205         regex: use locale-independent comparison for codeset name
30206         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
30207         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
30208         for codeset name.
30209         * lib/regex_internal.h: Do not include <strings.h>, since we
30210         no longer use strcasecmp.
30211         * modules/regex (Depends-on): Remove strcase.
30213 2012-06-23  Bruno Haible  <bruno@clisp.org>
30215         getopt-posix: No longer guarantee that option processing is resettable.
30216         * doc/posix-functions/getopt.texi: Drop description of problem with
30217         internal state. Fix info about mingw and msvc9.
30218         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
30219         option processing by getopt(). Run three test programs instead of one.
30220         Simplify cross-compilation guess.
30221         * NEWS: Mention the change.
30222         Reported by Rich Felker <dalias@aerifal.cx>.
30224 2012-06-26  Bruno Haible  <bruno@clisp.org>
30226         argp, regex: Ensure strcasecmp gets declared.
30227         * lib/argp-help.c: Include <strings.h>.
30228         * lib/regex_internal.h: Likewise.
30229         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
30231 2012-06-24  Bruno Haible  <bruno@clisp.org>
30233         ptsname_r: Make it consistent with ptsname on AIX.
30234         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
30235         implementation as for OSF/1.
30236         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
30237         a pty master.
30239         ptsname_r: Make it consistent with ptsname on OSF/1.
30240         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
30241         OSF/1.
30243 2012-06-24  Bruno Haible  <bruno@clisp.org>
30245         ttyname_r: Fix result on OSF/1, Solaris.
30246         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
30248 2012-06-24  Bruno Haible  <bruno@clisp.org>
30250         ptsname_r: Add support for Solaris.
30251         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
30252         Solaris.
30254         ptsname_r: Fix test failure on native Windows.
30255         * modules/ptsname_r (Depends-on): Add isatty.
30257         ptsname_r: Fix test failures on IRIX, Solaris.
30258         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
30259         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
30260         accordingly.
30261         * lib/ptsname_r.c: Include <fcntl.h>.
30262         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
30263         set errno if fd is invalid.
30264         * tests/test-isatty.c (main): Update comments.
30266 2012-06-24  Bruno Haible  <bruno@clisp.org>
30268         ptsname test: Extend test.
30269         * tests/test-ptsname.c: Include <errno.h>.
30270         (main): Test behaviour with invalid file descriptor.
30272 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
30274         time: fix obsolete comment
30275         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
30276         reference to HAVE_STRUCT_TIMESPEC in comment.
30278 2012-06-23  Bruno Haible  <bruno@clisp.org>
30280         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
30281         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
30282         does not handle abbreviated long options with equivalent
30283         disambiguations, set gl_replace_getopt to yes.
30284         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
30286 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
30288         time_r: fix typo that always overrode localtime_r decl
30289         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
30290         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
30291         not in a standard include.
30293 2012-06-22  Bruno Haible  <bruno@clisp.org>
30295         Write "Mac OS X" instead of "MacOS X".
30296         * README: Write "Mac OS X" instead of "MacOS X".
30297         * build-aux/bootstrap: Likewise.
30298         * build-aux/install-reloc: Likewise.
30299         * lib/acl-internal.h: Likewise.
30300         * lib/acl_entries.c: Likewise.
30301         * lib/argp-ba.c: Likewise.
30302         * lib/argp-pv.c: Likewise.
30303         * lib/config.charset: Likewise.
30304         * lib/copy-acl.c: Likewise.
30305         * lib/csharpexec.c: Likewise.
30306         * lib/euidaccess.c: Likewise.
30307         * lib/fbufmode.c: Likewise.
30308         * lib/fflush.c: Likewise.
30309         * lib/file-has-acl.c: Likewise.
30310         * lib/filemode.h: Likewise.
30311         * lib/fpurge.c: Likewise.
30312         * lib/freadable.c: Likewise.
30313         * lib/freadahead.c: Likewise.
30314         * lib/freading.c: Likewise.
30315         * lib/freadptr.c: Likewise.
30316         * lib/freadseek.c: Likewise.
30317         * lib/fseeko.c: Likewise.
30318         * lib/fseterr.c: Likewise.
30319         * lib/fsusage.c: Likewise.
30320         * lib/fwritable.c: Likewise.
30321         * lib/fwriting.c: Likewise.
30322         * lib/get-rusage-as.c: Likewise.
30323         * lib/get-rusage-data.c: Likewise.
30324         * lib/getdomainname.c: Likewise.
30325         * lib/idpriv-drop.c: Likewise.
30326         * lib/idpriv-droptemp.c: Likewise.
30327         * lib/localcharset.c: Likewise.
30328         * lib/locale.in.h: Likewise.
30329         * lib/localename.c: Likewise.
30330         * lib/mbsrtowcs-state.c: Likewise.
30331         * lib/nproc.c: Likewise.
30332         * lib/passfd.c: Likewise.
30333         * lib/posix_openpt.c: Likewise.
30334         * lib/printf-parse.c: Likewise.
30335         * lib/progreloc.c: Likewise.
30336         * lib/safe-read.h: Likewise.
30337         * lib/safe-write.h: Likewise.
30338         * lib/sched.in.h: Likewise.
30339         * lib/set-mode-acl.c: Likewise.
30340         * lib/signal.in.h: Likewise.
30341         * lib/stdint.in.h: Likewise.
30342         * lib/stdio-impl.h: Likewise.
30343         * lib/stdlib.in.h: Likewise.
30344         * lib/strtod.c: Likewise.
30345         * lib/sys_select.in.h: Likewise.
30346         * lib/tcgetsid.c: Likewise.
30347         * lib/unistd.in.h: Likewise.
30348         * lib/unlockpt.c: Likewise.
30349         * lib/vasnprintf.c: Likewise.
30350         * lib/vma-iter.c: Likewise.
30351         * lib/wcsrtombs-state.c: Likewise.
30352         * m4/acl.m4: Likewise.
30353         * m4/acosl.m4: Likewise.
30354         * m4/asinl.m4: Likewise.
30355         * m4/atanl.m4: Likewise.
30356         * m4/c-stack.m4: Likewise.
30357         * m4/cosl.m4: Likewise.
30358         * m4/expl.m4: Likewise.
30359         * m4/extensions.m4: Likewise.
30360         * m4/fdatasync.m4: Likewise.
30361         * m4/fmal.m4: Likewise.
30362         * m4/frexp.m4: Likewise.
30363         * m4/frexpf.m4: Likewise.
30364         * m4/frexpl.m4: Likewise.
30365         * m4/fsusage.m4: Likewise.
30366         * m4/getdomainname.m4: Likewise.
30367         * m4/getloadavg.m4: Likewise.
30368         * m4/getopt.m4: Likewise.
30369         * m4/gettext.m4: Likewise.
30370         * m4/gnulib-common.m4: Likewise.
30371         * m4/intdiv0.m4: Likewise.
30372         * m4/intlmacosx.m4: Likewise.
30373         * m4/largefile.m4: Likewise.
30374         * m4/ldexpl.m4: Likewise.
30375         * m4/link-follow.m4: Likewise.
30376         * m4/locale-ar.m4: Likewise.
30377         * m4/locale-fr.m4: Likewise.
30378         * m4/locale-ja.m4: Likewise.
30379         * m4/locale-tr.m4: Likewise.
30380         * m4/locale-zh.m4: Likewise.
30381         * m4/locale_h.m4: Likewise.
30382         * m4/lock.m4: Likewise.
30383         * m4/logl.m4: Likewise.
30384         * m4/mathfunc.m4: Likewise.
30385         * m4/minus-zero.m4: Likewise.
30386         * m4/mktime.m4: Likewise.
30387         * m4/mmap-anon.m4: Likewise.
30388         * m4/multiarch.m4: Likewise.
30389         * m4/nanosleep.m4: Likewise.
30390         * m4/nocrash.m4: Likewise.
30391         * m4/poll.m4: Likewise.
30392         * m4/printf-frexpl.m4: Likewise.
30393         * m4/printf.m4: Likewise.
30394         * m4/signbit.m4: Likewise.
30395         * m4/sinl.m4: Likewise.
30396         * m4/sqrtl.m4: Likewise.
30397         * m4/strerror_r.m4: Likewise.
30398         * m4/tanl.m4: Likewise.
30399         * m4/threadlib.m4: Likewise.
30400         * m4/ttyname_r.m4: Likewise.
30401         * m4/unlink.m4: Likewise.
30402         * m4/visibility.m4: Likewise.
30403         * m4/wcwidth.m4: Likewise.
30404         * tests/minus-zero.h: Likewise.
30405         * tests/test-alloca-opt.c: Likewise.
30406         * tests/test-copy-acl.sh: Likewise.
30407         * tests/test-copy-file.sh: Likewise.
30408         * tests/test-fdatasync.c: Likewise.
30409         * tests/test-file-has-acl.sh: Likewise.
30410         * tests/test-flock.c: Likewise.
30411         * tests/test-fsync.c: Likewise.
30412         * tests/test-localename.c: Likewise.
30413         * tests/test-malloca.c: Likewise.
30414         * tests/test-nonblocking-pipe.h: Likewise.
30415         * tests/test-nonblocking-socket.h: Likewise.
30416         * tests/test-openpty.c: Likewise.
30417         * tests/test-posix_openpt.c: Likewise.
30418         * tests/test-ptsname.c: Likewise.
30419         * tests/test-ptsname_r.c: Likewise.
30420         * tests/test-sameacls.c: Likewise.
30421         * tests/test-select.h: Likewise.
30422         * tests/test-set-mode-acl.sh: Likewise.
30423         * tests/test-snprintf-posix.h: Likewise.
30424         * tests/test-sprintf-posix.h: Likewise.
30425         * tests/test-strtod.c: Likewise.
30426         * tests/test-time.c: Likewise.
30427         * tests/test-vasnprintf-posix.c: Likewise.
30428         * tests/test-vasprintf-posix.c: Likewise.
30429         * doc/acl-resources.txt: Likewise.
30430         * doc/**/*.texi: Likewise.
30431         Reported by Max Horn <max@quendi.de>.
30433 2012-06-22  Bruno Haible  <bruno@clisp.org>
30435         grantpt: Relax requirement regarding invalid file descriptors.
30436         * lib/grantpt.c: Don't include <fcntl.h>.
30437         (grantpt): Don't verify the validity of the file descriptor.
30438         * modules/grantpt (Depends-on): Remove fcntl-h.
30439         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
30440         file descriptors.
30441         * doc/posix-functions/grantpt.texi: Document more platforms on which
30442         grantpt succeeds for invalid file descriptors.
30443         Reported by Rich Felker <dalias@aerifal.cx>.
30445 2012-06-22  Bruno Haible  <bruno@clisp.org>
30447         fbufmode test: Don't test unportable behaviour.
30448         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
30449         (main): Invoke it three times.
30450         Reported by Szabolcs Nagy <nsz@port70.net>
30451         and Rich Felker <dalias@aerifal.cx>.
30453 2012-06-21  Bruno Haible  <bruno@clisp.org>
30455         gnulib-tool: Refactor inctests variable.
30456         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
30457         (func_modules_transitive_closure,
30458         func_modules_transitive_closure_separately,
30459         func_import, func_create_testdir): Update.
30461         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
30462         * gnulib-tool: Accept option --without-tests.
30463         (func_usage): Document --without-tests option. Rearrange.
30464         (inctests): Normalize according to the mode.
30465         * NEWS: Mention the change.
30466         Suggested by Simon Josefsson.
30468 2012-06-21  Bruce Korb  <bkorb@gnu.org>
30470         parse-duration test: Avoid spurious output.
30471         * tests/test-parse-duration.sh: Reindent with leading tabs.
30473 2012-06-21  Jim Meyering  <meyering@redhat.com>
30475         maint: disable the strncpy prohibition
30476         * cfg.mk: Do not prohibit strncpy here.
30478 2012-06-21  Bruno Haible  <bruno@clisp.org>
30480         nonblocking: Avoid compilation error on mingw64.
30481         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
30482         fscanf.
30483         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
30484         * modules/vfscanf (configure.ac): Likewise.
30485         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
30486         definition only if stdio.h has prepared it.
30487         Reported by Daniel P. Berrange <berrange@redhat.com>.
30489 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
30491         gnulib-tool: Use readlink if it is available.
30492         * gnulib-tool (func_readlink): Choose function more appropriately.
30494 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
30496         posixtm-tests: port to buggy compiler
30497         Problem reported by Simon Josefsson in
30498         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
30499         * modules/posixtm-tests (Depends-on): Add stdint.
30500         * tests/test-posixtm.c (struct posixtm_test.t_expected):
30501         Now of type int_least64_t, not int64_t, both because that's
30502         what INT64_C returns and because int_least64_t works even
30503         on 72-bit hosts.
30504         (T): Use INT64_C on constants outside the traditional int range,
30505         to work around compiler bug noted by Simon.
30507         mktime: fix integer overflow in 'configure'-time test
30508         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
30509         after integer overflow.  Problem reported by Rich Felker in
30510         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
30511         Also, don't look for further instances of a bug if we've already
30512         found one instance; this helps 'configure' run faster.
30514 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
30516         tmpfile, clean-temp: Fix invocation of GetVersionEx.
30517         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
30518         GetVersionEx correctly.
30519         * lib/clean-temp.c (supports_delete_on_close): Likewise.
30521 2012-06-20  Bruno Haible  <bruno@clisp.org>
30523         fdopen: Allow implementations that don't reject invalid fd arguments.
30524         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
30525         succeeds.
30526         Reported by Rich Felker <dalias@aerifal.cx>.
30528 2012-06-20  Simon Josefsson  <simon@josefsson.org>
30530         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
30531         bring in LIBINTL.
30533 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
30535         init.sh: do not rely on autoupated PWD
30536         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
30537         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
30538         Although Nelson's bug was not necessarily fixed by this patch,
30539         it seems wise to make the change for safety.
30540         * tests/init.sh (path_prepend_): Do not rely on PWD updating
30541         automagically after 'cd'; this is not reliable on older shells.
30542         (setup_): Fail if we cannot cd to temporary directory.
30544 2012-06-19  Bruno Haible  <bruno@clisp.org>
30546         stat, fstat: Avoid warnings on mingw64.
30547         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
30548         redefining.
30549         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
30550         Reported by Daniel P. Berrange <berrange@redhat.com>.
30552 2012-06-19  Bruno Haible  <bruno@clisp.org>
30554         stdioext: Add support for musl libc.
30556         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
30557         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
30559         * m4/fseterr.m4: New file.
30560         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
30561         function exists.
30562         * modules/fseterr (Files): Add m4/fseterr.m4.
30563         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
30564         __fseterr does not exist.
30565         (Makefile.am): Remove fseterr.c from lib_SOURCES.
30567         * lib/freadable.h: Update comment.
30569         * lib/fwritable.h: Update comment.
30571         * lib/freading.h: Update comment.
30573         * lib/fwriting.h: Update comment.
30575         * m4/freadahead.m4: New file.
30576         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
30577         that function exists.
30578         * modules/freadahead (Files): Add m4/freadahead.m4.
30579         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
30580         __freadahead does not exist.
30581         (Makefile.am): Remove freadahead.c from lib_SOURCES.
30583         * m4/freadptr.m4: New file.
30584         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
30585         function exists.
30586         * modules/freadptr (Files): Add m4/freadptr.m4.
30587         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
30588         __freadptr does not exist.
30589         (Makefile.am): Remove freadptr.c from lib_SOURCES.
30591         * m4/freadseek.m4: New file.
30592         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
30593         exists.
30594         * modules/freadseek (Files): Add m4/freadseek.m4.
30595         (configure.ac): Invoke gl_FUNC_FREADSEEK.
30597         * lib/fpurge.c (fpurge): Update comment.
30599         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
30601 2012-06-19  Bruno Haible  <bruno@clisp.org>
30603         *printf-posix: Put more info into config.log.
30604         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
30605         exit code into config.log.
30607 2012-06-19  Bruno Haible  <bruno@clisp.org>
30609         getopt-gnu: Fix exit code overflow in autoconf test.
30610         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
30611         to keep them below < 128.
30613 2012-06-17  Jim Meyering  <meyering@redhat.com>
30615         maint.mk: fix typo in code to derive GPG key at release time
30616         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
30618 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
30620         regex: avoid warning when pointers are not long
30621         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
30622         and uintptr_t, not long, for portability to hosts where pointers and
30623         long have different sizes.  Issue noted by Daniel P. Berrange in
30624         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
30625         and fix suggested by Bruno Haible in
30626         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
30628 2012-06-17  Bruno Haible  <bruno@clisp.org>
30630         dummy: Relicense into the public domain.
30631         * modules/dummy (License): Set to "public domain".
30632         Suggested by Reuben Thomas.
30634 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
30636         announce-gen: VPATH issues
30637         * build-aux/announce-gen (--srcdir): New option, used to trim the
30638         $srcdir part of the path from $builddir to NEWS.
30639         * top/maint.mk (announcement): Adjust.
30641 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
30643         gnu-web-doc-update: VPATH builds
30644         * build-aux/gnu-web-doc-update (--builddir): New option.
30645         Revamp the handling of options.
30646         Prefer $(...) to `...`.
30647         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
30648         the template, and it is GNU mktemp specific.
30649         Prefer set -e to long series of &&.
30650         Restore the initial git branch, not "master".
30651         Properly initialize submodules (don't rely only on bootstrap).
30652         Do not reconfigure blindly, use config.status.
30653         * top/README-release: Update instructions for gnu-web-doc-update.
30655 2012-06-11  Jim Meyering  <meyering@redhat.com>
30657         maint.mk: revert most of the previous change re "all these"
30658         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
30659         For rationale, see the discussion at
30660         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
30662 2012-06-10  Karl Berry  <karl@gnu.org>
30664         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
30666         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
30668 2012-06-10  Bruce Korb  <bkorb@gnu.org>
30670         parse-duration: Relicense under LGPLv2+.
30671         * modules/parse-duration (License): Change to LGPLv2+.
30673 2012-06-10  Jim Meyering  <meyering@redhat.com>
30675         maint.mk: prohibit common grammar error: "all these"
30676         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
30677         the list of prohibited word sequences.  It should be "all of these".
30678         * lib/tempname.c (__gen_tempname): Fix one of them.
30680 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
30682         do-release-commit-and-tag: support VPATH builds
30683         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
30684         (noteworthy): Defined earlier to factor its value.
30685         (noteworthy_stub): New.
30686         Use it to factor.
30687         (help_version): Split into...
30688         (help, version): these.
30689         Adjust the option processing part.
30690         Support "--option=value" in addition to "--option value".
30691         (builddir): New.
30692         (--builddir): New option.
30693         * top/README-release: Document this.
30694         Reword slightly so that the reader cannot understand that he
30695         has to do these steps before calling do-release-commit-and-tag.
30697 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
30699         readme-release: also require announce-gen and maintainer-makefile
30700         * modules/readme-release (Depends-on): here.
30701         * modules/announce-gen, modules/do-release-commit-and-tag,
30702         modules/gnu-web-doc-update, modules/maintainer-makefile
30703         (Description): Point to readme-release.
30705 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
30707         maint.mk: fix VPATH issues.
30708         * top/maint.mk (news-check): GNU Make understand $< very well.
30709         (release-prep): NEWS is in $(srcdir).
30711 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
30713         readme-release: require the promoted modules.
30714         * modules/readme-release (Depends-on): Add
30715         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
30716         in this text.
30718 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
30719             Bruno Haible  <bruno@clisp.org>
30721         error, strerror-override: Support mingw64 from Fedora 17.
30722         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
30723         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
30724         EINPROGRESS.
30725         * lib/strerror-override.h (strerror_override): Test it.
30726         * lib/strerror-override.c (strerror_override): Likewise.
30727         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
30729 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
30730             Bruno Haible  <bruno@clisp.org>
30732         error, strerror-override: Support mingw64 from Fedora 17.
30733         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
30734         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
30735         * lib/strerror-override.h (strerror_override): Test it.
30736         * lib/strerror-override.c (strerror_override): Likewise.
30738 2012-06-03  Bruno Haible  <bruno@clisp.org>
30740         error, strerror-override: Support new errno values from POSIX:2008.
30741         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
30742         ENOTRECOVERABLE.
30743         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
30744         platforms.
30745         * lib/strerror-override.c (strerror_override): Conditionalize the
30746         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
30747         * lib/strerror-override.h (strerror_override): Declare also if
30748         GNULIB_defined_EOWNERDEAD is defined.
30749         * tests/test-errno.c (e130, e131): New variables.
30750         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
30751         ENOTRECOVERABLE.
30752         Reported by Paolo Bonzini.
30754 2012-05-31  Jim Meyering  <meyering@redhat.com>
30756         savewd: add missing dependency on sys_wait module
30757         * modules/savewd (Depends-on): Add sys_wait, needed at least
30758         for MSVC.  Report and suggested change by Michael Goffioul.
30760 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
30762         system-quote-tests: port to CentOS 5
30763         Problem reported by Tom G. Christensen in
30764         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
30765         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
30767 2012-05-29  Jim Meyering  <meyering@redhat.com>
30769         maint: fix typos in comments and ChangeLog
30770         Culprits identified and fixed mostly automatically using these commands:
30771         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
30772         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
30773         using http://github.com/lyda/misspell-check
30774         * ChangeLog: Fix typos.
30775         * doc/solaris-versions: Likewise.
30776         * lib/regexec.c (re_search_stub): Likewise.
30777         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
30779 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30781         manywarnings: remove duplicate -Wmultichar entry
30782         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
30783         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
30784         so keep the entry marked as documented.
30786 2012-05-27  Karl Berry  <karl@gnu.org>
30788         * config/srclist.txt (mktime.c): remove last libc sync,
30789         perhaps just temporarily.
30791 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
30793         regex: don't assume uint64_t or uint32_t
30794         * lib/regcomp.c (init_word_char): Don't assume that the types
30795         uint64_t and uint32_t exist.  The C standard doesn't guarantee
30796         them, and on some 32-bit compilers there is no uint64_t.
30797         Problem reported by Gianluigi Tiesi in
30798         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
30800 2012-05-25  Jim Meyering  <meyering@redhat.com>
30802         maint.mk: add strncpy-prohibiting syntax-check rule
30803         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
30805 2012-05-24  Jim Meyering  <meyering@redhat.com>
30807         maint.mk: compute $(gpg_key_ID) more portably
30808         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
30809         That use of sed is not portable to some fringe systems.
30810         Reported by Paul Eggert in
30811         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
30813 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
30815         mktime: sync from glibc
30816         * config/srclist.txt: Uncomment mktime.c.
30817         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
30818         First, indent with tabs, since glibc uses tabs and doesn't want to
30819         change and we'd rather be identical to glibc.  Also, two small
30820         coding changes:
30821         (isdst_differ): Use &&, not &, as && is the usual style.
30822         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
30823         for clarity.
30825 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
30827         announce-gen: du -h is more portable than du --human
30828         * build-aux/announce-gen (sizes): Invoke du with -h instead
30829         of --human.  Accept leading white space in its output.
30831 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
30833         announce-gen: Improve diagnostics.
30834         * build-aux/announce-gen: When parsing command line options,
30835         prefer "announce-gen: option --release-type requires an argument"
30836         to "Option release-type requires an argument".
30838 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
30840         maint.mk: gpg_key_ID: use sed more portably
30841         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
30842         the closing brace.
30843         (refresh-po): Fuse two sed invocations into one.
30845 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
30847         gitlog-to-changelog: support the log message format used in Bison.
30848         * build-aux/gitlog-to-changelog: Support --strip-tab and
30849         --strip-cherry-picked.
30851 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
30853         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
30854         the rest of the current time slice to another thread in the current
30855         process. So if the thread that feeds the file decscriptor we're
30856         polling is not in the current process, we get busy-waiting.
30857         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
30858         Patch from Theodore Leblond.
30859         * lib/select.c: Split polling out of the loop that sets the output
30860         fd_sets.  Check for zero result and loop if the wait timeout is
30861         infinite.
30863 2012-05-21  Simon Josefsson  <simon@josefsson.org>
30865         select: Fix build error on IRIX 6.5.
30866         * lib/select.c: Include stddef.h for NULL.
30868 2012-05-21  Simon Josefsson  <simon@josefsson.org>
30870         gc: fix libgcrypt detection on older machines.
30871         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
30872         copyright years because the file has been distributed every year
30873         since it was created.
30875 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30877         crypto: fix bug in large buffer handling
30878         Problem reported by Serge Belyshev for glibc in
30879         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
30880         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
30881         * lib/md4.c (md4_process_block):
30882         * lib/md5.c (md5_process_block):
30883         * lib/sha1.c (sha1_process_block):
30884         * lib/sha256.c (sha256_process_block):
30885         Don't assume the buffer length is less than 2**32.
30886         * lib/sha512.c (sha512_process_block): Likewise.
30887         Here, the bug is present only in the rare case where the host does
30888         not support uint64_t or where size_t is wider than 64 bits.
30889         Use u64size to work around the problems.
30890         * lib/u64.h (u64size): New macro.
30892 2012-05-15  Pádraig Brady  <P@draigBrady.com>
30894         fsusage: fix block size returned on older Linux 2.6
30896         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
30897         which is available since Linux 2.6.
30898         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
30899         when the member is available so it can be used as a fallback.
30900         * doc/posix-functions/statvfs.texi: Mention the hang issue
30901         on Linux < 2.6.36.
30903 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30905         bootstrap: suppress stderr chatter
30906         * build-aux/bootstrap (insert_sorted_if_absent, main program):
30907         Omit unnecessary chatter to stderr.  The main program chatter
30908         was there only inadvertantly.
30910         bootstrap: .gitignore files created by autopoint, libtool
30911         I ran into this problem when bootstrapping the latest diffutils.
30912         After './bootstrap', 'git status' reported lots of untracked files
30913         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
30914         autopoint and do not need to be version-controlled.
30915         * build-aux/bootstrap: Put into .gitignore the files that
30916         autopoint and libtool create, by keeping track of files that exist
30917         after but not before these programs are run.
30918         (version_controlled_file): Move up.  2nd arg is now full file
30919         name, not base name; this is more convenient.  Put CVS at the end,
30920         as it's now somewhat deprecated.
30922 2012-05-14  Jim Meyering  <meyering@redhat.com>
30924         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
30925         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
30926         definition.  Reported by Bruno Haible.
30928 2012-05-13  Bruno Haible  <bruno@clisp.org>
30929             Paul Eggert  <eggert@cs.ucla.edu>
30931         binary-io: Define set_binary_mode function.
30932         * lib/binary-io.h (set_binary_mode): New function.
30933         (SET_BINARY): Define in terms of set_binary_mode.
30934         * modules/binary-io (configure.ac): Require AC_C_INLINE.
30935         * tests/test-binary-io.c (main): Accept an argument, and test either
30936         set_binary_mode or SET_BINARY depending on the argument.
30937         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
30938         argument. Clean up also t-bin-out0.tmp.
30940 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
30942         bootstrap: take advantage of POSIX shell features
30944         The 'bootstrap' script offered by Gnulib script already uses POSIX
30945         shell features (like $((...)) arithmetic expansions) that are not
30946         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
30947         means that bootstrap must already be run using a proper POSIX shell,
30948         which will thus provide more features, like ${var#pattern} parameter
30949         expansion or inversion of a command exit status with '!'.  We can
30950         thus use these features to improve the clarity and the performances
30951         of the bootstrap script.
30953         Suggested by Eric Blake.
30955         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
30956         of sed/expr plus command substitutions, to save some forks.  While
30957         we are at it, prefer the POSIX $(...) form of command substitution,
30958         rather than the legacy form `...` (since the former is visually
30959         clearer and interacts better with quoting), and prefer the idiom:
30960           "if ! CMD; then ACTION ..."
30961         over the idiom:
30962           "if CMD; then :; else ACTION ..."
30963         which was required by legacy Bourne shells not supporting '!'.
30965 2012-05-12  Bruno Haible  <bruno@clisp.org>
30967         system-quote: Add more comments.
30968         * lib/system-quote.h: Add more comments about wilcards and limitations.
30969         Suggested by Eli Zaretskii <eliz@gnu.org>.
30971         sh-quote, system-quote: Add comments about wildcards.
30972         * lib/sh-quote.h: Clarify what happens with wildcard characters.
30973         * lib/system-quote.h: Likewise.
30974         Reported by Eli Zaretskii <eliz@gnu.org>.
30976 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
30978         fsusage: check for GNU/Linux statvfs problem dynamically
30979         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
30980         Define STAT_STATFS2_BSIZE too, since in this case the code now
30981         checks dynamically whether statvfs is reliable, falling back on
30982         Linux-style statfs otherwise.
30983         (statvfs_works): New function, for dynamically testing statvfs.
30984         (get_fs_usage) [STAT_STATVFS]: Use it.
30985         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
30986         statvfs on GNU/Linux hosts, since it's now done dynamically.
30988 2012-05-10  Bruno Haible  <bruno@clisp.org>
30990         system-quote, execute, spawn-pipe: Escape '?' on Windows.
30991         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
30992         '?' character.
30993         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
30994         * tests/test-system-quote-main.c (check_all): Check also strings like
30995         "??????????".
30996         Reported by Eli Zaretskii <eliz@gnu.org>.
30998 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
31000         _Noreturn: port config.h to gcc -Wundef
31001         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
31002         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
31003         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
31005 2012-05-10  Bruno Haible  <bruno@clisp.org>
31007         system-quote: Refactor.
31008         * lib/system-quote.h (system_quote_copy): Fix comment.
31009         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
31010         New functions, extracted from system_quote_copy.
31011         (system_quote_length, system_quote_copy): Use these functions.
31012         Reported by Paul Eggert.
31014 2012-05-08  Bruno Haible  <bruno@clisp.org>
31016         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
31017         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
31019 2012-05-08  Bruno Haible  <bruno@clisp.org>
31021         Tests for module 'system-quote'.
31022         * modules/system-quote-tests: New file.
31023         * tests/test-system-quote.sh: New file.
31024         * tests/test-system-quote-main.c: New file.
31025         * tests/test-system-quote-child.c: New file.
31027         New module 'system-quote'.
31028         * lib/system-quote.h: New file.
31029         * lib/system-quote.c: New file.
31030         * modules/system-quote: New file.
31032 2012-05-08  Bruno Haible  <bruno@clisp.org>
31034         sh-quote: Make C++ safe and allow multiple inclusion.
31035         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
31036         declarations in extern "C".
31038 2012-05-08  Bruno Haible  <bruno@clisp.org>
31040         sh-quote tests: Make tests stricter.
31041         * tests/test-sh-quote.c (check_one): Check the return value of
31042         shell_quote_copy.
31043         (main): Check a string with a CR character. Check a string that
31044         contains UCHAR_MAX.
31046 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
31048         warnings.m4: provide a means to specify the program to compile.
31049         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
31050         (gl_WARN_ADD): here.
31051         Use gl_AS_VAR_APPEND.
31052         Support an argument to specify the program to compile.
31053         (gl_WARN_ADD): Accept an argument to specify the program to compile.
31054         AC_SUBST the WARN_CFLAGS when they are used.
31055         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
31056         leave this to gl_WARN_ADD.
31058 2012-05-08  Eric Blake  <eblake@redhat.com>
31060         doc: recommendations on gettext version
31061         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
31062         choice between versions.
31063         * DEPENDENCIES (gettext): Cover both approaches.
31065 2012-05-08  Jim Meyering  <meyering@redhat.com>
31067         init.sh: explain why EXEEXT support uses aliases rather than functions
31068         * tests/init.sh: Add a comment.
31070         init.sh: don't let bash aliases interfere with tests
31071         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
31072         is bash.  This avoids problems for those who alias standard commands to
31073         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
31074         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
31076 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
31078         stdint: be more consistent with glibc, SunOS libc
31079         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
31080         (gl_int_fast16_t, gl_uint_fast16_t)
31081         (gl_int_fast32_t, gl_uint_fast32_t)
31082         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
31083         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
31084         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
31085         Be consistent with glibc by default, and with SunOS 5.10 and later
31086         if __sun is defined.  This lessens the likelihood of clashes if
31087         code compiled for older hosts is combined with code compiled for
31088         newer ones.  Problem reported by Niels Möller in
31089         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
31091 2012-05-07  Eric Blake  <eblake@redhat.com>
31093         isatty: relax license to LGPLv2+
31094         * modules/isatty (License): Relax license.
31096 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
31098         stat-size: comment fix
31099         * lib/stat-size.h: Remove obsolete comment about indenting.
31101 2012-05-06  Bruno Haible  <bruno@clisp.org>
31103         Tests for module 'sh-quote'.
31104         * modules/sh-quote-tests: New file.
31105         * tests/test-sh-quote.c: New file.
31107 2012-05-06  Bruno Haible  <bruno@clisp.org>
31109         sh-quote: Improve shell_quote_argv's signature.
31110         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
31111         * lib/sh-quote.c (shell_quote_argv): Likewise.
31113 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
31115         stdint: document issues with int_fast8_t etc.
31116         * doc/posix-headers/stdint.texi (stdint.h): Say that other
31117         stdint.h substitutes may define these types differently.  See
31118         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
31120 2012-05-05  Bruno Haible  <bruno@clisp.org>
31122         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
31123         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
31124         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
31125         or 'guessing no (mishandles large arguments)'.
31127 2012-05-05  Bruno Haible  <bruno@clisp.org>
31129         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
31130         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
31131         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
31132         set gl_cv_func_link_follows_symlink to "guessing no".
31134 2012-05-05  Bruno Haible  <bruno@clisp.org>
31136         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
31137         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
31138         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
31139         "guessing no".
31140         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
31142 2012-05-05  Bruno Haible  <bruno@clisp.org>
31144         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
31145         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
31146         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
31147         set gl_cv_struct_dirent_d_ino to "guessing yes".
31149 2012-05-05  Bruno Haible  <bruno@clisp.org>
31151         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
31152         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
31153         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
31154         "guessing yes".
31156 2012-05-05  Bruno Haible  <bruno@clisp.org>
31158         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
31159         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
31160         compiling to a glibc system, set gl_cv_func_signbit and
31161         gl_cv_func_signbit_gcc to "guessing yes".
31163 2012-05-05  Bruno Haible  <bruno@clisp.org>
31165         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
31166         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
31167         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
31168         to "guessing yes".
31169         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
31170         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
31172 2012-05-05  Bruno Haible  <bruno@clisp.org>
31174         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
31175         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
31176         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
31177         gl_cv_func_realpath_works to "guessing yes".
31179 2012-05-05  Bruno Haible  <bruno@clisp.org>
31181         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
31182         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
31183         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
31185 2012-05-04  Bruno Haible  <bruno@clisp.org>
31187         Tweak last commit.
31188         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
31189         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
31191 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
31193         unistd_h: make it easier to avoid sys_types_h
31194         This is useful for Emacs, which has its own method of porting to
31195         Windows, and which therefore does not need the sys_types_h module.
31196         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
31197         code moved here from gl_SYS_TYPES_H.
31198         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
31199         using the code directly.
31200         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
31201         gl_SYS_TYPES_H.
31202         * modules/sys_types (Files):
31203         * modules/unistd (Files): Add m4/off_t.m4.
31205 2012-05-03  Bruno Haible  <bruno@clisp.org>
31207         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
31208         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
31209         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
31210         "guessing yes" or "guessing no".
31211         (gl_FUNC_LSTAT): Update.
31212         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
31213         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
31214         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
31216 2012-05-03  Bruno Haible  <bruno@clisp.org>
31218         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
31219         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
31220         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
31221         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
31222         cross-compiling, choose the first alternative on glibc systems.
31223         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
31225 2012-05-03  Bruno Haible  <bruno@clisp.org>
31227         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
31228         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
31229         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
31231 2012-05-03  Bruno Haible  <bruno@clisp.org>
31233         chown: Avoid "guessing no" when cross-compiling to glibc systems.
31234         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
31236 2012-05-03  Bruno Haible  <bruno@clisp.org>
31238         Avoid "guessing no" guesses when cross-compiling to glibc systems.
31239         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
31240         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
31241         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
31242         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
31243         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
31244         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
31245         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
31246         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
31247         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
31248         compiling to glibc systems, set gl_cv_func_chown_slash_works,
31249         gl_cv_func_chown_ctime_works to "guessing yes".
31250         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
31251         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
31252         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
31253         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
31254         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
31255         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
31256         compiling to glibc systems, set gl_cv_func_open_directory_works to
31257         "guessing yes".
31258         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
31259         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
31260         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
31261         "guessing yes".
31262         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
31263         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
31264         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
31265         compiling to glibc systems, set gl_cv_func_floorf_ieee to
31266         "guessing yes".
31267         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
31268         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
31269         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
31270         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
31271         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
31272         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
31273         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
31274         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
31275         "guessing yes".
31276         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
31277         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
31278         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
31279         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
31280         "guessing yes".
31281         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
31282         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
31283         "guessing yes".
31284         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
31285         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
31286         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
31287         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
31288         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
31289         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
31290         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
31291         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
31292         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
31293         compiling to glibc systems, set gl_cv_func_log10f_ieee to
31294         "guessing yes".
31295         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
31296         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
31297         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
31298         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
31299         "guessing yes".
31300         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
31301         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
31302         "guessing yes".
31303         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
31304         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
31305         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
31306         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
31307         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
31308         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
31309         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
31310         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
31311         compiling to glibc systems, set gl_cv_func_mkfifo_works to
31312         "guessing yes".
31313         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
31314         compiling to glibc systems, set gl_cv_func_mknod_works to
31315         "guessing yes".
31316         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
31317         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
31318         "guessing yes".
31319         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
31320         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
31321         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
31322         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
31323         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
31324         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
31325         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
31326         compiling to glibc systems, set gl_cv_func_svid_putenv to
31327         "guessing yes".
31328         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
31329         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
31330         "guessing yes".
31331         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
31332         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
31333         "guessing yes".
31334         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
31335         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
31336         to "guessing yes".
31337         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
31338         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
31339         to "guessing yes".
31340         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
31341         compiling to glibc systems, set gl_cv_func_rmdir_works to
31342         "guessing yes".
31343         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
31344         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
31345         gl_cv_func_unlink_parent_fails to "guessing yes".
31346         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
31347         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
31348         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
31349         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
31350         gl_cv_func_rename_dest_works to "guessing yes".
31351         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
31352         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
31353         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
31354         compiling to glibc systems, set gl_cv_func_roundf_ieee to
31355         "guessing yes".
31356         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
31357         compiling to glibc systems, set gl_cv_func_roundl_ieee to
31358         "guessing yes".
31359         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
31360         compiling to glibc systems, set gl_cv_func_setenv_works to
31361         "guessing yes".
31362         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
31363         compiling to glibc systems, set gl_cv_func_unsetenv_works to
31364         "guessing yes".
31365         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
31366         compiling to glibc systems, set gl_cv_func_sleep_works to
31367         "guessing yes".
31368         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
31369         compiling to glibc systems, set gl_cv_func_stat_file_slash to
31370         "guessing yes".
31371         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
31372         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
31373         "guessing yes".
31374         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
31375         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
31376         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
31377         compiling to glibc systems, set gl_cv_func_truncf_ieee to
31378         "guessing yes".
31379         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
31380         compiling to glibc systems, set gl_cv_func_truncl_ieee to
31381         "guessing yes".
31382         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
31383         compiling to glibc systems, set gl_cv_func_usleep_works to
31384         "guessing yes".
31385         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
31386         compiling to glibc systems, set gl_cv_func_futimesat_works to
31387         "guessing yes".
31389 2012-05-03  Bruno Haible  <bruno@clisp.org>
31391         Say "guessing yes" or "guessing no" when cross-compiling.
31392         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
31393         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
31394         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
31395         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
31396         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
31397         am_cv_func_working_getline to "guessing yes" or "guessing no".
31398         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
31399         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
31400         (gl_FUNC_MEMMEM): When cross-compiling, set
31401         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
31402         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
31403         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
31404         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
31405         set gl_cv_func_strcasestr_works_always to "guessing yes" or
31406         "guessing no".
31407         (gl_FUNC_STRCASESTR): When cross-compiling, set
31408         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
31409         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
31410         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
31411         (gl_FUNC_STRSTR): When cross-compiling, set
31412         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
31413         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
31414         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
31415         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
31416         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
31418 2012-05-01  Bruno Haible  <bruno@clisp.org>
31420         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
31421         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
31422         * build-aux/reloc-ldflags: Likewise.
31423         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
31425 2012-05-01  Bruno Haible  <bruno@clisp.org>
31427         gnulib-tool: Remove transitional code.
31428         * gnulib-tool: Don't warn about --import with 0 arguments any more.
31429         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
31431 2012-05-01  Bruno Haible  <bruno@clisp.org>
31433         getcwd: Fix misindentation.
31434         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
31436 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
31438         exclude: process exclude and include directives in order
31439         This restores the pre-2009 behavior, and is part of a fix of a
31440         grep bug reported by Quentin Arce in
31441         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
31442         * lib/exclude.c (struct exclude): Remove 'tail' member.
31443         (new_exclude_segment): Prepend the new segment instead of appending.
31444         Return void, since that's now more convenient.
31445         (file_pattern_matches): Renamed from excluded_file_pattern_p.
31446         (file_name_matches): Renamed from excluded_file_name_p.
31447         (file_pattern_matches, file_name_matches):
31448         Return true if the pattern matches, not if it excludes.
31449         All callers changed.
31450         (excluded_file_name): Process the list in reverse order;
31451         since the list is now reversed this restores the pre-2009 behavior.
31452         (add_exclude): Adjust to new reversed-order list.  Use local var
31453         rather than macro, for clarity.
31454         * tests/test-exclude7.sh: Adjust to corrected behavior.
31456         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
31457         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
31458         it's not possible here.  Handle the case of \ at end of pattern
31459         without dumping core.
31460         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
31462         _Noreturn: future-proof non-GNU and non-MSVC compilers
31463         * build-aux/snippet/_Noreturn.h (_Noreturn):
31464         * m4/gnulib-common.m4 (gl_COMMON_BODY):
31465         Do not define _Noreturn if __STDC_VERSION__ indicates this is
31466         C11 or later.  This is more likely to work with random future C
31467         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
31468         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
31470         exclude: handle wildcards with FNM_EXTMATCH
31471         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
31472         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
31473         comment that "has wildcards" really means "has or may have
31474         wildcards".  Simplify by avoiding the need to call strcspn.
31476 2012-04-29  Bruno Haible  <bruno@clisp.org>
31478         gnulib-tool: Fix list of authors.
31479         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
31481 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
31483         bootstrap: support Automake-NG in $buildreq
31484         * bootstrap (check_versions): Handle automake and aclocal from
31485         Automake-NG specially.  They can be specified as respectively
31486         the "automake-ng" and "aclocal-ng" requirements.
31488 2012-04-25  Eric Blake  <eblake@redhat.com>
31490         bootstrap: only force latest Makefile.in.in for gettext module
31491         * build-aux/bootstrap (with_gettext): Only install latest
31492         Makefile.in.in for projects requesting bleeding edge gettext.
31494 2012-04-22  Bruno Haible  <bruno@clisp.org>
31496         doc: Mention reason for replacement on glibc/Linux systems.
31497         * doc/posix-functions/dprintf.texi: Mention the problem with special
31498         'long double' values.
31499         * doc/posix-functions/fprintf.texi: Likewise.
31500         * doc/posix-functions/printf.texi: Likewise.
31501         * doc/posix-functions/snprintf.texi: Likewise.
31502         * doc/posix-functions/sprintf.texi: Likewise.
31503         * doc/posix-functions/vdprintf.texi: Likewise.
31504         * doc/posix-functions/vfprintf.texi: Likewise.
31505         * doc/posix-functions/vprintf.texi: Likewise.
31506         * doc/posix-functions/vsnprintf.texi: Likewise.
31507         * doc/posix-functions/vsprintf.texi: Likewise.
31508         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
31509         platforms with F_DUPFD_CLOEXEC problems.
31510         * doc/posix-functions/glob.texi: Mention which platforms are affected
31511         by the problem with symbolic links.
31512         * doc/posix-functions/linkat.texi: Mention the problem with
31513         AT_SYMLINK_FOLLOW on Linux.
31515 2012-04-22  Bruno Haible  <bruno@clisp.org>
31517         pwrite: Don't replace on all platforms.
31518         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
31520 2012-04-22  Bruno Haible  <bruno@clisp.org>
31522         rint* tests: Avoid gcc warnings.
31523         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
31524         * tests/test-rintf.c (INFINITY, NAN): Likewise.
31525         * tests/test-rintl.c (INFINITY, NAN): Likewise.
31527 2012-04-21  Bruno Haible  <bruno@clisp.org>
31529         users.txt: Update.
31530         * users.txt: Add freedink, wdiff. Update URLs for projects that have
31531         switched from CVS to git, bzr, or svn.
31533 2012-04-21  Bruno Haible  <bruno@clisp.org>
31535         Large File Support for native Windows platforms.
31537         * m4/largefile.m4 (gl_LARGEFILE): New macro.
31538         * modules/largefile (configure.ac): Require gl_LARGEFILE.
31540         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
31541         type.
31542         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
31543         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
31544         * doc/posix-headers/sys_types.texi: Mention the effect of the
31545         'largefile' module.
31547         * lib/fcntl.in.h: Add comments about off_t.
31548         * modules/fcntl-h (Depends-on): Add sys_types.
31550         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
31551         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
31552         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
31553         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
31554         * modules/unistd (Depends-on): Add sys_types.
31555         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
31557         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
31558         instead of lseek.
31559         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
31560         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
31561         * modules/lseek (Depends-on): Add sys_types.
31563         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
31564         msvc-nothrow.h.
31565         (SetFileSize): New function.
31566         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
31567         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
31568         if Large File Support is requested.
31569         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
31570         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
31572         * lib/stdio.in.h: Add comments about off_t.
31573         * modules/stdio (Depends-on): Add sys_types.
31575         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
31576         instead of ftello.
31577         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
31578         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
31579         (gl_PREREQ_FTELLO): New macro.
31580         * modules/ftello (Depends-on): Add sys_types.
31581         (configure.ac): Incoke gl_PREREQ_FTELLO.
31583         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
31584         instead of fseeko.
31585         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
31586         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
31587         (gl_PREREQ_FSEEKO): New macro.
31588         * modules/fseeko (Depends-on): Add sys_types.
31589         (configure.ac): Invoke gl_PREREQ_FSEEKO.
31591         * lib/sys_stat.in.h: Add comments about off_t.
31592         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
31593         64-bit integer for st_size in 'struct stat'.
31594         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
31595         Define _GL_WINDOWS_64_BIT_ST_SIZE.
31596         * modules/sys_stat (Depends-on): Add sys_types.
31597         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
31599         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
31600         instead of stat or _stat.
31602         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
31603         'struct _stati64' instead of fstat and 'struct stat'.
31604         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
31605         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
31607         Reported by Ray Satiro <raysatiro@yahoo.com>.
31609 2012-04-19  Eric Blake  <eblake@redhat.com>
31611         bootstrap: accommodate older libtool
31612         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
31613         Reported by Daniel P. Berrange.
31615 2012-04-19  Jim Meyering  <meyering@redhat.com>
31617         announce-gen: avoid failure due to lack of Digest::SHA1
31618         Even with the preferred Digest::SHA available, this script
31619         would fail when the backup module, Digest::SHA1, was not installed.
31620         * build-aux/announce-gen: Quote the conditional use of "use".
31621         Reported by Reuben Thomas in:
31622         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
31624         bootstrap: don't let a user's CDPATH setting affect this script
31625         When CDPATH is set, cd will sometimes generate output.
31626         When "cd" is run in a subshell whose output matters, that
31627         surprising-to-some output can cause malfunction.
31628         Unsetting CDPATH turns off this shell "feature."
31629         * build-aux/bootstrap (CDPATH): Unset.
31630         Reported by Reuben Thomas in:
31631         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
31632         and inspired by his patch here:
31633         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
31635 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
31636         and Jim Meyering  <meyering@redhat.com>
31638         maint.mk: catch "see @xref{}" and similar
31639         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
31640         prohibit "See also @xref{", "Also see @pxref{", and similar.
31642 2012-04-16  Jim Meyering  <meyering@redhat.com>
31644         bootstrap: really use gnulib's po/Makefile.in.in
31645         * build-aux/bootstrap: Correct the source file name in previous change.
31646         Reported by Akim Demaille.
31648         configmake: correct minor inconsistency in Makefile rule
31649         * modules/configmake (Makefile.am): All other rules like this one
31650         run the final "mv -f ..." in the same backslash-continued command
31651         as the one that does everything else.  This one put the mv -f ...
31652         command on a separate, non-backslash-continued line.
31653         Make it like the others.
31655         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
31656         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
31657         the one from gettext.  Reported by Akim Demaille.
31659 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
31661         Fix recursion of install-* into po directories.
31662         Bison's install-pdf bug reported by Hans Aberg at
31663         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
31664         * build-aux/po/Makefile.in.in (install-dvi, install-html)
31665         (install-info, install-pdf, install-ps): New targets.
31667 2012-04-16  Jim Meyering  <meyering@redhat.com>
31669         maint: avoid spurious "make sc_maint" failure
31670         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
31671         exempt all *.class file names, for lib/javaversion.class.
31673 2012-04-15  Bruno Haible  <bruno@clisp.org>
31675         lseek: Make configure test independent of environment.
31676         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
31677         Windows, we know that lseek() on pipes is broken; skip the runtime
31678         test.
31680 2012-04-14  Bruno Haible  <bruno@clisp.org>
31682         stat: Bypass buggy override in mingw64.
31683         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
31684         * lib/stat.c (stat) [mingw64]: Define to _stat.
31685         * doc/posix-functions/stat.texi: Mention mingw64 bug.
31687 2012-04-14  Bruno Haible  <bruno@clisp.org>
31689         pathmax: Fix compilation error on MSVC 9.
31690         * modules/pathmax (Depends-on): Add unistd.
31692 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
31694         README: document pointer comparison assumption
31695         * README (Portability guidelines): Document assumption about
31696         pointer comparisons, in response to a recent bug-gnulib comment by
31697         Jeffrey Kegler.
31699 2012-04-12  Bruno Haible  <bruno@clisp.org>
31701         Tests for module 'getrusage'.
31702         * modules/getrusage-tests: New file.
31703         * tests/test-getrusage.c: New file.
31705         New module 'getrusage'.
31706         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
31707         warn-on-use.h.
31708         (getrusage): New declaration.
31709         * lib/getrusage.c: New file.
31710         * m4/getrusage.m4: New file.
31711         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
31712         is declared.
31713         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
31714         HAVE_GETRUSAGE.
31715         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
31716         snippet/c++defs, snippet/warn-on-use.
31717         (Makefile.am): Update generation of sys/resource.h. Substitute
31718         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
31719         * modules/getrusage: New file.
31720         * doc/posix-functions/getrusage.texi: Mention the new module.
31722 2012-04-12  Bruno Haible  <bruno@clisp.org>
31724         Tests for module 'sys_resource'.
31725         * modules/sys_resource-tests: New file.
31726         * tests/test-sys_resource.c: New file.
31728         New module 'sys_resource'.
31729         * lib/sys_resource.in.h: New file.
31730         * m4/sys_resource_h.m4: New file.
31731         * modules/sys_resource: New file.
31732         * doc/posix-headers/sys_resource.texi: Mention the new module.
31734 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
31736         ioctl: Fix compilation error on mingw.
31737         * lib/ioctl.c: Include <windows.h>.
31738         Also reported by Ray Satiro <raysatiro@yahoo.com>.
31740 2012-04-04  Jim Meyering  <meyering@redhat.com>
31742         regex: correct #pragma guard expression
31743         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
31744         not 4.3.  Correct its cpp guard expression.
31746 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
31748         regex: remove unnecessary type punning
31749         Problem reported by Vladimir Serbinenko in
31750         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
31751         * lib/regex.h (struct re_pattern_buffer): Change the type of
31752         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
31753         Fix comment to match code.
31754         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
31755         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
31756         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
31757         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
31758         (set_regs):
31759         Omit no-longer-necessary casts.
31761 2012-04-03  Bruno Haible  <bruno@clisp.org>
31763         Tests for module 'ilogbl'.
31764         * modules/ilogbl-tests: New file.
31765         * tests/test-ilogbl.c: New file.
31767         New module 'ilogbl'.
31768         * lib/math.in.h (ilogbl): New declaration.
31769         * lib/ilogbl.c: New file.
31770         * m4/ilogbl.m4: New file.
31771         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
31772         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
31773         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
31774         Split sed invocation, to avoid the limit of 100 substitutions of
31775         HP-UX 'sed'.
31776         * modules/ilogbl: New file.
31777         * tests/test-math-c++.cc: Check the declaration of ilogbl.
31778         * doc/posix-functions/ilogbl.texi: Mention the new module.
31780 2012-04-03  Bruno Haible  <bruno@clisp.org>
31782         Tests for module 'ilogbf'.
31783         * modules/ilogbf-tests: New file.
31784         * tests/test-ilogbf.c: New file.
31786         New module 'ilogbf'.
31787         * lib/math.in.h (ilogbf): New declaration.
31788         * lib/ilogbf.c: New file.
31789         * m4/ilogbf.m4: New file.
31790         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
31791         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
31792         REPLACE_ILOGBF.
31793         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
31794         REPLACE_ILOGBF.
31795         * modules/ilogbf: New file.
31796         * tests/test-math-c++.cc: Check the declaration of ilogbf.
31797         * doc/posix-functions/ilogbf.texi: Mention the new module.
31799 2012-04-03  Bruno Haible  <bruno@clisp.org>
31801         Tests for module 'ilogb'.
31802         * modules/ilogb-tests: New file.
31803         * tests/test-ilogb.c: New file.
31804         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
31805         tests/test-logb-ieee.h.
31807         New module 'ilogb'.
31808         * lib/math.in.h (ilogb): New declaration.
31809         * lib/ilogb.c: New file.
31810         * m4/ilogb.m4: New file.
31811         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
31812         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
31813         REPLACE_ILOGB.
31814         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
31815         REPLACE_ILOGB.
31816         * modules/ilogb: New file.
31817         * tests/test-math-c++.cc: Check the declaration of ilogb.
31818         * doc/posix-functions/ilogb.texi: Mention the new module.
31820 2012-04-03  Bruno Haible  <bruno@clisp.org>
31822         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
31823         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
31824         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
31825         (main): Check their values.
31826         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
31827         problem.
31829 2012-04-03  Bruno Haible  <bruno@clisp.org>
31831         Tests for module 'logbl-ieee'.
31832         * modules/logbl-ieee-tests: New file.
31833         * tests/test-logbl-ieee.c: New file.
31835         New module 'logbl-ieee'.
31836         * modules/logbl-ieee: New file.
31838         Tests for module 'logb-ieee'.
31839         * modules/logb-ieee-tests: New file.
31840         * tests/test-logb-ieee.c: New file.
31842         New module 'logb-ieee'.
31843         * modules/logb-ieee: New file.
31845         Tests for module 'logbf-ieee'.
31846         * modules/logbf-ieee-tests: New file.
31847         * tests/test-logbf-ieee.c: New file.
31848         * tests/test-logb-ieee.h: New file.
31850         New module 'logbf-ieee'.
31851         * modules/logbf-ieee: New file.
31853 2012-04-03  Bruno Haible  <bruno@clisp.org>
31855         Tests for module 'logbl'.
31856         * modules/logbl-tests: New file.
31857         * tests/test-logbl.c: New file.
31859         New module 'logbl'.
31860         * lib/math.in.h (logbl): New declaration.
31861         * lib/logbl.c: New file.
31862         * m4/logbl.m4: New file.
31863         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
31864         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
31865         REPLACE_LOGBL.
31866         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
31867         REPLACE_LOGBL.
31868         * modules/logbl: New file.
31869         * tests/test-math-c++.cc: Check the declaration of logbl.
31870         * doc/posix-functions/logbl.texi: Mention the new module.
31872 2012-04-02  Bruno Haible  <bruno@clisp.org>
31874         Tests for module 'logbf'.
31875         * modules/logbf-tests: New file.
31876         * tests/test-logbf.c: New file.
31878         New module 'logbf'.
31879         * lib/math.in.h (logbf): New declaration.
31880         * lib/logbf.c: New file.
31881         * m4/logbf.m4: New file.
31882         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
31883         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
31884         REPLACE_LOGBF.
31885         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
31886         REPLACE_LOGBF.
31887         * modules/logbf: New file.
31888         * tests/test-math-c++.cc: Check the declaration of logbf.
31889         * doc/posix-functions/logbf.texi: Mention the new module.
31891 2012-04-02  Bruno Haible  <bruno@clisp.org>
31893         logb tests: More tests.
31894         * tests/test-logb.h: New file, based on tests/test-logb.c and
31895         tests/test-frexp.h.
31896         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
31897         (main): Just invoke test_function.
31898         * modules/logb-tests (Files): Add tests/test-logb.h,
31899         tests/minus-zero.h, tests/randomd.c.
31900         (Makefile.am): Add randomd.c to test_logb_SOURCES.
31902         logb: Provide replacement and workarounds.
31903         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
31904         is 1.
31905         * lib/logb.c: New file.
31906         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
31907         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
31908         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
31909         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
31910         * modules/logb (Files): Add lib/logb.c.
31911         (Depends-on): Add isfinite, frexp, isnand.
31912         (configure.ac): Compile the replacement code logb.c if needed.
31913         * tests/test-math-c++.cc: Check the declaration of logb.
31914         * doc/posix-functions/logb.texi: Mention the replacement and the bug
31915         with subnormal numbers.
31917 2012-04-02  Bruno Haible  <bruno@clisp.org>
31919         log10* tests: Speed up.
31920         * tests/test-log10.h (test_function): Reduce amount of random numbers
31921         to test.
31923 2012-04-01  Bruno Haible  <bruno@clisp.org>
31925         logf-ieee: Fix test whether logf works.
31926         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
31928 2012-04-01  Bruno Haible  <bruno@clisp.org>
31930         log10l: Work around log10l-ieee test failure on IRIX 6.5.
31931         * lib/log10l.c: Include <float.h>
31932         (log10l): On IRIX, normalize the +Infinity value.
31933         * modules/log10l (Depends-on): Add 'float'.
31934         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
31935         +Infinity.
31937         log10f-ieee: Work around test failure on NetBSD 5.1.
31938         * m4/log10f-ieee.m4: New file.
31939         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
31940         test whether log10f works with a negative argument. Replace it if not.
31941         * lib/log10f.c (log10f): For negative arguments, return NaN.
31942         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
31943         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
31944         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
31946         log10f-ieee: Work around test failure on Solaris 9.
31947         * modules/log10f-ieee (Depends-on): Add log10-ieee.
31948         (configure.ac): Require gl_FUNC_LOG10F.
31950         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
31951         * m4/log10-ieee.m4: New file.
31952         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
31953         whether log10 works with a negative argument. Replace it if not.
31954         * lib/log10.c (log10): For negative arguments, return NaN.
31955         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
31956         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
31957         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
31959         Tests for module 'log10l-ieee'.
31960         * modules/log10l-ieee-tests: New file.
31961         * tests/test-log10l-ieee.c: New file.
31963         New module 'log10l-ieee'.
31964         * modules/log10l-ieee: New file.
31966         Tests for module 'log10-ieee'.
31967         * modules/log10-ieee-tests: New file.
31968         * tests/test-log10-ieee.c: New file.
31970         New module 'log10-ieee'.
31971         * modules/log10-ieee: New file.
31973         Tests for module 'log10f-ieee'.
31974         * modules/log10f-ieee-tests: New file.
31975         * tests/test-log10f-ieee.c: New file.
31976         * tests/test-log10-ieee.h: New file.
31978         New module 'log10f-ieee'.
31979         * modules/log10f-ieee: New file.
31981 2012-04-01  Bruno Haible  <bruno@clisp.org>
31983         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
31984         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
31985         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
31986         workaround.
31987         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
31988         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
31989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
31990         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
31991         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
31992         (Depends-on): Update conditions.
31993         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
31994         IRIX 6.5, OSF/1 5.1 problems.
31996 2012-04-01  Bruno Haible  <bruno@clisp.org>
31998         log10f: Work around OSF/1 5.1 bug.
31999         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
32000         * lib/log10f.c (log10f): If logf exists, use it and provide just the
32001         workaround.
32002         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
32003         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
32004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
32005         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
32006         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
32007         (Depends-on): Update conditions.
32008         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
32010 2012-04-01  Bruno Haible  <bruno@clisp.org>
32012         log10: Work around OSF/1 5.1 bug.
32013         * lib/math.in.h (log10): New declaration.
32014         * lib/log10.c: New file.
32015         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
32016         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
32017         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
32018         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
32019         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
32020         * modules/log10 (Files): Add lib/log10.c.
32021         (Depends-on): Add math.
32022         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
32023         * tests/test-math-c++.cc: Check the declaration of log10.
32024         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
32026 2012-03-31  Bruno Haible  <bruno@clisp.org>
32028         log10l tests: More tests.
32029         * modules/log10l-tests (Files): Add tests/test-log10l.h,
32030         tests/minus-zero.h, tests/randoml.c.
32031         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
32032         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
32033         (main): Invoke test_function.
32035         log10f tests: More tests.
32036         * modules/log10f-tests (Files): Add tests/test-log10.h,
32037         tests/minus-zero.h, tests/randomf.c.
32038         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
32039         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
32040         (main): Invoke test_function.
32042         log10 tests: More tests.
32043         * tests/test-log10.h: New file.
32044         * modules/log10-tests (Files): Add tests/test-log10.h,
32045         tests/minus-zero.h, tests/randomd.c.
32046         (Makefile.am): Add randomd.c to test_log10_SOURCES.
32047         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
32048         (main): Invoke test_function.
32050 2012-03-31  Simon Josefsson  <simon@josefsson.org>
32052         fflush: Fix syntax error.
32053         * lib/fflush.c: Include unused-parameter.h, needed for
32054         _GL_UNUSED_PARAMETER.
32055         * modules/fflush (Depends-on): Add snippet/unused-parameter.
32057 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
32059         regex: pacify GCC when compiling GRUB
32060         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
32061         a diagnostic.  Reported by Vladimir Serbinenko in
32062         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
32064 2012-03-29  Eric Blake  <eblake@redhat.com>
32066         stdio: don't assume gets any more
32067         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
32068         support.
32069         * modules/stdio (Makefile.am): Likewise.
32070         * lib/stdio-read.c (gets): Likewise.
32071         * tests/test-stdio-c++.cc: Likewise.
32072         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
32073         * lib/stdio.in.h (gets): Make warning occur in more places.
32074         * doc/posix-functions/gets.texi (gets): Update documentation.
32075         Reported by Christer Solskogen.
32077         maint.mk: fix syntax checks without exclusions
32078         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
32079         Reported by Daniel P. Berrange.
32081         strerror_r: avoid compiler warning
32082         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
32083         level.
32085         fflush: avoid compiler warning
32086         * lib/fflush.c (update_fpos_cache): Mark variables that are
32087         potentially unused.
32089 2012-03-25  Bruno Haible  <bruno@clisp.org>
32091         Tests for module 'localeconv'.
32092         * modules/localeconv-tests: New file.
32093         * tests/test-localeconv.c: New file.
32095         New module 'localeconv'.
32096         * lib/locale.in.h (localeconv): New declaration.
32097         * lib/localeconv.c: New file.
32098         * m4/localeconv.m4: New file.
32099         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
32100         REPLACE_LOCALECONV.
32101         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
32102         REPLACE_LOCALECONV.
32103         * modules/localeconv: New file.
32104         * modules/nl_langinfo (Depends-on): Add localeconv.
32105         * modules/human (Depends-on): Likewise.
32106         * doc/posix-functions/localeconv.texi: Mention the new module.
32108 2012-03-25  Bruno Haible  <bruno@clisp.org>
32110         locale: Provide a complete 'struct lconv'.
32111         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
32112         'struct lconv' does not contain int_p_cs_precedes.
32113         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
32114         * doc/posix-headers/locale.texi: Update.
32116         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
32117         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
32118         * doc/posix-headers/locale.texi: Update.
32120         locale: Provide a working 'struct lconv'.
32121         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
32122         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
32123         'struct lconv' does not even contain decimal_point.
32124         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
32125         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
32126         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
32127         * doc/posix-headers/locale.texi: Mention the problems with
32128         'struct lconv'.
32129         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
32131 2012-03-24  Bruno Haible  <bruno@clisp.org>
32133         Enable common subexpression optimization in GCC.
32134         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
32135         macros.
32136         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
32137         GCC attribute 'const'.
32138         (uc_locale_language): Declare with GCC attribute 'pure'.
32139         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
32140         with GCC attribute 'const'.
32141         * lib/unictype.in.h (uc_is_general_category_withtable,
32142         uc_combining_class, uc_combining_class_name,
32143         uc_combining_class_long_name, uc_bidi_class_name,
32144         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
32145         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
32146         uc_decimal_value, uc_digit_value, uc_numeric_value,
32147         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
32148         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
32149         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
32150         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
32151         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
32152         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
32153         Declare with GCC attribute 'const'.
32154         (uc_general_category_name, uc_general_category_long_name,
32155         uc_general_category_byname, uc_general_category,
32156         uc_is_general_category, uc_combining_class_byname,
32157         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
32158         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
32159         Declare with GCC attribute 'pure'.
32160         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
32161         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
32162         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
32163         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
32164         with GCC attribute 'pure'.
32165         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
32166         'const'.
32167         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
32168         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
32169         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
32170         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
32171         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
32172         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
32173         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
32174         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
32175         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
32176         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
32177         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
32178         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
32179         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
32180         GCC attribute 'pure'.
32181         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
32182         'const'.
32183         * lib/uniwidth.in.h (uc_width): Simplify declaration.
32184         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
32185         u32_strwidth): Declare with GCC attribute 'pure'.
32187         Enable common subexpression optimization in GCC.
32188         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
32189         (alphasort): Declare with GCC attribute 'pure'.
32190         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
32191         (atoll): Declare with GCC attribute 'pure'.
32192         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32193         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32194         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
32195         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
32196         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
32197         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
32198         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
32200 2012-03-24  Bruno Haible  <bruno@clisp.org>
32202         gnulib-tool: Avoid unintended error output from 'cmp'.
32203         * gnulib-tool (func_add_file, func_update_file, func_import): Use
32204         "cmp -s", not "cmp > /dev/null".
32206 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
32208         gnulib-tool: fix imprecise comments w.r.t. an automake bug
32210         It's not just Automake versions < 1.9b that creates an empty
32211         pkgdatadir at installation time if pkgdata_DATA is specified
32212         to empty; modern automake versions do this as well, at least
32213         until automake 1.11.4 (not yet released at the moment of writing,
32214         but soon to appear).  That behaviour was generally considered a
32215         feature rather than a bug, at least until this discussion:
32216         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
32218         See also automake bugs #10997 and #11030.
32220         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
32221         reference to relevant automake bug numbers.
32222         (func_emit_tests_Makefile_am): Likewise.
32224 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
32226         announce-gen: use Digest::SHA when possible
32227         * build-aux/announce-gen: Use Digest::SHA when possible, falling
32228         back to Digest::SHA1 if necessary.
32230 2012-03-20  Jim Meyering  <meyering@redhat.com>
32232         tests: avoid gcc warnings about argv vs. const initializers
32233         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
32234         warnings about discarding 'const' qualifier from pointer target type.
32235         * tests/test-posix_spawn2.c (main): Likewise.
32237 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
32239         README-release: simplify slightly
32240         * top/README-release: Run "git checkout master" only once.
32242 2012-03-15  Mark Wielaard  <mark@klomp.org>
32244         git-merge-changelog: add specific example on how to use with hg.
32245         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
32247 2012-03-18  Mark Wielaard  <mark@klomp.org>
32249         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
32251 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
32253         git-version-gen: don't let "prefix" envvar cause trouble
32254         * build-aux/git-version-gen (prefix): Initialize properly,
32255         so as not to use a value specified via the environment.
32256         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
32258 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
32260         regex: diagnose too-large repeat counts in EREs
32261         Previously, the code did not diagnose the too-large repeat count
32262         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
32263         as if it were 'b\{1000000000}', which is unexpected.
32264         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
32265         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
32266         is a reasonable one for this problem.  Another option would be to
32267         create a new REG_OVERFLOW error for repeat counts that are too large.
32268         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
32269         count is too large, so that the caller can distinguish the two cases.
32270         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
32271         "Too large" return code, and that repeat counts are one example of this.
32273 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
32275         doc: some glibc x32 integer width issues
32276         * doc/posix-headers/sys_types.texi (sys/types.h):
32277         * doc/posix-headers/time.texi (time.h):
32278         Mention that glibc x32 does not conform to POSIX in a couple of
32279         areas related to integer widths.
32281 2012-03-15  Bruno Haible  <bruno@clisp.org>
32283         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
32284         * lib/fma.c (VOLATILE): New macro.
32285         (FUNC): Use it to work around a GCC compiler bug.
32287 2012-03-13  Bruno Haible  <bruno@clisp.org>
32289         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
32290         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
32291         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
32292         REPLACE_HYPOTL to 1.
32293         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
32295 2012-03-13  Bruno Haible  <bruno@clisp.org>
32297         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
32298         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
32299         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
32300         REPLACE_REMAINDERL to 1.
32301         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
32302         bug.
32304 2012-03-13  Bruno Haible  <bruno@clisp.org>
32306         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
32307         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
32308         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
32309         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
32310         too big rounding errors.
32311         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
32312         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
32313         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
32314         (Depends-on): Update conditions.
32315         * tests/test-sqrtl.c (my_ldexpl): New function.
32316         (main): Add test of a particular value.
32317         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
32319 2012-03-13  Pádraig Brady  <P@draigBrady.com>
32321         doc: Update timer_* platform portability notes.
32322         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
32323         that always return ENOSYS.
32324         * doc/posix-functions/timer_delete.texi: Likewise.
32325         * doc/posix-functions/timer_gettime.texi: Likewise.
32326         * doc/posix-functions/timer_settime.texi: Likewise.
32328 2012-03-13  Bruno Haible  <bruno@clisp.org>
32330         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
32331         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
32332         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
32333         REPLACE_CBRTL to 1.
32334         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
32336 2012-03-13  Bruno Haible  <bruno@clisp.org>
32338         remainderl: Avoid compilation error on AIX >= 5.2.
32339         * lib/math.in.h (remainderl): Undefine macro from the system header.
32341 2012-03-13  Bruno Haible  <bruno@clisp.org>
32343         Avoid compilation errors with MSVC option -fp:strict.
32344         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
32345         * lib/cbrtf.c: Likewise.
32346         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
32348 2012-03-12  Bruno Haible  <bruno@clisp.org>
32350         uninorm: Don't crash in out-of-memory conditions.
32351         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
32352         gracefully.
32353         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
32354         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
32356 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
32358         quote: fix syntax-check
32359         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
32360         also exports quote_quoting_options.
32362 2012-03-12  Simon Josefsson  <simon@josefsson.org>
32364         Collapse list of copyright years to ranges.  See
32365         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
32366         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
32367         build-aux/csharpexec.sh.in, build-aux/gnupload,
32368         build-aux/install-reloc, build-aux/javacomp.sh.in,
32369         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
32370         build-aux/move-if-change, build-aux/reloc-ldflags,
32371         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
32373 2012-03-11  Bruno Haible  <bruno@clisp.org>
32375         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
32376         * m4/log2f-ieee.m4: New file.
32377         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
32378         whether log2f works with a minus zero argument. Replace it if not.
32379         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
32380         (Depends-on): Add log2-ieee.
32381         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
32382         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
32384         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
32385         * m4/log2-ieee.m4: New file.
32386         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
32387         whether log2 works with a minus zero argument. Replace it if not.
32388         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
32389         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
32390         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
32392         Tests for module 'log2l-ieee'.
32393         * modules/log2l-ieee-tests: New file.
32394         * tests/test-log2l-ieee.c: New file.
32396         New module 'log2l-ieee'.
32397         * modules/log2l-ieee: New file.
32399         Tests for module 'log2-ieee'.
32400         * modules/log2-ieee-tests: New file.
32401         * tests/test-log2-ieee.c: New file.
32403         New module 'log2-ieee'.
32404         * modules/log2-ieee: New file.
32406         Tests for module 'log2f-ieee'.
32407         * modules/log2f-ieee-tests: New file.
32408         * tests/test-log2f-ieee.c: New file.
32409         * tests/test-log2-ieee.h: New file.
32411         New module 'log2f-ieee'.
32412         * modules/log2f-ieee: New file.
32414 2012-03-11  Bruno Haible  <bruno@clisp.org>
32416         Tests for module 'log2l'.
32417         * modules/log2l-tests: New file.
32418         * tests/test-log2l.c: New file.
32420         New module 'log2l'.
32421         * lib/math.in.h (log2l): New declaration.
32422         * lib/log2l.c: New file.
32423         * m4/log2l.m4: New file.
32424         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
32425         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
32426         REPLACE_LOG2L.
32427         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
32428         REPLACE_LOG2L.
32429         * modules/log2l: New file.
32430         * tests/test-math-c++.cc: Check the declaration of log2l.
32431         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
32432         and OSF/1 problems.
32434 2012-03-11  Bruno Haible  <bruno@clisp.org>
32436         Tests for module 'log2f'.
32437         * modules/log2f-tests: New file.
32438         * tests/test-log2f.c: New file.
32440         New module 'log2f'.
32441         * lib/math.in.h (log2f): New declaration.
32442         * lib/log2f.c: New file.
32443         * m4/log2f.m4: New file.
32444         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
32445         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
32446         REPLACE_LOG2F.
32447         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
32448         REPLACE_LOG2F.
32449         * modules/log2f: New file.
32450         * tests/test-math-c++.cc: Check the declaration of log2f.
32451         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
32452         and OSF/1 and Cygwin problems.
32454 2012-03-11  Bruno Haible  <bruno@clisp.org>
32456         Tests for module 'log2'.
32457         * modules/log2-tests: New file.
32458         * tests/test-log2.c: New file.
32459         * tests/test-log2.h: New file.
32461         New module 'log2'.
32462         * lib/math.in.h (log2): New declaration.
32463         * lib/log2.c: New file.
32464         * m4/log2.m4: New file.
32465         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
32466         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
32467         REPLACE_LOG2.
32468         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
32469         REPLACE_LOG2.
32470         * modules/log2: New file.
32471         * tests/test-math-c++.cc: Check the declaration of log2.
32472         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
32473         and OSF/1 and Cygwin problems.
32475 2012-03-11  Bruno Haible  <bruno@clisp.org>
32477         exp2* tests: More tests.
32478         * tests/test-exp2.h (test_function): Test all integral arguments that
32479         don't need to overflow or denormalized numbers.
32480         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
32481         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
32482         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
32484 2012-03-10  Bruno Haible  <bruno@clisp.org>
32486         log1pl-ieee: Work around test failure on AIX 7.1.
32487         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
32489         log1pl-ieee: Work around test failure on IRIX 6.5.
32490         * m4/log1pl-ieee.m4: New file.
32491         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
32492         test whether log1pl works with a minus zero argument. Replace it if
32493         not.
32494         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
32495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
32496         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
32497         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
32498         (Depends-on): Update conditions.
32499         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
32500         m4/signbit.m4.
32501         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
32502         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
32504         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
32505         * m4/log1pf-ieee.m4: New file.
32506         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
32507         test whether log1pf works with a minus zero argument. Replace it if
32508         not.
32509         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
32510         m4/signbit.m4.
32511         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
32512         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
32514         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
32515         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
32516         (configure.ac): Require gl_FUNC_LOG1PF.
32518         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
32519         * m4/log1p-ieee.m4: New file.
32520         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
32521         whether log1p works with a minus zero argument. Replace it if not.
32522         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
32523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
32524         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
32525         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
32526         (Depends-on): Update conditions.
32527         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
32528         m4/signbit.m4.
32529         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
32530         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
32532         Tests for module 'log1pl-ieee'.
32533         * modules/log1pl-ieee-tests: New file.
32534         * tests/test-log1pl-ieee.c: New file.
32536         New module 'log1pl-ieee'.
32537         * modules/log1pl-ieee: New file.
32539         Tests for module 'log1p-ieee'.
32540         * modules/log1p-ieee-tests: New file.
32541         * tests/test-log1p-ieee.c: New file.
32543         New module 'log1p-ieee'.
32544         * modules/log1p-ieee: New file.
32546         Tests for module 'log1pf-ieee'.
32547         * modules/log1pf-ieee-tests: New file.
32548         * tests/test-log1pf-ieee.c: New file.
32549         * tests/test-log1p-ieee.h: New file.
32551         New module 'log1pf-ieee'.
32552         * modules/log1pf-ieee: New file.
32554 2012-03-10  Bruno Haible  <bruno@clisp.org>
32556         Tests for module 'log1pl'.
32557         * modules/log1pl-tests: New file.
32558         * tests/test-log1pl.c: New file.
32560         New module 'log1pl'.
32561         * lib/math.in.h (log1pl): New declaration.
32562         * lib/log1pl.c: New file.
32563         * m4/log1pl.m4: New file.
32564         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
32565         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
32566         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
32567         * modules/log1pl: New file.
32568         * tests/test-math-c++.cc: Check the declaration of log1pl.
32569         * doc/posix-functions/log1pl.texi: Mention the new module.
32571 2012-03-10  Bruno Haible  <bruno@clisp.org>
32573         Tests for module 'log1pf'.
32574         * modules/log1pf-tests: New file.
32575         * tests/test-log1pf.c: New file.
32577         New module 'log1pf'.
32578         * lib/math.in.h (log1pf): New declaration.
32579         * lib/log1pf.c: New file.
32580         * m4/log1pf.m4: New file.
32581         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
32582         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
32583         REPLACE_LOG1PF.
32584         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
32585         REPLACE_LOG1PF.
32586         * modules/log1pf: New file.
32587         * tests/test-math-c++.cc: Check the declaration of log1pf.
32588         * doc/posix-functions/log1pf.texi: Mention the new module.
32590 2012-03-10  Bruno Haible  <bruno@clisp.org>
32592         log1p tests: More tests.
32593         * tests/test-log1p.h: New file.
32594         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
32595         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
32596         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
32597         (main): Invoke test_function.
32599         log1p: Provide replacement for Minix and MSVC.
32600         * lib/math.in.h (log1p): New declaration.
32601         * lib/log1p.c: New file.
32602         * m4/log1p.m4: New file.
32603         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
32604         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
32605         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
32606         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
32607         (Depends-on): Add math, isnand, log, round.
32608         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
32609         HAVE_LOG1P is 0.
32610         * tests/test-math-c++.cc: Check the declaration of log1p.
32611         * doc/posix-functions/log1p.texi: Mention the replacement.
32613 2012-03-10  Bruno Haible  <bruno@clisp.org>
32615         math tests: Small simplification.
32616         * tests/test-exp.h (test_function): Use the same err_bound for
32617         'double' on platforms with sizeof (long double) == sizeof (double)
32618         than on platforms with sizeof (long double) > sizeof (double).
32619         * tests/test-exp2.h (test_function): Likewise.
32620         * tests/test-expm1.h (test_function): Likewise.
32621         * tests/test-log.h (test_function): Likewise.
32623 2012-03-10  Bruno Haible  <bruno@clisp.org>
32625         Fix some comments.
32626         * lib/expl.c: Fix an ambiguous comment.
32627         * lib/expm1.c: Likewise.
32628         * lib/expm1l.c: Likewise.
32629         * lib/exp2.c: Likewise.
32630         * lib/exp2l.c: Likewise.
32632 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
32634         regex: allow inclusion of <regex.h> before <limits.h>
32635         Without this patch, portable programs had to include <limits.h> before
32636         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
32637         I ran into this problem with a test version of GNU grep on Solaris 8.
32638         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
32639         This is done conditionally so that this change can be merged
32640         back to glibc.
32641         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
32642         using the included regex.
32644         fts: depend on fdopendir
32645         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
32646         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
32647         problem was introduced when fdopendir was split out.
32649 2012-03-10  Bruno Haible  <bruno@clisp.org>
32651         Remove unused variables.
32652         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
32653         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
32655 2012-03-10  Bruno Haible  <bruno@clisp.org>
32657         isnanf-nolibm: Fix last commit.
32658         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
32660         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
32661         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
32663 2012-03-10  Bruno Haible  <bruno@clisp.org>
32665         logf-ieee: Work around test failure on NetBSD 5.1.
32666         * m4/logf-ieee.m4: New file.
32667         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
32668         whether logf works with a negative argument. Replace it if not.
32669         * lib/logf.c (logf): For negative arguments, return NaN.
32670         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
32671         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
32672         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
32674         logf-ieee: Work around test failure on Solaris 9.
32675         * modules/logf-ieee (Depends-on): Add log-ieee.
32676         (configure.ac): Require gl_FUNC_LOGF.
32678         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
32679         * m4/log-ieee.m4: New file.
32680         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
32681         log works with a negative argument. Replace it if not.
32682         * lib/log.c (log): For negative arguments, return NaN.
32683         * modules/log-ieee (Files): Add m4/log-ieee.m4.
32684         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
32685         * doc/posix-functions/log.texi: Mention the log-ieee module.
32687         Tests for module 'logl-ieee'.
32688         * modules/logl-ieee-tests: New file.
32689         * tests/test-logl-ieee.c: New file.
32691         New module 'logl-ieee'.
32692         * modules/logl-ieee: New file.
32694         Tests for module 'log-ieee'.
32695         * modules/log-ieee-tests: New file.
32696         * tests/test-log-ieee.c: New file.
32698         New module 'log-ieee'.
32699         * modules/log-ieee: New file.
32701         Tests for module 'logf-ieee'.
32702         * modules/logf-ieee-tests: New file.
32703         * tests/test-logf-ieee.c: New file.
32704         * tests/test-log-ieee.h: New file.
32706         New module 'logf-ieee'.
32707         * modules/logf-ieee: New file.
32709 2012-03-10  Bruno Haible  <bruno@clisp.org>
32711         log: Fix bug introduced on 2012-03-09.
32712         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
32714 2012-03-10  Pádraig Brady  <P@draigBrady.com>
32716         timer-time: link explicitly with pthreads on glibc
32717         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
32718         to support static linking, when newer glibc is
32719         detected, as that contains pthread emulation of
32720         POSIX timer functions where required.
32721         * modules/timer-time: Depend on threadlib to
32722         pull in the appropriate library to link.
32724 2012-03-10  Bruno Haible  <bruno@clisp.org>
32726         log* tests: More tests.
32727         * tests/test-log.h: New file.
32728         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
32729         (main): Invoke test_function.
32730         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
32731         (main): Invoke test_function.
32732         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
32733         (main): Invoke test_function.
32734         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
32735         tests/randomd.c.
32736         (Makefile.am): Add randomd.c to test_log_SOURCES.
32737         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
32738         tests/randomf.c.
32739         (Makefile.am): Add randomf.c to test_logf_SOURCES.
32740         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
32741         tests/randoml.c.
32742         (Depends-on): Add 'float'.
32743         (Makefile.am): Add randoml.c to test_logl_SOURCES.
32745 2012-03-09  Bruno Haible  <bruno@clisp.org>
32747         logl: Work around OSF/1 5.1 bug.
32748         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
32749         * lib/logl.c (logl): If logl exists, use it and provide just the
32750         workaround.
32751         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
32752         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
32753         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
32754         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
32755         * modules/logl (configure.ac): Consider REPLACE_LOGL.
32756         (Depends-on): Update conditions.
32757         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
32759 2012-03-09  Bruno Haible  <bruno@clisp.org>
32761         logf: Work around OSF/1 5.1 bug.
32762         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
32763         * lib/logf.c (logf): If logf exists, use it and provide just the
32764         workaround.
32765         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
32766         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
32767         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
32768         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
32769         * modules/logf (configure.ac): Consider REPLACE_LOGF.
32770         (Depends-on): Update conditions.
32771         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
32773 2012-03-09  Bruno Haible  <bruno@clisp.org>
32775         log: Work around OSF/1 5.1 bug.
32776         * lib/math.in.h (log): New declaration.
32777         * lib/log.c: New file.
32778         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
32779         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
32780         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
32781         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
32782         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
32783         * modules/log (Files): Add lib/log.c.
32784         (Depends-on): Add math.
32785         (configure.ac): If REPLACE_LOG is 1, compile an override.
32786         * tests/test-math-c++.cc: Check the declaration of log.
32787         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
32789 2012-03-09  Jim Meyering  <meyering@redhat.com>
32791         readtokens.c: adjust wording in a comment
32792         * lib/readtokens.c: Insert omitted "that" in a comment.
32794 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
32796         modechange: add notations +40, 00440, etc.
32797         * lib/modechange.c (mode_compile): Support new notations
32798         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
32800 2012-03-08  Bruno Haible  <bruno@clisp.org>
32802         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
32803         * m4/exp2l-ieee.m4: New file.
32804         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
32805         test whether exp2l works with a NaN argument and with a negative
32806         infinity argument. Replace it if not.
32807         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
32808         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
32809         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
32810         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
32811         (Depends-on): Update conditions.
32812         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
32813         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
32814         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
32816         Tests for module 'exp2l-ieee'.
32817         * modules/exp2l-ieee-tests: New file.
32818         * tests/test-exp2l-ieee.c: New file.
32820         New module 'exp2l-ieee'.
32821         * modules/exp2l-ieee: New file.
32823         Tests for module 'exp2-ieee'.
32824         * modules/exp2-ieee-tests: New file.
32825         * tests/test-exp2-ieee.c: New file.
32827         New module 'exp2-ieee'.
32828         * modules/exp2-ieee: New file.
32830         Tests for module 'exp2f-ieee'.
32831         * modules/exp2f-ieee-tests: New file.
32832         * tests/test-exp2f-ieee.c: New file.
32833         * tests/test-exp2-ieee.h: New file.
32835         New module 'exp2f-ieee'.
32836         * modules/exp2f-ieee: New file.
32838 2012-03-08  Bruno Haible  <bruno@clisp.org>
32840         Tests for module 'exp2l'.
32841         * modules/exp2l-tests: New file.
32842         * tests/test-exp2l.c: New file.
32844         New module 'exp2l'.
32845         * lib/math.in.h (exp2l): New declaration.
32846         * lib/exp2l.c: New file.
32847         * lib/expl-table.c: New file, extracted from lib/expl.c.
32848         * lib/expl.c (gl_expl_table): New declaration.
32849         (expl): Remove expl_table. Update reference.
32850         * m4/exp2l.m4: New file.
32851         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
32852         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
32853         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
32854         * modules/exp2l: New file.
32855         * modules/expl (Files): Add lib/expl-table.c.
32856         (configure.ac): Compile also expl-table.c.
32857         * tests/test-math-c++.cc: Check the declaration of exp2l.
32858         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
32859         problem.
32861 2012-03-08  Bruno Haible  <bruno@clisp.org>
32863         Tests for module 'exp2f'.
32864         * modules/exp2f-tests: New file.
32865         * tests/test-exp2f.c: New file.
32867         New module 'exp2f'.
32868         * lib/math.in.h (exp2f): New declaration.
32869         * lib/exp2f.c: New file.
32870         * m4/exp2f.m4: New file.
32871         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
32872         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
32873         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
32874         * modules/exp2f: New file.
32875         * tests/test-math-c++.cc: Check the declaration of exp2f.
32876         * doc/posix-functions/exp2f.texi: Mention the new module and the
32877         IRIX problem.
32879 2012-03-08  Bruno Haible  <bruno@clisp.org>
32881         Tests for module 'exp2'.
32882         * modules/exp2-tests: New file.
32883         * tests/test-exp2.c: New file.
32884         * tests/test-exp2.h: New file.
32886         New module 'exp2'.
32887         * lib/math.in.h (exp2): New declaration.
32888         * lib/exp2.c: New file.
32889         * m4/exp2.m4: New file.
32890         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
32891         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
32892         REPLACE_EXP2.
32893         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
32894         REPLACE_EXP2.
32895         * modules/exp2: New file.
32896         * tests/test-math-c++.cc: Check the declaration of exp2.
32897         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
32898         and OpenBSD problems.
32900 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
32902         savedir: fix comment typo
32903         * lib/savedir.c (savedirstream): Fix typo in comment.
32905 2012-03-08  Bruno Haible  <bruno@clisp.org>
32907         test-readtokens.c: use const; remove unwarranted cast
32908         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
32910 2012-03-08  Bruno Haible  <bruno@clisp.org>
32912         fmal: Avoid compilation error on AIX.
32913         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
32914         AIX 5.2..7.1.
32916 2012-03-08  Bruno Haible  <bruno@clisp.org>
32918         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
32919         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
32920         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
32921         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
32922         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
32923         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
32924         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
32926 2012-03-08  Bruno Haible  <bruno@clisp.org>
32928         remainderf: Override buggy system function on IRIX 6.5.
32929         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
32930         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
32931         when it exists.
32932         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
32934 2012-03-08  Jim Meyering  <meyering@redhat.com>
32936         test-readtokens.c: avoid const-related compilation warnings
32937         * tests/test-readtokens.c: Avoid const-related compilation warnings.
32939 2012-03-07  Jim Meyering  <meyering@redhat.com>
32940             Bruno Haible  <bruno@clisp.org>
32942         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
32943         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
32944         tests/randomd.c.
32945         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
32946         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
32947         tests/randoml.c.
32948         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
32950 2012-03-07  Bruno Haible  <bruno@clisp.org>
32952         expm1l: Avoid compilation error on AIX.
32953         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
32954         AIX 5.2..7.1.
32956 2012-03-07  Bruno Haible  <bruno@clisp.org>
32958         expm1l: Don't override undeclared system function on IRIX 6.5.
32959         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
32960         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
32961         it exists. Set HAVE_DECL_EXPM1L.
32962         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
32963         HAVE_EXPM1L.
32964         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
32965         HAVE_EXPM1L.
32966         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
32968 2012-03-07  Bruno Haible  <bruno@clisp.org>
32970         remainderl: Don't override undeclared system function on IRIX 6.5.
32971         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
32972         HAVE_REMAINDERL.
32973         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
32974         declared when it exists. Set HAVE_DECL_REMAINDERL.
32975         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
32976         not HAVE_REMAINDERL.
32977         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
32978         HAVE_REMAINDERL.
32979         * doc/posix-functions/remainderl.texi: Mention missing declaration
32980         problem.
32982 2012-03-07  Bruno Haible  <bruno@clisp.org>
32984         rintf: Don't override undeclared system function on IRIX 6.5.
32985         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
32986         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
32987         exists. Set HAVE_DECL_RINTF.
32988         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
32989         HAVE_RINTF.
32990         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
32991         HAVE_RINTF.
32992         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
32994 2012-03-07  Bruno Haible  <bruno@clisp.org>
32996         roundl: Avoid compilation error on AIX.
32997         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
32998         AIX 5.2..7.1.
33000 2012-03-07  Bruno Haible  <bruno@clisp.org>
33002         roundl: Don't override undeclared system function on IRIX 6.5.
33003         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
33004         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
33005         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
33006         * modules/roundl (configure.ac): For replacement code, test
33007         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
33008         (Depends-on): Update conditions.
33009         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
33011 2012-03-07  Bruno Haible  <bruno@clisp.org>
33013         roundf: Don't override undeclared system function on IRIX 6.5.
33014         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
33015         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
33016         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
33017         * modules/roundf (configure.ac): For replacement code, test
33018         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
33019         (Depends-on): Update conditions.
33020         * modules/roundf-ieee (Depends-on): Update conditions.
33021         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
33023 2012-03-07  Bruno Haible  <bruno@clisp.org>
33025         round: Don't override undeclared system function on IRIX 6.5.
33026         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
33027         argument.
33028         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
33029         also when it is not declared. Set HAVE_ROUND. For replacement code,
33030         test HAVE_ROUND, not HAVE_DECL_ROUND.
33031         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
33032         not HAVE_DECL_ROUND.
33033         (Depends-on): Update conditions.
33034         * modules/round-ieee (Depends-on): Update conditions.
33035         * doc/posix-functions/round.texi: Mention the IRIX problem.
33037 2012-03-07  Bruno Haible  <bruno@clisp.org>
33039         copysignf: Don't override undeclared system function on IRIX 6.5.
33040         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
33041         HAVE_COPYSIGNF.
33042         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
33043         declared when it exists. Set HAVE_DECL_COPYSIGNF.
33044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
33045         not HAVE_COPYSIGNF.
33046         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
33047         HAVE_COPYSIGNF.
33048         * doc/posix-functions/copysignf.texi: Mention missing declaration
33049         problem.
33051 2012-03-07  Jim Meyering  <meyering@redhat.com>
33053         readtokens: add tests
33054         * modules/readtokens-tests: New file.
33055         * tests/test-readtokens.c: New file.
33057 2012-03-07  Jim Meyering  <meyering@redhat.com>
33059         quotearg: the module must now include quote.h
33060         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
33061         So must the module.
33062         * modules/quotearg (Files): Add quote.h.
33064 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
33066         readtokens: avoid core dumps with unusual calling patterns
33067         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
33068         * lib/readtokens.c: Include limits.h.
33069         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
33070         (readtoken): Don't cache the delimiters; the cache code was buggy
33071         if !delim && saved_delim, or if the new n_delim differs from the old.
33072         Also, it wasn't thread-safe.
33074 2012-03-07  Bruno Haible  <bruno@clisp.org>
33076         quote: Adhere to common module description layout.
33077         * modules/quote (Makefile.am): Add back empty section.
33079 2012-03-06  Akim Demaille  <demaille@gostai.com>
33081         quote: fuse into quotearg
33082         This patch is made for the benefit of Bison.
33083         quote does not leave the choice of the quoting style to the user.
33084         quoting_style provides poor customizability, yet quoting_options,
33085         which is very rich, is hidden inside quotearg.c.  So in order to
33086         allow quote customization, move its implementation to quotearg.c.
33087         * lib/quote.c: Remove.
33088         * modules/quote: Adjust.
33089         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
33090         warning: provide all the members of literal structs.
33091         (quote_quoting_options): New.
33092         (quote, quote_n): Import implementation from quote.c.
33093         * lib/quote.h: Import the comments from quote.c.
33094         (quote_quoting_options): New.
33096 2012-03-06  Bruno Haible  <bruno@clisp.org>
33098         Tests for module 'expm1l-ieee'.
33099         * modules/expm1l-ieee-tests: New file.
33100         * tests/test-expm1l-ieee.c: New file.
33102         New module 'expm1l-ieee'.
33103         * modules/expm1l-ieee: New file.
33105         Tests for module 'expm1f-ieee'.
33106         * modules/expm1f-ieee-tests: New file.
33107         * tests/test-expm1f-ieee.c: New file.
33109         New module 'expm1f-ieee'.
33110         * modules/expm1f-ieee: New file.
33112         Tests for module 'expm1-ieee'.
33113         * modules/expm1-ieee-tests: New file.
33114         * tests/test-expm1-ieee.c: New file.
33115         * tests/test-expm1-ieee.h: New file.
33117         New module 'expm1-ieee'.
33118         * modules/expm1-ieee: New file.
33119         * m4/expm1-ieee.m4: New file.
33120         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
33121         whether expm1 works with a minus zero argument. Replace it if not.
33122         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
33123         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
33124         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
33125         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
33126         (Depends-on): Update conditions.
33127         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
33128         AIX problem.
33130 2012-03-06  Bruno Haible  <bruno@clisp.org>
33132         Work around expm1f bug on IRIX 6.5.
33133         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
33134         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
33135         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
33136         not work.
33137         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
33138         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
33139         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
33140         (Depends-on): Update conditions.
33141         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
33143 2012-03-06  Bruno Haible  <bruno@clisp.org>
33145         Tests for module 'expm1l'.
33146         * modules/expm1l-tests: New file.
33147         * tests/test-expm1l.c: New file.
33149         New module 'expm1l'.
33150         * lib/math.in.h (expm1l): New declaration.
33151         * lib/expm1l.c: New file.
33152         * m4/expm1l.m4: New file.
33153         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
33154         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
33155         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
33156         * modules/expm1l: New file.
33157         * tests/test-math-c++.cc: Check the declaration of expm1l.
33158         * doc/posix-functions/expm1l.texi: Mention the new module.
33160 2012-03-06  Bruno Haible  <bruno@clisp.org>
33162         Tests for module 'expm1f'.
33163         * modules/expm1f-tests: New file.
33164         * tests/test-expm1f.c: New file.
33166         New module 'expm1f'.
33167         * lib/math.in.h (expm1f): New declaration.
33168         * lib/expm1f.c: New file.
33169         * m4/expm1f.m4: New file.
33170         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
33171         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
33172         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
33173         * modules/expm1f: New file.
33174         * tests/test-math-c++.cc: Check the declaration of expm1f.
33175         * doc/posix-functions/expm1f.texi: Mention the new module.
33177 2012-03-06  Bruno Haible  <bruno@clisp.org>
33179         Tests for module 'expm1'.
33180         * modules/expm1-tests: New file.
33181         * tests/test-expm1.c: New file.
33182         * tests/test-expm1.h: New file.
33184         New module 'expm1'.
33185         * lib/math.in.h (expm1): New declaration.
33186         * lib/expm1.c: New file.
33187         * m4/expm1.m4: New file.
33188         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
33189         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
33190         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
33191         * modules/expm1: New file.
33192         * tests/test-math-c++.cc: Check the declaration of expm1.
33193         * doc/posix-functions/expm1.texi: Mention the new module.
33195 2012-03-06  Bruno Haible  <bruno@clisp.org>
33197         math: Ensure declarations of math functions.
33198         * modules/acosf (Depends-on): Add 'extensions'.
33199         * modules/asinf (Depends-on): Likewise.
33200         * modules/atan2f (Depends-on): Likewise.
33201         * modules/atanf (Depends-on): Likewise.
33202         * modules/cbrt (Depends-on): Likewise.
33203         * modules/cbrtf (Depends-on): Likewise.
33204         * modules/cbrtl (Depends-on): Likewise.
33205         * modules/copysignf (Depends-on): Likewise.
33206         * modules/copysignl (Depends-on): Likewise.
33207         * modules/cosf (Depends-on): Likewise.
33208         * modules/coshf (Depends-on): Likewise.
33209         * modules/expf (Depends-on): Likewise.
33210         * modules/fabsf (Depends-on): Likewise.
33211         * modules/fabsl (Depends-on): Likewise.
33212         * modules/fmaf (Depends-on): Likewise.
33213         * modules/fmal (Depends-on): Likewise.
33214         * modules/fmodf (Depends-on): Likewise.
33215         * modules/fmodl (Depends-on): Likewise.
33216         * modules/frexpf (Depends-on): Likewise.
33217         * modules/frexpl (Depends-on): Likewise.
33218         * modules/hypot (Depends-on): Likewise.
33219         * modules/hypotf (Depends-on): Likewise.
33220         * modules/hypotl (Depends-on): Likewise.
33221         * modules/ldexpf (Depends-on): Likewise.
33222         * modules/ldexpl (Depends-on): Likewise.
33223         * modules/log10f (Depends-on): Likewise.
33224         * modules/log10l (Depends-on): Likewise.
33225         * modules/log1p (Depends-on): Likewise.
33226         * modules/logb (Depends-on): Likewise.
33227         * modules/logf (Depends-on): Likewise.
33228         * modules/modff (Depends-on): Likewise.
33229         * modules/modfl (Depends-on): Likewise.
33230         * modules/powf (Depends-on): Likewise.
33231         * modules/remainderf (Depends-on): Likewise.
33232         * modules/remainderl (Depends-on): Likewise.
33233         * modules/rintf (Depends-on): Likewise.
33234         * modules/rintl (Depends-on): Likewise.
33235         * modules/sinf (Depends-on): Likewise.
33236         * modules/sinhf (Depends-on): Likewise.
33237         * modules/sqrtf (Depends-on): Likewise.
33238         * modules/tanf (Depends-on): Likewise.
33239         * modules/tanhf (Depends-on): Likewise.
33240         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
33241         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
33242         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
33243         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
33244         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
33245         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
33246         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
33247         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
33248         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
33249         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
33250         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
33251         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
33252         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
33253         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
33254         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
33255         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
33256         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
33257         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
33258         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
33259         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
33260         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
33261         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
33262         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
33263         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
33264         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
33265         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
33266         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
33267         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
33268         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
33269         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
33270         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
33271         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
33272         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
33273         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
33274         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
33275         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
33276         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
33277         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
33278         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
33279         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
33280         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
33282 2012-03-06  Bruno Haible  <bruno@clisp.org>
33284         math: Update module names in warnings.
33285         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33286         tanl): Use specific module name in warn-on-use warning.
33288 2012-03-06  Bruno Haible  <bruno@clisp.org>
33290         expl: Simplify computation.
33291         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
33293 2012-03-05  Bruno Haible  <bruno@clisp.org>
33295         exp* tests: More tests.
33296         * tests/test-exp.h: New file.
33297         * tests/test-exp.c: Include <float.h> and test-exp.h.
33298         (main): Invoke test_function.
33299         * tests/test-expf.c: Include <float.h> and test-exp.h.
33300         (main): Invoke test_function.
33301         * tests/test-expl.c: Include <float.h> and test-exp.h.
33302         (main): Invoke test_function.
33303         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
33304         (Makefile.am): Add randomd.c to test_exp_SOURCES.
33305         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
33306         (Makefile.am): Add randomf.c to test_expf_SOURCES.
33307         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
33308         (Depends-on): Add 'float'.
33309         (Makefile.am): Add randoml.c to test_expl_SOURCES.
33311         expl: Fix precision of computed result.
33312         * lib/expl.c: Completely rewritten.
33313         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
33314         (Maintainer): Add me.
33315         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
33317 2012-03-05  Bruno Haible  <bruno@clisp.org>
33319         cbrt* tests: More tests.
33320         * tests/test-cbrt.h: New file.
33321         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
33322         (main): Invoke test_function.
33323         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
33324         (main): Invoke test_function.
33325         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
33326         (main): Invoke test_function.
33327         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
33328         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
33329         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
33330         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
33331         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
33332         (Depends-on): Add 'float'.
33333         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
33335 2012-03-05  Bruno Haible  <bruno@clisp.org>
33337         hypot* tests: More tests.
33338         * tests/test-hypot.h: New file, partially extracted from
33339         tests/test-hypotl.c.
33340         * tests/test-hypot.c: Include test-hypot.h.
33341         (main): Invoke test_function.
33342         * tests/test-hypotf.c: Include test-hypot.h.
33343         (main): Invoke test_function.
33344         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
33345         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
33346         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
33347         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
33348         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
33349         tests/randomf.c.
33350         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
33351         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
33352         tests/randoml.c.
33353         (Depends-on): Add 'fpucw', 'float'.
33354         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
33356 2012-03-05  Bruno Haible  <bruno@clisp.org>
33358         fpucw: Doc about FreeBSD.
33359         * lib/fpucw.h: Mention FreeBSD in comments.
33361 2012-03-04  Bruno Haible  <bruno@clisp.org>
33363         sqrt* tests: More tests.
33364         * tests/test-sqrt.h: New file.
33365         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
33366         (main): Invoke test_function.
33367         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
33368         (main): Invoke test_function.
33369         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
33370         (main): Invoke test_function.
33371         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
33372         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
33373         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
33374         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
33375         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
33376         (Depends-on): Add 'float'.
33377         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
33379 2012-03-04  Bruno Haible  <bruno@clisp.org>
33381         remainder* tests: More tests.
33382         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
33383         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
33384         (main): Invoke test_function.
33385         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
33386         (main): Invoke test_function.
33387         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
33388         (main): Invoke test_function.
33389         * modules/remainder-tests (Files): Add tests/test-remainder.h,
33390         tests/randomd.c.
33391         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
33392         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
33393         tests/randomf.c.
33394         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
33395         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
33396         tests/randoml.c.
33397         (Depends-on): Add 'float'.
33398         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
33400 2012-03-04  Bruno Haible  <bruno@clisp.org>
33402         remainder, remainderf, remainderl: Fix computation for large quotients.
33403         * lib/remainder.c: Completely rewritten.
33404         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
33405         USE_FLOAT.
33406         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
33407         USE_LONG_DOUBLE.
33408         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
33409         isnand, isinf. Remove round, fma.
33410         * modules/remainderf (Files): Add lib/remainder.c.
33411         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
33412         Remove roundf, fmaf.
33413         * modules/remainderl (Files): Add lib/remainder.c.
33414         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
33415         isinf. Remove roundl, fmal.
33416         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
33417         REMAINDER_LIBM.
33418         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
33419         REMAINDERF_LIBM.
33420         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
33421         REMAINDERL_LIBM.
33423 2012-03-04  Bruno Haible  <bruno@clisp.org>
33425         fmod* tests: More tests.
33426         * tests/test-fmod.h (my_ldexp): New function.
33427         (test_function): Reduce amount of random numbers to test. Add tests
33428         of very large quotients x / y.
33429         * tests/test-fmod.c (MAX_EXP): New macro.
33430         * tests/test-fmodf.c (MAX_EXP): Likewise.
33431         * tests/test-fmodl.c (MAX_EXP): Likewise.
33433 2012-03-04  Bruno Haible  <bruno@clisp.org>
33435         fmod, fmodl: Fix computation for large quotients x / y.
33436         * lib/fmod.c: Completely rewritten.
33437         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
33438         USE_LONG_DOUBLE.
33439         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
33440         isnand. Remove fma.
33441         * modules/fmodl (Files): Add lib/fmod.c.
33442         (Depends-on): Add float, isfinite, signbit, fabsl,
33443         frexpl, ldexpl, isnanl. Remove fma.
33444         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
33445         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
33447 2012-03-03  Bruno Haible  <bruno@clisp.org>
33449         fmod* tests: More tests.
33450         * tests/test-fmod.h: New file.
33451         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
33452         (main): Invoke test_function.
33453         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
33454         (main): Invoke test_function.
33455         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
33456         (main): Invoke test_function.
33457         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
33458         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
33459         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
33460         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
33461         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
33462         (Depends-on): Add 'float'.
33463         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
33465 2012-03-03  Bruno Haible  <bruno@clisp.org>
33467         rint* tests: More tests.
33468         * tests/test-rint.h: New file, partially extracted from
33469         tests/test-rintl.c.
33470         * tests/test-rint.c: Include test-rint.h.
33471         (main): Invoke test_function.
33472         * tests/test-rintf.c: Include test-rint.h.
33473         (main): Invoke test_function.
33474         * tests/test-rintl.c: Include test-rint.h.
33475         (main): Invoke test_function.
33476         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
33477         (Makefile.am): Add randomd.c to test_rint_SOURCES.
33478         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
33479         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
33480         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
33481         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
33483 2012-03-03  Bruno Haible  <bruno@clisp.org>
33485         modf* tests: More tests.
33486         * tests/test-modf.h: New file.
33487         * tests/test-modf.c: Include <float.h> and test-modf.h.
33488         (main): Invoke test_function.
33489         * tests/test-modff.c: Include <float.h> and test-modf.h.
33490         (main): Invoke test_function.
33491         * tests/test-modfl.c: Include <float.h> and test-modf.h.
33492         (main): Invoke test_function.
33493         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
33494         (Makefile.am): Add randomd.c to test_modf_SOURCES.
33495         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
33496         (Makefile.am): Add randomf.c to test_modff_SOURCES.
33497         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
33498         (Depends-on): Add 'float'.
33499         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
33501 2012-03-03  Bruno Haible  <bruno@clisp.org>
33503         fabs* tests: More tests.
33504         * tests/test-fabs.h: New file, partially extracted from
33505         tests/test-fabsl.c.
33506         * tests/test-fabs.c (RANDOM): New macro.
33507         * tests/test-fabsf.c (RANDOM): New macro.
33508         * tests/test-fabsl.c (RANDOM): New macro.
33509         * modules/fabs-tests (Files): Add tests/randomd.c.
33510         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
33511         * modules/fabsf-tests (Files): Add tests/randomf.c.
33512         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
33513         * modules/fabsl-tests (Files): Add tests/randoml.c.
33514         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
33516 2012-03-03  Bruno Haible  <bruno@clisp.org>
33518         ldexp* tests: More tests.
33519         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
33520         * tests/test-ldexp.c (RANDOM): New macro.
33521         * tests/test-ldexpf.c (RANDOM): New macro.
33522         * tests/test-ldexpl.c (RANDOM): New macro.
33523         * modules/ldexp-tests (Files): Add tests/randomd.c.
33524         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
33525         * modules/ldexpf-tests (Files): Add tests/randomf.c.
33526         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
33527         * modules/ldexpl-tests (Files): Add tests/randoml.c.
33528         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
33530 2012-03-03  Bruno Haible  <bruno@clisp.org>
33532         frexp* tests: More tests.
33533         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
33534         * tests/test-frexp.c (RANDOM): New macro.
33535         * tests/test-frexpf.c (RANDOM): New macro.
33536         * tests/test-frexpl.c (RANDOM): New macro.
33537         * modules/frexp-tests (Files): Add tests/randomd.c.
33538         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
33539         * modules/frexpf-tests (Files): Add tests/randomf.c.
33540         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
33541         * modules/frexpl-tests (Files): Add tests/randoml.c.
33542         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
33544 2012-03-03  Bruno Haible  <bruno@clisp.org>
33546         Support for pseudo-random numbers in tests.
33547         * tests/randomf.c: New file.
33548         * tests/randomd.c: New file.
33549         * tests/randoml.c: New file.
33550         * tests/macros.h (randomf, randomd, randoml): New declarations.
33552 2012-03-03  Bruno Haible  <bruno@clisp.org>
33554         frexp* tests: Refactor.
33555         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
33556         * tests/test-frexp.c: Include and use it.
33557         * tests/test-frexpf.c: Likewise.
33558         * tests/test-frexpl.c: Likewise.
33559         * modules/frexp-tests (Files): Add tests/test-frexp.h.
33560         * modules/frexpf-tests (Files): Likewise.
33561         * modules/frexpl-tests (Files): Likewise.
33563 2012-03-02  Jim Meyering  <meyering@redhat.com>
33565         maint: don't specify XZ_OPT=-9ev in dist-related rule
33566         Using xz's -9 option is warranted only if you have a very large
33567         tarball (see xz's documentation for the sizes vs. presets), and
33568         requires 64MiB of memory at decompression time.
33569         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
33570         Automake's default of just "-e" is fine.  Override on a
33571         per-package basis by setting XZ_OPT e.g., in cfg.mk.
33573 2012-03-01  Eric Blake  <eblake@redhat.com>
33575         maint.mk: allow announcement for non-gnulib project
33576         * maint.mk (announcement): Skip gnulib version if not used.
33578 2012-03-01  Jim Meyering  <meyering@redhat.com>
33580         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
33581         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
33582         envvar settings cannot interfere.  Otherwise, setting envvars like
33583         prohibit=foo require=bar, etc. would cause spurious test failures.
33585 2012-03-01  Eric Blake  <eblake@redhat.com>
33587         maint.mk: add per-line exclusions to prohibitions
33588         * maint.mk (_sc_search_regexp): Add $exclude parameter.
33589         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
33590         (sc_const_long_option): Use it.
33592 2012-03-01  Bruno Haible  <bruno@clisp.org>
33594         Tests for module 'expl-ieee'.
33595         * modules/expl-ieee-tests: New file.
33596         * tests/test-expl-ieee.c: New file.
33598         New module 'expl-ieee'.
33599         * modules/expl-ieee: New file.
33601         Tests for module 'exp-ieee'.
33602         * modules/exp-ieee-tests: New file.
33603         * tests/test-exp-ieee.c: New file.
33605         New module 'exp-ieee'.
33606         * modules/exp-ieee: New file.
33608         Tests for module 'expf-ieee'.
33609         * modules/expf-ieee-tests: New file.
33610         * tests/test-expf-ieee.c: New file.
33611         * tests/test-exp-ieee.h: New file.
33613         New module 'expf-ieee'.
33614         * modules/expf-ieee: New file.
33616 2012-02-29  Bruno Haible  <bruno@clisp.org>
33618         cbrtl-ieee: Work around test failure on IRIX 6.5.
33619         * m4/cbrtl-ieee.m4: New file.
33620         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
33621         test whether cbrtl works with a minus zero argument. Replace it if not.
33622         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
33623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
33624         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
33625         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
33626         (Depends-on): Update conditions.
33627         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
33628         m4/signbit.m4.
33629         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
33630         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
33631         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
33633         Tests for module 'cbrtl-ieee'.
33634         * modules/cbrtl-ieee-tests: New file.
33635         * tests/test-cbrtl-ieee.c: New file.
33637         New module 'cbrtl-ieee'.
33638         * modules/cbrtl-ieee: New file.
33640         Tests for module 'cbrt-ieee'.
33641         * modules/cbrt-ieee-tests: New file.
33642         * tests/test-cbrt-ieee.c: New file.
33644         New module 'cbrt-ieee'.
33645         * modules/cbrt-ieee: New file.
33647         Tests for module 'cbrtf-ieee'.
33648         * modules/cbrtf-ieee-tests: New file.
33649         * tests/test-cbrtf-ieee.c: New file.
33650         * tests/test-cbrt-ieee.h: New file.
33652         New module 'cbrtf-ieee'.
33653         * modules/cbrtf-ieee: New file.
33655 2012-02-29  Bruno Haible  <bruno@clisp.org>
33657         cbrtf: Work around bug in IRIX 6.5 system function.
33658         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
33659         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
33660         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
33661         work.
33662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
33663         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
33664         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
33665         (Depends-on): Update conditions.
33666         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
33668 2012-02-29  Bruno Haible  <bruno@clisp.org>
33670         Tests for module 'cbrtl'.
33671         * modules/cbrtl-tests: New file.
33672         * tests/test-cbrtl.c: New file.
33674         New module 'cbrtl'.
33675         * lib/math.in.h (cbrtl): New declaration.
33676         * lib/cbrtl.c: New file.
33677         * m4/cbrtl.m4: New file.
33678         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
33679         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
33680         HAVE_DECL_CBRTL.
33681         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
33682         HAVE_DECL_CBRTL.
33683         * modules/cbrtl: New file.
33684         * tests/test-math-c++.cc: Check the declaration of cbrtl.
33685         * doc/posix-functions/cbrtl.texi: Mention the new module.
33687 2012-02-29  Bruno Haible  <bruno@clisp.org>
33689         Tests for module 'cbrtf'.
33690         * modules/cbrtf-tests: New file.
33691         * tests/test-cbrtf.c: New file.
33693         New module 'cbrtf'.
33694         * lib/math.in.h (cbrtf): New declaration.
33695         * lib/cbrtf.c: New file.
33696         * m4/cbrtf.m4: New file.
33697         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
33698         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
33699         HAVE_DECL_CBRTF.
33700         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
33701         HAVE_DECL_CBRTF.
33702         * modules/cbrtf: New file.
33703         * tests/test-math-c++.cc: Check the declaration of cbrtf.
33704         * doc/posix-functions/cbrtf.texi: Mention the new module.
33706 2012-02-29  Bruno Haible  <bruno@clisp.org>
33708         cbrt: Provide replacement on MSVC and Minix.
33709         * lib/math.in.h (cbrt): New declaration.
33710         * lib/cbrt.c: New file.
33711         * m4/cbrt.m4: New file.
33712         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
33713         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
33714         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
33715         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
33716         (Depends-on): Add dependencies.
33717         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
33718         * tests/test-math-c++.cc: Check the declaration of cbrt.
33719         * doc/posix-functions/cbrt.texi: Mention that the module provides a
33720         replacement.
33722 2012-02-29  Bruno Haible  <bruno@clisp.org>
33724         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
33725         * m4/hypotl-ieee.m4: New file.
33726         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
33727         test whether hypotl works with mixed NaN and Infinity arguments.
33728         Replace it if not.
33729         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
33730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
33731         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
33732         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
33733         (Depends-on): Update conditions.
33734         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
33735         (Depends-on): Add hypot-ieee.
33736         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
33737         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
33739         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
33740         * m4/hypotf-ieee.m4: New file.
33741         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
33742         test whether hypotf works with mixed NaN and Infinity arguments.
33743         Replace it if not.
33744         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
33745         (Depends-on): Add hypot-ieee.
33746         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
33747         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
33749         hypot-ieee: Work around test failure on OSF/1 and native Windows.
33750         * lib/math.in.h (hypot): New declaration.
33751         * lib/hypot.c: New file.
33752         * m4/hypot-ieee.m4: New file.
33753         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
33754         whether hypot works with mixed NaN and Infinity arguments. Replace it
33755         if not.
33756         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
33757         REPLACE_HYPOT.
33758         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
33759         * modules/hypot (Files): Add lib/hypot.c.
33760         (Depends-on): Add dependencies.
33761         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
33762         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
33763         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
33764         * tests/test-math-c++.cc: Check the declaration of hypot.
33765         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
33767         Tests for module 'hypotl-ieee'.
33768         * modules/hypotl-ieee-tests: New file.
33769         * tests/test-hypotl-ieee.c: New file.
33771         New module 'hypotl-ieee'.
33772         * modules/hypotl-ieee: New file.
33774         Tests for module 'hypot-ieee'.
33775         * modules/hypot-ieee-tests: New file.
33776         * tests/test-hypot-ieee.c: New file.
33778         New module 'hypot-ieee'.
33779         * modules/hypot-ieee: New file.
33781         Tests for module 'hypotf-ieee'.
33782         * modules/hypotf-ieee-tests: New file.
33783         * tests/test-hypotf-ieee.c: New file.
33784         * tests/test-hypot-ieee.h: New file.
33786         New module 'hypotf-ieee'.
33787         * modules/hypotf-ieee: New file.
33789 2012-02-29  Bruno Haible  <bruno@clisp.org>
33791         Remove unused variables.
33792         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
33793         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
33794         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
33795         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
33797 2012-02-29  Eric Blake  <eblake@redhat.com>
33799         termios: fix pid_t always, not just for tcgetsid
33800         * doc/posix-headers/termios.texi (termios.h): Mention problem.
33801         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
33802         just when building tcgetsid.
33804 2012-02-29  Bruno Haible  <bruno@clisp.org>
33806         Tests for module 'hypotl'.
33807         * modules/hypotl-tests: New file.
33808         * tests/test-hypotl.c: New file.
33810         New module 'hypotl'.
33811         * lib/math.in.h (hypotl): New declaration.
33812         * lib/hypotl.c: New file.
33813         * m4/hypotl.m4: New file.
33814         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
33815         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
33816         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
33817         * modules/hypotl: New file.
33818         * tests/test-math-c++.cc: Check the hypotl declaration.
33819         * doc/posix-functions/hypotl.texi: Mention the new module.
33821 2012-02-29  Eric Blake  <eblake@redhat.com>
33823         tcgetsid: fix cygwin header bug
33824         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
33826         docs: update cygwin progress
33827         * doc/posix-functions/llround.texi (llround): Added in cygwin
33828         1.7.8.
33829         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
33830         * doc/glibc-functions/program_invocation_name.texi
33831         (program_invocation_name): Likewise.
33832         * doc/glibc-functions/program_invocation_short_name.texi
33833         (program_invocation_short_name): Likewise.
33834         * doc/glibc-functions/madvise.texi (madvise): Likewise.
33835         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
33836         Likewise.
33837         * doc/posix-functions/pthread_spin_destroy.texi
33838         (pthread_spin_destroy): Added in cygwin 1.7.10.
33839         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
33840         Likewise.
33841         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
33842         Likewise.
33843         * doc/posix-functions/pthread_spin_trylock.texi
33844         (pthread_spin_trylock): Likewise.
33845         * doc/posix-functions/pthread_spin_unlock.texi
33846         (pthread_spin_unlock): Likewise.
33847         * doc/posix-functions/pthread_setschedprio.texi
33848         (pthread_setschedprio): Likewise.
33849         * doc/posix-functions/pthread_attr_getstack.texi
33850         (pthread_attr_getstack): Likewise.
33851         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
33852         (pthread_attr_getstackaddr): Likewise.
33853         * doc/glibc-functions/pthread_getattr_np.texi
33854         (pthread_getattr_np): Likewise.
33855         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
33856         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
33857         * doc/posix-functions/clock_settime.texi (clock_settime):
33858         Likewise.
33859         * doc/posix-functions/pthread_attr_getguardsize.texi
33860         (pthread_attr_getguardsize): Likewise.
33861         * doc/posix-functions/pthread_attr_setguardsize.texi
33862         (pthread_attr_setguardsize): Likewise.
33863         * doc/posix-functions/pthread_attr_setstack.texi
33864         (pthread_attr_setstack): Likewise.
33865         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
33866         (pthread_attr_setstackaddr): Likewise.
33867         * doc/posix-functions/clock_getcpuclockid.texi
33868         (clock_getcpuclockid): Likewise.
33869         * doc/posix-functions/pthread_getcpuclockid.texi
33870         (pthread_getcpuclockid): Likewise.
33871         * doc/glibc-functions/error.texi (error): Likewise.
33872         * doc/glibc-functions/error_at_line.texi (error_at_line):
33873         Likewise.
33874         * doc/glibc-functions/error_message_count.texi
33875         (error_message_count): Likewise.
33876         * doc/glibc-functions/error_one_per_line.texi
33877         (error_one_per_line): Likewise.
33878         * doc/glibc-functions/error_print_progname.texi
33879         (error_print_progname): Likewise.
33880         * doc/posix-functions/pthread_condattr_getclock.texi
33881         (pthread_condattr_getclock): Likewise.
33882         * doc/posix-functions/pthread_condattr_setclock.texi
33883         (pthread_condattr_setclock): Likewise.
33884         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
33885         Likewise.
33886         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
33887         * doc/glibc-functions/getpt.texi (getpt): Likewise.
33888         * doc/glibc-functions/get_current_dir_name.texi
33889         (get_current_dir_name): Likewise.
33890         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
33891         Likewise.
33892         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
33893         wrong return type.
33894         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
33895         1.7.11.
33897 2012-02-29  Bruno Haible  <bruno@clisp.org>
33899         Tests for module 'hypotf'.
33900         * modules/hypotf-tests: New file.
33901         * tests/test-hypotf.c: New file.
33903         New module 'hypotf'.
33904         * lib/math.in.h (hypotf): New declaration.
33905         * lib/hypotf.c: New file.
33906         * m4/hypotf.m4: New file.
33907         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
33908         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
33909         REPLACE_HYPOTF.
33910         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
33911         REPLACE_HYPOTF.
33912         * modules/hypotf: New file.
33913         * tests/test-math-c++.cc: Check the hypotf declaration.
33914         * doc/posix-functions/hypotf.texi: Mention the new module.
33916         hypot: Prepare for hypotf module.
33917         * m4/hypot.m4: New file.
33918         * modules/hypot (Files): Add m4/hypot.m4.
33919         (configure.ac): Invoke gl_FUNC_HYPOT.
33921 2012-02-29  Bruno Haible  <bruno@clisp.org>
33923         hypot tests: More tests.
33924         * tests/test-hypot.c: Include <float.h>.
33925         (main): Add tests about overflow and underflow.
33927 2012-02-29  Bruno Haible  <bruno@clisp.org>
33929         math code: Add comments.
33930         * lib/acosl.c: Add comment about related glibc source files.
33931         * lib/asinl.c: Likewise.
33932         * lib/atanl.c: Likewise.
33933         * lib/expl.c: Likewise.
33934         * lib/logl.c: Likewise.
33935         * lib/sincosl.c: Likewise.
33936         * lib/sinl.c: Likewise.
33937         * lib/tanl.c: Likewise.
33938         * lib/trigl.c: Likewise.
33939         * lib/cosl.c: Likewise. Fix comments.
33941 2012-02-28  Bruno Haible  <bruno@clisp.org>
33943         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
33944         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
33945         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
33946         HUGE_VALL are defined.
33947         (numeric_equald): Renamed from numeric_equal.
33948         (numeric_equalf, numeric_equall): New functions.
33949         (main): Check also HUGE_VALF, HUGE_VALL.
33950         * modules/math-tests (Files): Add tests/macros.h.
33951         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
33952         HUGE_VALL.
33954 2012-02-28  Bruno Haible  <bruno@clisp.org>
33956         doc: Move ISO C11 feature notes into POSIX chapters.
33957         * doc/posix-functions/aligned_alloc.texi: Renamed from
33958         doc/glibc-functions/aligned_alloc.texi.
33959         * doc/posix-functions/quick_exit.texi: Renamed from
33960         doc/glibc-functions/quick_exit.texi.
33961         * doc/posix-headers/uchar.texi: Renamed from
33962         doc/glibc-headers/uchar.texi.
33963         * doc/posix-functions/c16rtomb.texi: Renamed from
33964         doc/glibc-functions/c16rtomb.texi.
33965         * doc/posix-functions/c32rtomb.texi: Renamed from
33966         doc/glibc-functions/c32rtomb.texi.
33967         * doc/posix-functions/mbrtoc16.texi: Renamed from
33968         doc/glibc-functions/mbrtoc16.texi.
33969         * doc/posix-functions/mbrtoc32.texi: Renamed from
33970         doc/glibc-functions/mbrtoc32.texi.
33971         * doc/gnulib.texi: Update.
33972         (Glibc uchar.h): Remove section.
33973         Suggested by Eric Blake.
33975 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
33977         stdnoreturn: port to MSVC better
33978         MSVC standard headers use __declspec(noreturn), so #define noreturn
33979         to empty on that platform.  Reported by Bruno Haible in
33980         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
33981         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
33982         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
33984 2012-02-28  Bruno Haible  <bruno@clisp.org>
33986         doc: Mention new glibc headers and functions.
33987         * doc/glibc-headers/uchar.texi: New file.
33988         * doc/glibc-functions/aligned_alloc.texi: New file.
33989         * doc/glibc-functions/c16rtomb.texi: New file.
33990         * doc/glibc-functions/c32rtomb.texi: New file.
33991         * doc/glibc-functions/clock_adjtime.texi: New file.
33992         * doc/glibc-functions/fanotify_init.texi: New file.
33993         * doc/glibc-functions/fanotify_mark.texi: New file.
33994         * doc/glibc-functions/inet6_opt_append.texi: New file.
33995         * doc/glibc-functions/inet6_opt_find.texi: New file.
33996         * doc/glibc-functions/inet6_opt_finish.texi: New file.
33997         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
33998         * doc/glibc-functions/inet6_opt_init.texi: New file.
33999         * doc/glibc-functions/inet6_opt_next.texi: New file.
34000         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
34001         * doc/glibc-functions/inet6_rth_add.texi: New file.
34002         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
34003         * doc/glibc-functions/inet6_rth_init.texi: New file.
34004         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
34005         * doc/glibc-functions/inet6_rth_segments.texi: New file.
34006         * doc/glibc-functions/inet6_rth_space.texi: New file.
34007         * doc/glibc-functions/login.texi: New file.
34008         * doc/glibc-functions/mbrtoc16.texi: New file.
34009         * doc/glibc-functions/mbrtoc32.texi: New file.
34010         * doc/glibc-functions/name_to_handle_at.texi: New file.
34011         * doc/glibc-functions/ntp_gettimex.texi: New file.
34012         * doc/glibc-functions/open_by_handle_at.texi: New file.
34013         * doc/glibc-functions/prlimit.texi: New file.
34014         * doc/glibc-functions/process_vm_readv.texi: New file.
34015         * doc/glibc-functions/process_vm_writev.texi: New file.
34016         * doc/glibc-functions/recvmmsg.texi: New file.
34017         * doc/glibc-functions/scandirat.texi: New file.
34018         * doc/glibc-functions/sendmmsg.texi: New file.
34019         * doc/glibc-functions/setns.texi: New file.
34020         * doc/glibc-functions/timespec_get.texi: New file.
34021         * doc/gnulib.texi: Include them.
34022         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
34023         sections.
34024         Reported by Eric Blake.
34026 2012-02-28  Bruno Haible  <bruno@clisp.org>
34028         Avoid compilation errors with MSVC option -fp:strict.
34029         * lib/floor.c: Use MSVC specific pragma fenv_access.
34030         * lib/ceil.c: Likewise.
34031         * lib/trunc.c: Likewise.
34032         * lib/round.c: Likewise.
34033         * lib/rint.c: Likewise.
34034         * lib/fma.c: Likewise.
34035         * lib/integer_length.c: Likewise.
34036         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
34037         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
34038         * tests/test-floor2.c: Likewise.
34039         * tests/test-floorf2.c: Likewise.
34040         * tests/test-ceil2.c: Likewise.
34041         * tests/test-ceilf2.c: Likewise.
34042         * tests/test-trunc2.c: Likewise.
34043         * tests/test-truncf2.c: Likewise.
34044         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
34046 2012-02-27  Bruno Haible  <bruno@clisp.org>
34048         Tests for module 'sqrtl-ieee'.
34049         * modules/sqrtl-ieee-tests: New file.
34050         * tests/test-sqrtl-ieee.c: New file.
34052         New module 'sqrtl-ieee'.
34053         * modules/sqrtl-ieee: New file.
34055         Tests for module 'sqrt-ieee'.
34056         * modules/sqrt-ieee-tests: New file.
34057         * tests/test-sqrt-ieee.c: New file.
34059         New module 'sqrt-ieee'.
34060         * modules/sqrt-ieee: New file.
34062         Tests for module 'sqrtf-ieee'.
34063         * modules/sqrtf-ieee-tests: New file.
34064         * tests/test-sqrtf-ieee.c: New file.
34065         * tests/test-sqrt-ieee.h: New file.
34067         New module 'sqrtf-ieee'.
34068         * modules/sqrtf-ieee: New file.
34070 2012-02-27  Bruno Haible  <bruno@clisp.org>
34072         remainderl-ieee: Work around test failure on OSF/1.
34073         * m4/remainderl-ieee.m4: New file.
34074         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
34075         present, test whether remainderl works with a zero second argument.
34076         Replace it if not.
34077         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
34078         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
34079         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
34080         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
34081         (Depends-on): Update conditions.
34082         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
34083         (Depends-on): Add remainder-ieee.
34084         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
34085         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
34086         module.
34088         remainderf-ieee: Work around test failure on OSF/1.
34089         * m4/remainderf-ieee.m4: New file.
34090         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
34091         present, test whether remainderf works with a zero second argument.
34092         Replace it if not.
34093         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
34094         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
34095         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
34096         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
34097         (Depends-on): Update conditions.
34098         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
34099         (Depends-on): Add remainder-ieee.
34100         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
34101         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
34102         module.
34104         remainder-ieee: Work around test failure on OSF/1.
34105         * m4/remainder-ieee.m4: New file.
34106         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
34107         present, test whether remainder works with a zero second argument.
34108         Replace it if not.
34109         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
34110         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
34111         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
34112         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
34113         (Depends-on): Update dependencies.
34114         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
34115         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
34116         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
34118         Tests for module 'remainderl-ieee'.
34119         * modules/remainderl-ieee-tests: New file.
34120         * tests/test-remainderl-ieee.c: New file.
34122         New module 'remainderl-ieee'.
34123         * modules/remainderl-ieee: New file.
34125         Tests for module 'remainder-ieee'.
34126         * modules/remainder-ieee-tests: New file.
34127         * tests/test-remainder-ieee.c: New file.
34129         New module 'remainder-ieee'.
34130         * modules/remainder-ieee: New file.
34132         Tests for module 'remainderf-ieee'.
34133         * modules/remainderf-ieee-tests: New file.
34134         * tests/test-remainderf-ieee.c: New file.
34135         * tests/test-remainder-ieee.h: New file.
34137         New module 'remainderf-ieee'.
34138         * modules/remainderf-ieee: New file.
34140 2012-02-27  Bruno Haible  <bruno@clisp.org>
34142         modff, modfl: Fix configure syntax error.
34143         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
34144         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
34146 2012-02-27  Bruno Haible  <bruno@clisp.org>
34148         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
34149         * m4/fmodl-ieee.m4: New file.
34150         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
34151         whether fmodl works with zero arguments. Replace it if not.
34152         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
34153         (Depends-on): Add fmod-ieee.
34154         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
34155         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
34157         fmodf-ieee: Work around test failure on OSF/1.
34158         * m4/fmodf-ieee.m4: New file.
34159         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
34160         whether fmodf works with zero arguments. Replace it if not.
34161         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
34162         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
34163         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
34164         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
34165         (Depends-on): Update dependencies.
34166         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
34167         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
34168         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
34170         fmodf-ieee: Work around test failure on MSVC 9.
34171         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
34172         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
34174         fmod-ieee: Work around test failures on OSF/1, mingw.
34175         * m4/fmod-ieee.m4: New file.
34176         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
34177         whether fmod works with zero arguments. Replace it if not.
34178         * lib/math.in.h (fmod): New declaration.
34179         * lib/fmod.c: New file.
34180         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
34181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
34182         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
34183         * modules/fmod (Files): Add lib/fmod.c.
34184         (Depends-on): Add math, isinf, trunc, fma.
34185         (configure.ac): Arrange to compile lib/fmod.c if needed.
34186         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
34187         m4/signbit.m4.
34188         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
34189         * tests/test-math-c++.cc: Check the declaration of fmod.
34190         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
34192         fmodl-ieee: Fix test failures.
34193         * lib/fmodl.c (fmodl): Treat Inf specially.
34194         * modules/fmodl (Depends-on): Add isinf.
34196         Tests for module 'fmodl-ieee'.
34197         * modules/fmodl-ieee-tests: New file.
34198         * tests/test-fmodl-ieee.c: New file.
34200         New module 'fmodl-ieee'.
34201         * modules/fmodl-ieee: New file.
34203         Tests for module 'fmod-ieee'.
34204         * modules/fmod-ieee-tests: New file.
34205         * tests/test-fmod-ieee.c: New file.
34207         New module 'fmod-ieee'.
34208         * modules/fmod-ieee: New file.
34210         Tests for module 'fmodf-ieee'.
34211         * modules/fmodf-ieee-tests: New file.
34212         * tests/test-fmodf-ieee.c: New file.
34213         * tests/test-fmod-ieee.h: New file.
34215         New module 'fmodf-ieee'.
34216         * modules/fmodf-ieee: New file.
34218 2012-02-27  Bruno Haible  <bruno@clisp.org>
34220         Tests for module 'rintl-ieee'.
34221         * modules/rintl-ieee-tests: New file.
34222         * tests/test-rintl-ieee.c: New file.
34224         New module 'rintl-ieee'.
34225         * modules/rintl-ieee: New file.
34227         Tests for module 'rint-ieee'.
34228         * modules/rint-ieee-tests: New file.
34229         * tests/test-rint-ieee.c: New file.
34231         New module 'rint-ieee'.
34232         * modules/rint-ieee: New file.
34234         Tests for module 'rintf-ieee'.
34235         * modules/rintf-ieee-tests: New file.
34236         * tests/test-rintf-ieee.c: New file.
34237         * tests/test-rint-ieee.h: New file.
34239         New module 'rintf-ieee'.
34240         * modules/rintf-ieee: New file.
34242 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
34244         regex: re_search etc. should return -2 when memory exhausted
34245         This bug was uncovered when testing 'grep'.  Without the fix,
34246         re_search and friends return -1 when memory is exhausted, but -1
34247         means no match, and this causes grep to falsely report no-match
34248         instead of memory-exhaustion.  See
34249         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
34250         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
34251         trouble; this can occur if re_search_internal ran out of memory.
34253 2012-02-26  Bruno Haible  <bruno@clisp.org>
34255         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
34256         * m4/modfl-ieee.m4: New file.
34257         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
34258         whether modfl works with Inf. Replace it if not.
34259         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
34260         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
34261         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
34262         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
34263         (Depends-on): Update dependencies.
34264         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
34265         m4/signbit.m4.
34266         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
34267         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
34269         modfl-ieee: Fix dependencies.
34270         * modules/modfl-ieee (Depends-on): Add modf-ieee.
34272         modfl-ieee: Fix test failures.
34273         * lib/modfl.c (modfl): Treat NaN and Inf specially.
34274         * modules/modfl (Depends-on): Add isfinite, isinf.
34276         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
34277         * m4/modff-ieee.m4: New file.
34278         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
34279         whether modff works with NaN and Inf. Replace it if not.
34280         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
34281         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
34282         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
34283         * modules/modff (configure.ac): Consider REPLACE_MODFF.
34284         (Depends-on): Update dependencies.
34285         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
34286         m4/signbit.m4.
34287         (Depends-on): Add modf-ieee.
34288         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
34289         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
34291         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
34292         * m4/modf-ieee.m4: New file.
34293         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
34294         whether modf works with NaN and Inf. Replace it if not.
34295         * lib/math.in.h (modf): New declaration.
34296         * lib/modf.c: New file.
34297         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
34298         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
34299         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
34300         * modules/modf (Files): Add lib/modf.c.
34301         (Depends-on): Add math, isfinite, trunc, isinf.
34302         (configure.ac): Addrange to compile lib/modf.c if needed.
34303         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
34304         m4/signbit.m4.
34305         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
34306         * tests/test-math-c++.cc: Check the declaration of modf.
34307         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
34309         Tests for module 'modfl-ieee'.
34310         * modules/modfl-ieee-tests: New file.
34311         * tests/test-modfl-ieee.c: New file.
34313         New module 'modfl-ieee'.
34314         * modules/modfl-ieee: New file.
34316         Tests for module 'modf-ieee'.
34317         * modules/modf-ieee-tests: New file.
34318         * tests/test-modf-ieee.c: New file.
34320         New module 'modf-ieee'.
34321         * modules/modf-ieee: New file.
34323         Tests for module 'modff-ieee'.
34324         * modules/modff-ieee-tests: New file.
34325         * tests/test-modff-ieee.c: New file.
34326         * tests/test-modf-ieee.h: New file.
34328         New module 'modff-ieee'.
34329         * modules/modff-ieee: New file.
34331 2012-02-26  Bruno Haible  <bruno@clisp.org>
34333         Tests for module 'fabsl-ieee'.
34334         * modules/fabsl-ieee-tests: New file.
34335         * tests/test-fabsl-ieee.c: New file.
34337         New module 'fabsl-ieee'.
34338         * modules/fabsl-ieee: New file.
34340         Tests for module 'fabs-ieee'.
34341         * modules/fabs-ieee-tests: New file.
34342         * tests/test-fabs-ieee.c: New file.
34344         New module 'fabs-ieee'.
34345         * modules/fabs-ieee: New file.
34347         Tests for module 'fabsf-ieee'.
34348         * modules/fabsf-ieee-tests: New file.
34349         * tests/test-fabsf-ieee.c: New file.
34350         * tests/test-fabs-ieee.h: New file.
34352         New module 'fabsf-ieee'.
34353         * modules/fabsf-ieee: New file.
34355 2012-02-26  Bruno Haible  <bruno@clisp.org>
34357         Tests for module 'fmal-ieee'.
34358         * modules/fmal-ieee-tests: New file.
34359         * tests/test-fmal-ieee.c: New file.
34361         New module 'fmal-ieee'.
34362         * modules/fmal-ieee: New file.
34364         Tests for module 'fma-ieee'.
34365         * modules/fma-ieee-tests: New file.
34366         * tests/test-fma-ieee.c: New file.
34368         New module 'fma-ieee'.
34369         * modules/fma-ieee: New file.
34371         Tests for module 'fmaf-ieee'.
34372         * modules/fmaf-ieee-tests: New file.
34373         * tests/test-fmaf-ieee.c: New file.
34374         * tests/test-fma-ieee.h: New file.
34376         New module 'fmaf-ieee'.
34377         * modules/fmaf-ieee: New file.
34379 2012-02-26  Bruno Haible  <bruno@clisp.org>
34381         Tests for module 'ldexpl-ieee'.
34382         * modules/ldexpl-ieee-tests: New file.
34383         * tests/test-ldexpl-ieee.c: New file.
34385         New module 'ldexpl-ieee'.
34386         * modules/ldexpl-ieee: New file.
34388         Tests for module 'ldexp-ieee'.
34389         * modules/ldexp-ieee-tests: New file.
34390         * tests/test-ldexp-ieee.c: New file.
34392         New module 'ldexp-ieee'.
34393         * modules/ldexp-ieee: New file.
34395         Tests for module 'ldexpf-ieee'.
34396         * modules/ldexpf-ieee-tests: New file.
34397         * tests/test-ldexpf-ieee.c: New file.
34398         * tests/test-ldexp-ieee.h: New file.
34400         New module 'ldexpf-ieee'.
34401         * modules/ldexpf-ieee: New file.
34403 2012-02-26  Bruno Haible  <bruno@clisp.org>
34405         Refactor frexp*-ieee tests.
34406         * tests/test-frexp-ieee.h: New file.
34407         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
34408         (main): Just call test_function.
34409         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
34410         (main): Just call test_function.
34411         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
34412         (main): Just call test_function.
34413         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
34414         * modules/frexp-ieee-tests (Files): Likewise.
34415         * modules/frexpl-ieee-tests (Files): Likewise.
34417         Tests for module 'frexpl-ieee'.
34418         * modules/frexpl-ieee-tests: New file.
34419         * tests/test-frexpl-ieee.c: New file.
34421         New module 'frexpl-ieee'.
34422         * modules/frexpl-ieee: New file.
34424         Tests for module 'frexp-ieee'.
34425         * modules/frexp-ieee-tests: New file.
34426         * tests/test-frexp-ieee.c: New file.
34428         New module 'frexp-ieee'.
34429         * modules/frexp-ieee: New file.
34431         Tests for module 'frexpf-ieee'.
34432         * modules/frexpf-ieee-tests: New file.
34433         * tests/test-frexpf-ieee.c: New file.
34435         New module 'frexpf-ieee'.
34436         * modules/frexpf-ieee: New file.
34438 2012-02-26  Bruno Haible  <bruno@clisp.org>
34440         roundl-ieee tests: More tests.
34441         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
34442         (main): Add tests for [MX] shaded specification in POSIX.
34443         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
34444         (Depends-on): Add isnanl-nolibm.
34446         round-ieee tests: More tests.
34447         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
34448         (main): Add tests for [MX] shaded specification in POSIX.
34449         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
34450         (Depends-on): Add isnand-nolibm.
34452         roundf-ieee tests: More tests.
34453         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
34454         (main): Add tests for [MX] shaded specification in POSIX.
34455         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
34456         (Depends-on): Add isnanf-nolibm.
34458         truncl-ieee tests: More tests.
34459         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
34460         (main): Add tests for [MX] shaded specification in POSIX.
34461         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
34462         (Depends-on): Add isnanl-nolibm.
34464         trunc-ieee tests: More tests.
34465         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
34466         (main): Add tests for [MX] shaded specification in POSIX.
34467         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
34468         (Depends-on): Add isnand-nolibm.
34470         truncf-ieee tests: More tests.
34471         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
34472         (main): Add tests for [MX] shaded specification in POSIX.
34473         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
34474         (Depends-on): Add isnanf-nolibm.
34476         ceill-ieee tests: More tests.
34477         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
34478         (main): Add tests for [MX] shaded specification in POSIX.
34479         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
34480         (Depends-on): Add isnanl-nolibm.
34482         ceil-ieee tests: More tests.
34483         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
34484         (main): Add tests for [MX] shaded specification in POSIX.
34485         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
34486         (Depends-on): Add isnand-nolibm.
34488         ceilf-ieee tests: More tests.
34489         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
34490         (main): Add tests for [MX] shaded specification in POSIX.
34491         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
34492         (Depends-on): Add isnanf-nolibm.
34494         floorl-ieee tests: More tests.
34495         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
34496         (main): Add tests for [MX] shaded specification in POSIX.
34497         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
34498         (Depends-on): Add isnanl-nolibm.
34500         floor-ieee tests: More tests.
34501         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
34502         (main): Add tests for [MX] shaded specification in POSIX.
34503         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
34504         (Depends-on): Add isnand-nolibm.
34506         floorf-ieee tests: More tests.
34507         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
34508         (main): Add tests for [MX] shaded specification in POSIX.
34509         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
34510         (Depends-on): Add isnanf-nolibm.
34512 2012-02-26  Bruno Haible  <bruno@clisp.org>
34514         fpieee: More comments.
34515         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
34517 2012-02-25  Bruno Haible  <bruno@clisp.org>
34519         Tests for module 'log10l'.
34520         * modules/log10l-tests: New file.
34521         * tests/test-log10l.c: New file.
34522         * tests/test-math-c++.cc: Check the declaration of log10l.
34524         New module 'log10l'.
34525         * lib/math.in.h (log10l): New declaration.
34526         * lib/log10l.c: New file.
34527         * m4/log10l.m4: New file.
34528         * modules/log10l: New file.
34529         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
34530         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
34531         HAVE_DECL_LOG10L.
34532         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
34533         HAVE_DECL_LOG10L.
34534         * doc/posix-functions/log10l.texi: Mention the new module.
34536 2012-02-25  Bruno Haible  <bruno@clisp.org>
34538         fmodl, remainder*: Avoid wrong results due to rounding errors.
34539         * lib/fmodl.c (fmodl): Correct the result if it is not within the
34540         expected bounds.
34541         * lib/remainderf.c (remainderf): Likewise.
34542         * lib/remainder.c (remainder): Likewise.
34543         * lib/remainderl.c (remainderl): Likewise.
34545 2012-02-25  Bruno Haible  <bruno@clisp.org>
34547         Tests for module 'remainderl'.
34548         * modules/remainderl-tests: New file.
34549         * tests/test-remainderl.c: New file.
34550         * tests/test-math-c++.cc: Check the declaration of remainderl.
34552         New module 'remainderl'.
34553         * lib/math.in.h (remainderl): New declaration.
34554         * lib/remainderl.c: New file.
34555         * m4/remainderl.m4: New file.
34556         * modules/remainderl: New file.
34557         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
34558         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
34559         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
34560         HAVE_REMAINDERL.
34561         * doc/posix-functions/remainderl.texi: Mention the new module.
34563 2012-02-25  Bruno Haible  <bruno@clisp.org>
34565         Tests for module 'remainderf'.
34566         * modules/remainderf-tests: New file.
34567         * tests/test-remainderf.c: New file.
34568         * tests/test-math-c++.cc: Check the declaration of remainderf.
34570         New module 'remainderf'.
34571         * lib/math.in.h (remainderf): New declaration.
34572         * lib/remainderf.c: New file.
34573         * m4/remainderf.m4: New file.
34574         * modules/remainderf: New file.
34575         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
34576         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
34577         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
34578         HAVE_REMAINDERF.
34579         * doc/posix-functions/remainderf.texi: Mention the new module.
34581 2012-02-25  Bruno Haible  <bruno@clisp.org>
34583         remainder: Support for MSVC.
34584         * lib/math.in.h (remainder): New declaration.
34585         * lib/remainder.c: New file.
34586         * m4/remainder.m4: New file.
34587         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
34588         (Depends-on): Add math, round, fma.
34589         (configure.ac): Use results of gl_FUNC_REMAINDER.
34590         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
34591         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
34592         HAVE_DECL_REMAINDER.
34593         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
34594         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
34595         * tests/test-math-c++.cc: Check the declaration of remainder.
34596         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
34597         problems are fixed.
34599 2012-02-25  Bruno Haible  <bruno@clisp.org>
34601         Tests for module 'fmodl'.
34602         * modules/fmodl-tests: New file.
34603         * tests/test-fmodl.c: New file.
34604         * tests/test-math-c++.cc: Check the declaration of fmodl.
34606         New module 'fmodl'.
34607         * lib/math.in.h (fmodl): New declaration.
34608         * lib/fmodl.c: New file.
34609         * m4/fmodl.m4: New file.
34610         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
34611         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
34612         REPLACE_FMODL.
34613         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
34614         REPLACE_FMODL.
34615         * modules/fmodl: New file.
34616         * doc/posix-functions/fmodl.texi: Mention the new module.
34618 2012-02-25  Bruno Haible  <bruno@clisp.org>
34620         Tests for module 'modfl'.
34621         * modules/modfl-tests: New file.
34622         * tests/test-modfl.c: New file.
34623         * tests/test-math-c++.cc: Check the declaration of modfl.
34625         New module 'modfl'.
34626         * lib/math.in.h (modfl): New declaration.
34627         * lib/modfl.c: New file.
34628         * m4/modfl.m4: New file.
34629         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
34630         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
34631         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
34632         * modules/modfl: New file.
34633         * doc/posix-functions/modfl.texi: Mention the new module.
34635 2012-02-25  Bruno Haible  <bruno@clisp.org>
34637         Tests for module 'fabsl'.
34638         * modules/fabsl-tests: New file.
34639         * tests/test-fabsl.c: New file.
34640         * tests/test-math-c++.cc: Check the declaration of fabsl.
34642         New module 'fabsl'.
34643         * lib/math.in.h (fabsl): New declaration.
34644         * lib/fabsl.c: New file.
34645         * m4/fabsl.m4: New file.
34646         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
34647         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
34648         REPLACE_FABSL.
34649         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
34650         REPLACE_FABSL.
34651         * modules/fabsl: New file.
34652         * doc/posix-functions/fabsl.texi: Mention the new module.
34654 2012-02-25  Bruno Haible  <bruno@clisp.org>
34656         fabs tests: More tests.
34657         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
34658         (zero): New variable.
34659         (main): Add tests for signed zero.
34660         * modules/fabs-tests (Files): Add tests/minus-zero.h.
34662         fabsf tests: More tests.
34663         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
34664         (zero): New variable.
34665         (main): Add tests for signed zero.
34666         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
34668 2012-02-24  Bruno Haible  <bruno@clisp.org>
34670         atanl: Provide function definition on MSVC.
34671         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
34672         function pointer.
34673         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
34675 2012-02-24  Bruno Haible  <bruno@clisp.org>
34677         acosl: Provide function definition on MSVC.
34678         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
34679         function pointer.
34680         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
34682 2012-02-24  Bruno Haible  <bruno@clisp.org>
34684         asinl: Provide function definition on MSVC.
34685         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
34686         function pointer.
34687         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
34689 2012-02-24  Bruno Haible  <bruno@clisp.org>
34691         tanl: Provide function definition on MSVC.
34692         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
34693         function pointer.
34694         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
34696 2012-02-24  Bruno Haible  <bruno@clisp.org>
34698         cosl: Provide function definition on MSVC.
34699         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
34700         function pointer.
34701         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
34703 2012-02-24  Bruno Haible  <bruno@clisp.org>
34705         sinl: Provide function definition on MSVC.
34706         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
34707         function pointer.
34708         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
34710 2012-02-24  Bruno Haible  <bruno@clisp.org>
34712         logl: Provide function definition on MSVC.
34713         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
34714         function pointer.
34715         * lib/math.in.h (logl): Undefine if it does not exist as a function.
34717 2012-02-24  Bruno Haible  <bruno@clisp.org>
34719         expl: Provide function definition on MSVC.
34720         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
34721         function pointer.
34722         * lib/math.in.h (expl): Undefine if it does not exist as a function.
34724 2012-02-24  Bruno Haible  <bruno@clisp.org>
34726         sqrtl: Provide function definition on MSVC.
34727         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
34728         a function pointer.
34729         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
34731 2012-02-24  Bruno Haible  <bruno@clisp.org>
34733         ceill: Provide function definition on MSVC.
34734         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
34735         used as a function pointer.
34736         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
34738 2012-02-24  Bruno Haible  <bruno@clisp.org>
34740         floorl: Provide function definition on MSVC.
34741         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
34742         used as a function pointer.
34743         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
34745 2012-02-24  Bruno Haible  <bruno@clisp.org>
34747         ceilf: Provide function definition on MSVC.
34748         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
34749         used as a function pointer.
34750         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
34752 2012-02-24  Bruno Haible  <bruno@clisp.org>
34754         floorf: Provide function definition on MSVC.
34755         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
34756         used as a function pointer.
34757         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
34759 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
34761         stdnoreturn: new module
34762         This implements a replacement for C11's <stdnoreturn.h>.
34763         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
34764         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
34765         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
34766         * tests/test-stdnoreturn.c: New files.
34768 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
34770         regex: fix false multibyte matches in some regular expressions
34771         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
34772         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
34773         * lib/regex_internal.c (re_string_skip_chars):
34774         Fix miscomputation of remain_len that may cause incomplete
34775         multi-byte character and false match.
34777 2012-02-24  Jim Meyering  <meyering@redhat.com>
34779         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
34780         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
34781         uses with "==" *before* the call, e.g., 0 == strcmp (...)
34782         Remove now-unnecessary str''cmp obfuscation.
34783         Suggested by Akim Demaille.
34785 2012-02-24  Bruno Haible  <bruno@clisp.org>
34787         streq: Rename macro.
34788         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
34789         * NEWS: Mention the change.
34790         * lib/mbrtowc.c (mbrtowc): Update.
34791         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
34792         * lib/wcwidth.c (wcwidth): Update.
34793         Suggested by Akim Demaille and Jim Meyering.
34795 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
34797         regex: fix typo in definition of MIN
34798         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
34799         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
34801 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
34802             Bruno Haible  <bruno@clisp.org>
34804         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
34805         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
34806         entries into a stack-allocated buffer directly.
34807         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
34809 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
34810             Bruno Haible  <bruno@clisp.org>
34812         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
34814          - There were several instances of this pattern:
34816              for (;;) {
34817                n = acl (f, GETACLCNT, 0, NULL);
34818                [ allocate an array A of size N ]
34819                if (acl (f, GETACL, n, a) == n)
34820                  break;
34821              }
34823            This loop might never terminate if some other process is constantly
34824            manipulating the file's ACL.  The loop should be rewritten to
34825            terminate.
34827          - The acl (... GETACLNT ...) call is merely an optimization; its value
34828            is merely a hint as to how big to make the array.  A better
34829            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
34830            and just guess a reasonably-big size, growing the size and trying
34831            again if it's not large enough.  This guarantees termination, and
34832            saves a system call.
34834         * lib/acl-internal.h: Include <limits.h>.
34835         (MIN, SIZE_MAX): New macros.
34836         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
34837         a stack-allocated buffer, and use malloc if it does not fit. Don't
34838         use GETACLCNT.
34839         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
34841 2012-02-19  Bruno Haible  <bruno@clisp.org>
34843         acl: Fix endless loop on Solaris with vxfs.
34844         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
34845         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
34846         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
34847         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
34848         * tests/test-sameacls.c (main)[Solaris]: Likewise.
34849         Reported by Bill Jones in
34850         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
34852 2012-02-19  Bruno Haible  <bruno@clisp.org>
34854         acl: Fix copy-acl test failure on Solaris 11.0.
34855         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
34856         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
34857         that this function returns 0 in some more cases.
34859 2012-02-19  Bruno Haible  <bruno@clisp.org>
34861         acl: Update doc references.
34862         * doc/acl-resources.txt: Update links to Solaris documentation.
34864 2012-02-19  Bruno Haible  <bruno@clisp.org>
34866         Fix test failure in many locales on Solaris 11.
34867         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
34868         'tr' arguments.
34869         * tests/test-pipe-filter-ii1.c (main): Likewise.
34870         * build-aux/bootstrap (check_versions): Run 'tr' command with range
34871         expressions in the C locale.
34872         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
34873         * m4/host-os.m4 (gl_HOST_OS): Likewise.
34875 2012-02-19  Bruno Haible  <bruno@clisp.org>
34877         gnulib-tool: Improve usage message.
34878         * gnulib-tool (func_usage): Move doc of --help and --version to the
34879         section "Operation modes".
34881 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
34883         README-release: make it easier to execute commands
34884         * top/README-release: break commands out on to separate lines.
34886 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
34888         GNUmakefile: simplify detection of unconfigured trees
34889         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
34890         whether the tree make is being run from is already configured or
34891         not.  Related simplifications.
34893 2012-02-13  Simon Josefsson  <simon@josefsson.org>
34895         * gnulib-tool (func_usage): Document --help and --version.
34897 2012-02-11  Jim Meyering  <meyering@redhat.com>
34899         bootstrap: don't exit 0 upon gnulib-tool failure
34900         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
34901         its exit status, not 0.
34903 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
34905         README-release: various improvements
34906         * top/README-release: Give a command to push changes for the
34907         release.  Add "distcheck" to list of other pre-release checks.
34908         Fix instance of "make stable" which should be "make TYPE".
34910 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
34912         maint: replace FSF snail-mail addresses with URLs
34913         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
34914         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
34915         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
34916         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
34917         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
34918         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
34919         * lib/check-version.c, lib/check-version.h, lib/config.charset:
34920         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
34921         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
34922         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
34923         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
34924         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
34925         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
34926         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
34927         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
34928         * lib/glthread/thread.c, lib/glthread/thread.h:
34929         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
34930         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
34931         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
34932         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
34933         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
34934         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
34935         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
34936         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
34937         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
34938         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
34939         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
34940         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
34941         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
34942         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
34943         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
34944         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
34945         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
34946         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
34947         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
34948         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
34949         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
34950         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
34951         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
34952         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
34953         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
34954         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
34955         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
34956         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
34957         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
34958         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
34959         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
34960         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
34961         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
34962         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
34963         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
34964         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
34965         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
34966         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
34967         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
34968         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
34969         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
34970         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
34971         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
34972         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
34973         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
34974         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
34975         * tests/test-poll.c, tests/test-quotearg-simple.c:
34976         * tests/test-quotearg.c, tests/test-quotearg.h:
34977         * tests/test-round-ieee.c, tests/test-round1.c:
34978         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
34979         * tests/test-roundl-ieee.c, tests/test-roundl.c:
34980         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
34981         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
34982         * tests/test-strerror.c, tests/test-strerror_r.c:
34983         * tests/test-strsignal.c, tests/test-strverscmp.c:
34984         * tests/test-xmemdup0.c:
34985         Replace FSF snail mail addresses with URLs, as per GNU coding
34986         standards.  See glibc bug
34987         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
34989 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
34991         README-release: capitalize a word and split a line
34992         * top/README-release: Fix punctuation and spacing.
34994 2012-02-08  Akim Demaille  <demaille@gostai.com>
34996         fatal-signal: use C prototypes (with explicit void).
34997         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
34998         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
35000 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
35002         regex: spelling fix
35003         * lib/regexec.c: spelling fix
35005         regex: rely on stdint.h for SIZE_MAX
35006         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
35008 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
35010         regex: merge glibc changes
35012         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
35013         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
35014         (init_word_char): Work even if bitset words are not exactly 32 or
35015         64 bits wide.  Don't assume there are no padding bits.
35016         * lib/regex.c [_LIBC]: Do not include <config.h>.
35017         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
35018         and -Wtype-limits.
35019         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
35020         needless disagreement with glibc.  All uses changed.  Define it to
35021         1 only if _GNU_SOURCE, to match glibc.
35022         (_REG_RM_NAME): Remove; no longer needed, since the names in
35023         question are now all protected by __USE_GNU.
35024         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
35025         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
35026         * lib/regex_internal.h (MIN): New macro.
35028         2012-01-03 Ulrich Drepper <drepper@gmail.com>
35029         * lib/regcomp.c (init_word_char): Optimize regex a bit.
35031         2011-12-30 Jakub Jelinek <jakub@redhat.com>
35032         * lib/regex_internal.c (re_string_fetch_byte_case):
35033         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
35034         is miscompiled, and it turns out it is because of an incorrect
35035         attribute on re_string_fetch_byte_case.  Unlike
35036         re_string_peek_byte_case, this one is really not pure, it modifies
35037         memory (increments pstr->cur_idx), and with the pure attribute GCC
35038         assumed it doesn't and it cached the presumed value of
35039         regexp->cur_idx in a variable across the
35040          for (;; ++i)
35041            {
35042              if (i >= BRACKET_NAME_BUF_SIZE)
35043                return REG_EBRACK;
35044              if (token->type == OP_OPEN_CHAR_CLASS)
35045                ch = re_string_fetch_byte_case (regexp);
35046              else
35047                ch = re_string_fetch_byte (regexp);
35048              if (re_string_eoi(regexp))
35049                return REG_EBRACK;
35050              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
35051                break;
35052              elem->opr.name[i] = ch;
35053            }
35055         2011-11-29 Andreas Schwab <schwab@redhat.com>
35056         * lib/regcomp.c (build_equiv_class):
35057         Fix access after end of search string in regex matcher.
35059         2011-11-12 Ulrich Drepper <drepper@redhat.com>
35060         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
35062         2011-10-12 Ulrich Drepper <drepper@redhat.com>
35063         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
35065         2011-10-11 Ulrich Drepper <drepper@redhat.com>
35066         * lib/regcomp.c (parse_branch, parse_sub_exp):
35067         More regex memory leak fixes and tests.
35068         (parse_sub_exp, parse_bracket_exp):
35069         Fix memory leak for some invalid regular expressions.
35071         2011-05-28 Ulrich Drepper <drepper@gmail.com>
35072         * lib/regex_internal.c, lib/regexec.c:
35073         Fix unnecessary overallocation due to incomplete character.  When
35074         incomplete characters are found at the end of a string the code
35075         ran amok and allocated lots of memory.  Stricter limits are now in
35076         place.
35078         2011-05-20 Reuben Thomas <rrt@sc3d.org>
35079         * lib/regex.h: Update documentation.
35081         2011-05-16 Aharon Robbins <arnold@skeeve.com>
35082         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
35084         2010-05-05 Andreas Schwab <schwab@redhat.com>
35085         * lib/regexec.c (find_collation_sequence_value):
35086         Fix lookup of collation sequence value during regexp matching.
35088         2010-01-22 Ulrich Drepper <drepper@redhat.com>
35089         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
35091         2008-01-16 Ulrich Drepper <drepper@redhat.com>
35092         * lib/regex.h: Cleanup namespace.
35094         2007-11-26 Ulrich Drepper <drepper@redhat.com>
35095         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
35097         2007-08-26 Ulrich Drepper <drepper@redhat.com>
35098         * lib/regex_internal.h: Prevent some declarations and definitions
35099         to be seen when used in tests.
35101         2005-05-06 Ulrich Drepper <drepper@redhat.com>
35102         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
35103         __libc_lock_* macros if not _LIBC.
35104         (struct re_dfa_t): Add lock.
35106 2012-02-07  Eric Blake  <eblake@redhat.com>
35108         maint.mk: also prohibit lower-case @var@
35109         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
35110         lower case, like @top_srcdir@.
35112 2012-02-04  Eric Blake  <eblake@redhat.com>
35114         canonicalize: avoid uninitialized memory use
35115         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
35116         random '/' left in dest.
35117         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
35119 2012-02-04  Bruno Haible  <bruno@clisp.org>
35121         isatty: Fix test failure of ptsname_r on native Windows.
35122         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
35123         and don't set errno.
35124         (isatty): Test first whether fd is valid. Set errno when returning 0.
35126 2012-02-04  Bruno Haible  <bruno@clisp.org>
35128         spawn-pipe tests: Fix a NULL program name in a diagnostic.
35129         * tests/test-spawn-pipe-main.c: Include progname.h.
35130         (main): Invoke set_program_name.
35131         * modules/spawn-pipe-tests (Depends-on): Add progname.
35133         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
35134         * tests/test-nonblocking-socket-main.c: Include progname.h.
35135         (main): Invoke set_program_name.
35136         * modules/nonblocking-socket-tests (Depends-on): Add progname.
35138         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
35139         * tests/test-nonblocking-pipe-main.c: Include progname.h.
35140         (main): Invoke set_program_name.
35141         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
35143 2012-02-04  Eric Blake  <eblake@redhat.com>
35145         canonicalize-lgpl: fix // handling
35146         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
35148         canonicalize: fix // handling
35149         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
35150         /// to //, since only // is special.
35152 2012-02-04  Bruno Haible  <bruno@clisp.org>
35154         ioctl: Fix test failure on native Windows.
35155         * lib/ioctl.c: Include msvc-nothrow.h.
35156         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
35158 2012-02-04  Bruno Haible  <bruno@clisp.org>
35160         fsync: Avoid test failure on native Windows.
35161         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
35162         read-only.
35164 2012-02-04  Bruno Haible  <bruno@clisp.org>
35166         sys_select: Avoid syntax error on OpenBSD 5.0.
35167         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
35168         currently being included, just include the system's <sys/select.h>.
35170 2012-02-04  Bruno Haible  <bruno@clisp.org>
35172         sys_select: Avoid syntax error on OpenBSD 5.0.
35173         * lib/sys_select.in.h: Include <signal.h> only after the include_next
35174         <sys/select.h>, not before.
35175         Reported by Jiri B <jirib@devio.us>.
35177 2012-02-04  Bruno Haible  <bruno@clisp.org>
35179         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
35180         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
35181         global variables.
35182         * tests/test-get-rusage-data.c (main): Likewise.
35183         Reported by Jim Meyering.
35185 2012-02-04  Bruno Haible  <bruno@clisp.org>
35187         stdioext: Fix last commit.
35188         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
35190 2012-02-03  Bruno Haible  <bruno@clisp.org>
35192         stdioext: Add tentative support for Plan9.
35193         * lib/stdio-impl.h: Include <errno.h>.
35194         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
35195         * lib/freadable.c (freadable): Likewise.
35196         * lib/fwritable.c (fwritable): Likewise.
35197         * lib/fbufmode.c (fbufmode): Likewise.
35198         * lib/freading.c (freading): Likewise.
35199         * lib/fwriting.c (fwriting): Likewise.
35200         * lib/freadptr.c (freadptr): Likewise.
35201         * lib/freadseek.c (freadptrinc): Likewise.
35202         * lib/freadahead.c (freadahead): Likewise.
35203         * lib/fpurge.c (fpurge): Likewise.
35204         * lib/fseeko.c (rpl_fseeko): Likewise.
35205         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
35206         Reported by Jens Staal <staal1978@gmail.com>.
35208 2012-02-02  Jim Meyering  <meyering@redhat.com>
35210         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
35211         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
35212         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
35213         not even to try to add the attribute.  Instead, add a pragma to suppress
35214         the suggestion/warning.
35216 2012-01-31  Karl Berry  <karl@gnu.org>
35218         setstate doc: typo.
35219         * doc/posix-functions/setstate.texi (setstate): { not (.
35221 2012-01-31  Bruno Haible  <bruno@clisp.org>
35223         popen: Make more robust on Windows.
35224         * lib/popen.c: On native Windows, use the _popen based code even if
35225         HAVE_POPEN is set.
35226         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
35227         environment variable on native Windows.
35229 2012-01-30  Bruno Haible  <bruno@clisp.org>
35231         pclose: Fix typo.
35232         * lib/stdio.in.h (pclose): Fix typo in warning message.
35234 2012-01-30  Bruno Haible  <bruno@clisp.org>
35236         doc about getlogin_r, setstate.
35237         * doc/posix-functions/getlogin_r.texi: List the incompatible
35238         declaration problem under "not fixed by gnulib".
35239         * doc/posix-functions/setstate.texi: Mention incompatible declaration
35240         problem on Solaris 11 and other platforms.
35242 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
35243             Bruno Haible  <bruno@clisp.org>
35245         poll tests: Make test more robust.
35246         * tests/test-poll.c: Include macros.h.
35247         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
35248         return value of various I/O operations.
35249         * modules/poll-tests (Files): Add tests/macros.h.
35251 2012-01-30  Bruno Haible  <bruno@clisp.org>
35253         sys_stat: Fix support for mingw64 and MSVC.
35254         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
35255         header files already do it.
35256         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
35257         stat itself.
35258         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
35260 2012-01-30  Bruno Haible  <bruno@clisp.org>
35262         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
35263         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
35264         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
35266 2012-01-29  Bruno Haible  <bruno@clisp.org>
35268         quotearg: Fix test failure on MacOS X 10.5.
35269         * tests/test-quotearg-simple.c: Include localcharset.h.
35270         (main): If the locale encoding is not ASCII, bypass the tests of
35271         locale_quoting_style and clocale_quoting_style.
35272         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
35274 2012-01-29  Jim Meyering  <meyering@redhat.com>
35276         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
35277         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
35278         detect uses of canonicalize_file_name.
35280 2012-01-28  Bruno Haible  <bruno@clisp.org>
35282         test-framework-sh: Fix test failure with AIX 7.1 diff.
35283         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
35284         in column 1, like 'diff -c' does.
35285         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
35286         whether 'diff -u' is used. Instead, test whether the output contains
35287         some '@' character.
35289 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
35291         strtoimax: eliminate need for stdint.h, inttypes.h checks
35292         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
35293         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
35294         the prerequisites for a recently-introduced strtoimax test.
35295         I guess this might cause strtoimax to be replaced when not
35296         strictly necessary on older hosts, but this shouldn't introduce
35297         any bugs and it should make Emacs 'configure' faster on typical
35298         modern hosts.  Problem discovered when importing the latest gnulib
35299         to an Emacs test version.
35300         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
35302 2012-01-28  Bruno Haible  <bruno@clisp.org>
35304         sys_time: Override 'struct timeval' on some native Windows platforms.
35305         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
35306         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
35307         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
35308         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
35309         needs to be overridden.
35310         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
35311         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
35312         * tests/test-sys_select.c: Check that the tv_sec member has the same
35313         size as a 'time_t'.
35314         * tests/test-sys_time.c: Likewise.
35315         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
35316         is set, set also REPLACE_GETTIMEOFDAY.
35317         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
35318         convert the resulting 'struct timeval' before returning.
35319         * lib/select.c: Include <sys/time.h>.
35320         (select, timeval): Undefine at the right place.
35321         * modules/select (Depends-on): Add sys_time.
35322         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
35323         some Windows platforms.
35324         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
35326 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
35328         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
35329         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
35330         an integer.
35331         * lib/fcntl.c (dupfd): Likewise.
35332         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
35334 2012-01-28  Bruno Haible  <bruno@clisp.org>
35336         fcntl: Avoid compilation error on native Windows.
35337         * modules/fcntl (Depends-on): Add 'close'.
35339 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
35341         select, poll, isatty: Avoid warnings on x86_64 mingw64.
35342         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
35343         pointer to an integer.
35344         * lib/poll.c (IsConsoleHandle): Likewise.
35345         * lib/isatty.c (IsConsoleHandle): Likewise.
35347 2012-01-28  Jim Meyering  <meyering@redhat.com>
35349         doc: clarify README-release
35350         * top/README-release: Clarify: you should make a point to have
35351         the latest stable versions of build tools in your PATH, and the
35352         reference to buildreq is solely for its list of tool names, not
35353         for its minimal-functional version numbers.
35354         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
35356         maint.mk: use more readable (yet functionally equivalent) quoting
35357         It is common to quote a single quote in a single quoted string like
35358         this:  '...'\''...'.  Unless you know the idiom, that looks like
35359         gibberish, so prefer to double-quote the string when possible.
35360         Then you can use a more readable, lone single quote: "...'..."
35361         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
35362         "don't" is more readable than the equivalent 'don'\''t'.
35363         (sc_cast_of_x_alloc_return_value): Likewise.
35364         (sc_cast_of_alloca_return_value): Likewise.
35365         (sc_makefile_path_separator_check): Similar: use ":" in '...',
35366         rather than '\'':'\''.
35368 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
35370         stdalign: relax _Alignof and tighten _Alignas test
35371         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
35372         as it was too strict: alignof must divide offsetof, but it need
35373         not equal offsetof.  Inspired by Joseph S. Myers's comment
35374         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
35375         Conversely, tighten the _Alignas test a bit, as the resulting
35376         alignment must be exactly 8.
35378 2012-01-27  Bruno Haible  <bruno@clisp.org>
35380         stdalign: Document the last change.
35381         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
35383 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
35385         stdalign: check that alignof and offsetof are consistent
35386         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
35387         Problem reported for gnulib by Richard W.M. Jones in
35388         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
35390 2012-01-27  Jim Meyering  <meyering@redhat.com>
35392         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
35393         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
35394         convert a sequence with gaps to the minimal containing range.
35395         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
35396         * tests/test-update-copyright.sh: Test for this.
35397         The FSF confirmed it is ok to do this, assuming there is at
35398         least one significant change per year in the affected range:
35399         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
35401 2012-01-26  Bruno Haible  <bruno@clisp.org>
35403         pipe2: refine doc about thread-safety
35404         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
35405         multithread-safety problem.
35406         * doc/glibc-functions/accept4.texi: Likewise.
35408 2012-01-26  Bruno Haible  <bruno@clisp.org>
35410         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
35411         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
35412         In the test program, include <fcntl.h>, for O_RDONLY.
35414 2012-01-26  Eric Blake  <eblake@redhat.com>
35416         pipe2: document lack of thread-safety in replacement
35417         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
35418         issue in replacement.
35419         * doc/glibc-functions/accept4.texi (accept4): Likewise.
35420         Based on a report by Eric Wong.
35422 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
35423             Bruno Haible  <bruno@clisp.org>
35425         malloca: Avoid warnings on x86_64 mingw64.
35426         * lib/malloca.c: Include <stdint.h>.
35427         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
35428         * modules/malloca (Depends-on): Add stdint.
35429         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
35431 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
35433         obstack: remove __STDC__ conditionals
35434         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
35435         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
35436         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
35437         m4/include_next.m4 as the only gnulib-maintained places that still
35438         refer to __STDC__.
35440 2012-01-24  Bruno Haible  <bruno@clisp.org>
35442         havelib: Modern quoting.
35443         * build-aux/config.rpath: Quote 'like this', not `like this', as per
35444         the recent change to the GNU coding standards.
35446 2012-01-24  Bruno Haible  <bruno@clisp.org>
35448         stdint: Improve support for Android.
35449         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
35450         Reported by Simon Josefsson <simon@josefsson.org>.
35452 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35454         doc: omit trailing empty lines from INSTALL etc.
35455         * doc/Makefile (INSTALL): Omit trailing empty lines.
35456         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
35457         omit trailing empty lines.  This simplifies the build procedure.
35459 2012-01-23  Jim Meyering  <meyering@redhat.com>
35461         tests: avoid spurious warnings about gl_sockets_startup
35462         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
35463         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
35464         reporting a "statement with no effect".
35465         * tests/test-accept.c (main): Mark as "(void)".
35466         * tests/test-accept4.c (main): Likewise.
35467         * tests/test-bind.c (main): Likewise.
35468         * tests/test-connect.c (main): Likewise.
35469         * tests/test-getpeername.c (main): Likewise.
35470         * tests/test-getsockname.c (main): Likewise.
35471         * tests/test-getsockopt.c (main): Likewise.
35472         * tests/test-listen.c (main): Likewise.
35473         * tests/test-recv.c (main): Likewise.
35474         * tests/test-recvfrom.c (main): Likewise.
35475         * tests/test-send.c (main): Likewise.
35476         * tests/test-sendto.c (main): Likewise.
35477         * tests/test-setsockopt.c (main): Likewise.
35478         * tests/test-shutdown.c (main): Likewise.
35480 2012-01-21  Bruno Haible  <bruno@clisp.org>
35482         locale-fr.m4: Fix for Android.
35483         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
35484         failure of the test program on Bionic libc.
35486 2012-01-21  Jim Meyering  <meyering@redhat.com>
35488         bootstrap: fail when bootstrap_post_import_hook fails
35489         Otherwise, it's far too easy to miss diagnostics emitted
35490         between gnulib-tool's output and that of running configure.
35491         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
35493 2012-01-17  Jim Meyering  <meyering@redhat.com>
35495         maint: enable sc_trailing_blank
35496         * build-aux/pmccabe.css: Remove trailing blanks.
35497         * doc/acl-cygwin.txt: Likewise.
35498         * doc/gnu-oids.texi: Likewise
35499         * cfg.mk: Enable sc_trailing_blank.
35500         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
35502 2012-01-17  Jim Meyering  <meyering@redhat.com>
35504         maint: enable sc_prohibit_openat_without_use
35505         * cfg.mk: Enable sc_prohibit_openat_without_use.
35506         Exempt lib/selinux-at.c.
35508 2012-01-17  Jim Meyering  <meyering@redhat.com>
35510         maint: enable sc_prohibit_cloexec_without_use
35511         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
35512         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
35514 2012-01-17  Jim Meyering  <meyering@redhat.com>
35516         maint: enable sc_prohibit_intprops_without_use
35517         * cfg.mk: Enable sc_prohibit_intprops_without_use
35518         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
35520 2012-01-17  Jim Meyering  <meyering@redhat.com>
35522         maint: enable sc_prohibit_hash_pjw_without_use
35523         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
35524         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
35525         to match any use of \<hash_pjw\>, i.e., not necessarily with a
35526         following " (".
35528 2012-01-17  Jim Meyering  <meyering@redhat.com>
35530         maint: enable double-word-prohibiting rule
35531         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
35532         Exempt three files.
35534 2012-01-17  Jim Meyering  <meyering@redhat.com>
35536         maint: remove empty lines at EOF, but excluding modules/*
35537         Apply syntax rules at home as well as abroad.  Most changes
35538         were induced by running this:
35539           make srcdir=. _build-aux=build-aux -f top/maint.mk \
35540             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
35541             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
35542         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
35543         Exempt modules/* and two binary files.
35544         Also exempt doc/INSTALL*, per request from Bruno Haible.
35545         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
35546         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
35547         * doc/Copyright/request-assign.future: Likewise.
35548         * doc/Copyright/request-disclaim.changes: Likewise.
35549         * doc/INSTALL: Likewise.
35550         * doc/INSTALL.ISO: Likewise.
35551         * doc/INSTALL.UTF-8: Likewise.
35552         * doc/acl-cygwin.txt: Likewise.
35553         * doc/acl-resources.txt: Likewise.
35554         * doc/fdl-1.2.texi: Likewise.
35555         * doc/fdl-1.3.texi: Likewise.
35556         * doc/fdl.texi: Likewise.
35557         * lib/argp-pin.c: Likewise.
35558         * lib/round.c: Likewise.
35559         * lib/unicase/u16-totitle.c: Likewise.
35560         * lib/unictype/block_test.c: Likewise.
35561         * lib/uninorm/canonical-decomposition.c: Likewise.
35562         * m4/README: Likewise.
35563         * m4/relocatable-lib.m4: Likewise.
35564         * tests/test-isnand-nolibm.c: Likewise.
35565         * tests/test-isnand.c: Likewise.
35566         * tests/uninorm/NormalizationTest.txt: Likewise.
35568 2012-01-17  Jim Meyering  <meyering@redhat.com>
35570         maint: add framework to run syntax-check rules against gnulib sources
35571         * cfg.mk: New file, to disable all currently-failing tests.
35572         We'll enable them one by one, as they are made to pass.
35573         * Makefile (sc_maint): New rule.
35575 2012-01-21  Bruno Haible  <bruno@clisp.org>
35577         stdint: Add support for Android.
35578         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
35579         include the system's <stdint.h>.
35580         Reported by Simon Josefsson <simon@josefsson.org>.
35582 2012-01-19  Jim Meyering  <meyering@redhat.com>
35584         bootstrap: add bootstrap_post_import_hook
35585         Bison does still need something like the gnulib_mk_hook whose
35586         invocation I had to remove along with slurp in commit 767ccd40.
35587         Technically, we could get along without it, but doing so would
35588         have required living with a warning and a mandatory post-bootstrap
35589         automake rerun.
35590         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
35591         (bootstrap_post_import_hook): New function.
35592         Invoke it after gnulib-tool --import and before autoreconf.
35594 2012-01-18  Jim Meyering  <meyering@redhat.com>
35596         gitlog-to-changelog: don't use "no_"-prefixed variable name
35597         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
35598         to enable both --cluster and --no-cluster.  Change variable name,
35599         s/\$no_cluster/$cluster/, and reverse usage to match.
35601         gitlog-to-changelog: use "||", not "or" in expressions
35602         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
35603         expressions.
35605 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
35607         gitlog-to-changelog: new option --no-cluster
35608         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
35609         clustering of adjacent commit messages.
35611 2012-01-17  Jim Meyering  <meyering@redhat.com>
35613         maint: spell file systems with two words, not one
35614         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
35615         two words, not one.
35617 2012-01-16  Jim Meyering  <meyering@redhat.com>
35619         bootstrap: add a FIXME comment to ensure we eventually remove the hack
35620         * build-aux/bootstrap (gnulib_tool_options): Add comment.
35622 2012-01-16  Eric Blake  <eblake@redhat.com>
35624         bootstrap: cater to autoconf 2.59
35625         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
35626         is not available.
35628         bootstrap: properly check for libtool
35629         * build-aux/bootstrap (libtoolize): Also run libtool when older
35630         usage is detected.
35632 2012-01-15  Bruno Haible  <bruno@clisp.org>
35634         Improve support for MSVC 9.
35635         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
35636         clashes on MSVC.
35637         * lib/fcntl.in.h: Likewise.
35638         * lib/stdlib.in.h: Likewise.
35639         * lib/sys_stat.in.h: Likewise.
35641 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
35643         gnupload: we hold the master copy of this script now
35644         For motivation and more information, see:
35645         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
35646         * build-aux/gnupload: Make it clear in the heading comments that the
35647         master copy of this file is maintained by gnulib.  Since we are at
35648         it, bump its copyright year and ...
35649         ($scriptversion): ... the date in its version.
35650         ($usage): Patches and bug reports should be sent to the gnulib list,
35651         not the automake one.
35652         * config/srclist.txt: Don't try to sync 'gnupload' from automake
35653         anymore.
35655 2012-01-15  Bruno Haible  <bruno@clisp.org>
35657         Fix module 'random'.
35658         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
35659         initstate, setstate are declared.
35661 2012-01-14  Bruno Haible  <bruno@clisp.org>
35663         Tests for module 'random'.
35664         * modules/random-tests: New file.
35665         * tests/test-random.c: New file, based on tests/test-random_r.c.
35667         New module 'random'.
35668         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
35669         declarations.
35670         * lib/random.c: New file, based on glibc/stdlib/random.c.
35671         * m4/random.m4: New file.
35672         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
35673         HAVE_RANDOM.
35674         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
35675         * modules/random: New file.
35676         * config/srclist.txt: Add an entry for random.c.
35677         * doc/posix-functions/random.texi: Mention the 'random' module.
35678         * doc/posix-functions/initstate.texi: Likewise.
35679         * doc/posix-functions/setstate.texi: Likewise.
35680         * doc/posix-functions/srandom.texi: Likewise.
35682 2012-01-12  Bruno Haible  <bruno@clisp.org>
35684         random_r: Use common idioms.
35685         * lib/random_r.c: Include <stdlib.h> first.
35687         random_r: Override incompatible API on AIX, OSF/1.
35688         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
35689         Override the system function if REPLACE_RANDOM_R is 1.
35690         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
35691         and OSF/1, set REPLACE_RANDOM_R.
35692         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
35693         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
35694         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
35695         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
35696         * doc/glibc-functions/random_r.texi: Likewise.
35697         * doc/glibc-functions/setstate_r.texi: Likewise.
35699         random_r: Support for MSVC 9.
35700         * lib/random_r.c: Include stdint.h, not inttypes.h.
35702 2012-01-12  Eric Blake  <eblake@redhat.com>
35704         inet_ntop: guard extra work by IF_LINT
35705         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
35706         better code generation when not checking for warnings.
35707         Suggested by Paul Eggert and Jim Meyering.
35709         strptime: fix regression on mingw
35710         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
35711         Fix regression.  Reported by Bruno Haible.
35713 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
35714             Bruno Haible  <bruno@clisp.org>
35716         copy-file: add error-code-returning variant.
35717         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
35718         (qcopy_file_preserving): New declaration.
35719         * lib/copy-file.c (qcopy_file_preserving): Renamed from
35720         copy_file_preserving. Change return type to 'int'. Don't emit an error
35721         message here.
35722         (copy_file_preserving): New function.
35723         * tests/test-copy-file.c: Include <stdlib.h>.
35724         (main): Test qcopy_file_preserving if the environment variable
35725         NO_STDERR_OUTPUT is set.
35726         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
35727         with NO_STDERR_OUTPUT
35728         * tests/test-copy-file-2.sh: Likewise.
35730 2012-01-10  Bruno Haible  <bruno@clisp.org>
35732         copy-file: Use 'quote' module consistently.
35733         * lib/copy-file.c (copy_file_preserving): Use quote().
35735         copy-file: Refactor.
35736         * lib/copy-file.c: Include quote.h.
35737         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
35738         message here.
35739         * modules/copy-file (Depends-on): Add quote.
35741         acl: Export qcopy_acl.
35742         * lib/acl.h (qcopy_acl): New declaration.
35743         * lib/copy-acl.c (qcopy_acl): Make non-static.
35745         acl: Rename a local variable.
35746         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
35748         acl: Align return values of copy_acl and qcopy_acl.
35749         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
35750         maybe < -1.
35752 2012-01-11  Eric Blake  <eblake@redhat.com>
35754         strptime: silence gcc warnings
35755         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
35756         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
35757         Reported by Daniel P. Berrange.
35759         inet_ntop: silence gcc warning
35760         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
35761         Reported by Daniel P. Berrange.
35763 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
35765         getloadavg test: skip the test on GNU/Linux without /proc mounted
35766         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
35767         file.  When /proc is not mounted, it always fails with ENOENT.
35768         * tests/test-getloadavg.c (main): Treat ENOENT return code from
35769         getloadavg(3) the same way as ENOSYS and ENOTSUP.
35771 2012-01-10  Bruno Haible  <bruno@clisp.org>
35773         regex: Avoid link error on MSVC 9.
35774         * modules/regex (Depends-on): Add wctype.
35776 2012-01-10  Bruno Haible  <bruno@clisp.org>
35778         doc: Mention --with-tests option.
35779         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
35780         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
35781         --with-tests.
35782         Reported by Reuben Thomas.
35784 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
35786         users.txt: order package names lexicographically.
35787         * users.txt: Order package names lexicographically.
35789 2012-01-10  Jim Meyering  <meyering@redhat.com>
35791         maint.mk: fix description in comment
35792         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
35794         ignore-value: remove deprecated ignore_ptr function
35795         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
35796         * NEWS: Note this.
35798 2012-01-09  Jim Meyering  <meyering@redhat.com>
35800         test-init.sh: avoid a subshell
35801         * tests/test-init.sh: Remove protective subshell.
35802         Suggested by Bernhard Voelker.  While a subshell is normally
35803         required to protect against older shells (Solaris, FreeBSD) that
35804         warn about a missing program before performing redirection, the
35805         shell-selection tests performed by init.sh probably exclude any
35806         offending shell.
35808 2012-01-08  Bruno Haible  <bruno@clisp.org>
35810         setlocale tests: Avoid test failure on Solaris 11.0.
35811         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
35812         variable.
35814 2012-01-08  Bruno Haible  <bruno@clisp.org>
35816         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
35817         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
35818         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
35819         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
35820         macro.
35821         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
35822         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
35823         * lib/spawn_faction_addopen.c: Add workaround implementation if
35824         HAVE_WORKING_POSIX_SPAWN.
35825         * modules/spawn (Makefile): Substitute
35826         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
35827         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
35828         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
35829         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
35830         (Depends-on): Update conditions.
35831         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
35832         the Solaris 11 bug.
35834 2012-01-08  Bruno Haible  <bruno@clisp.org>
35836         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
35837         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
35838         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
35839         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
35840         macro.
35841         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
35842         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
35843         * lib/spawn_faction_adddup2.c: Add workaround implementation if
35844         HAVE_WORKING_POSIX_SPAWN.
35845         * modules/spawn (Makefile): Substitute
35846         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
35847         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
35848         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
35849         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
35850         (Depends-on): Update conditions.
35851         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
35852         the Solaris 11 bug.
35854 2012-01-08  Bruno Haible  <bruno@clisp.org>
35856         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
35857         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
35858         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
35859         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
35860         HAVE_WORKING_POSIX_SPAWN.
35861         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
35862         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
35863         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
35864         * lib/spawn_faction_addclose.c: Add workaround implementation if
35865         HAVE_WORKING_POSIX_SPAWN.
35866         * modules/spawn (Makefile): Substitute
35867         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
35868         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
35869         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
35870         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
35871         (Depends-on): Update conditions.
35872         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
35873         the Solaris 11 bug.
35875 2012-01-08  Bruno Haible  <bruno@clisp.org>
35877         doc: Update for Solaris 11.0.
35878         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
35879         * m4/printf.m4: Update comments.
35881 2012-01-08  Bruno Haible  <bruno@clisp.org>
35883         mktime: Avoid compilation error on Solaris 11.
35884         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
35886 2012-01-08  Bruno Haible  <bruno@clisp.org>
35888         doc: Small fix.
35889         * doc/posix-headers/nl_types.texi: Correct platforms list.
35891 2012-01-08  Simon Josefsson  <simon@josefsson.org>
35893         Add lgpl-3.0 module.
35894         * MODULES.html.sh (Support for building documentation): Add
35895         lgpl-3.0.
35896         * modules/lgpl-3.0: New file.
35898 2012-01-08  Jim Meyering  <meyering@redhat.com>
35900         select.c: indent with spaces, not TABs
35901         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
35903 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
35905         quotearg: do not use grave accent for left quote
35906         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
35907         locale_quoting_style.
35908         (quotearg_buffer_restyled): Fix example.
35909         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
35911 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
35913         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
35914         Most programs do not have translation catalogs for English and much
35915         less separate catalogs for British and American English.  Drop the
35916         suggestion to translators about these two, and provide it
35917         automatically for Unicode locales.  Like most programs, even those
35918         using American English, we use single quotation marks.  This conflicts
35919         with the American typographic convention, but works better when you
35920         cite the entire error message within double quotes.  It also tries not
35921         to clash with established practice and with what non-gnulib programs
35922         will usually do.
35923         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
35924         using an UTF-8 or GB-18030 locale.  The list of other locales with
35925         quotes was provided by Bruno Haible.
35926         (quotearg_buffer_restyled): Adjust instructions to translators.
35927         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
35928         text, since this would be wrong when using Unicode.
35929         * modules/quotearg: Depend on c-strcaseeq.
35931 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
35933         quotearg: fix Wikipedia link
35934         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
35936 2012-01-07  Simon Josefsson  <simon@josefsson.org>
35938         Fix for mingw with MSVC9.
35939         * m4/ld-version-script.m4: Check that compiler rejects version
35940         scripts with syntax errors.  Reported by Bruno Haible
35941         <bruno@clisp.org>.
35943 2012-01-06  Bruno Haible  <bruno@clisp.org>
35945         Talk about "native Windows API", not "Woe32".
35946         * lib/accept4.c: Update comments to mention native Windows.
35947         * lib/execute.c: Likewise.
35948         * lib/fatal-signal.c: Likewise.
35949         * lib/localcharset.c: Likewise.
35950         * lib/nanosleep.c: Likewise.
35951         * lib/nl_langinfo.c: Likewise.
35952         * lib/pclose.c: Likewise.
35953         * lib/pipe-filter-gi.c: Likewise.
35954         * lib/pipe-filter-ii.c: Likewise.
35955         * lib/pipe.c: Likewise.
35956         * lib/pipe2.c: Likewise.
35957         * lib/popen.c: Likewise.
35958         * lib/progreloc.c: Likewise.
35959         * lib/relocatable.c: Likewise.
35960         * lib/sigaction.c: Likewise.
35961         * lib/sigprocmask.c: Likewise.
35962         * lib/spawn-pipe.h: Likewise.
35963         * lib/spawn-pipe.c: Likewise.
35964         * lib/spawni.c: Likewise.
35965         * lib/stat-time.h: Likewise.
35966         * lib/w32spawn.h: Likewise.
35967         * tests/test-isatty.c: Likewise.
35968         * lib/config.charset: More comments.
35969         * doc/gnulib-intro.texi: Mention native Windows.
35970         * doc/posix-functions/_Exit_C99.texi: Likewise.
35971         * doc/posix-headers/fcntl.texi: Likewise.
35973 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
35975         argp: Avoid crash if translator uses % characters in a translation.
35976         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
35977         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
35979 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
35981         doc: C11 and C++11 are now official
35982         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
35983         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
35984         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
35985         * modules/stdalign:
35986         Replace references to draft C1X to C11, and to draft C++0X to C++11.
35988 2012-01-06  Bruno Haible  <bruno@clisp.org>
35990         uc-is-grapheme-break tests: Tweak.
35991         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
35992         message.
35994 2012-01-06  Bruno Haible  <bruno@clisp.org>
35996         test-init.sh: correct the test for diff -u
35997         * tests/test-init.sh: Also redirect stdout to /dev/null.
35999 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
36001         Use ', not `, for quoting output.
36002         * build-aux/announce-gen (usage, sizes, print_news_deltas)
36003         (print_changelog_deltas, get_tool_versions, main program):
36004         * build-aux/git-version-gen:
36005         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
36006         * build-aux/move-if-change (help):
36007         * build-aux/useless-if-before-free (usage, main program):
36008         * check-module (parse_module_file, usage)
36009         (find_included_lib_files, check_module):
36010         * lib/argmatch.c (main) [TEST]:
36011         * lib/argp-help.c (_help):
36012         * lib/getopt1.c (main) [TEST]:
36013         * lib/git-merge-changelog.c (usage):
36014         * lib/xstrtol-error.c (xstrtol_error):
36015         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
36016         * m4/argz.m4 (gl_FUNC_ARGZ):
36017         * m4/bison.m4 (gl_BISON):
36018         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
36019         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
36020         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
36021         * m4/fpending.m4 (gl_PREREQ_FPENDING):
36022         * m4/gc-random.m4 (gl_GC_RANDOM):
36023         * m4/intl.m4 (gt_CHECK_DECL):
36024         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
36025         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
36026         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
36027         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
36028         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
36029         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
36030         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
36031         * tests/test-dirname.c (main):
36032         * tests/test-getpass.c (main):
36033         * tests/test-iconvme.c (main):
36034         * tests/test-parse-datetime.c (LOG):
36035         * tests/test-xstrtoimax.sh:
36036         * tests/test-xstrtol.sh:
36037         * tests/test-xstrtoll.sh:
36038         * tests/test-xstrtoumax.sh:
36039         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
36040         * top/GNUmakefile (abort-due-to-no-makefile):
36041         Quote 'like this', not `like this', as per the recent change to
36042         the GNU coding standards.
36044 2012-01-05  Bruno Haible  <bruno@clisp.org>
36046         strtoimax: Don't force a replacement on systems where intmax_t is int.
36047         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
36048         'intmax_t' is not larger than 'int'.
36049         Reported by Pádraig Brady <P@draigBrady.com>.
36051 2012-01-05  Bruno Haible  <bruno@clisp.org>
36053         doc: Mention NetBSD bugs.
36054         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
36055         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
36057 2012-01-05  Bruno Haible  <bruno@clisp.org>
36059         strtoumax tests: Enhance tests.
36060         * tests/test-strtoumax.c (main): Add tests for large values.
36062 2012-01-05  Bruno Haible  <bruno@clisp.org>
36064         strtoimax: Work around AIX 5.1 bug.
36065         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
36066         definition.
36067         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
36068         Set HAVE_STRTOIMAX.
36069         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
36070         REPLACE_STRTOIMAX.
36071         * modules/inttypes-incomplete (Makefile.am): Substitute
36072         REPLACE_STRTOIMAX.
36073         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
36074         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
36075         (Depends-on): Update conditions.
36076         * tests/test-strtoimax.c (main): Add tests for large values.
36077         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
36079 2012-01-05  Bruno Haible  <bruno@clisp.org>
36081         inttypes: Modernize.
36082         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
36083         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
36084         (Makefile.am): Update inttypes.h rule.
36086 2012-01-05  Jim Meyering  <meyering@redhat.com>
36088         init.sh: don't waste a subshell just to redirect stderr
36089         * tests/init.sh: In testing for diff -u and diff -c, use a
36090         stderr-redirecting exec inside `...` rather than a subshell.
36092         test-init.sh: avoid failure on HP-UX 11.00
36093         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
36094         resolves to diff -c or cmp.  Reported by Bruno Haible.
36096 2012-01-05  Bruno Haible  <bruno@clisp.org>
36098         Tests for module 'strtoull'.
36099         * modules/strtoull-tests: New file.
36100         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
36102 2012-01-05  Bruno Haible  <bruno@clisp.org>
36104         Tests for module 'strtoll'.
36105         * modules/strtoll-tests: New file.
36106         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
36108 2012-01-05  Bruno Haible  <bruno@clisp.org>
36110         Tests for module 'strtoul'.
36111         * modules/strtoul-tests: New file.
36112         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
36114 2012-01-05  Bruno Haible  <bruno@clisp.org>
36116         Tests for module 'strtol'.
36117         * modules/strtol-tests: New file.
36118         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
36120 2012-01-04  Jim Meyering  <meyering@redhat.com>
36122         test-init.sh: accommodate Solaris 5.10's different diff -u output
36123         * tests/test-init.sh: Also exempt @@ lines from the comparison
36124         of diff output, since Solaris 5.10 and GNU diff formats differ.
36125         Reported by Stefano Lattarini.
36127 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36129         test-posixtm: don't assume signed integer wraparound
36130         * tests/test-posixtm.c (main): Don't assume wraparound semantics
36131         after signed integer overflow.  Inspired by (though it may not
36132         fix) Bruno Haible's bug report in
36133         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
36135         Spell out "Windows 9x" and "Windows XP".
36136         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
36137         "Windows 9x" and "WinXP" with "Windows XP".
36139 2012-01-04  Jim Meyering  <meyering@redhat.com>
36141         test-vc-list-files-cvs.sh: remove obsolete comment
36142         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
36143         double exit.  Now that's all encapsulated via skip_ and Exit.
36145 2012-01-04  Bruno Haible  <bruno@clisp.org>
36147         Talk about "native Windows API", not "Win32".
36148         * lib/classpath.c: Update comments to mention native Windows.
36149         * lib/csharpexec.c: Likewise.
36150         * lib/dup2.c: Likewise.
36151         * lib/error.c: Likewise.
36152         * lib/fcntl.c: Likewise.
36153         * lib/filename.h: Likewise.
36154         * lib/findprog.c: Likewise.
36155         * lib/get-rusage-as.c: Likewise.
36156         * lib/get-rusage-data.c: Likewise.
36157         * lib/getpagesize.c: Likewise.
36158         * lib/javaexec.c: Likewise.
36159         * lib/msvc-inval.c: Likewise.
36160         * lib/msvc-nothrow.c: Likewise.
36161         * lib/nanosleep.c: Likewise.
36162         * lib/nonblocking.c: Likewise.
36163         * lib/printf-parse.c: Likewise.
36164         * lib/setlocale.c: Likewise.
36165         * lib/sigaction.c: Likewise.
36166         * lib/strerror_r.c: Likewise.
36167         * lib/tmpdir.c: Likewise.
36168         * lib/vasnprintf.c: Likewise.
36169         * lib/w32spawn.h: Likewise.
36170         * lib/waitpid.c: Likewise.
36171         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
36172         * m4/locale-ar.m4: Likewise.
36173         * m4/locale-fr.m4: Likewise.
36174         * m4/locale-ja.m4: Likewise.
36175         * m4/locale-tr.m4: Likewise.
36176         * m4/locale-zh.m4: Likewise.
36177         * m4/printf.m4: Likewise.
36178         * tests/test-cloexec.c: Likewise.
36179         * tests/test-copy-acl.sh: Likewise.
36180         * tests/test-copy-file.sh: Likewise.
36181         * tests/test-file-has-acl.sh: Likewise.
36182         * tests/test-set-mode-acl.sh: Likewise.
36183         * tests/test-dup-safer.c: Likewise.
36184         * tests/test-dup2.c: Likewise.
36185         * tests/test-dup3.c: Likewise.
36186         * tests/test-fcntl.c: Likewise.
36187         * tests/test-nonblocking-pipe.h: Likewise.
36188         * tests/test-nonblocking-socket.h: Likewise.
36189         * tests/test-pipe.c: Likewise.
36190         * tests/test-pipe2.c: Likewise.
36191         * tests/test-spawn-pipe-child.c: Likewise.
36192         * doc/acl-resources.txt: Likewise.
36193         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
36194         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
36195         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
36196         * lib/localcharset.c: Update comments to mention native Windows.
36197         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
36198         * lib/localename.c: Likewise.
36199         * lib/progreloc.c: Likewise.
36200         * lib/relocatable.c: Likewise.
36201         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
36202         (windows_compute_revents): Renamed from win32_compute_revents.
36203         (windows_compute_revents_socket): Renamed from
36204         win32_compute_revents_socket.
36205         * lib/select.c: Update comments to mention native Windows.
36206         (windows_poll_handle): Renamed from win32_poll_handle.
36207         * m4/threadlib.m4: Update comments to mention native Windows.
36208         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
36209         --enable-threads=windows instead of --enable-threads=win32. Set
36210         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
36211         * lib/glthread/lock.h: Update comments to mention native Windows.
36212         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
36213         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
36214         USE_WIN32_THREADS.
36215         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
36216         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
36217         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
36218         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
36219         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
36220         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
36221         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
36222         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
36223         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
36224         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
36225         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
36226         * tests/test-tls.c: Likewise.
36227         Rationale:
36228         Microsoft renamed the "Win32 API" to "Windows API", as it is available
36229         on both 32-bit and 64-bit Windows systems.
36230         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
36231         line of distinction is between "native Windows" on one side and Unix/
36232         POSIX systems on the other side. More details in
36233         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
36234         Suggested by Paul Eggert.
36236 2012-01-03  Bruno Haible  <bruno@clisp.org>
36238         isatty: Support for MSVC 9.
36239         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
36240         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
36241         (_isatty_nothrow): New function.
36242         (isatty): Use it instead of _isatty.
36243         (IsConsoleHandle): Add comment, from Paolo Bonzini.
36244         * lib/poll.c (IsConsoleHandle): Likewise.
36245         * lib/select.c (IsConsoleHandle): Likewise.
36246         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
36247         (gl_PREREQ_ISATTY): New macro.
36248         * modules/isatty (Depends-on): Add msvc-inval.
36249         (configure.ac): Invoke gl_PREREQ_ISATTY.
36251 2012-01-03  Jim Meyering  <meyering@redhat.com>
36253         maint.mk: remove temporary transition aid from over 1.5 years ago
36254         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
36255         purpose was to aid in the transition (avoiding silent malfunction)
36256         from that old name to the new _sc_search_regexp.  This shim was
36257         added by commit 219c504b.
36259         init.sh: do not try to accommodate compare arguments starting with "-"
36260         * tests/init.sh (compare_dev_null_): Do not try to accommodate
36261         compare arguments that start with "-".  Besides, we do not worry
36262         about this when invoking diff or cmp; why start now with sed?
36263         Using "--" to separate options from argument would trigger sed
36264         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
36265         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
36267 2012-01-02  Bruno Haible  <bruno@clisp.org>
36269         Enhance tests for module 'isatty'.
36270         * modules/isatty-tests (Depends-on): Add pipe-posix.
36271         * tests/test-isatty.c: Include <fcntl.h>.
36272         (DEV_NULL): New macro.
36273         (main): Test the resut of isatty() also on regular files, pipes, and
36274         /dev/null.
36276         New module 'isatty'.
36277         * lib/unistd.in.h (isatty): New declaration.
36278         * lib/isatty.c: New file, based on an idea of
36279         Bastien Roucariès <roucaries.bastien@gmail.com>.
36280         * m4/isatty.m4: New file.
36281         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
36282         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
36283         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
36284         REPLACE_ISATTY.
36285         * modules/isatty: New file.
36286         * doc/posix-functions/isatty.texi: Mention the new module.
36287         Suggested by Paolo Bonzini.
36289 2012-01-02  Bruno Haible  <bruno@clisp.org>
36291         canonicalize: Tweak 2011-12-29 commit.
36292         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
36293         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
36295 2012-01-02  Jim Meyering  <meyering@redhat.com>
36297         gitlog-to-changelog: describe input syntax in --help output
36298         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
36300         gitlog-to-changelog: fix typo in --help: show backslash before email @
36301         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
36302         in sources, but not in actual output.
36304 2011-12-30  Jim Meyering  <meyering@redhat.com>
36306         gitlog-to-changelog: don't malfunction when name contains %-directive
36307         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
36308         in a name string cause trouble.  E.g., with a user name of "%s",
36309         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
36311 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
36313         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
36314         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
36315         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
36316         the "  (tiny change)" notation that is appended to the standard
36317         ChangeLog "date  name  email" header line.
36319 2012-01-01  Jim Meyering  <meyering@redhat.com>
36321         test-framework-sh: init.sh: fix "make dist" failure
36322         When using gnulib-tool's --with-tests option and any module that
36323         depends on test-framework-sh, "make dist" would fail due to the
36324         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
36325         in the gltests directory, and not in the gllib/ directory.
36326         One way to work around that is to move the EXTRA_DIST += init.sh
36327         from the primary module to the -tests one:
36328         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
36329         * modules/test-framework-sh (Makefile.am): ...not here.
36330         Reported by Tom G. Christensen in
36331         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
36333         version-etc: update copyright year reported by --version
36334         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
36336 2011-12-31  Pádraig Brady  <P@draigBrady.com>
36338         canonicalize: only stat() if required
36339         * lib/canonicalize.c (canonicalize_filename_mode):
36340         Avoid calling l?stat() when both CAN_MISSING,
36341         and CAN_NOLINKS are set, as we neither need
36342         to resolve symlinks or test component existence.
36344 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
36346         doc: cover st_ino issues once; add OpenVMS etc.
36347         * doc/posix-functions/stat.texi (stat):
36348         * doc/posix-functions/lstat.texi (lstat):
36349         * doc/posix-functions/fstatat.texi (fstatat):
36350         * doc/posix-functions/fstat.texi (fstat):
36351         Move general 'struct stat' stuff to sys_stat.texi,
36352         leaving behind a pointer.
36353         * doc/posix-headers/sys_stat.texi (sys/stat.h):
36354         Merge duplicate info about 'struct stat' problems into here.
36355         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
36356         and suggest partial workarounds.
36358         same-inode: port to OpenVMS
36359         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
36360         three st_ino values.
36362 2011-12-30  Pádraig Brady  <P@draigBrady.com>
36364         canonicalize: fix references to stat() and lstat()
36365         * lib/canonicalize.c (canonicalize_filename_mode):
36366         Ensure references always resolve to a replacement
36367         function if required (even via a macro).
36369 2011-12-30  Jim Meyering  <meyering@redhat.com>
36371         gitlog-to-changelog: remove a little duplication
36372         * build-aux/gitlog-to-changelog (main): Grep @lines once,
36373         rather than twice.
36375 2011-12-29  Pádraig Brady  <P@draigBrady.com>
36377         canonicalize: add support for not resolving symlinks
36378         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
36379         indicate we don't want to follow symlinks.  Also
36380         provide CAN_MODE_MASK to aid setting these existing
36381         mutually exclusive values.
36382         * lib/canonicalize.c (canonicalize_filename_mode):
36383         Extract the flags from can_mode parameter, which
36384         are currently just used to select between stat()
36385         and lstat().  Also ensure that mutually exclusive
36386         values are flagged immediately as invalid.
36387         * tests/test-canonicalize.c: Verify symlinks are
36388         not followed, and that invalid flag combinations
36389         are diagnosed.
36391 2011-12-25  Jim Meyering  <meyering@redhat.com>
36393         gitlog-to-changelog: do not clump multi-paragraph entries
36394         Identical header lines (date,name,email+coauthors) are suppressed,
36395         thus putting all entries with those same characteristics under
36396         a single header.  However, when a log entry consists of two or
36397         more paragraphs, it may not be clear where it starts and ends.
36398         This change makes it so that such an entry is always separated
36399         from others by a header line, even when that header would
36400         otherwise be suppressed.
36401         * build-aux/gitlog-to-changelog: Implement the above.
36402         Inspired by a related request from Stefano Lattarini in
36403         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
36405 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
36407         announce-gen: fix `cmd' typo in diagnostic
36408         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
36409         diagnostic: a missing '$' meant that the command was not output.
36411 2011-12-23  Jim Meyering  <meyering@redhat.com>
36413         test-framework-sh: distribute init.sh
36414         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
36415         Otherwise, "make -C gnulib-tests check" (at least in grep) would
36416         fail due to the lack of init.sh.
36418         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
36419         * modules/atexit-tests: Rather than listing tests/init.sh,
36420         now that there's a module for it, simply depend on that new module.
36421         * modules/closein-tests: Likewise.
36422         * modules/exclude-tests: Likewise.
36423         * modules/getcwd-tests: Likewise.
36424         * modules/perror-tests: Likewise.
36425         * modules/pread-tests: Likewise.
36426         * modules/pwrite-tests: Likewise.
36427         * modules/vc-list-files-tests: Likewise.
36428         * modules/verify-tests: Likewise.
36429         * modules/xalloc-die-tests: Likewise.
36430         * modules/xstrtoimax-tests: Likewise.
36431         * modules/xstrtol-tests: Likewise.
36432         * modules/xstrtoll-tests: Likewise.
36433         * modules/xstrtoumax-tests: Likewise.
36434         * modules/yesno-tests: Likewise.
36436 2011-12-22  Jim Meyering  <meyering@redhat.com>
36438         test-framework-sh: add minimal tests of init.sh's compare function
36439         * modules/test-framework-sh-tests: New file.
36440         * tests/test-init.sh: New file.
36442         test-framework-sh: new module
36443         * modules/test-framework-sh: New file.
36444         * MODULES.html.sh (Support for maintaining and releasing projects):
36445         List it.
36447         init.sh: do not emit simulated diff output to stderr
36448         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
36450 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
36452         .gitignore: ignore gnulib.dvi and regex.info
36453         * doc/.gitignore:add gnulib.dvi and regex.info
36455 2011-12-22  Jim Meyering  <meyering@redhat.com>
36457         init.sh: correct previous change
36458         * tests/init.sh (compare): My previous change was wrong.
36459         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
36461         init.sh: avoid unwarranted test failure when using "set -e"
36462         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
36463         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
36464         a use like "compare exp out" would get evoke an unconditional failure.
36466 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
36468         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
36469         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
36470         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
36471         autoreconf that did not.
36472         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
36473         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
36475 2011-12-17  Jim Meyering  <meyering@redhat.com>
36477         bootstrap: remove some now-unneeded code
36478         This script arose back when gnulib-tool was young.
36479         Since then, it has seen improvements that render much of this
36480         script unnecessary.  In particular, it can now make symlinks
36481         to the files it uses.  Also, I no longer see as much value in
36482         marking files as read-only via comments.
36483         If you relied on the symlink-creation feature of the preceding
36484         version of this script, you can get most of that functionality
36485         by adding the --symlink option to the definition of
36486         gnulib_tool_option_extras in your bootstrap.conf file.
36487         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
36488         Run autopoint and libtoolize *before* gnulib-tool.
36489         After it, run an abbreviated autoreconf, rather than a loop around
36490         all tools.
36491         (slirp, bt_mark_as_generated): Remove functions.
36493 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
36495         ftoastr: fix typo
36496         * lib/ftoastr.h: Fix misspelling in comment.
36498 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
36500         * top/README-release: fix punctuation.
36502 2011-12-17  Jim Meyering  <meyering@redhat.com>
36504         bootstrap: correct the recent buildreq change
36505         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
36506         had no effect.
36507         * build-aux/bootstrap (buildreq): Bracket each search term with
36508         "*...*", so that the shell "case" statement works as intended.
36509         Add comments.
36511 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
36513         build: let bootstrap resort to wget when downloading .po files
36514         * build-aux/bootstrap (download_po_files): Fallback to wget when
36515         downloading the .po files via rsync fails.  This is necessary to
36516         bootstrap from behind a strict firewall.
36518 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
36520         stdint: don't assume C++11 when compiling with g++
36521         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
36522         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
36523         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
36524         work also in C++ before C++11, as that improperly inhibits
36525         generating a substitute stdint.h for that case.
36527 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
36529         alloca: protect comment from gnulib-tool
36530         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
36531         that gnulib-tool doesn't think it's a license, and munge it to
36532         say "GCC version 3".
36534 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
36536         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
36537         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
36538         $(abs_top_builddir) instead of $(top_builddir).
36540 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
36542         strftime-tests: also test nanoseconds
36543         * tests/test-strftime.c (T): Add a test of %N.
36545 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
36547         inttypes, stdint: add C++11 support
36548         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
36549         when including inttypes.h and stdint.h.  Support this change to
36550         the standard.
36551         * doc/posix-headers/inttypes.texi (inttypes.h):
36552         * doc/posix-headers/stdint.texi (stdint.h): Document this.
36553         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
36554         Define if not defined already, for the benefit of pre-C++11 hosts.
36555         Define the standard format macros (e.g., PRId8) always.
36556         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
36557         Likewise, if __cpluspus.  Define the standard constant and limit
36558         macros (e.g., INT8_C, INT8_MAX) always.
36559         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
36560         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
36561         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
36562         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
36563         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
36564         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
36565         Likewise.
36567 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
36569         nonblocking tests: Fix test failure on Linux/PPC.
36570         Suggested by Prerna Saxena in
36571         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
36572         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
36573         Set to 1100000.
36575 2011-12-12  Jim Meyering  <meyering@redhat.com>
36577         argmatch: don't hard-code `' when listing valid option arguments
36578         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
36579         use the quote function to add quotes.  Use fputs rather than
36580         fprintf for the format string with no format directive.
36582 2011-12-07  Eric Blake  <eblake@redhat.com>
36584         bootstrap: detect tools required by gnulib-tool
36585         * build-aux/bootstrap (buildreq): Provide minimum implicit
36586         dependencies.
36587         * DEPENDENCIES: Mention patch as a prereq.
36589 2011-12-04  Bruno Haible  <bruno@clisp.org>
36591         sethostname: Port to Windows platforms.
36592         * lib/sethostname.c: Provide an alternate implementation for Windows
36593         platforms.
36594         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
36595         (main): Skip the test if sethostname() fails with EPERM. On Windows
36596         platforms, don't check the result of gethostname().
36598 2011-12-04  Bruno Haible  <bruno@clisp.org>
36599             Jim Meyering  <meyering@redhat.com>
36601         tests: Avoid spurious error message on platforms without mktemp program.
36602         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
36604 2011-12-04  Bruno Haible  <bruno@clisp.org>
36606         sethostname: Fix documentation.
36607         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
36608         "not fixed" section.
36610 2011-12-03  Bruno Haible  <bruno@clisp.org>
36612         gnulib-tool: Verify that the License field is present and non-empty.
36613         * gnulib-tool (func_get_license_raw): New function, extracted from
36614         func_get_license.
36615         (func_get_license): Use it. Warn if the module is not a test module and
36616         has no license.
36617         Suggested by Jim Meyering.
36619 2011-12-03  Bruno Haible  <bruno@clisp.org>
36621         sethostname tests: Fix link error on mingw.
36622         * tests/test-sethostname1.c: New file, extracted from
36623         tests/test-sethostname.c.
36624         * tests/test-sethostname2.c: New file, extracted from
36625         tests/test-sethostname.c.
36626         * tests/test-sethostname.c: Remove file.
36627         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
36628         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
36629         (Depends-on): Add gethostname.
36630         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
36631         Link the latter with $(GETHOSTNAME_LIB).
36633         sethostname tests: Fix compilation error on mingw.
36634         * tests/test-sethostname.c: Don't include <sys/types.h>.
36635         (geteuid): Use a dummy value without uid_t.
36636         * modules/sethostname-tests (Depends-on): Remove sys_types.
36638         sethostname tests: Avoid a gcc warning.
36639         * tests/test-sethostname.c (main): Remove an unused variable.
36641         Tweak last commit.
36642         * modules/sethostname-tests (Files): Sort by decreasing importance.
36643         (configure.ac): Check for geteuid.
36644         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
36645         the test when there's nothing to test. Drop an unnecessary cast.
36646         Improve an error message. Verify that the final sethostname() call
36647         succeeds.
36649 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
36651         Add a test suite for the sethostname module.
36652         * modules/sethostname-tests: New file.  A test program
36653         for the sethostname module.
36654         * tests/test-sethostname.c: Likewise.
36656 2011-12-03  Bruno Haible  <bruno@clisp.org>
36658         Tweak last commit.
36659         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
36660         Fix preprocessor directives indentation. Fix typos.
36661         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
36662         * modules/unistd (Makefile): Likewise.
36664 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
36666         Integrate the sethostname module into unistd.
36667         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
36668         into the unistd.h header.
36669         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
36670         preprocessor directives.
36671         * modules/unistd: Setup the Makefile substitutions of the
36672         SETHOSTNAME preprocessor directives.
36674 2011-12-03  Bruno Haible  <bruno@clisp.org>
36676         Tweak last commit.
36677         * lib/sethostname.c: Don't include <string.h>.
36678         (sethostname): No need to copy the argument string to the stack. Don't
36679         call clearerr. Preserve errno when fprintf failed.
36680         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
36681         Don't invoke AC_REPLACE_FUNCS.
36682         * modules/sethostname (Link): Remove empty section.
36683         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
36684         failure problem.
36686 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
36688         New module 'sethostname'.
36689         * lib/sethostname.c (sethostname): New file.  Provide sethostname
36690         for systems that lack it.
36691         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
36692         sethostname declaration and function.
36693         * modules/sethostname: New file.  Define the sethostname module.
36695 2011-12-03  Bruno Haible  <bruno@clisp.org>
36697         Tweak last commit.
36698         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
36700 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
36702         Split the HOST_NAME_MAX detection into a separate m4 macro.
36703         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
36704         macro so it can be used by the pending sethostname module.
36706 2011-12-03  Bruno Haible  <bruno@clisp.org>
36708         Fix module descriptions syntax.
36709         * modules/argv-iter (License): Fix syntax.
36710         * modules/di-set (License): Likewise.
36711         * modules/ino-map (License): Likewise.
36712         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
36714 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
36716         stdalign: port to Clang 3.0
36717         Problem reported by Simon Josefsson in
36718         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
36719         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
36720         which has <stdalign.h> but which does not define alignof.
36721         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
36723 2011-12-01  Eric Blake  <eblake@redhat.com>
36725         mktempd: silence dd usage
36726         * build-aux/mktempd (rand_bytes): Silence dd.
36728 2011-11-30  Simon Josefsson  <simon@josefsson.org>
36730         manywarnings: Don't mention gcc version in docstring.
36731         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
36732         Jim Meyering <meyering@redhat.com>.
36734 2011-11-30  Jim Meyering  <meyering@redhat.com>
36736         hash: mark a few floating point constants with "f" suffix
36737         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
36738         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
36739         floating point constants with "f", since they're destined to be
36740         saved/used as "float"s.
36742 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
36744         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
36745         * tests/test-float.c (test_long_double): Correct and re-enable the
36746         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
36748 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
36750         Avoid subtracting two pointers that don't point into the same block.
36751         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
36752         only pointers into the same memory block are subtracted. We cannot
36753         assume that sizeof (ptrdiff_t) == sizeof (void *).
36755 2011-11-29  Eric Blake  <eblake@redhat.com>
36757         maint.mk: add syntax check for use of compare from init.sh
36758         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
36759         moved here from coreutils.
36761         manywarnings: drop -Wunsuffixed-float-constants
36762         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
36763         '1.0D', which is the only way to silence this warning for 'double'.
36765 2011-11-29  Jim Meyering  <meyering@redhat.com>
36767         hash: mark compute_bucket_size with the pure attribute
36768         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
36770         quotearg, propername: correct pragma guard expression
36771         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
36772         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
36774 2011-11-28  Jim Meyering  <meyering@redhat.com>
36776         propername: do not mark proper_name with the const attribute
36777         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
36778         since it examines data pointed to by its parameter.
36779         * lib/propername.c (proper_name): Instead, add a pragma to suppress
36780         the suggestion from -Wsuggest-attribute=const.
36782         propername: mark one more function as const
36783         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
36785 2011-11-27  Jim Meyering  <meyering@redhat.com>
36787         mark functions with const and pure attributes
36789         Mark functions per suggestions from gcc-4.6 when using these options:
36790         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
36791         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
36792         Follow these guidelines: when possible, apply the attribute to
36793         an extern declaration, not to its definition.  Apply it to the
36794         definition only when the definition is static.
36795         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
36796         * lib/argv-iter.h (argv_iter_n_args): Likewise.
36797         * lib/base64.h (isbase64): Likewise.
36798         * lib/basename-lgpl.c (last_component, base_len): Likewise.
36799         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
36800         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
36801         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
36802         (c_tolower, c_toupper): Likewise.
36803         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
36804         * lib/chdir-long.c (find_non_slash): Likewise.
36805         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
36806         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
36807         * lib/file-type.h (file_type): Likewise.
36808         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
36809         * lib/filevercmp.c (verrevcmp): Likewise.
36810         * lib/freadahead.h (freadahead): Likewise.
36811         * lib/fts.c (fts_maxarglen): Likewise.
36812         * lib/hash-pjw.h (hash_pjw): Likewise.
36813         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
36814         * lib/hash.c (is_prime, next_prime): Likewise.
36815         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
36816         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
36817         (hash_table_ok, hash_get_first, hash_string): Likewise.
36818         (compute_bucket_size): Likewise.
36819         * lib/i-ring.h (i_ring_empty): Likewise.
36820         * lib/isnan.c (isnanl): Likewise.
36821         * lib/math.h (isnanl, rpl_isnanl): Likewise.
36822         * lib/memcasecmp.h (memcasecmp): Likewise.
36823         * lib/memchr2.h (memchr2): Likewise.
36824         * lib/memcmp2.h (memcmp2): Likewise.
36825         * lib/parse-datetime.y (lookup_zone): Likewise.
36826         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
36827         [!WINDOWS_SOCKETS]: Likewise.
36828         * lib/strnlen1.h (strnlen1): Likewise.
36829         * lib/uniwidth.in.h (uc_width): Likewise.
36830         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
36831         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
36832         (quoting_options_from_style): Add a comment.
36833         * lib/propername.h (proper_name): Add a comment.
36835 2011-11-27  Bruno Haible  <bruno@clisp.org>
36837         Remove unused macros from !_LIBC code in glibc-borrowed files.
36838         * lib/fnmatch.c (STRCOLL): Remove macro.
36839         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
36840         * lib/glob.c (__stat, __readdir64): Remove macros.
36841         * lib/tempname.c (__open64, __xstat64): Remove macros.
36842         Suggested by Paul Eggert.
36844 2011-11-27  Bruno Haible  <bruno@clisp.org>
36846         getcwd: Fix link error on MSVC 9.
36847         * modules/getcwd (Depends-on): Add readdir, rewinddir.
36849 2011-11-27  Bruno Haible  <bruno@clisp.org>
36851         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
36852         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
36853         HAVE_OPENDIR is 0.
36854         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
36855         HAVE_CLOSEDIR is 0.
36856         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
36857         is 0.
36858         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
36860 2011-11-27  Bruno Haible  <bruno@clisp.org>
36862         getcwd: Fix bug from 2011-08-17.
36863         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
36864         platforms that need it.
36865         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
36866         code of 4 to be a failure, not a success. This ensures that
36867         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
36869 2011-11-27  Bruno Haible  <bruno@clisp.org>
36871         binary-io tests: Avoid test failure on mingw when libtool is used.
36872         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
36873         Don't verify the size of t-bin-out1.tmp here.
36874         * tests/test-binary-io.sh: Verify it here.
36875         Reported by Simon Josefsson.
36877 2011-11-26  Bruno Haible  <bruno@clisp.org>
36879         Fix conflict between two instantiations of module 'unistd'.
36880         * gnulib-tool (func_emit_autoconf_snippet): Substitute
36881         ${include_guard_prefix} also in the autoconf snippet.
36882         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
36883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
36884         GNULIB_UNISTD_H_GETOPT.
36885         * modules/getopt-posix (configure.ac): Set the
36886         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
36887         * modules/getopt-gnu (configure.ac): Likewise.
36888         * modules/unistd (Makefile.am): Change the substitution value of
36889         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
36890         Reported by Simon Josefsson.
36892 2011-11-25  Bruno Haible  <bruno@clisp.org>
36894         pagealign_alloc: Doc and comments.
36895         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
36896         module.
36897         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
36899 2011-11-25  Jim Meyering  <meyering@redhat.com>
36901         test-update-copyright.sh: avoid false-positive failure
36902         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
36903         around false positive failure on Cygwin/Windows.  The latter was
36904         matching erroneously-created files with names like
36905         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
36907 2011-11-25  Simon Josefsson  <simon@josefsson.org>
36909         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
36910         * m4/valgrind-tests.m4: Check that the parameters that will be
36911         used works, not just a subset of them.  Reported by Bruno Haible
36912         <bruno@clisp.org>.
36914 2011-11-24  Jim Meyering  <meyering@redhat.com>
36916         test-stdalign.c: comment out long double tests
36917         * tests/test-stdalign.c: Don't try to reduce alignment of long double
36918         variables.  That provokes errors like this from gcc-4.7.0 20111124:
36919         error: '_Alignas' specifiers cannot reduce alignment of \
36920         'static_longdouble_alignas'.
36922 2011-11-22  Jim Meyering  <meyering@redhat.com>
36924         init.sh: make "compare /dev/null FILE" output more readable
36925         * tests/init.sh (compare_): Document the preferred order of arguments.
36926         (emit_diff_u_header_): New function.
36927         (compare_dev_null_): Emit a simulated diff, rather than just the
36928         contents of the unexpected file.  Suggestion from Bruno Haible.
36930 2011-11-21  Jim Meyering  <meyering@redhat.com>
36931             Eric Blake  <eblake@redhat.com>
36933         init.sh: work around OSF/1 5.1's mishandling of /dev/null
36934         * tests/init.sh: Make our compare function slightly more portable.
36935         Reported by Bruno Haible in
36936         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
36938 2011-11-21  Simon Josefsson  <simon@josefsson.org>
36940         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
36941         before using it, in code that ends up in config.h.
36943 2011-11-20  Bruno Haible  <bruno@clisp.org>
36945         getcwd: Work around getcwd bug on AIX 5..7.
36946         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
36947         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
36948         Use a different value for gl_cv_func_getcwd_path_max. Move the
36949         definition of HAVE_PARTLY_WORKING_GETCWD from here...
36950         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
36951         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
36952         Define HAVE_MINIMALLY_WORKING_GETCWD.
36953         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
36954         where it is not even minimally working, that is, on AIX.
36955         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
36956         m4/getcwd-path-max.m4.
36957         (main): Update exit code computation.
36958         * doc/posix-functions/getcwd.texi: Mention list of platforms where
36959         getcwd does not handle long file names.
36961 2011-11-20  Bruno Haible  <bruno@clisp.org>
36963         getcwd: Fix bug from 2009-09-10.
36964         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
36965         like "no".
36967 2011-11-20  Simon Josefsson  <simon@josefsson.org>
36969         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
36971 2011-11-20  Bruno Haible  <bruno@clisp.org>
36973         fma tests: Avoid shadowing local variables.
36974         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
36975         expected.
36977 2011-11-20  Bruno Haible  <bruno@clisp.org>
36979         copysignf tests: Fix.
36980         * tests/test-copysignf.c: Fix signature check.
36982 2011-11-20  Bruno Haible  <bruno@clisp.org>
36984         fma: Remove unused code.
36985         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
36986         unused macros.
36988 2011-11-20  Bruno Haible  <bruno@clisp.org>
36990         sethostname: Fix doc about AIX.
36991         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
36992         sethostname; it has it.
36994         sethostname: Mention more portability problems.
36995         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
36996         problem.
36997         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
36999 2011-11-19  Bruno Haible  <bruno@clisp.org>
37001         Depend on module fcntl-h when AT_FDCWD is used.
37002         * modules/utimens (Depends-on): Add fcntl-h.
37003         * modules/areadlinkat (Depends-on): Likewise.
37004         * modules/areadlinkat-with-size (Depends-on): Likewise.
37005         * modules/faccessat (Depends-on): Likewise.
37006         * modules/fchmodat (Depends-on): Likewise.
37007         * modules/fchownat (Depends-on): Likewise.
37008         * modules/getcwd (Depends-on): Likewise.
37009         * modules/mkdirat (Depends-on): Likewise.
37010         * modules/mkfifoat (Depends-on): Likewise.
37011         * modules/readlinkat (Depends-on): Likewise.
37012         * modules/symlinkat (Depends-on): Likewise.
37013         * modules/dup2-tests (Depends-on): Likewise.
37014         * modules/fdutimensat-tests (Depends-on): Likewise.
37015         * modules/futimens-tests (Depends-on): Likewise.
37017 2011-11-19  Bruno Haible  <bruno@clisp.org>
37019         euidaccess: Update a comment.
37020         * lib/euidaccess.c: Update comment about platforms with faccessat.
37022 2011-11-19  Bruno Haible  <bruno@clisp.org>
37024         openat: Fix file list.
37025         * modules/openat (Files): Remove lib/at-func.c.
37027 2011-11-19  Bruno Haible  <bruno@clisp.org>
37029         fstatat: Simplify.
37030         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
37031         gnulib should define rpl_fstatat, there is a
37032         "#define fstatat rpl_fstatat" in <sys/stat.h>.
37034 2011-11-19  Bruno Haible  <bruno@clisp.org>
37036         Ensure 'inline' can be used in tests/test-utimens-common.h.
37037         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
37038         * modules/futimens-tests (configure.ac): Likewise.
37039         * modules/utimens-tests (configure.ac): Likewise.
37040         * modules/utimensat-tests (configure.ac): Likewise.
37042 2011-11-19  Simon Josefsson  <simon@josefsson.org>
37044         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
37045         not hash_insert0.
37046         (hash_insert_if_absent): Doc fix.
37048 2011-11-19  Simon Josefsson  <simon@josefsson.org>
37050         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
37052 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
37054         test-getcwd: disambiguate exit status
37055         * tests/test-getcwd.c (test_long_name): Return 0..7.
37056         (main): Exit with an unambiguous exit status.  The old
37057         code yielded a mysterious mixture of two failure codes.
37059         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
37060         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
37061         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
37062         rpl_fstatat or fstatat.  This should fix the other problem
37063         reported by Kai Habel in
37064         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
37065         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
37066         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
37067         and I reproduced it on a Solaris 8 host we still have in production.
37069 2011-11-18  Jim Meyering  <meyering@redhat.com>
37071         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
37072         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
37073         Add a sentence to the comment.
37074         (hash_insert0): New function that simply calls hash_insert_if_absent.
37075         * lib/hash.h (hash_insert_if_absent): Declare it.
37076         (hash_insert0): Add deprecation attribute.
37077         (_GL_ATTRIBUTE_DEPRECATED): Define.
37078         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
37079         not hash_insert0.
37080         * NEWS: Mention it, even though it's not really an incompatible change.
37082 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
37084         openat: avoid compilation failure due to lack of <errno.h> inclusion
37085         * lib/openat.c: Include <errno.h>.
37087 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
37089         * modules/getcwd (Depends-on): Add fdopendir.
37090         This fixes one of the two problems reported by Kai Habel in
37091         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
37093         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
37094         stdalign problem reported by Ian Beckwith in
37095         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
37096         * modules/crypto/gc-arcfour (Depends-on):
37097         Depend conditionally on crypto/arcfour.
37098         * modules/crypto/gc-arctwo (Depends-on):
37099         Depend conditionally on crypto/arctwo.
37100         * modules/crypto/gc-des (Depends-on):
37101         Depend conditionally on crypto/des.
37102         * modules/crypto/gc-hmac-md5 (Depends-on):
37103         Depend conditionally on crypto/hmac-md5.
37104         * modules/crypto/gc-hmac-sha1 (Depends-on):
37105         Depend conditionally on crypto/hmac-sha1.
37106         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
37107         * modules/crypto/gc-md4 (Depends-on):
37108         Depend conditionally on crypto/md4.
37109         * modules/crypto/gc-md5 (Depends-on):
37110         Depend conditionally on crypto/md5.
37111         * modules/crypto/gc-rijndael (Depends-on):
37112         Depend conditionally on crypto/rijndael.
37113         * modules/crypto/gc-sha1 (Depends-on):
37114         Depend conditionally on crypto/sha1.
37115         * modules/crypto/gc-arcfour:
37116         * modules/crypto/gc-arctwo:
37117         * modules/crypto/gc-des:
37118         * modules/crypto/gc-hmac-md5:
37119         * modules/crypto/gc-hmac-sha1:
37120         * modules/crypto/gc-md2:
37121         * modules/crypto/gc-md4:
37122         * modules/crypto/gc-md5:
37123         * modules/crypto/gc-rijndael:
37124         * modules/crypto/gc-sha1:
37125         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
37126         now that the conditional dependencies do the work for us.
37128 2011-11-17  Jim Meyering  <meyering@redhat.com>
37130         tests: factor st_ctime-comparison out of two headers
37131         * tests/test-utimens-common.h (ctime_compare): Define.
37132         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
37133         * tests/test-lutimens.h (test_lutimens): Likewise.
37134         * tests/test-utimens.h (test_utimens): Likewise.
37136         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
37137         Invoke the test program via an init.sh-using wrapper.
37138         * tests/test-getcwd.sh: New file.
37139         * modules/getcwd-tests (Files): Add it.
37140         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
37142 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
37144         gitlog-to-changelog: support multi-author commits.
37145         The FSF cares about keeping track of all authors of patches to its
37146         projects, but Git doesn't provide obvious support for multi-author
37147         changesets. Consensus seems to be forming around the use of extra
37148         Signed-off-by inspired lines in the log message formatted as
37149         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
37150         multi-author commits between version control systems.
37151         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
37152         log message and output in standard ChangeLog multi-author format.
37153         Reported by Peter Rosin <peda@lysator.liu.se>
37155 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
37156             Bruno Haible  <bruno@clisp.org>
37158         Fix some modules' file list.
37159         * modules/fstatat (Files): Add m4/lstat.m4.
37160         * modules/openat (Files): Likewise.
37161         * modules/unlinkat (Files): Likewise.
37163 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
37165         maint.mk: fix tight-scope.mk generation in VPATH builds.
37166         * top/maint.mk (tight-scope.mk): Make sure to prefix file
37167         reference with $(srcdir) so that the file is found correctly even
37168         when running `make syntax-check' in a VPATH build.
37170 2011-11-13  Bruno Haible  <bruno@clisp.org>
37171             Jim Meyering  <meyering@redhat.com>
37173         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
37174         * tests/init.sh (compare): Remove "No differences encountered" or
37175         synonymous output from the 'diff' program.
37177 2011-11-13  Bruno Haible  <bruno@clisp.org>
37179         Makefile: Tweak indentation.
37180         * Makefile: Use tab as first character in every line that contains rule
37181         commands.
37183 2011-11-13  Bruno Haible  <bruno@clisp.org>
37185         Syntax check for copyright statements.
37186         * check-copyright: New file.
37187         * Makefile (sc_check_copyright): New rule.
37189 2011-11-13  Simon Josefsson  <simon@josefsson.org>
37191         * build-aux/git-version-gen: Add --prefix to configure the tag
37192         match string.
37194 2011-11-13  Simon Josefsson  <simon@josefsson.org>
37196         * build-aux/git-version-gen: Add --help and --version.
37198 2011-11-12  Jim Meyering  <meyering@redhat.com>
37200         revamp the other test-exclude?.sh scripts to use init.sh, too
37201         * tests/test-exclude1.sh: Use init.sh.
37202         * tests/test-exclude2.sh: Likewise.
37203         * tests/test-exclude3.sh: Likewise.
37204         * tests/test-exclude4.sh: Likewise.
37205         * tests/test-exclude5.sh: Likewise.
37206         * tests/test-exclude6.sh: Likewise.
37207         * tests/test-exclude7.sh: Likewise.
37208         * tests/test-exclude8.sh: Likewise.
37209         * modules/exclude-tests (Files): List init.sh.
37211         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
37212         These shell scripts ignored failure of the binary test-exclude,
37213         so making the latter return 77 didn't cause them to be skipped.
37214         * tests/test-exclude5.sh: Exit with test-exclude's error status
37215         when that program fails.  Revamp to use init.sh.
37216         * tests/test-exclude2.sh: Likewise.
37218         test-exclude: fix a typo
37219         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
37221 2011-11-11  Bruno Haible  <bruno@clisp.org>
37223         obstack: Fix compilation error on MSVC 9.
37224         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
37226 2011-11-11  Jim Meyering  <meyering@redhat.com>
37228         test-exclude: skip tests rather than failing on deficient systems
37229         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
37230         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
37231         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
37232         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
37234 2011-11-10  Bruno Haible  <bruno@clisp.org>
37236         ptsname_r test: Avoid gcc warning on glibc systems.
37237         * tests/test-ptsname_r.c (null_ptr): New function.
37238         (test_errors): Use it.
37240 2011-11-10  Bruno Haible  <bruno@clisp.org>
37242         ptsname_r: Avoid compilation error on OSF/1 5.1.
37243         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
37244         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
37245         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
37246         function is not declared or incompatibly declared.
37247         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
37248         * modules/ptsname_r (Depends-on, configure.ac): Update.
37249         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
37251 2011-11-10  Bruno Haible  <bruno@clisp.org>
37253         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
37254         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
37255         When cross-compiling, guess yes on all platforms except AIX.
37256         Reported by Ludovic Courtès <ludo@gnu.org>.
37258 2011-11-09  Bruno Haible  <bruno@clisp.org>
37260         ptsname_r tests: Fix bugs.
37261         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
37262         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
37264 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
37266         fstatat: work with cross-compilation
37267         Problem reported by Ludovic Courtès in
37268         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
37269         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
37270         "cross-compiling" and assume the bug is present.  Replace
37271         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
37272         an inverted sense, to be more conservative about our assumptions.
37273         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
37275 2011-11-09  Bruno Haible  <bruno@clisp.org>
37277         Improve MODULES.html output.
37278         * modules/mkfifoat (Description): Use the word "function".
37279         * modules/readlinkat (Description): Likewise.
37280         * modules/symlinkat (Description): Likewise.
37282 2011-11-09  Eric Blake  <eblake@redhat.com>
37284         ptsname_r-tests: new test module
37285         * modules/ptsname_r-tests: New module.
37286         * tests/test-ptsname_r.c: New file.
37288         ptsname_r: new module
37289         * modules/ptsname_r: New module.
37290         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
37291         * lib/ptsname.c (__ptsname_r): Split...
37292         * lib/ptsname_r.c: ...into new file.
37293         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
37294         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
37295         * modules/stdlib (Makefile.am): Substitute witnesses.
37296         * lib/stdlib.in.h (ptsname_r): Declare it.
37297         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
37298         * MODULES.html.sh (Misc): Likewise.
37299         * modules/ptsname (Depends-on): Alter dependency.
37300         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
37302 2011-11-09  Jim Meyering  <meyering@redhat.com>
37304         announce-gen: be more concise when there's only one URL+tarball
37305         * build-aux/announce-gen (get_tool_versions): When you distribute
37306         only one type of tarball, combine the first two "Here are..."
37307         sections and make the key-checking grammar independent of
37308         how many tarballs there are.
37310 2011-11-09  Eric Blake  <eblake@redhat.com>
37312         openpty: provide a stub on mingw
37313         * lib/pty.in.h (includes): Provide forward declarations.
37314         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
37316         raise: fix mingw handling of SIGPIPE
37317         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
37319 2011-11-08  Bruno Haible  <bruno@clisp.org>
37321         More conditional dependencies.
37322         * modules/faccessat (Depends-on): Add conditions.
37323         * modules/fchmodat (Depends-on): Likewise.
37324         * modules/fchownat (Depends-on): Likewise.
37325         * modules/fstatat (Depends-on): Likewise.
37326         * modules/mkfifoat (Depends-on): Likewise.
37327         * modules/readlinkat (Depends-on): Likewise.
37328         * modules/symlinkat (Depends-on): Likewise.
37329         * modules/unlinkat (Depends-on): Likewise.
37330         * modules/utimensat (Depends-on): Likewise.
37331         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
37332         * modules/linkat (Depends-on): Refine the conditions.
37333         * modules/renameat (Depends-on): Likewise.
37335 2011-11-08  Bruno Haible  <bruno@clisp.org>
37337         faccessat: Move AC_LIBOBJ invocation to module description.
37338         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
37339         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
37340         invocation from here...
37341         * modules/faccessat (configure.ac): ... to here. Invoke
37342         gl_PREREQ_FACCESSAT.
37344 2011-11-08  Bruno Haible  <bruno@clisp.org>
37346         faccessat: Simplify autoconf macro.
37347         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
37348         gl_FUNC_EUIDACCESS.
37350 2011-11-08  Bruno Haible  <bruno@clisp.org>
37352         renameat: Fix dependencies.
37353         * modules/renameat (Depends-on): Add stdbool.
37355 2011-11-08  Bruno Haible  <bruno@clisp.org>
37357         mkfifoat: Fix module description.
37358         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
37359         not gl_UNISTD_MODULE_INDICATOR.
37361 2011-11-08  Bruno Haible  <bruno@clisp.org>
37363         fstatat: Remove unused dependency.
37364         * modules/fstatat (Depends-on): Remove fstat.
37366 2011-11-08  Simon Josefsson  <simon@josefsson.org>
37368         GNUmakefile: behave when Makefile is missing.
37369         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
37371 2011-11-08  Bruno Haible  <bruno@clisp.org>
37373         openat: Conditionalize dependencies.
37374         * lib/openat.c: Reduce the scope of some #includes.
37375         * modules/openat (Depends-on): Add conditions.
37377 2011-11-07  Jim Meyering  <meyering@redhat.com>
37379         maint.mk: extract GPG key ID without using a temporary file
37380         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
37381         without using a temporary file.  Based on a suggestion from Werner Koch
37382         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
37384 2011-11-07  Eric Blake  <eblake@redhat.com>
37386         grantpt: fix typo
37387         * lib/stdlib.in.h (grantpt): Check correct function.
37389         maint.mk: silence new syntax check
37390         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
37392 2011-11-06  Bruno Haible  <bruno@clisp.org>
37394         Doc about floating-point and math API.
37395         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
37396         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
37398 2011-11-06  Bruno Haible  <bruno@clisp.org>
37400         stdalign tests: Skip the test when compiled by Sun C.
37401         * tests/test-stdalign.c (main): Skip the test on Sun C.
37403 2011-11-06  Bruno Haible  <bruno@clisp.org>
37405         ansi-c++-opt: Complete the 2011-06-05 change.
37406         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
37407         does not support namespaces, set the variable to "no", not to ":".
37409 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
37411         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
37413 2011-11-06  Bruno Haible  <bruno@clisp.org>
37415         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
37416         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
37417         (minus_zerol) [HP-UX]: New macro.
37418         (unary_minus) [HP-UX]: New function.
37419         (copysignl) [HP-UX]: Use unary_minus function.
37421 2011-11-06  Bruno Haible  <bruno@clisp.org>
37423         ldexp, ldexpf, ldexpl: Enhance tests.
37424         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
37425         and tests/test-ldexpl.c.
37426         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
37427         LDEXP, MIN_EXP, MAX_EXP): New macros.
37428         Include test-ldexp.h.
37429         (main): Just call test_function.
37430         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
37431         infinity.h, nan.h.
37432         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
37433         MAX_EXP): New macros.
37434         Include test-ldexp.h.
37435         (x, y): Remove variables.
37436         (main): Just call test_function.
37437         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
37438         infinity.h, nan.h.
37439         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
37440         MAX_EXP): New macros.
37441         Include test-ldexp.h.
37442         (x, y): Remove variables.
37443         (main): Just call test_function.
37444         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
37445         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
37446         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
37447         (Depends-on): Add isnand-nolibm, signbit, float.
37448         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
37449         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
37450         (Depends-on): Add isnanf-nolibm, signbit, float.
37452 2011-11-06  Bruno Haible  <bruno@clisp.org>
37454         math tests: Cosmetics.
37455         * tests/test-math-c++.cc: Reorder declarations.
37457 2011-11-05  Bruno Haible  <bruno@clisp.org>
37459         fma*: Simplify test.
37460         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
37461         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
37463         Tests for module 'fmal'.
37464         * modules/fmal-tests: New file.
37465         * tests/test-fmal1.c: New file.
37466         * tests/test-fmal2.c: New file.
37468         New module 'fmal'.
37469         * lib/math.in.h (fmal): New declaration.
37470         * lib/fmal.c: New file.
37471         * m4/fmal.m4: New file.
37472         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
37473         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
37474         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
37475         REPLACE_FMAL.
37476         * modules/fmal: New file.
37477         * doc/posix-functions/fmal.texi: Mention the new module and the various
37478         bugs.
37480         Tests for module 'fmaf'.
37481         * modules/fmaf-tests: New file.
37482         * tests/test-fmaf1.c: New file.
37483         * tests/test-fmaf2.c: New file.
37485         New module 'fmaf'.
37486         * lib/math.in.h (fmaf): New declaration.
37487         * lib/fmaf.c: New file.
37488         * m4/fmaf.m4: New file.
37489         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
37490         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
37491         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
37492         REPLACE_FMAF.
37493         * modules/fmaf: New file.
37494         * doc/posix-functions/fmaf.texi: Mention the new module and the various
37495         bugs.
37497         Tests for module 'fma'.
37498         * modules/fma-tests: New file.
37499         * tests/test-fma1.c: New file.
37500         * tests/test-fma1.h: New file.
37501         * tests/test-fma2.c: New file.
37502         * tests/test-fma2.h: New file.
37504         New module 'fma'.
37505         * lib/math.in.h (fma): New declaration.
37506         * lib/fma.c: New file.
37507         * m4/fma.m4: New file.
37508         * m4/fegetround.m4: New file.
37509         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
37510         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
37511         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
37512         REPLACE_FMA.
37513         * modules/fma: New file.
37514         * doc/posix-functions/fma.texi: Mention the new module and the various
37515         bugs.
37517         Extend gl_MATHFUNC.
37518         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
37519         Support 'void' as argument type.
37520         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
37522 2011-11-05  Jim Meyering  <meyering@redhat.com>
37524         maint.mk: also prohibit inclusion of dirent.h without use
37525         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
37527 2011-11-05  Bruno Haible  <bruno@clisp.org>
37529         ldexpl tests: Avoid test failure on MSVC 9.
37530         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
37531         value. Needed in order to enforce the conversion from a value greater
37532         than LDBL_MAX to Infinity.
37534 2011-11-05  Bruno Haible  <bruno@clisp.org>
37536         New modules 'at-internal', 'openat-h', split off from module 'openat'.
37537         * modules/at-internal: New file, extracted from modules/openat.
37538         * modules/openat-h: New file.
37539         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
37540         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
37541         * modules/openat (Description): Add reference to POSIX function.
37542         (Files): Remove lib/openat.h, lib/openat-proc.c.
37543         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
37544         intprops, unistd.
37545         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
37546         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
37547         gl_FCNTL_MODULE_INDICATOR.
37548         (Include): Remove unistd.h, openat.h.
37549         * modules/areadlinkat (Files): Add lib/at-func.c.
37550         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
37551         openat-die, openat-h, save-cwd.
37552         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
37553         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
37554         openat-die, openat-h, save-cwd, unistd.
37555         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
37556         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
37557         openat-h, save-cwd. Remove fcntl-h, openat.
37558         * modules/fchmodat (Files): Remove lib/openat.h.
37559         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
37560         openat, stdbool, unistd.
37561         * modules/fchownat (Files): Remove lib/openat.h.
37562         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
37563         openat, stdbool, sys_stat.
37564         * modules/fdopendir (Files): Remove lib/openat-priv.h,
37565         lib/openat-proc.c.
37566         (Depends-on): Add at-internal.
37567         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
37568         * modules/fstatat (Files): Remove lib/openat.h.
37569         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
37570         stdbool, unistd.
37571         * modules/fts (Depends-on): Add openat-h.
37572         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
37573         openat.
37574         * modules/mkdirat (Files): Remove lib/openat.h.
37575         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
37576         openat, stdbool, sys_stat.
37577         * modules/mkfifoat (Files): Add lib/at-func.c.
37578         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
37579         openat-h, save-cwd. Remove fcntl-h, openat.
37580         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
37581         * modules/readlinkat (Files): Add lib/at-func.c.
37582         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
37583         openat-h, save-cwd. Remove fcntl-h, openat.
37584         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
37585         openat.
37586         * modules/selinux-at (Files): Add lib/at-func.c.
37587         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
37588         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
37589         * modules/symlinkat (Files): Add lib/at-func.c.
37590         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
37591         openat-h, save-cwd. Remove fcntl-h, openat.
37592         * modules/unlinkat (Files): Remove lib/openat.h.
37593         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
37594         stdbool.
37595         * modules/utimensat (Files): Add lib/at-func.c.
37596         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
37597         openat-die, openat-h, save-cwd.
37598         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
37599         * modules/fdutimensat-tests (Depends-on): Add openat.
37600         * modules/fstatat-tests (Depends-on): Add openat-h.
37601         * modules/readlinkat-tests (Depends-on): Add openat.
37602         * modules/symlinkat-tests (Depends-on): Add openat.
37604 2011-11-05  Bruno Haible  <bruno@clisp.org>
37606         openat: Include <stdbool.h>.
37607         * lib/openat.c: Include <stdbool.h>.
37609 2011-11-04  Bruno Haible  <bruno@clisp.org>
37611         fchownat, renameat, unlinkat: Fix dependencies.
37612         * modules/fchownat (Depends-on): Add fstatat.
37613         * modules/renameat (Depends-on): Likewise.
37614         * modules/unlinkat (Depends-on): Likewise.
37616 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
37618         openat: remove direct dependency on dirent
37619         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
37620         and hasn't been needed ever since fdopendir was split into its own
37621         module on 2009-08-31.
37622         * modules/openat (Depends-on): Remove dirent.
37624 2011-11-04  Bruno Haible  <bruno@clisp.org>
37626         renameat: Optimize code size.
37627         * modules/renameat (configure.ac): Don't compile at-func2.c if
37628         REPLACE_RENAMEAT is 1.
37630 2011-11-04  Bruno Haible  <bruno@clisp.org>
37632         openat tests: Fix file list.
37633         * modules/openat-tests (Files): Add tests/test-open.h.
37635 2011-11-04  Bruno Haible  <bruno@clisp.org>
37637         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
37638         * modules/fchmodat (Depends-on): Add openat-die.
37639         * modules/fchownat (Depends-on): Likewise.
37640         * modules/linkat (Depends-on): Likewise.
37641         * modules/renameat (Depends-on): Likewise.
37642         * modules/openat (Depends-on): Add dirent.
37644 2011-11-04  Jim Meyering  <meyering@redhat.com>
37646         at-func*.c: fix comments
37647         * lib/at-func2.c: Correct/improve first-line comment.
37648         * lib/at-func.c: Correct grammar in first-line comment.
37650 2011-11-04  Bruno Haible  <bruno@clisp.org>
37652         New module 'mkdirat', split off from module 'openat'.
37653         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
37654         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
37655         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
37656         * modules/mkdirat: New file, extracted from modules/openat.
37657         * modules/openat (Files): Remove lib/mkdirat.c.
37658         (Depends-on): Remove mkdir.
37659         (configure.ac): Remove AC_LIBOBJ of mkdirat.
37660         (Include): Remove <sys/stat.h>.
37661         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
37662         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
37663         tests/test-mkdir.h.
37664         (Depends-on): Remove ignore-value.
37665         (Makefile.am): Remove rules for test-mkdirat.
37666         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
37667         of module 'openat'.
37668         * NEWS: Mention the change.
37670 2011-11-04  Bruno Haible  <bruno@clisp.org>
37672         closedir: Avoid warning on mingw.
37673         * lib/closedir.c: Include <unistd.h>.
37675 2011-11-04  Bruno Haible  <bruno@clisp.org>
37677         New module 'fstatat', split off from module 'openat'.
37678         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
37679         defined.
37680         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
37681         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
37682         gl_FUNC_FSTATAT.
37683         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
37684         * modules/fstatat: New file, extracted from modules/openat.
37685         * modules/openat (Files): Remove lib/fstatat.c.
37686         (Depends-on): Remove lstat.
37687         (configure.ac): Remove AC_LIBOBJ of fstatat.
37688         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
37689         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
37690         tests/test-lstat.h, tests/test-stat.h.
37691         (Depends-on): Remove getcwd-lgpl.
37692         (Makefile.am): Remove rules for test-fstatat.
37693         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
37694         of module 'openat'.
37695         * NEWS: Mention the change.
37696         * modules/getcwd (Depends-on): Add fstatat.
37697         * modules/linkat (Depends-on): Likewise.
37698         * modules/mkfifoat-tests (Depends-on): Likewise.
37699         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
37701 2011-11-03  Bruno Haible  <bruno@clisp.org>
37703         New module 'unlinkat', split off from module 'openat'.
37704         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
37705         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
37706         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
37707         * modules/unlinkat: New file, extracted from modules/openat. Correct
37708         the dependency conditions.
37709         * modules/openat (Files): Remove lib/unlinkat.c.
37710         (Depends-on): Remove rmdir, unlink.
37711         (configure.ac): Remove AC_LIBOBJ of unlinkat.
37712         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
37713         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
37714         tests/test-rmdir.h, tests/test-unlink.h.
37715         (Depends-on): Remove unlinkdir.
37716         (Makefile.am): Remove rules for test-unlinkat.
37717         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
37718         of module 'openat'.
37719         * NEWS: Mention the change.
37720         * modules/linkat-tests (Depends-on): Add unlinkat.
37721         * modules/mkfifoat-tests (Depends-on): Likewise.
37722         * modules/readlinkat-tests (Depends-on): Likewise.
37724 2011-11-02  Bruno Haible  <bruno@clisp.org>
37726         New module 'fchmodat', split off from module 'openat'.
37727         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
37728         defined.
37729         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
37730         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
37731         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
37732         * modules/fchmodat: New file, extracted from modules/openat.
37733         * modules/openat (Files): Remove lib/fchmodat.c.
37734         (configure.ac): Remove AC_LIBOBJ of fchmodat.
37735         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
37736         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
37737         (Makefile.am): Remove rules for test-fchmodat.
37738         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
37739         of module 'openat'.
37740         * NEWS: Mention the change.
37742 2011-11-02  Jim Meyering  <meyering@redhat.com>
37744         putenv: indent #definition of "environ" to placate cppi
37745         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
37747         gitlog-to-changelog: provide a ChangeLog-repair mechanism
37748         Git logs are often treated as immutable, because editing them
37749         changes the SHA1 checksums of all descendants.  Thus, errors in
37750         git logs tend to stay there forever.  However, when we generate
37751         a ChangeLog file -- typically for distribution -- from that git log,
37752         we can actually make corrections in the generated file.  The key
37753         lies in recording in machine-readable/applicable form the desired
37754         corrections.  See --help for description and an example.
37755         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
37756         (usage): Describe it; alphabetize option descriptions.
37757         (main): Honor the new option, carefully.
37759 2011-11-01  Jim Meyering  <meyering@redhat.com>
37761         gitlog-to-changelog: avoid an infloop
37762         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
37763         that ends up being empty.
37765 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
37767         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
37768         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
37769         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
37770         contains (possibly-quoted) backslashes.  This should avoid
37771         all-too-common shell bugs if COMPLICATED contains backslashes in
37772         the "wrong" places.  Reported by David Evans in
37773         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
37774         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
37775         because we want ASCII ranges.  Is there some reason we don't use
37776         the C locale everywhere in this script?
37777         (func_module, top level): Avoid unwanted pathname expansion when
37778         $repo_url_prefix or $repo_url_suffix_repl contain shell
37779         metacharacters like '?' and '*'.
37781 2011-11-01  Bruno Haible  <bruno@clisp.org>
37783         fchownat: Improve description.
37784         * modules/fchownat (Description): Add link to function.
37786 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
37788         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
37789         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
37790         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
37791         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
37793 2011-11-01  Bruno Haible  <bruno@clisp.org>
37795         alignof: Avoid collision with stdalign module.
37796         * lib/alignof.h (alignof): Remove macro.
37797         * NEWS: Mention the change.
37798         Reported by Paul Eggert.
37800 2011-11-01  Bruno Haible  <bruno@clisp.org>
37802         New module 'fchownat', split off from module 'openat'.
37803         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
37804         defined.
37805         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
37806         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
37807         invoke gl_FUNC_FCHOWNAT.
37808         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
37809         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
37810         * modules/fchownat: New file, extracted from modules/openat.
37811         * modules/openat (Files): Remove lib/fchownat.c.
37812         (Depends-on): Remove lchown.
37813         (configure.ac): Remove AC_LIBOBJ of fchownat.
37814         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
37815         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
37816         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
37817         (Depends-on): Remove mgetgroups, usleep, stat-time.
37818         (configure.ac): Remove test for getegid.
37819         (Makefile.am): Remove rules for test-fchownat.
37820         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
37821         of module 'openat'.
37822         * NEWS: Mention the change.
37824 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
37826         stdalign: port better to MSVC and to Sun C 5.11
37827         This fixes some of the problems reported by Bruno Haible in
37828         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
37829         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
37830         shortcomings of MSVC and of Sun C 5.11.
37831         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
37832         around __declspec arg.
37833         * modules/stdalign-tests (Files): Add tests/macros.h.
37834         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
37835         Include macros.h, for ASSERT.
37836         (DECLARE_ALIGNED): Remove.
37837         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
37838         to catch bug), and to 1 if not (simplifies the rest of the code).
37839         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
37840         (CHECK_AUTO): Remove.
37841         (CHECK_ALIGNED): Check only the alignment of the static vars,
37842         since auto var alignment isn't supported by Sun C 5.11.
37843         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
37844         ASSERT failures are easier to diagnose.
37846 2011-10-31  Bruno Haible  <bruno@clisp.org>
37848         doc about some IRIX 5.3 problems.
37849         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
37850         on IRIX 5.3.
37851         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
37852         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
37853         5.3.
37854         * doc/posix-functions/grantpt.texi: Likewise.
37855         * doc/posix-functions/unlockpt.texi: Likewise.
37856         * doc/posix-functions/lgamma.texi: Likewise.
37857         * doc/posix-functions/nextafter.texi: Likewise.
37858         * doc/posix-functions/remainder.texi: Likewise.
37859         * doc/posix-functions/select.texi: Mention misplaced declaration on
37860         IRIX 5.3.
37861         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37863 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
37865         gitlog-to-changelog: fix git-log invocation.
37866         git-log mishandles date strings before 1970-01-01 UTC, and there is
37867         no use to specify --since=1970-01-01 by default anyway.
37868         * build-aux/gitlog-to-changelog: By default, when no --since option
37869         was given, do not specify explicit --since option to git-log.
37871 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
37873         gitlog-to-changelog: new option --append-dot.
37874         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
37875         first non-blank line of each commit message terminated with a dot.
37877 2011-10-30  Bruno Haible  <bruno@clisp.org>
37879         ffsl, ffsll: Avoid compilation error due to 'restrict'.
37880         * lib/ffsl.h: Include <config.h>.
37881         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
37883 2011-10-30  Jim Meyering  <meyering@redhat.com>
37885         GNUmakefile: reenable "make syntax-check" for most projects
37886         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
37887         build-aux variable", "syntax-check" would do nothing but succeed with
37888         the "No version control files detected..." diagnostic (unless you
37889         happened to override _build-aux via cfg.mk).
37890         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
37891         to precede inclusion of maint.mk.  Otherwise, these variables would
37892         be used undefined in any project that does not override the default.
37894 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
37896         gitlog-to-changelog: treat a message with only blank lines as empty.
37897         * build-aux/gitlog-to-changelog: Move the code that removes leading and
37898         trailing blank lines before the code that issues a warning about an
37899         empty commit message.
37901 2011-10-30  Jim Meyering  <meyering@redhat.com>
37903         test-parse-datetime.c: avoid new DST-related false positive test failure
37904         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
37905         based on the time/date we'll convert, not the current time.
37906         Otherwise, the moment we cross a DST boundary like today's in
37907         Europe, (CEST to CET), that offset ends up being one hour off.
37909 2011-10-27  Bruno Haible  <bruno@clisp.org>
37911         fstat: Tweak documentation.
37912         * modules/fstat (Description): More precise description.
37914 2011-10-27  Bruno Haible  <bruno@clisp.org>
37916         Update documentation regarding 'largefile' module.
37917         * doc/posix-functions/fstat.texi: Tweak wording.
37918         * doc/posix-functions/opendir.texi: Mention that the module fixes the
37919         problems with huge directories and/or small ino_t types.
37920         * doc/posix-functions/readdir.texi: Likewise.
37921         * doc/posix-functions/rewinddir.texi: Likewise.
37923 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
37925         maint.mk: don't maintain a second build-aux variable.
37926         * maint.mk (build_aux): Removed.  The maintainer-makefile module
37927         depends on GNUmakefile, which already maintains a cfg.mk
37928         overridable $(_build-aux) for projects with a non-standard
37929         build-aux directory location, although without the $(srcdir)
37930         prefix.  Use that variable consistently instead of introducing a
37931         second one.  Adjust all call sites.
37933 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
37935         Add stdalign module and use it in other modules.
37936         This is based on a previous proposal by Bruno Haible
37937         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
37939         stdalign: new module
37940         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
37941         * modules/stdalign: New files.
37942         * MODULES.html.sh (c1x_core_properties): Add stdalign.
37943         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
37945         stdalign-tests: new module
37946         * modules/stdalign-tests, tests/test-stdalign.c: New files.
37948         argp: use stdalign
37949         * lib/argp-parse.c: Include <stdalign.h>.
37950         (alignof): Remove.
37951         * modules/argp (Depends-on): Add stdalign.
37953         crypto libraries: use stdalign
37954         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
37955         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
37956         Do not include <stdlib.h> twice, in md4.c.
37957         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
37958         because we are accessing a pointer's bit-pattern, not a size.
37959         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
37960         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
37961         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
37962         * modules/crypto/sha512: Likewise.
37964         sys_socket: use stdalign, not alignof
37965         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
37966         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
37968 2011-10-27  Bruno Haible  <bruno@clisp.org>
37970         raise test: Avoid a test failure on Linux/MIPS.
37971         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
37972         because 99 is a valid signal on Linux/MIPS.
37974 2011-10-27  Bruno Haible  <bruno@clisp.org>
37976         nonblocking tests: Fix test failure on Linux/MIPS.
37977         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
37978         Set to 270000.
37980 2011-10-27  Bruno Haible  <bruno@clisp.org>
37982         utimensat: Work around problem on Linux/hppa.
37983         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
37984         values.
37985         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
37987 2011-10-25  Jim Meyering  <meyering@redhat.com>
37989         maint.mk: fix a bug in sc_prohibit_stddef_without_use
37990         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
37991         after symbols like NULL, size_t, etc.
37992         Reported by Alfred M. Szmidt.
37994         maint.mk: exempt ENODATA from a syntax-check rule
37995         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
37996         from the sc_prohibit_always-defined_macros syntax-check rule.
37997         Add a comment.  See this for more details:
37998         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
38000 2011-10-23  Jim Meyering  <meyering@redhat.com>
38002         fts: close parent dir FD before returning from post-traversal fts_read
38003         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
38004         unlink A, even though an FD open on A remained.  This is suboptimal
38005         (holding a file descriptor open longer than needed), but otherwise not
38006         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
38007         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
38008         that represents a real problem: it causes the removal of A to fail
38009         with e.g., "rm: cannot remove `A': Device or resource busy"
38011         fts visits each directory twice and keeps a cache (fts_fd_ring) of
38012         directory file descriptors.  After completing the final, FTS_DP,
38013         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
38014         cache, but then proceeded to add a new FD to it via the subsequent
38015         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
38016         final file descriptor would be closed only via fts_close's call to
38017         fd_ring_clear.  Now, it is usually closed earlier, via the final
38018         FTS_DP-returning fts_read call.
38019         * lib/fts.c (restore_initial_cwd): New function, converted from
38020         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
38021         Update callers.
38022         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
38023         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
38025 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
38026             Bruno Haible  <bruno@clisp.org>
38027             Jim Meyering  <jim@meyering.net>
38029         readme-release: improve safety of release prep instructions.
38030         * README-release: Don't git pull all branches when only master
38031         is needed for the release process.
38032         Run make maintainer-clean before changing trees and merging.
38033         Don't try to run ./configure right after git pull in case files
38034         that influence the bootstrap process have changed, move the
38035         ./configure step to after running ./bootstrap.
38036         Don't bootstrap "one last time"... it's the first time!
38038 2011-10-22  Bruno Haible  <bruno@clisp.org>
38040         errno, strerror-override: Support for MSVC 10.
38041         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
38042         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
38043         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
38044         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
38045         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
38046         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
38047         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
38048         Assign values compatible with MSVC 10.
38049         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
38050         New macros.
38051         (GNULIB_defined_EWINSOCK): New macro.
38052         * lib/strerror-override.c (strerror_override): Update accordingly.
38053         * lib/strerror-override.h: Likewise.
38054         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
38055         longer equal to the corresponding errno value.
38056         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
38058 2011-10-22  Bruno Haible  <bruno@clisp.org>
38060         perror: Recognize when test program crashes.
38061         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
38062         strerror, set gl_cv_func_perror_works to no.
38063         Reported by Daniel Richard G. <skunk@iskunk.org>.
38065         perror: Fix indentation.
38066         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
38068 2011-10-22  Bruno Haible  <bruno@clisp.org>
38070         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
38071         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
38072         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
38073         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
38074         functions, not as a macro.
38075         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
38076         macros.
38077         (isfinite, isinf, isnan, signbit): Check overloaded functions and
38078         absence of macro.
38079         Suggested by Eric Blake.
38080         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
38082 2011-10-21  Bruno Haible  <bruno@clisp.org>
38084         relocatable-prog-wrapper: Don't leave object files behind.
38085         * build-aux/install-reloc: Re-synchronize list of .o files to be
38086         removed with list of compilation units.
38088 2011-10-20  Bruno Haible  <bruno@clisp.org>
38090         openpty, posix_openpt: Remove code duplication.
38091         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
38092         * lib/openpty.c: Include <stdlib.h>.
38093         (openpty): Use posix_openpt on all platforms except IRIX.
38094         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
38096 2011-10-20  Bruno Haible  <bruno@clisp.org>
38098         unlockpt: Detect invalid argument.
38099         * lib/unlockpt.c: Include <fcntl.h>.
38100         (unlockpt): Check whether fd is valid, using fcntl().
38101         * modules/unlockpt (Depends-on): Add fcntl-h.
38103 2011-10-20  Bruno Haible  <bruno@clisp.org>
38105         openpty: Avoid compilation error on AIX 6.1.
38106         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
38108 2011-10-20  Bruno Haible  <bruno@clisp.org>
38110         posix_openpt: Support for OpenBSD.
38111         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
38112         (posix_openpt) [OpenBSD]: New code.
38113         * lib/grantpt.c: Include <fcntl.h>.
38114         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
38115         * modules/grantpt (Depends-on): Add fcntl-h.
38117 2011-10-20  Bruno Haible  <bruno@clisp.org>
38119         posix_openpt test: Coding style.
38120         * tests/test-posix_openpt.c: Use GNU coding style.
38122 2011-10-20  Bruno Haible  <bruno@clisp.org>
38124         grantpt: Support --avoid=pt_chown.
38125         * modules/grantpt (Files): Add lib/pty-private.h.
38127 2011-10-20  Bruno Haible  <bruno@clisp.org>
38129         posix_openpt: Fix autoconf macro.
38130         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
38131         unneeded check for _getpty.
38133 2011-10-20  Bruno Haible  <bruno@clisp.org>
38135         openpty: Update comments.
38136         * lib/openpty.c: Add comments about Minix.
38138 2011-10-19  Eric Blake  <eblake@redhat.com>
38140         openpty: relax license
38141         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
38143         pt_chown: use configmake to simplify build
38144         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
38146         ptsname and others: relax license
38147         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
38148         * modules/unlockpt (License): Likewise.
38149         * modules/pt_chown (License): Likewise.
38150         * modules/ptsname (License): Likewise.
38151         * modules/ttyname_r (License): Likewise.
38153 2011-10-19  Jim Meyering  <meyering@redhat.com>
38155         posix_openpt: remove spurious #endif
38156         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
38158 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
38160         maint.mk: Respect $(build_aux) in web-manual rule.
38161         * top/maint.mk (web-manual): Find gen-announce script in user's
38162         $(build_aux) directory instead of hard-coding 'build-aux'.
38164 2011-10-19  Bruno Haible  <bruno@clisp.org>
38166         posix_openpt: Fix compilation error.
38167         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
38168         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
38169         Mention the openpty module as an alternative.
38171 2011-10-19  Bruno Haible  <bruno@clisp.org>
38173         Support for old NeXTstep 3.3 frexp().
38174         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
38175         execution time of the test to 5 seconds.
38176         Reported by Daniel Richard G. <skunk@iskunk.org>.
38178 2011-10-19  Bruno Haible  <bruno@clisp.org>
38180         Support for old NeXTstep 3.3 sed.
38181         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
38182         part, use /.../, not \|...|. Escape periods in the header file name.
38183         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
38184         Reported by Daniel Richard G. <skunk@iskunk.org>.
38186 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
38188         Support for old NeXTstep 3.3 gcc.
38189         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
38190         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
38191         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
38192         * lib/spawn.in.h (_Restrict_arr_): Likewise.
38193         * lib/regex.h (_Restrict_arr_): Likewise.
38194         * lib/regex_internal.h (re_token_t): Likewise.
38195         * lib/regexec.c (check_node_accept_bytes): Likewise.
38196         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
38198 2011-10-18  Eric Blake  <eblake@redhat.com>
38200         posix_openpt: new module
38201         * modules/posix_openpt: New module.
38202         * m4/posix_openpt.m4: New file.
38203         * lib/posix_openpt.c: Likewise.
38204         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
38205         (gl_STDLIB_H_DEFAULTS): Set defaults.
38206         * modules/stdlib (Makefile.am): Substitute macros.
38207         * lib/stdlib.in.h (posix_openpt): Declare.
38208         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
38209         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
38210         * modules/posix_openpt-tests: New test module.
38211         * tests/test-posix_openpt.c: New test.
38213 2011-10-15  Bruno Haible  <bruno@clisp.org>
38215         xstrtoll: Fix compilation failure.
38216         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
38217         from lib/strtol.c.
38218         * doc/posix-headers/limits.texi: Mention missing numerical limits on
38219         some platforms.
38220         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38222 2011-10-15  Bruno Haible  <bruno@clisp.org>
38224         vasnprintf: Optimize bit search operation.
38225         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
38226         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
38227         gl_DOUBLE_EXPONENT_LOCATION.
38228         * modules/vasnprintf (Files): Add m4/exponentd.m4.
38229         * modules/unistdio/u8-vasnprintf (Files): Likewise.
38230         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
38231         * modules/unistdio/u16-vasnprintf (Files): Likewise.
38232         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
38233         * modules/unistdio/u32-vasnprintf (Files): Likewise.
38234         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
38235         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
38236         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
38238 2011-10-15  Bruno Haible  <bruno@clisp.org>
38240         vasnprintf: Fix comments.
38241         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
38243 2011-10-14  Bruno Haible  <bruno@clisp.org>
38245         Tests for module 'integer_length_ll'.
38246         * modules/integer_length_ll-tests: New file.
38247         * tests/test-integer_length_ll.c: New file.
38249         New module 'integer_length_ll'.
38250         * lib/integer_length_ll.c: New file.
38251         * modules/integer_length_ll: New file.
38253 2011-10-14  Bruno Haible  <bruno@clisp.org>
38255         Tests for module 'integer_length_l'.
38256         * modules/integer_length_l-tests: New file.
38257         * tests/test-integer_length_l.c: New file.
38259         New module 'integer_length_l'.
38260         * lib/integer_length_l.c: New file.
38261         * modules/integer_length_l: New file.
38263 2011-10-14  Bruno Haible  <bruno@clisp.org>
38265         Tests for module 'integer_length'.
38266         * modules/integer_length-tests: New file.
38267         * tests/test-integer_length.c: New file.
38269         New module 'integer_length'.
38270         * lib/integer_length.h: New file.
38271         * lib/integer_length.c: New file.
38272         * modules/integer_length: New file.
38274 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
38276         popen: Fix dependency conditions.
38277         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
38279 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
38281         perror: Fix autoconf test.
38282         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
38283         <stdlib.h> and <string.h>.
38285 2011-10-14  Bruno Haible  <bruno@clisp.org>
38287         ffsl: Optimize on 64-bit platforms.
38288         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
38289         unrolling.
38291 2011-10-13  Bruno Haible  <bruno@clisp.org>
38293         ffsl: Optimize on 32-bit platforms.
38294         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
38295         use ffs() without a loop.
38297         ffsl, ffsll: Optimize for GCC.
38298         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
38299         * lib/ffsl.c (GCC_BUILTIN): New macro.
38300         * lib/ffsll.c (GCC_BUILTIN): Likewise.
38302 2011-10-13  Bruno Haible  <bruno@clisp.org>
38304         ffs, bcopy, memset: Support symbol renaming via config.h.
38305         * lib/ffs.c: Include <config.h>.
38306         * lib/bcopy.c: Likewise.
38307         * lib/memset.c: Likewise.
38309 2011-10-10  Bruno Haible  <bruno@clisp.org>
38311         atanl: Simplify for platforms where 'long double' == 'double'.
38312         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
38313         alternative implementation.
38314         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38315         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38316         * modules/atanl (Depends-on): Add atan. Update conditions.
38318 2011-10-10  Bruno Haible  <bruno@clisp.org>
38320         acosl: Simplify for platforms where 'long double' == 'double'.
38321         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
38322         alternative implementation.
38323         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38324         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38325         * modules/acosl (Depends-on): Add acos. Update conditions.
38327 2011-10-10  Bruno Haible  <bruno@clisp.org>
38329         asinl: Simplify for platforms where 'long double' == 'double'.
38330         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
38331         alternative implementation.
38332         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38333         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38334         * modules/asinl (Depends-on): Add asin. Update conditions.
38336 2011-10-10  Bruno Haible  <bruno@clisp.org>
38338         tanl: Simplify for platforms where 'long double' == 'double'.
38339         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
38340         implementation.
38341         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38342         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38343         * modules/tanl (Depends-on): Add tan. Update conditions.
38344         (configure.ac): Don't compile trigl.c if
38345         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38347 2011-10-10  Bruno Haible  <bruno@clisp.org>
38349         cosl: Simplify for platforms where 'long double' == 'double'.
38350         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
38351         implementation.
38352         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38353         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38354         * modules/cosl (Depends-on): Add cos. Update conditions.
38355         (configure.ac): Don't compile sincosl.c and trigl.c if
38356         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38358 2011-10-10  Bruno Haible  <bruno@clisp.org>
38360         sinl: Simplify for platforms where 'long double' == 'double'.
38361         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
38362         implementation.
38363         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38364         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38365         * modules/sinl (Depends-on): Add sin. Update conditions.
38366         (configure.ac): Don't compile sincosl.c and trigl.c if
38367         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38369 2011-10-10  Bruno Haible  <bruno@clisp.org>
38371         logl: Simplify for platforms where 'long double' == 'double'.
38372         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
38373         implementation.
38374         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38375         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38376         * modules/logl (Depends-on): Add log. Update conditions.
38378 2011-10-10  Bruno Haible  <bruno@clisp.org>
38380         expl: Simplify for platforms where 'long double' == 'double'.
38381         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
38382         implementation.
38383         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38384         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38385         * modules/expl (Depends-on): Add exp. Update conditions.
38387 2011-10-10  Bruno Haible  <bruno@clisp.org>
38389         sqrtl: Simplify for platforms where 'long double' == 'double'.
38390         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
38391         alternative implementation.
38392         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38393         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38394         * modules/sqrtl (Depends-on): Update conditions.
38396 2011-10-10  Bruno Haible  <bruno@clisp.org>
38398         ldexpl: Simplify for platforms where 'long double' == 'double'.
38399         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
38400         alternative implementation.
38401         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38402         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38403         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
38405 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
38407         ffsll: set correct witness
38408         * modules/ffsll (configure.ac): Fix typo.
38410 2011-10-10  Bruno Haible  <bruno@clisp.org>
38412         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
38413         * lib/printf-frexpl.c: Include <config.h>.
38414         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
38415         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
38416         second time.
38417         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
38418         gl_LONG_DOUBLE_VS_DOUBLE.
38419         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
38420         conditions.
38422 2011-10-10  Bruno Haible  <bruno@clisp.org>
38424         frexpl: Simplify for platforms where 'long double' == 'double'.
38425         * lib/frexpl.c: Include <config.h>.
38426         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
38427         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
38428         time.
38429         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38430         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38431         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
38432         * modules/frexpl (Depends-on): Add frexp. Update conditions.
38433         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
38434         conditions.
38436 2011-10-10  Jim Meyering  <meyering@redhat.com>
38438         test-renameat: don't leave behind a temporary file
38439         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
38440           ERROR: files left in build directory after distclean:
38441           ./gltests/test-renameat.too
38442           make[1]: *** [distcleancheck] Error 1
38443         Reported by Tom G. Christensen.
38445 2011-10-09  Bruno Haible  <bruno@clisp.org>
38447         rint: Determine RINT_LIBM correctly on AIX 7.
38448         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
38449         directly, not only through a function pointer. Also accept an optional
38450         4th argument with extra code.
38451         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
38452         rintf() call by gcc when optimizing.
38454         mathfunc.m4: Refactor.
38455         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
38456         m4 variable.
38458 2011-10-09  Bruno Haible  <bruno@clisp.org>
38460         rintl: Simplify for platforms where 'long double' == 'double'.
38461         * lib/rintl.c: Include <config.h>.
38462         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
38463         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
38464         time.
38465         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38466         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38467         * modules/rintl (Depends-on): Add rint. Update conditions.
38469 2011-10-09  Bruno Haible  <bruno@clisp.org>
38471         roundl: Simplify for platforms where 'long double' == 'double'.
38472         * lib/roundl.c: Include <config.h>.
38473         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
38474         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
38475         time.
38476         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38477         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38478         * modules/roundl (Depends-on): Add round. Update conditions.
38480 2011-10-09  Bruno Haible  <bruno@clisp.org>
38482         truncl: Simplify for platforms where 'long double' == 'double'.
38483         * lib/truncl.c: Include <config.h>.
38484         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
38485         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
38486         time.
38487         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38488         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38489         * modules/truncl (Depends-on): Add trunc. Update conditions.
38491 2011-10-09  Bruno Haible  <bruno@clisp.org>
38493         ceill: Simplify for platforms where 'long double' == 'double'.
38494         * lib/ceill.c: Include <config.h>.
38495         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
38496         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
38497         time.
38498         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38499         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38500         * modules/ceill (Depends-on): Add ceil. Update conditions.
38502 2011-10-09  Bruno Haible  <bruno@clisp.org>
38504         floorl: Simplify for platforms where 'long double' == 'double'.
38505         * lib/floorl.c: Include <config.h>.
38506         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
38507         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
38508         time.
38509         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38510         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38511         * modules/floorl (Depends-on): Add floor. Update conditions.
38513 2011-10-09  Bruno Haible  <bruno@clisp.org>
38515         rint: Fix ordering constraints.
38516         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
38517         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
38518         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
38520 2011-10-09  Bruno Haible  <bruno@clisp.org>
38522         copysignl: Simplify for platforms where 'long double' == 'double'.
38523         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
38524         alternative.
38525         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38526         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38527         * modules/copysignl (Depends-on): Add copysign. Update conditions.
38529 2011-10-09  Bruno Haible  <bruno@clisp.org>
38531         Tests for module 'rintl'.
38532         * modules/rintl-tests: New file.
38533         * tests/test-rintl.c: New file.
38535         New module 'rintl'.
38536         * lib/math.in.h (rintl): New declaration.
38537         * lib/rintl.c: New file.
38538         * m4/rintl.m4: New file.
38539         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
38540         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
38541         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
38542         * modules/rintl: New file.
38543         * tests/test-math-c++.cc: Check the declaration of rintl.
38544         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
38545         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
38546         * doc/posix-functions/rintl.texi: Mention the new module.
38548 2011-10-09  Bruno Haible  <bruno@clisp.org>
38550         Tests for module 'rintf'.
38551         * modules/rintf-tests: New file.
38552         * tests/test-rintf.c: New file.
38554         New module 'rintf'.
38555         * lib/math.in.h (rintf): New declaration.
38556         * lib/rintf.c: New file.
38557         * m4/rintf.m4: New file.
38558         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
38559         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
38560         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
38561         * modules/rintf: New file.
38562         * tests/test-math-c++.cc: Check the declaration of rintf.
38563         * doc/posix-functions/rintf.texi: Mention the new module.
38565 2011-10-09  Bruno Haible  <bruno@clisp.org>
38567         rint: Support for MSVC.
38568         * lib/math.in.h (rint): New declaration.
38569         * lib/rint.c: New file.
38570         * m4/rint.m4: New file.
38571         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
38572         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
38573         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
38574         * modules/rint (Description): Fix.
38575         (Files): Add lib/rint.c, m4/rint.m4.
38576         (Depends-on): Add math.
38577         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
38578         gl_MATH_MODULE_INDICATOR.
38579         * tests/test-math-c++.cc: Check the declaration of rint.
38580         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
38581         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
38582         * doc/posix-functions/rint.texi: Mention the replacement provided by
38583         the module.
38585         rint tests: More tests.
38586         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
38587         minus-zero.h, infinity.h, nan.h.
38588         (main): Skip the test if the current rounding mode is not standard. Add
38589         tests for negative numbers, minus zero, infinity, NaN.
38590         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
38591         tests/nan.h.
38592         (Depends-on): Add isnand-nolibm.
38594 2011-10-09  Bruno Haible  <bruno@clisp.org>
38596         Tests for module 'copysignl'.
38597         * modules/copysignl-tests: New file.
38598         * tests/test-copysignl.c: New file.
38600         New module 'copysignl'.
38601         * lib/math.in.h (copysignl): New declaration.
38602         * lib/copysignl.c: New file.
38603         * m4/copysignl.m4: New file.
38604         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
38605         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
38606         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
38607         HAVE_COPYSIGNL.
38608         * modules/copysignl: New file.
38609         * tests/test-math-c++.cc: Check the declaration of copysignl.
38610         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
38611         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
38612         * doc/posix-functions/copysignl.texi: Mention the new module.
38614 2011-10-09  Bruno Haible  <bruno@clisp.org>
38616         Tests for module 'copysignf'.
38617         * modules/copysignf-tests: New file.
38618         * tests/test-copysignf.c: New file.
38620         New module 'copysignf'.
38621         * lib/math.in.h (copysignf): New declaration.
38622         * lib/copysignf.c: New file.
38623         * m4/copysignf.m4: New file.
38624         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
38625         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
38626         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
38627         HAVE_COPYSIGNF.
38628         * modules/copysignf: New file.
38629         * tests/test-math-c++.cc: Check the declaration of copysignf.
38630         * doc/posix-functions/copysignf.texi: Mention the new module.
38632 2011-10-09  Bruno Haible  <bruno@clisp.org>
38634         Ensure that HAVE_* variables are set to 1 before they are set to 0.
38635         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
38636         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
38637         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
38638         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
38639         gl_SIGNAL_H_DEFAULTS.
38641 2011-10-09  Bruno Haible  <bruno@clisp.org>
38643         poll: Make macro safer.
38644         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
38645         ac_cv_header_poll_h is not set.
38647 2011-10-09  Bruno Haible  <bruno@clisp.org>
38649         copysign: Provide replacement.
38650         * lib/math.in.h (copysign): New declaration.
38651         * lib/copysign.c: New file.
38652         * m4/copysign.m4: New file.
38653         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
38654         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
38655         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
38656         HAVE_COPYSIGN.
38657         * modules/copysign (Description): Clarify.
38658         (Files): Add lib/copysign.c, m4/copysign.m4.
38659         (Depends-on): Add math, signbit.
38660         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
38661         gl_MATH_MODULE_INDICATOR.
38662         * tests/test-math-c++.cc: Check the declaration of copysign.
38663         * doc/posix-functions/copysign.texi: Mention the effects of the module
38664         on Minix and MSVC.
38666 2011-10-09  Bruno Haible  <bruno@clisp.org>
38668         isinf: Ensure macro on AIX 5.1.
38669         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
38670         macro.
38671         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
38673 2011-10-09  Bruno Haible  <bruno@clisp.org>
38675         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
38676         * modules/snprintf-posix-tests (configure.ac): Require
38677         gl_LONG_DOUBLE_VS_DOUBLE.
38678         * modules/sprintf-posix-tests (configure.ac): Likewise.
38679         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
38680         * modules/vasprintf-posix-tests (configure.ac): Likewise.
38681         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
38682         * modules/vsprintf-posix-tests (configure.ac): Likewise.
38683         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
38684         tests on platforms where 'long double' is the same as 'double'.
38685         * tests/test-sprintf-posix.h (test_function): Likewise.
38686         * tests/test-vasnprintf-posix.c (test_function): Likewise.
38687         * tests/test-vasprintf-posix.c (test_function): Likewise.
38689         *printf: Fix for platforms where 'long double' == 'double'.
38690         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
38691         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
38692         * modules/dprintf-posix (Files): Add m4/math_h.m4.
38693         * modules/fprintf-posix (Files): Likewise.
38694         * modules/obstack-printf-posix (Files): Likewise.
38695         * modules/snprintf-posix (Files): Likewise.
38696         * modules/sprintf-posix (Files): Likewise.
38697         * modules/vasnprintf (Files): Likewise.
38698         * modules/vasnprintf-posix (Files): Likewise.
38699         * modules/vasprintf-posix (Files): Likewise.
38700         * modules/vdprintf-posix (Files): Likewise.
38701         * modules/vfprintf-posix (Files): Likewise.
38702         * modules/vsnprintf-posix (Files): Likewise.
38703         * modules/vsprintf-posix (Files): Likewise.
38704         * modules/unistdio/u8-vasnprintf (Files): Likewise.
38705         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
38706         * modules/unistdio/u16-vasnprintf (Files): Likewise.
38707         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
38708         * modules/unistdio/u32-vasnprintf (Files): Likewise.
38709         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
38710         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
38712         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
38713         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
38714         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38715         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
38716         'long double'.
38717         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
38719         isinf: Fix for platforms where 'long double' == 'double'.
38720         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
38721         Don't blindly assume 80-bit 'long double'.
38723         isfinite: Fix for platforms where 'long double' == 'double'.
38724         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
38725         Don't blindly assume 80-bit 'long double'.
38727         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
38728         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
38729         * modules/isfinite-tests (configure.ac): Require
38730         gl_LONG_DOUBLE_VS_DOUBLE.
38731         * modules/isinf-tests (configure.ac): Likewise.
38732         * modules/isnan-tests (configure.ac): Likewise.
38733         * modules/isnanl-tests (configure.ac): Likewise.
38734         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
38735         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
38736         tests on platforms where 'long double' is the same as 'double'.
38737         * tests/test-isinf.c (test_isinfl): Likewise.
38738         * tests/test-isnan.c (test_long_double): Likewise.
38739         * tests/test-isnanl.h (main): Likewise.
38741 2011-10-08  Bruno Haible  <bruno@clisp.org>
38743         Tests for module 'tanhf'.
38744         * modules/tanhf-tests: New file.
38745         * tests/test-tanhf.c: New file.
38747         New module 'tanhf'.
38748         * lib/math.in.h (tanhf): New declaration.
38749         * lib/tanhf.c: New file.
38750         * m4/tanhf.m4: New file.
38751         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
38752         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
38753         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
38754         * modules/tanhf: New file.
38755         * tests/test-math-c++.cc: Check the declaration of tanhf.
38756         * doc/posix-functions/tanhf.texi: Mention the new module.
38758         tanh: Use a .m4 file.
38759         * m4/tanh.m4: New file.
38760         * modules/tanh (Files): Add it.
38761         (configure.ac): Just invoke gl_FUNC_TANH.
38763 2011-10-08  Bruno Haible  <bruno@clisp.org>
38765         Tests for module 'coshf'.
38766         * modules/coshf-tests: New file.
38767         * tests/test-coshf.c: New file.
38769         New module 'coshf'.
38770         * lib/math.in.h (coshf): New declaration.
38771         * lib/coshf.c: New file.
38772         * m4/coshf.m4: New file.
38773         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
38774         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
38775         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
38776         * modules/coshf: New file.
38777         * tests/test-math-c++.cc: Check the declaration of coshf.
38778         * doc/posix-functions/coshf.texi: Mention the new module.
38780         cosh: Use a .m4 file.
38781         * m4/cosh.m4: New file.
38782         * modules/cosh (Files): Add it.
38783         (configure.ac): Just invoke gl_FUNC_COSH.
38785 2011-10-08  Bruno Haible  <bruno@clisp.org>
38787         Tests for module 'sinhf'.
38788         * modules/sinhf-tests: New file.
38789         * tests/test-sinhf.c: New file.
38791         New module 'sinhf'.
38792         * lib/math.in.h (sinhf): New declaration.
38793         * lib/sinhf.c: New file.
38794         * m4/sinhf.m4: New file.
38795         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
38796         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
38797         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
38798         * modules/sinhf: New file.
38799         * tests/test-math-c++.cc: Check the declaration of sinhf.
38800         * doc/posix-functions/sinhf.texi: Mention the new module.
38802         sinh: Use a .m4 file.
38803         * m4/sinh.m4: New file.
38804         * modules/sinh (Files): Add it.
38805         (configure.ac): Just invoke gl_FUNC_SINH.
38807 2011-10-08  Bruno Haible  <bruno@clisp.org>
38809         Tests for module 'atan2f'.
38810         * modules/atan2f-tests: New file.
38811         * tests/test-atan2f.c: New file.
38813         New module 'atan2f'.
38814         * lib/math.in.h (atan2f): New declaration.
38815         * lib/atan2f.c: New file.
38816         * m4/atan2f.m4: New file.
38817         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
38818         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
38819         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
38820         * modules/atan2f: New file.
38821         * tests/test-math-c++.cc: Check the declaration of atan2f.
38822         * doc/posix-functions/atan2f.texi: Mention the new module.
38824         atan2: Use a .m4 file.
38825         * m4/atan2.m4: New file.
38826         * modules/atan2 (Files): Add it.
38827         (configure.ac): Just invoke gl_FUNC_ATAN2.
38829 2011-10-08  Bruno Haible  <bruno@clisp.org>
38831         Tests for module 'atanf'.
38832         * modules/atanf-tests: New file.
38833         * tests/test-atanf.c: New file.
38835         New module 'atanf'.
38836         * lib/math.in.h (atanf): New declaration.
38837         * lib/atanf.c: New file.
38838         * m4/atanf.m4: New file.
38839         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
38840         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
38841         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
38842         * modules/atanf: New file.
38843         * tests/test-math-c++.cc: Check the declaration of atanf.
38844         * doc/posix-functions/atanf.texi: Mention the new module.
38846         atan: Use a .m4 file.
38847         * m4/atan.m4: New file.
38848         * modules/atan (Files): Add it.
38849         (configure.ac): Just invoke gl_FUNC_ATAN.
38851 2011-10-08  Bruno Haible  <bruno@clisp.org>
38853         Tests for module 'acosf'.
38854         * modules/acosf-tests: New file.
38855         * tests/test-acosf.c: New file.
38857         New module 'acosf'.
38858         * lib/math.in.h (acosf): New declaration.
38859         * lib/acosf.c: New file.
38860         * m4/acosf.m4: New file.
38861         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
38862         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
38863         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
38864         * modules/acosf: New file.
38865         * tests/test-math-c++.cc: Check the declaration of acosf.
38866         * doc/posix-functions/acosf.texi: Mention the new module.
38868         acos: Use a .m4 file.
38869         * m4/acos.m4: New file.
38870         * modules/acos (Files): Add it.
38871         (configure.ac): Just invoke gl_FUNC_ACOS.
38873 2011-10-08  Bruno Haible  <bruno@clisp.org>
38875         Tests for module 'asinf'.
38876         * modules/asinf-tests: New file.
38877         * tests/test-asinf.c: New file.
38879         New module 'asinf'.
38880         * lib/math.in.h (asinf): New declaration.
38881         * lib/asinf.c: New file.
38882         * m4/asinf.m4: New file.
38883         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
38884         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
38885         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
38886         * modules/asinf: New file.
38887         * tests/test-math-c++.cc: Check the declaration of asinf.
38888         * doc/posix-functions/asinf.texi: Mention the new module.
38890         asin: Use a .m4 file.
38891         * m4/asin.m4: New file.
38892         * modules/asin (Files): Add it.
38893         (configure.ac): Just invoke gl_FUNC_ASIN.
38895 2011-10-08  Bruno Haible  <bruno@clisp.org>
38897         Tests for module 'tanf'.
38898         * modules/tanf-tests: New file.
38899         * tests/test-tanf.c: New file.
38901         New module 'tanf'.
38902         * lib/math.in.h (tanf): New declaration.
38903         * lib/tanf.c: New file.
38904         * m4/tanf.m4: New file.
38905         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
38906         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
38907         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
38908         * modules/tanf: New file.
38909         * tests/test-math-c++.cc: Check the declaration of tanf.
38910         * doc/posix-functions/tanf.texi: Mention the new module.
38912         tan: Use a .m4 file.
38913         * m4/tan.m4: New file.
38914         * modules/tan (Files): Add it.
38915         (configure.ac): Just invoke gl_FUNC_TAN.
38917 2011-10-08  Bruno Haible  <bruno@clisp.org>
38919         Tests for module 'cosf'.
38920         * modules/cosf-tests: New file.
38921         * tests/test-cosf.c: New file.
38923         New module 'cosf'.
38924         * lib/math.in.h (cosf): New declaration.
38925         * lib/cosf.c: New file.
38926         * m4/cosf.m4: New file.
38927         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
38928         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
38929         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
38930         * modules/cosf: New file.
38931         * tests/test-math-c++.cc: Check the declaration of cosf.
38932         * doc/posix-functions/cosf.texi: Mention the new module.
38934         cos: Use a .m4 file.
38935         * m4/cos.m4: New file.
38936         * modules/cos (Files): Add it.
38937         (configure.ac): Just invoke gl_FUNC_COS.
38939 2011-10-08  Bruno Haible  <bruno@clisp.org>
38941         Tests for module 'sinf'.
38942         * modules/sinf-tests: New file.
38943         * tests/test-sinf.c: New file.
38945         New module 'sinf'.
38946         * lib/math.in.h (sinf): New declaration.
38947         * lib/sinf.c: New file.
38948         * m4/sinf.m4: New file.
38949         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
38950         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
38951         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
38952         * modules/sinf: New file.
38953         * tests/test-math-c++.cc: Check the declaration of sinf.
38954         * doc/posix-functions/sinf.texi: Mention the new module.
38956         sin: Use a .m4 file.
38957         * m4/sin.m4: New file.
38958         * modules/sin (Files): Add it.
38959         (configure.ac): Just invoke gl_FUNC_SIN.
38961 2011-10-08  Bruno Haible  <bruno@clisp.org>
38963         Tests for module 'powf'.
38964         * modules/powf-tests: New file.
38965         * tests/test-powf.c: New file.
38967         New module 'powf'.
38968         * lib/math.in.h (powf): New declaration.
38969         * lib/powf.c: New file.
38970         * m4/powf.m4: New file.
38971         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
38972         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
38973         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
38974         * modules/powf: New file.
38975         * tests/test-math-c++.cc: Check the declaration of powf.
38976         * doc/posix-functions/powf.texi: Mention the new module.
38978         pow: Use a .m4 file.
38979         * m4/pow.m4: New file.
38980         * modules/pow (Files): Add it.
38981         (configure.ac): Just invoke gl_FUNC_POW.
38983 2011-10-08  Bruno Haible  <bruno@clisp.org>
38985         Tests for module 'log10f'.
38986         * modules/log10f-tests: New file.
38987         * tests/test-log10f.c: New file.
38989         New module 'log10f'.
38990         * lib/math.in.h (log10f): New declaration.
38991         * lib/log10f.c: New file.
38992         * m4/log10f.m4: New file.
38993         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
38994         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
38995         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
38996         * modules/log10f: New file.
38997         * tests/test-math-c++.cc: Check the declaration of log10f.
38998         * doc/posix-functions/log10f.texi: Mention the new module.
39000         log10: Use a .m4 file.
39001         * m4/log10.m4: New file.
39002         * modules/log10 (Files): Add it.
39003         (configure.ac): Just invoke gl_FUNC_LOG10.
39005 2011-10-08  Bruno Haible  <bruno@clisp.org>
39007         Tests for module 'logf'.
39008         * modules/logf-tests: New file.
39009         * tests/test-logf.c: New file.
39011         New module 'logf'.
39012         * lib/math.in.h (logf): New declaration.
39013         * lib/logf.c: New file.
39014         * m4/logf.m4: New file.
39015         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
39016         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
39017         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
39018         * modules/logf: New file.
39019         * tests/test-math-c++.cc: Check the declaration of logf.
39020         * doc/posix-functions/logf.texi: Mention the new module.
39022         log: Use a .m4 file.
39023         * m4/log.m4: New file.
39024         * modules/log (Files): Add it.
39025         (configure.ac): Just invoke gl_FUNC_LOG.
39027 2011-10-08  Bruno Haible  <bruno@clisp.org>
39029         Tests for module 'expf'.
39030         * modules/expf-tests: New file.
39031         * tests/test-expf.c: New file.
39033         New module 'expf'.
39034         * lib/math.in.h (expf): New declaration.
39035         * lib/expf.c: New file.
39036         * m4/expf.m4: New file.
39037         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
39038         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
39039         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
39040         * modules/expf: New file.
39041         * tests/test-math-c++.cc: Check the declaration of expf.
39042         * doc/posix-functions/expf.texi: Mention the new module.
39044         exp: Use a .m4 file.
39045         * m4/exp.m4: New file.
39046         * modules/exp (Files): Add it.
39047         (configure.ac): Just invoke gl_FUNC_EXP.
39049 2011-10-08  Bruno Haible  <bruno@clisp.org>
39051         Tests for module 'sqrtf'.
39052         * modules/sqrtf-tests: New file.
39053         * tests/test-sqrtf.c: New file.
39055         New module 'sqrtf'.
39056         * lib/math.in.h (sqrtf): New declaration.
39057         * lib/sqrtf.c: New file.
39058         * m4/sqrtf.m4: New file.
39059         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
39060         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
39061         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
39062         * modules/sqrtf: New file.
39063         * tests/test-math-c++.cc: Check the declaration of sqrtf.
39064         * doc/posix-functions/sqrtf.texi: Mention the new module.
39066 2011-10-08  Bruno Haible  <bruno@clisp.org>
39068         Tests: Avoid link failures w.r.t. libintl.
39069         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
39070         $(LIBINTL).
39071         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
39072         $(LIBINTL).
39073         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
39074         against $(LIBINTL).
39075         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
39076         $(LIBINTL).
39077         * modules/openat-tests (Makefile.am): Link test-fchmodat against
39078         $(LIBINTL).
39079         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
39081 2011-10-08  Bruno Haible  <bruno@clisp.org>
39083         pow tests: Defeat compiler optimizations.
39084         * tests/test-pow.c (main): Assign arguments to x and y before use.
39086 2011-10-08  Bruno Haible  <bruno@clisp.org>
39088         gnulib-tool: Improve last commit.
39089         * gnulib-tool (func_modules_transitive_closure): Simplify code.
39090         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
39091         ignore dependencies that are not among the modules list.
39093 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
39095         gnulib-tool: don't follow dependencies to avoided modules
39096         This fixes a bug that is related to the previous one.
39097         * gnulib-tool (func_modules_transitive_closure)
39098         (func_emit_autoconf_snippets):
39099         Check whether a dependency is acceptable before using it.
39100         (--extract-dependencies): Report an error if --avoid is also used,
39101         since this combination of options is not yet supported.
39103         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
39104         Problem reported by Peter Dyballa in
39105         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
39106         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
39107         when echoing "$condition".
39109 2011-10-07  Bruno Haible  <bruno@clisp.org>
39111         Fix documentation about math functions on MacOS X.
39112         * doc/posix-functions/exp2.texi: Don't say the function is missing on
39113         MacOS X 10.5.
39114         * doc/posix-functions/fdim.texi: Likewise.
39115         * doc/posix-functions/feclearexcept.texi: Likewise.
39116         * doc/posix-functions/fegetenv.texi: Likewise.
39117         * doc/posix-functions/fegetround.texi: Likewise.
39118         * doc/posix-functions/feholdexcept.texi: Likewise.
39119         * doc/posix-functions/feraiseexcept.texi: Likewise.
39120         * doc/posix-functions/fesetenv.texi: Likewise.
39121         * doc/posix-functions/fesetround.texi: Likewise.
39122         * doc/posix-functions/fetestexcept.texi: Likewise.
39123         * doc/posix-functions/feupdateenv.texi: Likewise.
39124         * doc/posix-functions/fmax.texi: Likewise.
39125         * doc/posix-functions/fmin.texi: Likewise.
39126         * doc/posix-functions/log2.texi: Likewise.
39127         * doc/posix-functions/modff.texi: Likewise.
39128         * doc/posix-functions/nan.texi: Likewise.
39129         * doc/posix-functions/nanf.texi: Likewise.
39130         * doc/posix-functions/nextafterf.texi: Likewise.
39131         * doc/posix-functions/remquo.texi: Likewise.
39133 2011-10-07  Bruno Haible  <bruno@clisp.org>
39135         modff: Drop assumption about library that defines modff.
39136         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
39137         AC_CHECK_FUNCS.
39138         * modules/modff (Files): Add m4/mathfunc.m4.
39140 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
39142         raise tests: Avoid a GCC warning.
39143         * tests/test-raise.c (handler): Use _Noreturn.
39145 2011-10-07  Bruno Haible  <bruno@clisp.org>
39147         Tests for module 'ldexpf'.
39148         * modules/ldexpf-tests: New file.
39149         * tests/test-ldexpf.c: New file.
39151         New module 'ldexpf'.
39152         * lib/math.in.h (ldexpf): New declaration.
39153         * lib/ldexpf.c: New file.
39154         * m4/ldexpf.m4: New file.
39155         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
39156         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
39157         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
39158         * modules/ldexpf: New file.
39159         * tests/test-math-c++.cc: Check the declaration of ldexpf.
39160         * doc/posix-functions/ldexpf.texi: Mention the new module.
39162 2011-10-06  Bruno Haible  <bruno@clisp.org>
39164         frexpf: Work around problems on IRIX and mingw.
39165         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
39166         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
39167         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
39168         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
39169         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
39170         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
39171         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
39173 2011-10-06  Bruno Haible  <bruno@clisp.org>
39175         fabsf: Drop assumption about library that defines fabsf.
39176         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
39177         AC_CHECK_FUNCS.
39178         * modules/fabsf (Files): Add m4/mathfunc.m4.
39180 2011-10-06  Bruno Haible  <bruno@clisp.org>
39182         frexpf: Drop assumption about library that defines frexpf.
39183         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
39184         'int *', 'float *', 'long double *', 'float', 'long double'.
39185         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
39186         AC_CHECK_FUNCS.
39187         * modules/frexpf (Files): Add m4/mathfunc.m4.
39189         Tests for module 'frexpf'.
39190         * modules/frexpf-tests: New file.
39191         * tests/test-frexpf.c: New file.
39193         New module 'frexpf'.
39194         * lib/math.in.h (frexpf): New declaration.
39195         * lib/frexpf.c: New file.
39196         * m4/frexpf.m4: New file.
39197         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
39198         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
39199         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
39200         * modules/frexpf: New file.
39201         * tests/test-math-c++.cc: Check the declaration of frexpf.
39202         * doc/posix-functions/frexpf.texi: Mention the new module.
39204 2011-10-06  Bruno Haible  <bruno@clisp.org>
39206         math: Sort function declarations of math.in.h.
39207         * lib/math.in.h (frexp, logb): Move declarations.
39209 2011-10-05  Bruno Haible  <bruno@clisp.org>
39211         Tests for module 'modff'.
39212         * modules/modff-tests: New file.
39213         * tests/test-modff.c: New file.
39215         New module 'modff'.
39216         * lib/math.in.h (modff): New declaration.
39217         * lib/modff.c: New file.
39218         * m4/modff.m4: New file.
39219         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
39220         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
39221         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
39222         * modules/modff: New file.
39223         * tests/test-math-c++.cc: Check the declaration of modff.
39224         * doc/posix-functions/modff.texi: Mention the new module.
39226         modf tests: Make test sharper.
39227         * tests/test-modf.c (main): Strengthen upper bound.
39229         modf: Use a .m4 file.
39230         * m4/modf.m4: New file.
39231         * modules/modf (Files): Add it.
39232         (configure.ac): Just invoke gl_FUNC_MODF.
39234 2011-10-05  Bruno Haible  <bruno@clisp.org>
39236         Tests for module 'fmodf'.
39237         * modules/fmodf-tests: New file.
39238         * tests/test-fmodf.c: New file.
39240         New module 'fmodf'.
39241         * lib/math.in.h (fmodf): New declaration.
39242         * lib/fmodf.c: New file.
39243         * m4/fmodf.m4: New file.
39244         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
39245         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
39246         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
39247         * modules/fmodf: New file.
39248         * tests/test-math-c++.cc: Check the declaration of fmodf.
39249         * doc/posix-functions/fmodf.texi: Mention the new module.
39251         fmod: Use a .m4 file.
39252         * m4/fmod.m4: New file.
39253         * modules/fmod (Files): Add it.
39254         (configure.ac): Just invoke gl_FUNC_FMOD.
39256 2011-10-05  Bruno Haible  <bruno@clisp.org>
39258         Tests for module 'fabsf'.
39259         * modules/fabsf-tests: New file.
39260         * tests/test-fabsf.c: New file.
39262         New module 'fabsf'.
39263         * lib/math.in.h (fabsf): New declaration.
39264         * lib/fabsf.c: New file.
39265         * m4/fabsf.m4: New file.
39266         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
39267         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
39268         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
39269         * modules/fabsf: New file.
39270         * tests/test-math-c++.cc: Check the declaration of fabsf.
39271         * doc/posix-functions/fabsf.texi: Mention the new module.
39273         fabs: Use a .m4 file.
39274         * m4/fabs.m4: New file.
39275         * modules/fabs (Files): Add it.
39276         (configure.ac): Just invoke gl_FUNC_FABS.
39278 2011-10-05  Jim Meyering  <meyering@redhat.com>
39280         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
39281         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
39282         ls -lL regression introduced in coreutils-8.12, it does so at the
39283         cost of an additional stat call in the common case.  Besides, now
39284         that the kernel change that prompted commit 95f7c57f has been reverted
39285         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
39286         we have no use for commit 95f7c57f, "file-has-acl: use
39287         acl_extended_file_nofollow if available".
39289 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
39291         file-has-acl: revert unintended change in behavior of ls -L
39292         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
39293         derived from...
39294         (file_has_acl): ...code here.  Call it.
39295         This problem was introduced with 2011-07-22 commit 95f7c57f,
39296         "file-has-acl: use acl_extended_file_nofollow if available".
39297         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
39299 2011-10-03  Bruno Haible  <bruno@clisp.org>
39301         poll: Avoid link errors on MSVC.
39302         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
39303         * modules/poll (Depends-on): Add sockets.
39304         (Link): New section.
39305         * NEWS: Mention the change.
39306         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
39307         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
39308         $(LIB_POLL) instead of $(LIBSOCKET).
39310 2011-10-03  Bruno Haible  <bruno@clisp.org>
39312         sys_select tests: Fix link error on MSVC 9.
39313         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
39314         with $(LIB_SELECT) instead of $(LIBSOCKET).
39316 2011-10-03  Bruno Haible  <bruno@clisp.org>
39318         sys_select: Fix compilation error on mingw.
39319         * lib/sys_select.in.h: On native Windows, include <io.h>.
39321 2011-10-03  Bruno Haible  <bruno@clisp.org>
39323         wmemset: Support for MSVC.
39324         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
39325         whether wmemset() exists.
39327 2011-10-03  Bruno Haible  <bruno@clisp.org>
39329         wmemmove: Support for MSVC.
39330         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
39331         whether wmemmove() exists.
39333 2011-10-03  Bruno Haible  <bruno@clisp.org>
39335         wmemcpy: Support for MSVC.
39336         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
39337         whether wmemcpy() exists.
39339 2011-10-03  Bruno Haible  <bruno@clisp.org>
39341         wmemcmp: Support for MSVC.
39342         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
39343         whether wmemcmp() exists.
39345 2011-10-03  Bruno Haible  <bruno@clisp.org>
39347         wmemchr: Support for MSVC.
39348         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
39349         whether wmemchr() exists.
39351 2011-10-03  Bruno Haible  <bruno@clisp.org>
39353         glthread/*, strsignal: Support for MSVC.
39354         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
39355         including <winsock.h> on MSVC 9.
39356         * lib/glthread/lock.h: Likewise.
39357         * lib/glthread/thread.h: Likewise.
39358         * lib/glthread/tls.h: Likewise.
39359         * lib/glthread/yield.h: Likewise.
39360         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
39361         if HAVE_UNISTD_H is false.
39362         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
39364 2011-10-03  Bruno Haible  <bruno@clisp.org>
39366         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
39367         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
39368         Set to 100000.
39370 2011-10-03  Bruno Haible  <bruno@clisp.org>
39372         acl: Fix specification.
39373         * lib/file-has-acl.c (file_has_acl): Fix specification.
39375 2011-10-03  Bruno Haible  <bruno@clisp.org>
39377         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
39378         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
39379         (compute_curr_prefix, shared_library_fullname,
39380         find_shared_library_fullname, get_shared_library_fullname, relocate):
39381         Use it together with PIC && INSTALLDIR.
39382         Reported by <jojelino@gmail.com>
39383         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
39385 2011-10-01  Jim Meyering  <meyering@redhat.com>
39387         maint.mk: adjust a release-related rule not to require use of gzip
39388         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
39389         Instead, check each file in $(DIST_ARCHIVES).  This is better for
39390         projects that build only .tar.xz files.  Also fix an erroneous test.
39392         test-linkat: don't leave behind a temporary file
39393         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
39394         Otherwise, coreutils' "make distcheck" would fail with this:
39395           Only in /c/cu/tests/torture/coreutils/test/\
39396             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
39397           make[2]: *** [my-distcheck] Error 1
39399         float, math: add omitted file
39400         * lib/itold.c: Add file, required for yesterday's float change.
39402 2011-10-01  Bruno Haible  <bruno@clisp.org>
39404         isinf: Fix for OpenBSD/x86.
39405         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
39406         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
39407         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
39409 2011-10-01  Bruno Haible  <bruno@clisp.org>
39411         isfinite: Fix syntax error in configure test.
39412         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
39414         isfinite: Fix typo.
39415         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
39416         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
39418 2011-10-01  Bruno Haible  <bruno@clisp.org>
39420         nonblocking tests: Fix test failure on Linux/IA-64.
39421         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
39422         Set to 270000.
39424 2011-10-01  Bruno Haible  <bruno@clisp.org>
39426         mkfifoat tests: Fix a test failure on mingw.
39427         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
39428         with error ENOSYS.
39430 2011-09-30  Bruno Haible  <bruno@clisp.org>
39432         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
39433         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
39434         'long double'. Set REPLACE_ITOLD.
39435         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
39436         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
39437         * lib/itold.c: New file.
39438         * modules/float (Files): Add lib/itold.c.
39439         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
39440         (Makefile.am): Substitute REPLACE_ITOLD.
39441         * modules/math (Depends-on): Add float.
39442         (Makefile.am): Substitute REPLACE_ITOLD.
39443         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
39444         * doc/posix-headers/math.texi: Likewise.
39445         * doc/posix-functions/logl.texi: Likewise.
39447 2011-09-30  Bruno Haible  <bruno@clisp.org>
39449         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
39450         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
39451         Set to 140000.
39453 2011-09-30  Bruno Haible  <bruno@clisp.org>
39455         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
39456         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
39457         invocation, say "right after AC_PROG_CC_STDC", not "right after
39458         AC_PROG_CC".
39459         Reported by Gary V. Vaughan <gary@gnu.org>.
39461 2011-09-30  Bruno Haible  <bruno@clisp.org>
39463         Centralize C99 requirement.
39464         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
39465         * modules/stdarg (configure.ac-early): Invoke it instead of
39466         AC_PROG_CC_STDC.
39467         Reported by Gary V. Vaughan and Paul Eggert.
39469 2011-09-29  Bruno Haible  <bruno@clisp.org>
39471         float: Fix LDBL_MAX value on Linux/PowerPC.
39472         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
39473         on Linux/PowerPC.
39474         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
39475         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
39476         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
39477         platform.
39478         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
39480 2011-09-29  Bruno Haible  <bruno@clisp.org>
39482         doc: Improve doc about gl_EARLY.
39483         * doc/gnulib-tool.texi (Initial import): Mention where to place an
39484         AC_PROG_CC_STDC invocation.
39485         Reported by Gary V. Vaughan <gary@gnu.org>.
39487 2011-09-28  Bruno Haible  <bruno@clisp.org>
39489         fgetc, fputc, fread, fwrite tests: Fix link error.
39490         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
39491         on non-MSVC platforms.
39492         * tests/test-fputc.c (main): Likewise.
39493         * tests/test-fread.c (main): Likewise.
39494         * tests/test-fwrite.c (main): Likewise.
39495         Reported by Jim Meyering.
39497 2011-09-27  Bruno Haible  <bruno@clisp.org>
39499         fputc, fwrite tests: Avoid test failure on MSVC.
39500         * tests/test-fgetc.c: Include msvc-inval.h.
39501         (main): Invoke gl_msvc_inval_ensure_handler.
39502         * tests/test-fputc.c: Include msvc-inval.h.
39503         (main): Invoke gl_msvc_inval_ensure_handler.
39504         * tests/test-fread.c: Include msvc-inval.h.
39505         (main): Invoke gl_msvc_inval_ensure_handler.
39506         * tests/test-fwrite.c: Include msvc-inval.h.
39507         (main): Invoke gl_msvc_inval_ensure_handler.
39508         * modules/fgetc-tests (Depends-on): Add msvc-inval.
39509         * modules/fputc-tests (Depends-on): Likewise.
39510         * modules/fread-tests (Depends-on): Likewise.
39511         * modules/fwrite-tests (Depends-on): Likewise.
39513 2011-09-27  Bruno Haible  <bruno@clisp.org>
39515         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
39516         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
39517         (raise): Remove older, duplicated declaration.
39518         (_gl_raise_SIGPIPE): New declaration.
39519         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
39520         (rpl_raise): Remove function.
39521         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
39522         a gnulib-defined SIGPIPE here.
39523         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
39524         'sigprocmask' has detected missing signal-blocking and the module
39525         'sigpipe' is enabled.
39526         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
39528 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
39530         base64-tests: avoid memory leak
39531         * tests/test-base64.c (main): Plug memory leak.
39533         base32: new module
39534         * modules/base32: New module.
39535         * lib/base32.c: New file.
39536         * lib/base32.h: Likewise.
39537         * m4/base32.m4: Likewise.
39538         * modules/base32-tests: New test.
39539         * tests/test-base32.c: Likewise.
39540         * MODULES.html.sh (Misc): Mention it.
39542 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
39544         gnulib: use more-standard license notice wording
39545         * gnulib-tool (func_emit_copyright_notice): When emitting a
39546         license notice into a file, use the standard wording as suggested
39547         by the current information for GNU maintainers, except say "file"
39548         rather than "program".  The new wording gives a license version
39549         number, which addresses an issue raised by Glenn Morris in
39550         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
39551         * m4/onceonly.m4: Use that same wording here, too.
39553         dup2: minor simplification
39554         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
39555         as lib/dup2.c no longer uses 'inline'.
39557 2011-09-25  Bruno Haible  <bruno@clisp.org>
39559         strings: Fix compilation error on MSVC.
39560         * lib/strings.in.h: Include <stddef.h> for size_t.
39562 2011-09-25  Bruno Haible  <bruno@clisp.org>
39564         fflush et al.: Document limitation on MSVC.
39565         * doc/posix-functions/fflush.texi: Document possible crash in handling
39566         mode other than DEFAULT_HANDLING.
39567         * doc/posix-functions/fgetc.texi: Likewise.
39568         * doc/posix-functions/fputc.texi: Likewise.
39569         * doc/posix-functions/fread.texi: Likewise.
39570         * doc/posix-functions/fwrite.texi: Likewise.
39572 2011-09-25  Bruno Haible  <bruno@clisp.org>
39574         msvc-inval: Allow three invalid parameter handling modes.
39575         * lib/msvc-inval.h: Don't include <stdlib.h> here.
39576         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
39577         macros.
39578         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
39579         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
39580         SANE_LIBRARY_HANDLING as a no-op.
39581         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
39582         <stdlib.h>.
39583         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
39585 2011-09-25  Bruno Haible  <bruno@clisp.org>
39587         msvc-inval: Make handler multithread-safe.
39588         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
39589         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
39590         declarations.
39591         (gl_msvc_inval_current): New declaration.
39592         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
39593         Operate on the structure returned by gl_msvc_inval_current().
39594         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
39595         Remove varaiables.
39596         (tls_index, tls_initialized): New variables.
39597         (not_per_thread): New variable.
39598         (gl_msvc_inval_current): New function.
39599         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
39600         returned by gl_msvc_inval_current().
39602 2011-09-25  Bruno Haible  <bruno@clisp.org>
39604         msvc-inval: Install handler globally.
39605         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
39606         !_MSC_VER.
39607         (gl_msvc_invalid_parameter_handler): Remove declaration.
39608         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
39609         declarations.
39610         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
39611         Install the handler globally, don't uninstall it.
39612         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
39613         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
39614         currently valid, call RaiseException instead.
39615         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
39616         for !_MSC_VER.
39618 2011-09-25  Bruno Haible  <bruno@clisp.org>
39620         strerror_r-posix: Fix for MSVC 9.
39621         * lib/strerror_r.c (local_snprintf): New function.
39622         (snprintf): Define to local_snprintf, not to _snprintf.
39624 2011-09-25  Bruno Haible  <bruno@clisp.org>
39626         ftruncate: Support for MSVC 9.
39627         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
39628         (chsize_nothrow): New function.
39629         (chsize): Redefine as a macro.
39630         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
39631         * modules/ftruncate (Depends-on): Add msvc-inval.
39633 2011-09-25  Bruno Haible  <bruno@clisp.org>
39635         New module 'fstat'.
39636         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
39637         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
39638         * lib/fchdir.c (rpl_fstat): Remove function.
39639         * m4/fstat.m4: New file.
39640         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
39641         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
39642         declared.
39643         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
39644         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
39645         * modules/fstat: New file.
39646         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
39647         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
39648         is set.
39649         * doc/posix-functions/fstat.texi: Mention the new module and the
39650         problem on MSVC.
39651         * NEWS: Mention the change.
39652         * modules/acl (Depends-on): Add fstat.
39653         * modules/chdir-safer (Depends-on): Likewise.
39654         * modules/chown (Depends-on): Likewise.
39655         * modules/copy-file (Depends-on): Likewise.
39656         * modules/fchdir (Depends-on): Likewise.
39657         * modules/fdopendir (Depends-on): Likewise.
39658         * modules/fopen (Depends-on): Likewise.
39659         * modules/fts (Depends-on): Likewise.
39660         * modules/getcwd (Depends-on): Likewise.
39661         * modules/isapipe (Depends-on): Likewise.
39662         * modules/linkat (Depends-on): Likewise.
39663         * modules/lseek (Depends-on): Likewise.
39664         * modules/mkdir-p (Depends-on): Likewise.
39665         * modules/open (Depends-on): Likewise.
39666         * modules/openat (Depends-on): Likewise.
39667         * modules/read-file (Depends-on): Likewise.
39668         * modules/renameat (Depends-on): Likewise.
39669         * modules/utimens (Depends-on): Likewise.
39671 2011-09-25  Bruno Haible  <bruno@clisp.org>
39673         linkat: Fix compilation on MSVC 9.
39674         * lib/linkat.c: Don't include <stdint.h>.
39676 2011-09-25  Bruno Haible  <bruno@clisp.org>
39678         fclose: Support for MSVC 9.
39679         * lib/fclose.c: Include msvc-inval.h.
39680         (fclose_nothrow): New function.
39681         (rpl_fclose): Use it.
39682         * modules/fclose (Depends-on): Add msvc-inval.
39683         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
39685 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
39687         dup2: minor simplifications
39688         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
39689         that it's a performance win.
39690         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
39691         ! defined __CYGWIN__)" to "ifdef F_GETFL".
39693 2011-09-24  Jim Meyering  <meyering@redhat.com>
39695         test-futimens: avoid a warning from gcc -Wshadow
39696         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
39697         to avoid a shadowing warning.
39699 2011-09-24  Bruno Haible  <bruno@clisp.org>
39701         fdopen: Support for MSVC 9.
39702         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
39703         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
39704         * lib/fdopen.c: Include msvc-inval.h.
39705         (fdopen_nothrow): New function.
39706         (rpl_fdopen): Use it.
39707         * modules/fdopen (Depends-on): Add msvc-inval.
39708         * modules/fclose-tests (Depends-on): Add fdopen.
39709         * modules/fflush-tests (Depends-on): Likewise.
39710         * modules/fgetc-tests (Depends-on): Likewise.
39711         * modules/fputc-tests (Depends-on): Likewise.
39712         * modules/fread-tests (Depends-on): Likewise.
39713         * modules/freopen-tests (Depends-on): Likewise.
39714         * modules/fseeko-tests (Depends-on): Likewise.
39715         * modules/ftello-tests (Depends-on): Likewise.
39716         * modules/fwrite-tests  (Depends-on): Likewise.
39717         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
39719 2011-09-24  Bruno Haible  <bruno@clisp.org>
39721         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
39722         * modules/fgetc-tests (Depends-on): Add unistd.
39723         * modules/fputc-tests (Depends-on): Likewise.
39724         * modules/fread-tests (Depends-on): Likewise.
39725         * modules/fwrite-tests (Depends-on): Likewise.
39727 2011-09-24  Bruno Haible  <bruno@clisp.org>
39729         dup: Simplify autoconf test.
39730         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
39731         on gl_MSVC_INVAL's result.
39733 2011-09-24  Bruno Haible  <bruno@clisp.org>
39735         Tests for function fwrite().
39736         * modules/fwrite-tests: New file.
39737         * tests/test-fwrite.c: New file.
39738         * modules/stdio-tests (Depends-on): Add fwrite-tests.
39740         Tests for function fread().
39741         * modules/fread-tests: New file.
39742         * tests/test-fread.c: New file.
39743         * modules/stdio-tests (Depends-on): Add fread-tests.
39745         Activate fputc tests.
39746         * modules/stdio-tests (Depends-on): Add fputc-tests.
39748         Enhance fgetc, fputc tests.
39749         * tests/test-fgetc.c (main): Also test the stream's error indicator.
39750         * tests/test-fputc.c (main): Likewise.
39752 2011-09-24  Bruno Haible  <bruno@clisp.org>
39754         write: Support for MSVC 9.
39755         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
39756         is not 1.
39757         * lib/write.c (write_nothrow): New function.
39758         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
39759         not 1. Use write_nothrow.
39760         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
39761         invalid parameter handler.
39762         (gl_PREREQ_WRITE): New macro.
39763         * modules/write (Depends-on): Add msvc-inval.
39764         (configure.ac): Invoke gl_PREREQ_WRITE.
39765         * doc/posix-functions/write.texi: Mention the problem on MSVC.
39767 2011-09-24  Bruno Haible  <bruno@clisp.org>
39769         read: Fix last commit.
39770         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
39772 2011-09-24  Bruno Haible  <bruno@clisp.org>
39774         dup2: Fix last commit.
39775         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
39776         (rpl_dup2): Disable fcntl workaround on native Windows.
39778         sigprocmask: Make code safer.
39779         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
39780         section that changes macro definitions for this compilation unit.
39782 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
39784         dup2: clarify by coalescing Windows-specific material
39785         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
39786         "msvc-nothrow.h"' to the Windows-specific section, so that the
39787         Emacs source need not contain these include files.
39788         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
39789         Windows-specific fixes into this function rather than just the
39790         nothrow fix, as this shortens and clarifies the code.  Always
39791         define as a function, as that's a bit cleaner than having it be
39792         sometimes a function and sometimes a macro.
39793         (rpl_dup2): Move the Windows-specific stuff out of here and into
39794         ms_windows_dup2.  Don't protect the Haiku-related fix with
39795         "#if !defined __linux__", as the same code also works around
39796         a Linux kernel bug, and it doesn't add any system calls on any
39797         platform.  Add comment about FreeBSD 6.1.
39799         sigprocmask: move #include directive
39800         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
39801         Windows-specific section, so that the Emacs source need not
39802         contain msvc-inval.h.
39804 2011-09-23  Bruno Haible  <bruno@clisp.org>
39806         read: Support for MSVC 9.
39807         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
39808         is not 1.
39809         * lib/read.c (read_nothrow): New function.
39810         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
39811         read_nothrow.
39812         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
39813         invalid parameter handler.
39814         (gl_PREREQ_READ): New macro.
39815         * modules/read (Depends-on): Add msvc-inval.
39816         (configure.ac): Invoke gl_PREREQ_READ.
39817         * doc/posix-functions/read.texi: Mention the problem on MSVC.
39819 2011-09-23  Bruno Haible  <bruno@clisp.org>
39821         close: Support for MSVC 9.
39822         * lib/close.c: Include <errno.h>, msvc-inval.h.
39823         (close_nothrow): New function.
39824         (rpl_close): Use it.
39825         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
39826         invalid parameter handler.
39827         * modules/close (Depends-on): Add msvc-inval.
39828         * modules/dup2-tests (Depends-on): Add close.
39829         * modules/dup3-tests (Depends-on): Likewise.
39830         * modules/fcntl-tests (Depends-on): Likewise.
39831         * modules/spawn-pipe-tests (Depends-on): Likewise.
39832         * modules/unistd-safer-tests (Depends-on): Likewise.
39833         * doc/posix-functions/close.texi: Mention the problem on MSVC.
39835 2011-09-23  Bruno Haible  <bruno@clisp.org>
39837         New module 'dup'.
39838         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
39839         Allow replacement.
39840         * lib/dup.c: New file.
39841         * lib/fchdir.c (rpl_dup): Remove function.
39842         * m4/dup.m4: New file.
39843         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
39844         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
39845         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
39846         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
39847         * modules/dup: New file.
39848         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
39849         'dup' module is in use.
39850         * modules/fdopendir (Depends-on): Add dup.
39851         * modules/fdutimensat-tests (Depends-on): Likewise.
39852         * modules/fts (Depends-on): Likewise.
39853         * modules/futimens-tests (Depends-on): Likewise.
39854         * modules/posix_spawnp-tests (Depends-on): Likewise.
39855         * modules/unistd-safer-tests (Depends-on): Likewise.
39856         * modules/utimens-tests (Depends-on): Likewise.
39857         * doc/posix-functions/dup.texi: Mention the new module and the problem
39858         on MSVC.
39860 2011-09-23  Bruno Haible  <bruno@clisp.org>
39862         getdtablesize: Support for MSVC 9.
39863         * lib/getdtablesize.c: Include msvc-inval.h.
39864         (_setmaxstdio_nothrow): New function.
39865         (_setmaxstdio): Redefine it.
39866         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
39867         * modules/getdtablesize (Depends-on): Add msvc-inval.
39868         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
39870 2011-09-23  Bruno Haible  <bruno@clisp.org>
39872         signal-h: Rename from signal.
39873         * modules/signal-h: Renamed from modules/signal.
39874         * modules/pthread_sigmask (Depends-on): Update.
39875         * modules/raise (Depends-on): Likewise.
39876         * modules/sigaction (Depends-on): Likewise.
39877         * modules/sigpipe (Depends-on): Likewise.
39878         * modules/sigprocmask (Depends-on): Likewise.
39879         * modules/sys_select (Depends-on): Likewise.
39880         * modules/signal-h-tests: Renamed from modules/signal-tests.
39881         (Files, Depends-on, Makefile.am): Update.
39882         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
39883         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
39884         (Files, Makefile.am): Update.
39885         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
39886         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
39887         * modules/signal: New placeholder file.
39888         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
39889         * doc/posix-headers/signal.texi: Update.
39890         * NEWS: Mention the change.
39892 2011-09-23  Bruno Haible  <bruno@clisp.org>
39894         sigprocmask: Avoid crashes through signal() on MSVC 9.
39895         * lib/sigprocmask.c: Include msvc-inval.h.
39896         (signal_nothrow): New function.
39897         (signal): Redefine it.
39898         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
39899         * modules/sigprocmask (Depends-on): Add msvc-inval.
39900         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
39902 2011-09-23  Bruno Haible  <bruno@clisp.org>
39904         Tests for module 'raise'.
39905         * modules/raise-tests: New file.
39906         * tests/test-raise.c: New file.
39908         raise: Support for MSVC.
39909         * lib/signal.in.h (raise): New declaration.
39910         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
39911         for native Windows platforms.
39912         * m4/raise.m4: New file.
39913         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
39914         HAVE_RAISE, REPLACE_RAISE.
39915         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
39916         REPLACE_RAISE.
39917         * modules/raise (Status, Notice): Remove fields.
39918         (Files): Add m4/raise.m4.
39919         (Depends-on): Add signal, msvc-inval.
39920         (configure.ac): Use the common idioms.
39921         (Maintainer): Add me.
39922         * tests/test-signal-c++.cc: Check the signature of raise.
39923         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
39925 2011-09-23  Bruno Haible  <bruno@clisp.org>
39927         pipe2: Fix compilation on pre-C99 compilers.
39928         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
39930 2011-09-23  Bruno Haible  <bruno@clisp.org>
39932         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
39933         * lib/msvc-nothrow.h: New file.
39934         * lib/msvc-nothrow.c: New file.
39935         * m4/msvc-nothrow.m4: New file.
39936         * modules/msvc-nothrow: New file.
39937         * lib/dup2.c: Include msvc-nothrow.h.
39938         (rpl_dup2): No need to protect _get_osfhandle call here.
39939         * lib/accept4.c: Include msvc-nothrow.h.
39940         * lib/error.c: Likewise.
39941         * lib/fcntl.c: Likewise.
39942         * lib/lseek.c: Likewise.
39943         * lib/nonblocking.c: Likewise.
39944         * lib/poll.c: Likewise.
39945         * lib/read.c: Likewise.
39946         * lib/select.c: Likewise.
39947         * lib/sockets.h: Likewise.
39948         * lib/sockets.c: Likewise.
39949         * lib/stdio-read.c: Likewise.
39950         * lib/stdio-write.c: Likewise.
39951         * lib/write.c: Likewise.
39952         * lib/w32sock.h: Likewise.
39953         * lib/w32spawn.h: Likewise.
39954         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
39955         * lib/fsync.c: Likewise.
39956         * lib/isapipe.c: Likewise.
39957         * modules/dup2 (Depends-on): Add msvc-nothrow.
39958         * modules/accept4 (Depends-on): Likewise.
39959         * modules/error (Depends-on): Likewise.
39960         * modules/fcntl (Depends-on): Likewise.
39961         * modules/lseek (Depends-on): Likewise.
39962         * modules/nonblocking (Depends-on): Likewise.
39963         * modules/poll (Depends-on): Likewise.
39964         * modules/read (Depends-on): Likewise.
39965         * modules/select (Depends-on): Likewise.
39966         * modules/sockets (Depends-on): Likewise.
39967         * modules/sigpipe (Depends-on): Likewise.
39968         * modules/write (Depends-on): Likewise.
39969         * modules/accept (Depends-on): Likewise.
39970         * modules/bind (Depends-on): Likewise.
39971         * modules/connect (Depends-on): Likewise.
39972         * modules/gethostname (Depends-on): Likewise.
39973         * modules/getpeername (Depends-on): Likewise.
39974         * modules/getsockname (Depends-on): Likewise.
39975         * modules/getsockopt (Depends-on): Likewise.
39976         * modules/ioctl (Depends-on): Likewise.
39977         * modules/listen (Depends-on): Likewise.
39978         * modules/recv (Depends-on): Likewise.
39979         * modules/recvfrom (Depends-on): Likewise.
39980         * modules/send (Depends-on): Likewise.
39981         * modules/sendto (Depends-on): Likewise.
39982         * modules/setsockopt (Depends-on): Likewise.
39983         * modules/shutdown (Depends-on): Likewise.
39984         * modules/socket (Depends-on): Likewise.
39985         * modules/execute (Depends-on): Likewise.
39986         * modules/spawn-pipe (Depends-on): Likewise.
39987         * modules/flock (Depends-on): Likewise.
39988         * modules/fsync (Depends-on): Likewise.
39989         * modules/isapipe (Depends-on): Likewise.
39990         * tests/test-cloexec.c: Include msvc-nothrow.h.
39991         * tests/test-dup-safer.c: Likewise.
39992         * tests/test-dup2.c: Likewise.
39993         * tests/test-dup3.c: Likewise.
39994         * tests/test-fcntl.c: Likewise.
39995         * tests/test-pipe.c: Likewise.
39996         * tests/test-pipe2.c: Likewise.
39997         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
39998         * modules/unistd-safer-tests (Depends-on): Likewise.
39999         * modules/dup2-tests (Depends-on): Likewise.
40000         * modules/dup3-tests (Depends-on): Likewise.
40001         * modules/fcntl-tests (Depends-on): Likewise.
40002         * modules/pipe-posix-tests (Depends-on): Likewise.
40003         * modules/pipe2-tests (Depends-on): Likewise.
40005 2011-09-23  Bruno Haible  <bruno@clisp.org>
40007         dup2: Make code more maintainable.
40008         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
40009         (rpl_dup2): Use it.
40010         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
40011         * modules/dup2 (configure.ac): Invoke it.
40012         Reported by Paul Eggert.
40014 2011-09-23  Bruno Haible  <bruno@clisp.org>
40016         msvc-inval: Fix compilation error.
40017         * lib/msvc-inval.h: Include <excpt.h>.
40019 2011-09-23  Bruno Haible  <bruno@clisp.org>
40021         mkdir: Tweak for MSVC 9.
40022         * lib/sys_stat.in.h: Update comments.
40023         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
40025         Tests for module 'chdir'.
40026         * modules/chdir-tests: New file.
40027         * tests/test-chdir.c: New file.
40029         New module 'chdir'.
40030         * modules/chdir: New file.
40031         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
40032         (chdir): New declaration.
40033         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
40034         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
40035         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
40036         * tests/test-unistd-c++.cc: Check signature of chdir.
40037         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
40038         * modules/chdir-long (Depends-on): Add chdir.
40039         * modules/fchdir (Depends-on): Likewise.
40040         * modules/rename (Depends-on): Likewise.
40041         * modules/savewd (Depends-on): Likewise.
40043         rmdir: Support for mingw, MSVC 9.
40044         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
40045         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
40047         getcwd: Tweak for MSVC 9.
40048         * lib/unistd.in.h: Update comments.
40049         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
40051 2011-09-22  Bruno Haible  <bruno@clisp.org>
40053         strerror_r-posix: Avoid a link error on MSVC.
40054         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
40055         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
40057 2011-09-22  Bruno Haible  <bruno@clisp.org>
40059         select: Avoid link errors on MSVC.
40060         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
40061         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
40062         * modules/pselect (Link): Likewise.
40063         * NEWS: Mention the change.
40064         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
40065         test-select-stdin against $(LIB_SELECT).
40066         * modules/pselect-tests (Makefile.am): Link test-pselect against
40067         $(LIB_SELECT).
40069 2011-09-22  Bruno Haible  <bruno@clisp.org>
40071         select: Avoid compilation error on MSVC.
40072         * lib/select.c: Don't include <stdbool.h>.
40074 2011-09-21  Bruno Haible  <bruno@clisp.org>
40076         Consolidate all uses of PATH_MAX in *.m4 files.
40077         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
40078         macros.
40079         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
40080         and gl_PATHMAX_SNIPPET.
40081         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
40082         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
40083         * modules/chdir-long (Files): Add m4/pathmax.m4.
40084         * modules/getcwd (Files): Likewise.
40086 2011-09-21  Bruno Haible  <bruno@clisp.org>
40088         ftruncate: Un-deprecate, concentrate on Win32 support.
40089         * modules/ftruncate (Status, Notice): Remove sections.
40090         (Depends-on): Add largefile.
40091         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
40092         non-mingw platforms.
40093         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
40094         include <io.h>.
40095         * modules/perror-tests (Depends-on): Add ftruncate.
40096         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
40097         'ftruncate' module.
40099 2011-09-21  Bruno Haible  <bruno@clisp.org>
40101         Add dependencies to new dirent related modules.
40102         * modules/opendir (Depends-on): Add closedir.
40103         * modules/getcwd (Depends-on): Add opendir, closedir.
40104         * modules/dirent-safer-tests (Depends-on): Likewise.
40105         * modules/fdopendir-tests (Depends-on): Likewise.
40106         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
40107         * modules/renameat-tests (Depends-on): Likewise.
40109 2011-09-21  Bruno Haible  <bruno@clisp.org>
40111         opendir: Avoid compilation error on mingw.
40112         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
40113         * modules/opendir (Depends-on): Add unistd.
40115 2011-09-21  Bruno Haible  <bruno@clisp.org>
40117         ftruncate tests: Avoid a test failure on mingw.
40118         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
40120 2011-09-21  Bruno Haible  <bruno@clisp.org>
40122         select tests: Avoid test failures on OSF/1 5.1 and mingw.
40123         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
40124         native Windows.
40126 2011-09-21  Bruno Haible  <bruno@clisp.org>
40128         New module 'fdopen'.
40129         * lib/stdio.in.h (fdopen): New declaration.
40130         * lib/fdopen.c: New file.
40131         * m4/fdopen.m4: New file.
40132         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
40133         REPLACE_FDOPEN.
40134         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
40135         REPLACE_FDOPEN.
40136         * modules/fdopen: New file.
40137         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
40138         * tests/test-stdio-c++.cc: Check signature of fdopen.
40139         * doc/posix-functions/fdopen.texi: Mention the new module.
40141 2011-09-21  Bruno Haible  <bruno@clisp.org>
40143         unlockpt tests: Avoid test failure on NetBSD 5.1.
40144         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
40145         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
40147 2011-09-21  Bruno Haible  <bruno@clisp.org>
40149         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
40150         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
40151         * tests/test-getlogin_r.c (main): Likewise.
40153 2011-09-20  Bruno Haible  <bruno@clisp.org>
40155         time tests: Don't require pid_t.
40156         * doc/posix-headers/time.texi: Revert last change.
40157         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
40158         * tests/test-time.c: Comment out the check for pid_t.
40160 2011-09-20  Bruno Haible  <bruno@clisp.org>
40162         fsync tests: Avoid a test failure on mingw.
40163         * tests/test-fsync.c (main): Allow a failure with EIO.
40165 2011-09-20  Bruno Haible  <bruno@clisp.org>
40167         euidaccess: Update comments.
40168         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
40170 2011-09-20  Bruno Haible  <bruno@clisp.org>
40172         Ensure EBADF returns for socket functions on mingw.
40173         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
40174         descriptor is invalid.
40175         * lib/bind.c (rpl_bind): Likewise.
40176         * lib/connect.c (rpl_connect): Likewise.
40177         * lib/getpeername.c (rpl_getpeername): Likewise.
40178         * lib/getsockname.c (rpl_getsockname): Likewise.
40179         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40180         * lib/listen.c (rpl_listen): Likewise.
40181         * lib/recv.c (rpl_recv): Likewise.
40182         * lib/recvfrom.c (rpl_recvfrom): Likewise.
40183         * lib/send.c (rpl_send): Likewise.
40184         * lib/sendto.c (rpl_sendto): Likewise.
40185         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40186         * lib/shutdown.c (rpl_shutdown): Likewise.
40188 2011-09-20  Bruno Haible  <bruno@clisp.org>
40190         select tests: EBADF tests.
40191         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
40192         test_bad_fd): New functions.
40193         (test_function): Invoke also test_bad_fd.
40195 2011-09-20  Bruno Haible  <bruno@clisp.org>
40197         Tests for module 'posix_spawn_file_actions_addopen.
40198         * modules/posix_spawn_file_actions_addopen-tests: New file.
40199         * tests/test-posix_spawn_file_actions_addopen.c: New file.
40201         Tests for module 'posix_spawn_file_actions_adddup2'.
40202         * modules/posix_spawn_file_actions_adddup2-tests: New file.
40203         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
40205         Tests for module 'posix_spawn_file_actions_addclose'.
40206         * modules/posix_spawn_file_actions_addclose-tests: New file.
40207         * tests/test-posix_spawn_file_actions_addclose.c: New file.
40209 2011-09-20  Bruno Haible  <bruno@clisp.org>
40211         Tests for module 'unlockpt'.
40212         * modules/unlockpt-tests: New file.
40213         * tests/test-unlockpt.c: New file.
40214         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
40216         Tests for module 'grantpt'.
40217         * modules/grantpt-tests: New file.
40218         * tests/test-grantpt.c: New file.
40219         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
40221 2011-09-20  Bruno Haible  <bruno@clisp.org>
40223         freopen tests: EBADF tests.
40224         * tests/test-freopen.c: Include errno.h, unistd.h.
40225         (main): Add tests for EBADF, commented out for the moment.
40227         fclose tests: EBADF tests.
40228         * tests/test-fclose.c (main): Add tests for EBADF.
40230         fflush tests: EBADF tests.
40231         * tests/test-fflush.c: Include errno.h, macros.h.
40232         (main): Add tests for EBADF.
40234         ftello tests: EBADF tests.
40235         * tests/test-ftello4.sh: New file.
40236         * tests/test-ftello4.c: New file.
40237         * modules/ftello-tests (Files): Add them.
40238         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
40240         fseeko tests: EBADF tests.
40241         * tests/test-fseeko4.sh: New file.
40242         * tests/test-fseeko4.c: New file.
40243         * modules/fseeko-tests (Files): Add them.
40244         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
40246         Tests for function fputc().
40247         * modules/fputc-tests: New file.
40248         * tests/test-fputc.c: New file.
40249         * modules/stdio-tests (Depends-on): Add fputc-tests.
40251         Tests for function fgetc().
40252         * modules/fgetc-tests: New file.
40253         * tests/test-fgetc.c: New file.
40254         * modules/stdio-tests (Depends-on): Add fgetc-tests.
40256         Tests for function fdopen().
40257         * modules/fdopen-tests: New file.
40258         * tests/test-fdopen.c: New file.
40259         * modules/stdio-tests (Depends-on): Add fdopen-tests.
40261         Tests for module 'vdprintf'.
40262         * modules/vdprintf-tests: New file.
40263         * tests/test-vdprintf.c: New file.
40265         Tests for module 'dprintf'.
40266         * modules/dprintf-tests: New file.
40267         * tests/test-dprintf.c: New file.
40269 2011-09-20  Bruno Haible  <bruno@clisp.org>
40271         Tests for module 'ioctl'.
40272         * modules/ioctl-tests: New file.
40273         * tests/test-ioctl.c: New file.
40275 2011-09-20  Bruno Haible  <bruno@clisp.org>
40277         fcntl tests: EBADF tests.
40278         * tests/test-fcntl.c (main): Add more tests for EBADF.
40280 2011-09-20  Bruno Haible  <bruno@clisp.org>
40282         utimensat tests: EBADF tests.
40283         * tests/test-utimensat.c (main): Add tests for EBADF.
40285         renameat tests: EBADF tests.
40286         * tests/test-renameat.c (main): Add tests for EBADF.
40288         mkfifoat tests: EBADF tests.
40289         * tests/test-mkfifoat.c (main): Add tests for EBADF.
40291         readlinkat tests: EBADF tests.
40292         * tests/test-readlinkat.c (main): Add tests for EBADF.
40294         symlinkat tests: EBADF tests.
40295         * tests/test-symlinkat.c (main): Add tests for EBADF.
40297         linkat tests: EBADF tests.
40298         * tests/test-linkat.c (main): Add tests for EBADF.
40300         Tests for module 'faccessat'.
40301         * modules/faccessat-tests: New file.
40302         * tests/test-faccessat.c: New file.
40304         fdopendir tests: EBADF tests.
40305         * tests/test-fdopendir.c (main): Add more tests for EBADF.
40307         openat tests: EBADF tests.
40308         * tests/test-fchownat.c (main): Add tests for EBADF.
40309         * tests/test-fstatat.c (main): Likewise.
40310         * tests/test-mkdirat.c (main): Likewise.
40311         * tests/test-openat.c (main): Likewise.
40312         * tests/test-unlinkat.c (main): Likewise.
40313         * tests/test-fchmodat.c: New file.
40314         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
40315         (Makefile.am): Also run 'test-fchmodat'.
40317 2011-09-20  Bruno Haible  <bruno@clisp.org>
40319         utimens, futimens, fdutimensat tests: EBADF tests.
40320         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
40322         Tests for function fstat().
40323         * modules/fstat-tests: New file.
40324         * tests/test-fstat.c: New file.
40325         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
40327 2011-09-20  Bruno Haible  <bruno@clisp.org>
40329         test-ttyname_r tests: EBADF tests.
40330         * tests/test-ttyname_r.c (main): Add tests for EBADF.
40332         Tests for module 'isatty'.
40333         * modules/isatty-tests: New file.
40334         * tests/test-isatty.c: New file.
40336         Tests for module 'write'.
40337         * modules/write-tests: New file.
40338         * tests/test-write.c: New file.
40340         Tests for module 'read'.
40341         * modules/read-tests: New file.
40342         * tests/test-read.c: New file.
40344         pwrite tests: EBADF tests.
40345         * tests/test-pwrite.c (main): Add tests for EBADF.
40347         pread tests: EBADF tests.
40348         * tests/test-pread.c (main): Add tests for EBADF.
40350         lseek tests: EBADF tests.
40351         * tests/test-lseek.c (main): Add more tests for EBADF.
40353         Tests for module 'ftruncate'.
40354         * modules/ftruncate-tests: New file.
40355         * tests/test-ftruncate.sh: New file.
40356         * tests/test-ftruncate.c: New file.
40358         fsync tests: EBADF tests.
40359         * tests/test-fsync.c (main): Add more tests for EBADF.
40361         fdatasync tests: EBADF tests.
40362         * tests/test-fdatasync.c (main): Add more tests for EBADF.
40364         Tests for module 'fchown'.
40365         * modules/fchown-tests: New file.
40366         * tests/test-fchown.c: New file.
40368         Tests for module 'fchmod'.
40369         * modules/fchmod-tests: New file.
40370         * tests/test-fchmod.c: New file.
40372         fchdir tests: EBADF tests.
40373         * tests/test-fchdir.c (main): Add more tests for EBADF.
40375         dup2 tests: EBADF tests.
40376         * tests/test-dup2.c (main): Add more tests for EBADF.
40378         Tests for module 'dup'.
40379         * modules/dup-tests: New file.
40380         * tests/test-dup.c: New file.
40382         Tests for module 'close'.
40383         * modules/close-tests: New file.
40384         * tests/test-close.c: New file.
40386 2011-09-20  Bruno Haible  <bruno@clisp.org>
40388         Tests for module 'shutdown'.
40389         * modules/shutdown-tests: New file.
40390         * tests/test-shutdown.c: New file.
40392         Tests for module 'setsockopt'.
40393         * modules/setsockopt-tests: New file.
40394         * tests/test-setsockopt.c: New file.
40396         Tests for module 'sendto'.
40397         * modules/sendto-tests: New file.
40398         * tests/test-sendto.c: New file.
40400         Tests for module 'send'.
40401         * modules/send-tests: New file.
40402         * tests/test-send.c: New file.
40404         Tests for module 'recvfrom'.
40405         * modules/recvfrom-tests: New file.
40406         * tests/test-recvfrom.c: New file.
40408         Tests for module 'recv'.
40409         * modules/recv-tests: New file.
40410         * tests/test-recv.c: New file.
40412         Tests for module 'listen'.
40413         * modules/listen-tests: New file.
40414         * tests/test-listen.c: New file.
40416         Tests for module 'getsockopt'.
40417         * modules/getsockopt-tests: New file.
40418         * tests/test-getsockopt.c: New file.
40420         Tests for module 'getsockname'.
40421         * modules/getsockname-tests: New file.
40422         * tests/test-getsockname.c: New file.
40424         Tests for module 'getpeername'.
40425         * modules/getpeername-tests: New file.
40426         * tests/test-getpeername.c: New file.
40428         Tests for module 'connect'.
40429         * modules/connect-tests: New file.
40430         * tests/test-connect.c: New file.
40432         Tests for module 'bind'.
40433         * modules/bind-tests: New file.
40434         * tests/test-bind.c: New file.
40436         accept4 tests: Fix for native Windows.
40437         * tests/test-accept4.c: Include sockets.h.
40438         (main): Invoke gl_sockets_startup.
40439         * modules/accept4-tests (Depends-on): Add sockets.
40441         accept tests: Fix for native Windows.
40442         * tests/test-accept.c: Include sockets.h.
40443         (main): Invoke gl_sockets_startup.
40444         * modules/accept-tests (Depends-on): Add sockets.
40446 2011-09-19  Bruno Haible  <bruno@clisp.org>
40448         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
40449         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
40450         do...while(0).
40451         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
40452         Suggested by Paul Eggert.
40454 2011-09-19  Bruno Haible  <bruno@clisp.org>
40456         sched: Ensure pid_t is defined.
40457         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
40458         not define pid_t.
40459         * lib/sched.in.h: Include <sys/types.h>.
40460         * doc/posix-headers/sched.texi: Mention the pid_t problem.
40461         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40463 2011-09-19  Bruno Haible  <bruno@clisp.org>
40465         msvc-inval: Ensure the entire expansion is a single statement.
40466         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
40467         of braces.
40469 2011-09-19  Jim Meyering  <meyering@redhat.com>
40471         tests: use printf, not echo in init.sh's warn_ function
40472         * tests/init.sh (warn_): Use printf, not echo.  The latter would
40473         misbehave when given strings containing a backslash or starting
40474         with e.g., -n.  James Youngman suggested setting IFS.
40476 2011-09-19  Eric Blake  <eblake@redhat.com>
40478         futimens: enhance test
40479         * tests/test-futimens.h (test_futimens): Also check for EBADF on
40480         closed non-negative fd.
40482         date: accept 'hence' as opposite of 'ago'
40483         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
40484         * tests/test-parse-datetime.c (main): Enhance test.
40485         Suggested by Jesse Wilson.
40487 2011-09-19  Jim Meyering  <meyering@redhat.com>
40489         getcwd: don't fail in a deep directory on a system without openat
40490         Before this change, getcwd would fail when called from a directory
40491         of depth PATH_MAX / 3 or greater.  That was due to the fact that
40492         the non-openat implementation used "..", "../..", "../../..", etc.
40493         to access ancestor directories.  With too many, that string would
40494         be longer than PATH_MAX.
40495         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
40496         using gnulib's openat replacement.
40497         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
40498         we're using the replacement function.
40500 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
40502         maint.mk: avoid warnings from perl about missing files
40503         * top/maint.mk (def_sym_regex): Ignore files listed in
40504         $(gl_other_headers_) that do not exist, say because a project
40505         does not use a corresponding module.
40507 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
40509         stat: use pathmax.h only if needed
40510         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
40511         This is better for Emacs, which does not have a mingw port and
40512         therefore can avoid the pathmax module.
40514         utimens: remove dependency on dup2
40515         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
40516         to work around the Linux kernel bug.
40517         * modules/utimens (Depends-on): Remove dup2.
40519 2011-09-18  Bruno Haible  <bruno@clisp.org>
40521         inet_ntop, inet_pton: Look for it also in libresolv.
40522         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
40523         libnsl, search for it in libresolv.
40524         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
40525         Needed on Solaris 7.
40527 2011-09-18  Bruno Haible  <bruno@clisp.org>
40529         accept, accept4 tests: Avoid link error on Solaris.
40530         * modules/accept-tests (Makefile.am): Link test-accept against
40531         $(LIBSOCKET).
40532         * modules/accept4-tests (Makefile.am): Link test-accept4 against
40533         $(LIBSOCKET).
40535         accept4: Avoid link error on Solaris.
40536         * modules/accept4 (Link): New section.
40538         socket functions: Avoid link errors on Solaris.
40539         * modules/accept (Depends-on): Add socketlib.
40540         (Link): New section.
40541         * modules/bind (Depends-on): Add socketlib.
40542         (Link): New section.
40543         * modules/connect (Depends-on): Add socketlib.
40544         (Link): New section.
40545         * modules/getpeername (Depends-on): Add socketlib.
40546         (Link): New section.
40547         * modules/getsockname (Depends-on): Add socketlib.
40548         (Link): New section.
40549         * modules/getsockopt (Depends-on): Add socketlib.
40550         (Link): New section.
40551         * modules/listen (Depends-on): Add socketlib.
40552         (Link): New section.
40553         * modules/recv (Depends-on): Add socketlib.
40554         (Link): New section.
40555         * modules/recvfrom (Depends-on): Add socketlib.
40556         (Link): New section.
40557         * modules/send (Depends-on): Add socketlib.
40558         (Link): New section.
40559         * modules/sendto (Depends-on): Add socketlib.
40560         (Link): New section.
40561         * modules/setsockopt (Depends-on): Add socketlib.
40562         (Link): New section.
40563         * modules/shutdown (Depends-on): Add socketlib.
40564         (Link): New section.
40565         * modules/socket (Depends-on): Add socketlib.
40566         (Link): New section.
40568 2011-09-18  Bruno Haible  <bruno@clisp.org>
40570         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
40571         * tests/test-ptsname.c (main): Terminate the test if it takes longer
40572         than 5 seconds.
40573         * modules/ptsname-tests (configure.ac): Test for alarm.
40575 2011-09-18  Bruno Haible  <bruno@clisp.org>
40577         posix_spawn_file_actions_add*: Fix module dependencies.
40578         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
40579         posix_spawn_file_actions_init.
40580         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
40581         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
40583 2011-09-18  Bruno Haible  <bruno@clisp.org>
40585         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
40586         * tests/test-rename.h (test_rename): Allow error code EEXIST.
40587         * tests/test-renameat.c (main): Likewise.
40589 2011-09-18  Bruno Haible  <bruno@clisp.org>
40591         Tests for module 'accept4'.
40592         * modules/accept4-tests: New file.
40593         * tests/test-accept4.c: New file.
40595 2011-09-18  Bruno Haible  <bruno@clisp.org>
40597         Tests for module 'accept'.
40598         * modules/accept-tests: New file.
40599         * tests/test-accept.c: New file.
40601 2011-09-18  Bruno Haible  <bruno@clisp.org>
40603         dup2: Support for MSVC.
40604         * lib/dup2.c: Include msvc-inval.h.
40605         (rpl_dup2): Handle invalid parameter notifications during dup2 and
40606         _get_osfhandle calls.
40607         * modules/dup2 (Depends-on): Add msvc-inval.
40608         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
40610         New module 'msvc-inval'.
40611         * lib/msvc-inval.h: New file.
40612         * lib/msvc-inval.c: New file.
40613         * m4/msvc-inval.m4: New file.
40614         * modules/msvc-inval: New file.
40616 2011-09-17  Bruno Haible  <bruno@clisp.org>
40618         Tests for module 'pclose'.
40619         * modules/pclose-tests: New file.
40621         New module 'pclose'.
40622         * lib/stdio.in.h (pclose): New declaration.
40623         * lib/pclose.c: New file.
40624         * m4/pclose.m4: New file.
40625         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
40626         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
40627         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
40628         * modules/pclose: New file.
40629         * modules/popen-tests (Depends-on): Add pclose.
40630         * modules/popen-safer-tests (Depends-on): Likewise.
40631         * doc/posix-functions/pclose.texi: Mention the new module.
40633 2011-09-17  Bruno Haible  <bruno@clisp.org>
40635         popen: Support for MSVC.
40636         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
40637         * lib/popen.c (popen): Provide alternate definition for native Windows.
40638         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
40639         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
40640         * modules/popen (Depends-on, configure.ac): Update condition.
40641         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
40642         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
40643         fixed.
40645 2011-09-17  Bruno Haible  <bruno@clisp.org>
40647         isnanl, isnand, isnanf: Work around MSVC bug.
40648         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
40650 2011-09-17  Bruno Haible  <bruno@clisp.org>
40652         sys_socket tests: Fix recent mistake.
40653         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
40655 2011-09-17  Bruno Haible  <bruno@clisp.org>
40657         putenv: Support for MSVC.
40658         * modules/putenv (Depends-on): Add environ.
40659         * lib/putenv.c (environ): Disable declaration.
40660         * lib/unistd.in.h: Update comment.
40662 2011-09-17  Bruno Haible  <bruno@clisp.org>
40664         math: Avoid macro redefinition warnings on MSVC.
40665         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
40666         Undefine before redefining.
40668 2011-09-17  Bruno Haible  <bruno@clisp.org>
40670         doc: Mention functions which are declared as macros.
40671         * doc/posix-functions/*[fl].texi: Mention that some functions are
40672         defined as macros with arguments only.
40674 2011-09-17  Bruno Haible  <bruno@clisp.org>
40676         Add dependencies to new dirent related modules.
40677         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
40678         * modules/fts (Depends-on): Likewise.
40679         * modules/glob (Depends-on): Likewise.
40680         * modules/savedir (Depends-on): Likewise.
40681         * modules/scandir (Depends-on): Likewise.
40682         * modules/dirent-safer (Depends-on): Add opendir, closedir.
40683         * modules/fdopendir (Depends-on): Add opendir.
40685 2011-09-17  Bruno Haible  <bruno@clisp.org>
40687         inet_pton: Support for MSVC on Windows Vista or newer.
40688         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
40689         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
40690         HAVE_DECL_INET_PTON is defined.
40691         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
40692         On platforms with <winsock2.h>, test whether inet_pton is declared in
40693         <ws2tcpip.h>. If so, arrange to replace it.
40694         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
40695         REPLACE_INET_PTON.
40696         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
40697         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
40698         (Depends-on, configure.ac): Update condition.
40699         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
40701 2011-09-17  Bruno Haible  <bruno@clisp.org>
40703         inet_ntop: Support for MSVC on Windows Vista or newer.
40704         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
40705         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
40706         HAVE_DECL_INET_NTOP is defined.
40707         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
40708         On platforms with <winsock2.h>, test whether inet_ntop is declared in
40709         <ws2tcpip.h>. If so, arrange to replace it.
40710         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
40711         REPLACE_INET_NTOP.
40712         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
40713         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
40714         (Depends-on, configure.ac): Update condition.
40715         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
40717 2011-09-16  Eric Blake  <eblake@redhat.com>
40719         test-fsync: yet another enhancement
40720         * tests/test-fsync.c (main): Also test behavior on read-only text
40721         file.
40723 2011-09-16  Bruno Haible  <bruno@clisp.org>
40725         Enhance fsync, fdatasync tests.
40726         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
40727         * tests/test-fdatasync.c (main): Likewise.
40729 2011-09-16  Bruno Haible  <bruno@clisp.org>
40731         Support for MSVC compiler: Ensure mode_t gets defined.
40732         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
40733         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
40734         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
40735         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
40736         * tests/test-fcntl-h.c: Check that mode_t is defined.
40737         * tests/test-sys_stat.c: Likewise.
40738         * tests/test-sys_types.c: Likewise.
40739         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
40740         * doc/posix-headers/sys_stat.texi: Likewise.
40741         * doc/posix-headers/sys_types.texi: Likewise.
40743 2011-09-16  Bruno Haible  <bruno@clisp.org>
40745         sys_stat: Support for MSVC.
40746         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
40747         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
40748         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
40749         MSVC.
40751 2011-09-16  Bruno Haible  <bruno@clisp.org>
40753         Support for MSVC compiler: Ensure off_t gets defined.
40754         * lib/unistd.in.h: Include <sys/types.h>.
40755         * tests/test-fcntl-h.c: Check that off_t is defined.
40756         * tests/test-sys_stat.c: Likewise.
40757         * tests/test-sys_types.c: Likewise.
40759 2011-09-16  Eric Blake  <eblake@redhat.com>
40761         fdatasync: port to Solaris
40762         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
40763         * modules/fdatasync (Link): Document it.
40764         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
40766         fdatasync: port to MacOS X 10.7
40767         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
40768         declared.
40769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
40770         * modules/unistd (Makefile.am): Substitute it.
40771         * lib/unistd.in.h (fdatasync): Declare on MacOS.
40772         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
40774         fdatasync: minor improvements
40775         * modules/fdatasync (Depends-on): Add condition for fsync.
40776         * lib/fdatasync.c (fdatasync): Add comment.
40777         * tests/test-unistd-c++.cc: Test fdatasync.
40779         unistd: update refs to newer POSIX
40780         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
40781         Suggested by Bruno Haible.
40783         fdatasync: new module
40784         * modules/fsync (Description): Document difference to fdatasync.
40785         * modules/fdatasync: New module.
40786         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
40787         * lib/fdatasync.c (fdatasync): Likewise.
40788         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
40789         defaults.
40790         * modules/unistd (Makefile.am): Set witnesses.
40791         * lib/unistd.in.h (fdatasync): Declare.
40792         * MODULES.html.sh: Document it.
40793         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
40794         * modules/fdatasync-tests: New test.
40795         * tests/test-fdatasync.c: Likewise.
40797 2011-09-16  Eric Blake  <eblake@redhat.com>
40799         test-fsync: enhance tests
40800         * modules/fsync-tests (Depends-on): Add errno, for mingw.
40801         * tests/test-fsync.c (main): Enhance test.
40803 2011-09-15  Bruno Haible  <bruno@clisp.org>
40805         Support for MSVC compiler: Ensure ssize_t gets defined.
40806         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
40807         * doc/posix-headers/stdio.texi: Likewise.
40808         * modules/stdio (Depends-on): Add ssize_t.
40809         * modules/sys_socket (Depends-on): Likewise.
40810         * modules/sys_types (Depends-on): Likewise.
40811         * modules/sys_uio (Depends-on): Likewise.
40812         * modules/unistd (Depends-on): Likewise.
40813         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
40814         * tests/test-sys_types.c: Check that ssize_t is defined.
40816 2011-09-14  Bruno Haible  <bruno@clisp.org>
40818         Avoid using #, the m4 comment starter character, near brackets.
40819         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
40820         delimiter character in sed expressions.
40821         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
40822         Suggested by Eric Blake.
40824         Properly quote AC_CHECK_DECLS' 4th argument.
40825         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
40826         argument.
40827         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
40828         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
40829         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
40830         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
40831         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
40832         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
40833         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
40834         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
40835         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
40836         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
40837         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
40838         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
40839         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40840         * m4/isinf.m4 (gl_ISINF): Likewise.
40841         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
40842         * m4/readutmp.m4 (gl_READUTMP): Likewise.
40843         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40844         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40845         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40846         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
40847         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
40848         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
40849         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
40850         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
40851         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
40852         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
40853         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
40854         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40855         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40856         Reported by Eric Blake.
40858         Properly quote AC_CHECK_DECL's 4th argument.
40859         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
40860         argument.
40861         * m4/argp.m4 (gl_ARGP): Likewise.
40862         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
40863         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
40864         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
40865         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
40866         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
40867         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
40868         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
40869         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
40870         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
40871         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
40872         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
40873         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
40874         Reported by Eric Blake.
40876 2011-09-14  Eric Blake  <eblake@redhat.com>
40878         opendir: avoid compile warning
40879         * lib/opendir.c (includes): Always include errno.h.
40880         Reported by Tatsuro MATSUOKA.
40882 2011-09-14  Jim Meyering  <meyering@redhat.com>
40884         maint.mk: sc_tight_scope: propagate failure from sub-make
40885         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
40886         Reported by Martin von Gagern.
40888 2011-09-13  Bruno Haible  <bruno@clisp.org>
40890         tempname: Support for MSVC.
40891         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
40892         MSVC.
40893         * modules/tempname (Depends-on): Add fcntl-h.
40895 2011-09-13  Bruno Haible  <bruno@clisp.org>
40897         sys_time: Support for MSVC.
40898         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
40899         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
40900         include <winsock2.h>.
40901         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
40902         function declarations that collide with POSIX.
40903         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
40904         (Makefile.am): Substitute HAVE_WINSOCK2_H.
40906 2011-09-13  Bruno Haible  <bruno@clisp.org>
40908         stat: Support for MSVC.
40909         * lib/stat.c: Include pathmax.h.
40910         * modules/stat (Depends-on): Add pathmax.
40912         pathmax: Support for native Windows.
40913         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
40915 2011-09-12  Bruno Haible  <bruno@clisp.org>
40917         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
40918         * lib/dirent.in.h (struct dirent): New type.
40919         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
40920         DT_WHT): New macros.
40921         (DIR): New type.
40922         (opendir, closedir): Declare only if the module 'opendir' is enabled.
40923         (readdir, rewinddir): New declarations.
40924         * lib/dirent-private.h: New file.
40925         * lib/opendir.c: New file.
40926         * lib/readdir.c: New file.
40927         * lib/rewinddir.c: New file.
40928         * lib/closedir.c: New file.
40929         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
40930         * m4/opendir.m4: New file.
40931         * m4/readdir.m4: New file.
40932         * m4/rewinddir.m4: New file.
40933         * m4/closedir.m4: New file.
40934         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
40935         REPLACE_CLOSEDIR here.
40936         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
40937         readdir, rewinddir are declared.
40938         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
40939         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
40940         HAVE_REWINDDIR, HAVE_CLOSEDIR.
40941         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
40942         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
40943         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
40944         * modules/opendir: New file.
40945         * modules/readdir: New file.
40946         * modules/rewinddir: New file.
40947         * modules/closedir: New file.
40948         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
40949         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
40950         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
40951         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
40952         * NEWS: Mention the 'fchdir' change.
40954 2011-09-11  Bruno Haible  <bruno@clisp.org>
40956         asm-underscore.m4: Support for MSVC.
40957         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
40958         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
40960 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
40962         Doc about crypt functions.
40963         * doc/posix-functions/crypt.texi: Expand range of glibc versions
40964         needing for _GNU_SOURCE to get crypt.
40965         * doc/posix-functions/encrypt.texi: Likewise.
40966         * doc/posix-functions/setkey.texi: Likewise.
40968 2011-09-11  Bruno Haible  <bruno@clisp.org>
40970         doc: Update regarding MSVC 9.
40971         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
40972         tested".
40973         * doc/posix-functions/*.texi: Update with info about MSVC 9.
40974         * doc/posix-headers/*.texi: Likewise.
40975         * doc/pastposix-functions/*.texi: Likewise.
40976         * doc/glibc-functions/*.texi: Likewise.
40977         * doc/glibc-headers/*.texi: Likewise.
40979 2011-09-11  Bruno Haible  <bruno@clisp.org>
40981         unistd et al.: Don't assume <unistd.h> exists.
40982         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
40983         does not exist.
40984         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
40985         exist. But include <stdlib.h>.
40986         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
40987         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
40988         symlink() does not exist.
40989         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
40990         include <io.h> instead.
40991         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
40992         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
40993         include <direct.h> instead.
40994         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
40995         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
40996         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
40997         <io.h> instead.
40998         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
40999         correctly if the system does not have hard links.
41000         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
41001         <direct.h> instead.
41002         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
41003         it when looking for function declarations.
41004         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
41005         <direct.h> and <io.h> instead.
41006         * doc/posix-headers/unistd.texi: More details about MSVC problem.
41008 2011-09-11  Bruno Haible  <bruno@clisp.org>
41010         strcase: Support for MSVC.
41011         * modules/strcase (Status, Notice): Remove obsoletion mark.
41012         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
41013         * doc/posix-functions/strncasecmp.texi: Likewise.
41015         strings: Don't assume <strings.h> exists.
41016         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
41017         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
41018         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
41019         * doc/posix-headers/strings.texi: Mention the MSVC problem.
41021 2011-09-11  Bruno Haible  <bruno@clisp.org>
41023         dirent: Don't assume <dirent.h> exists.
41024         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
41025         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
41026         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
41027         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
41029 2011-09-11  Bruno Haible  <bruno@clisp.org>
41031         Fix wint_t on MSVC.
41032         * lib/wchar.in.h (wint_t): On MSVC, override it.
41033         * lib/wctype.in.h (wint_t): Likewise.
41034         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
41035         MSVC.
41036         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
41037         * doc/posix-headers/wctype.texi: Likewise.
41039 2011-09-11  Bruno Haible  <bruno@clisp.org>
41041         sys_types: Fix typo.
41042         * lib/sys_types.in.h: Fix typo in comment.
41043         Reported by Paul Eggert.
41045         Support for MSVC compiler: Ensure size_t gets defined.
41046         * modules/strings (Depends-on): Add 'sys_types'.
41047         * modules/sys_uio (Depends-on): Likewise.
41048         * lib/sys_uio.in.h: Update comment.
41050         C++ tests for module 'sys_types'.
41051         * modules/sys_types-c++-tests: New file.
41052         * tests/test-sys_types-c++.cc: New file.
41054         Tests for module 'sys_types'.
41055         * modules/sys_types-tests: New file.
41056         * tests/test-sys_types.c: New file.
41058         New module 'sys_types'.
41059         * lib/sys_types.in.h: New file.
41060         * m4/sys_types_h.m4: New file.
41061         * modules/sys_types: New file.
41062         * doc/posix-headers/sys_types.texi: Mention the new module and the
41063         size_t problem on MSVC 9.
41065 2011-09-11  Bruno Haible  <bruno@clisp.org>
41067         Support for MSVC compiler: Avoid division by a literal 0.
41068         * lib/math.in.h (NAN): Define through a function call also on MSVC.
41069         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
41070         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
41071         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
41072         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
41073         * tests/infinity.h: New file.
41074         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
41075         on MSVC.
41076         * tests/test-ceilf1.c: Include infinity.h.
41077         (main): Use Infinityf.
41078         * tests/test-ceil1.c: Include infinity.h.
41079         (main): Use Infinityd.
41080         * tests/test-ceill.c: Include infinity.h.
41081         (main): Use Infinityl.
41082         * tests/test-dprintf-posix.c: Include infinity.h.
41083         (test_function): Use Infinityd.
41084         * tests/test-floorf1.c: Include infinity.h.
41085         (main): Use Infinityf.
41086         * tests/test-floor1.c: Include infinity.h.
41087         (main): Use Infinityd.
41088         * tests/test-floorl.c: Include infinity.h.
41089         (main): Use Infinityl.
41090         * tests/test-fprintf-posix.c: Include infinity.h.
41091         (test_function): Use Infinityd.
41092         * tests/test-frexp.c: Include infinity.h.
41093         (main): Use Infinityd.
41094         * tests/test-frexpl.c: Include infinity.h.
41095         (main): Use Infinityl.
41096         * tests/test-isfinite.c: Include infinity.h.
41097         (test_isfinitef): Use Infinityf.
41098         (test_isfinited): Use Infinityd.
41099         (test_isfinitel): Use Infinityl.
41100         * tests/test-isinf.c: Include infinity.h.
41101         (test_isinff): Use Infinityf.
41102         (test_isinfd): Use Infinityd.
41103         (test_isinfl): Use Infinityl.
41104         * tests/test-isnan.c: Include infinity.h.
41105         (test_float): Use Infinityf.
41106         (test_double): Use Infinityd.
41107         (test_long_double): Use Infinityl.
41108         * tests/test-isnanf.h: Include infinity.h.
41109         (main): Use Infinityf.
41110         * tests/test-isnand.h: Include infinity.h.
41111         (main): Use Infinityd.
41112         * tests/test-isnanl.h: Include infinity.h.
41113         (main): Use Infinityl.
41114         * tests/test-ldexpl.c: Include infinity.h.
41115         (main): Use Infinityl.
41116         * tests/test-printf-posix.h: Include infinity.h.
41117         (test_function): Use Infinityd.
41118         * tests/test-roundf1.c: Include infinity.h.
41119         (main): Use Infinityf.
41120         * tests/test-round1.c: Include infinity.h.
41121         (main): Use Infinityd.
41122         * tests/test-roundl.c: Include infinity.h.
41123         (main): Use Infinityl.
41124         * tests/test-signbit.c: Include infinity.h.
41125         (test_signbitf): Use Infinityf.
41126         (test_signbitd): Use Infinityd.
41127         (test_signbitl): Use Infinityl.
41128         * tests/test-snprintf-posix.h: Include infinity.h.
41129         (test_function): Use Infinityd, Infinityl.
41130         * tests/test-sprintf-posix.h: Include infinity.h.
41131         (test_function): Use Infinityd, Infinityl.
41132         * tests/test-truncf1.c: Include infinity.h.
41133         (main): Use Infinityf.
41134         * tests/test-trunc1.c: Include infinity.h.
41135         (main): Use Infinityd.
41136         * tests/test-truncl.c: Include infinity.h.
41137         (main): Use Infinityl.
41138         * tests/test-vasnprintf-posix.c: Include infinity.h.
41139         (test_function): Use Infinityd, Infinityl.
41140         * tests/test-vasprintf-posix.c: Include infinity.h.
41141         (test_function): Use Infinityd, Infinityl.
41142         * modules/ceilf-tests (Files): Add tests/infinity.h.
41143         * modules/ceil-tests (Files): Likewise.
41144         * modules/ceill-tests (Files): Likewise.
41145         * modules/dprintf-posix-tests (Files): Likewise.
41146         * modules/floorf-tests (Files): Likewise.
41147         * modules/floor-tests (Files): Likewise.
41148         * modules/floorl-tests (Files): Likewise.
41149         * modules/fprintf-posix-tests (Files): Likewise.
41150         * modules/frexp-tests (Files): Likewise.
41151         * modules/frexp-nolibm-tests (Files): Likewise.
41152         * modules/frexpl-tests (Files): Likewise.
41153         * modules/frexpl-nolibm-tests (Files): Likewise.
41154         * modules/isfinite-tests (Files): Likewise.
41155         * modules/isinf-tests (Files): Likewise.
41156         * modules/isnan-tests (Files): Likewise.
41157         * modules/isnanf-tests (Files): Likewise.
41158         * modules/isnanf-nolibm-tests (Files): Likewise.
41159         * modules/isnand-tests (Files): Likewise.
41160         * modules/isnand-nolibm-tests (Files): Likewise.
41161         * modules/isnanl-tests (Files): Likewise.
41162         * modules/isnanl-nolibm-tests (Files): Likewise.
41163         * modules/ldexpl-tests (Files): Likewise.
41164         * modules/printf-posix-tests (Files): Likewise.
41165         * modules/roundf-tests (Files): Likewise.
41166         * modules/round-tests (Files): Likewise.
41167         * modules/roundl-tests (Files): Likewise.
41168         * modules/signbit-tests (Files): Likewise.
41169         * modules/snprintf-posix-tests (Files): Likewise.
41170         * modules/sprintf-posix-tests (Files): Likewise.
41171         * modules/truncf-tests (Files): Likewise.
41172         * modules/trunc-tests (Files): Likewise.
41173         * modules/truncl-tests (Files): Likewise.
41174         * modules/vasnprintf-posix-tests (Files): Likewise.
41175         * modules/vasprintf-posix-tests (Files): Likewise.
41176         * modules/vdprintf-posix-tests (Files): Likewise.
41177         * modules/vfprintf-posix-tests (Files): Likewise.
41178         * modules/vprintf-posix-tests (Files): Likewise.
41179         * modules/vsnprintf-posix-tests (Files): Likewise.
41180         * modules/vsprintf-posix-tests (Files): Likewise.
41181         * modules/xprintf-posix-tests (Files): Likewise.
41183 2011-09-11  Bruno Haible  <bruno@clisp.org>
41185         Ensure pid_t gets defined.
41186         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
41187         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
41188         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
41189         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
41190         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
41191         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
41192         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
41193         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
41194         * tests/test-fcntl-h.c: Check that pid_t is defined.
41195         * tests/test-sched.c: Likewise.
41196         * tests/test-termios.c: Likewise.
41197         * tests/test-time.c: Likewise.
41198         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
41199         * doc/posix-headers/signal.texi: Likewise.
41200         * doc/posix-headers/sys_types.texi: Likewise.
41201         * doc/posix-headers/time.texi: Likewise.
41203 2011-09-11  Bruno Haible  <bruno@clisp.org>
41205         acl: Fix compilation on Solaris 10 (older version).
41206         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
41207         of ACE_EVERYONE.
41208         * lib/set-mode-acl.c (qset_acl): Likewise.
41209         Reported by Christian Jullien <eligis@orange.fr>.
41211 2011-09-10  Bruno Haible  <bruno@clisp.org>
41213         iconv, unsetenv: Add support for MSVC compiler.
41214         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
41215         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
41217 2011-09-10  Bruno Haible  <bruno@clisp.org>
41219         *printf: Add support for MSVC compiler.
41220         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
41221         handles the exception caused by the %n directive. When cross-compiling,
41222         guess no on native Windows.
41223         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
41224         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
41225         emulate it through vsnprintf.
41226         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
41227         * doc/posix-functions/dprintf.texi: Update documentation regarding
41228         MSVC 9.
41229         * doc/posix-functions/fprintf.texi: Likewise.
41230         * doc/posix-functions/printf.texi: Likewise.
41231         * doc/posix-functions/snprintf.texi: Likewise.
41232         * doc/posix-functions/sprintf.texi: Likewise.
41233         * doc/posix-functions/swprintf.texi: Likewise.
41234         * doc/posix-functions/vdprintf.texi: Likewise.
41235         * doc/posix-functions/vfprintf.texi: Likewise.
41236         * doc/posix-functions/vprintf.texi: Likewise.
41237         * doc/posix-functions/vsnprintf.texi: Likewise.
41238         * doc/posix-functions/vsprintf.texi: Likewise.
41239         * doc/glibc-functions/asprintf.texi: Likewise.
41240         * doc/glibc-functions/obstack_printf.texi: Likewise.
41241         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
41242         * doc/glibc-functions/vasprintf.texi: Likewise.
41244 2011-09-10  Bruno Haible  <bruno@clisp.org>
41246         nocrash: Add support for native Windows.
41247         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
41249 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
41250             Bruno Haible  <bruno@clisp.org>
41252         absolute-header, include-next: Add support for MSVC compiler.
41253         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
41254         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
41255         directory separator in #line directives.
41256         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
41257         recognize also backslash as directory separator in #line directives.
41259 2011-09-08  Jim Meyering  <meyering@redhat.com>
41261         maint.mk: mark the post-release commit log with "maint: " prefix
41262         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
41263         one-line commit-log summary.
41265 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
41266             Bruno Haible  <bruno@clisp.org>
41268         Doc about crypt functions.
41269         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
41270         systems.
41271         * doc/posix-functions/encrypt.texi: Likewise.
41272         * doc/posix-functions/setkey.texi: Likewise.
41274 2011-09-08  Simon Josefsson  <simon@josefsson.org>
41276         * lib/gc.h: Fix copyright header.
41278 2011-09-07  Bruno Haible  <bruno@clisp.org>
41280         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
41281         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
41282         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
41284 2011-09-07  Bruno Haible  <bruno@clisp.org>
41286         openat: Work around compilation error with OSF/1 5.1 DTK cc.
41287         * lib/fopen.c: Use different syntax for include of <stdio.h>.
41288         * lib/freopen.c: Likewise.
41289         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
41290         * lib/lstat.c: Likewise.
41291         * lib/stat.c: Likewise.
41292         * lib/open.c: Use different syntax for include of <fcntl.h>.
41293         * lib/openat.c: Include fcntl.h again, explicitly.
41295 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
41297         parse-datetime: document the newly accepted format
41298         * doc/parse-datetime.texi (Combined date and time of day items):
41299         New section.
41301 2011-09-06  Bruno Haible  <bruno@clisp.org>
41303         acl: Fix a test failure on newer Solaris 10 with ZFS.
41304         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
41305         ENOSYS as no ACL.
41306         Reported by Jim Meyering.
41308 2011-09-06  Bruno Haible  <bruno@clisp.org>
41310         acl: Update for AIX >= 5.3 with NFS.
41311         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
41312         ENOSYS as no ACL.
41314         acl: Fix a test failure on AIX >= 5.3 with NFS.
41315         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
41316         as no ACL.
41318 2011-09-06  Bruno Haible  <bruno@clisp.org>
41320         acl: Fix a test failure on IRIX 6.5 with NFS.
41321         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
41322         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
41323         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
41324         * lib/copy-acl.c (qcopy_acl): Likewise.
41326 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
41328         openat: port to AIX 7.1 with large files
41329         AIX 7.1 does a "#define openat open64at" if large files are in use,
41330         so we can't simply #undef openat.  Use the orig_openat trick (similar
41331         to orig_open in lib/open.c) to work around the problem.  Problem
41332         reported by Kevin Brott for GNU tar, in the thread containing
41333         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
41334         * lib/openat.c (__need_system_fcntl_h): Define first.
41335         Include <fcntl.h> and <sys/types.h> before undefining.
41336         (orig_openat) [HAVE_OPENAT]: New inline function.
41337         (openat) [HAVE_OPENAT]: Do not undef.
41338         (rpl_openat): Use orig_openat, not openat.
41340 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
41341             Bruno Haible  <bruno@clisp.org>
41343         acl: Avoid errors on NonStop Kernel.
41344         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
41345         ENOTSUP errors.
41347 2011-09-05  Bruno Haible  <bruno@clisp.org>
41349         acl: Clean up Solaris code.
41350         * lib/acl-internal.h: Remove no-op #if.
41351         * lib/file-has-acl.c: Likewise.
41352         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
41353         * lib/copy-acl.c (qcopy_acl): Likewise.
41355 2011-09-05  Bruno Haible  <bruno@clisp.org>
41357         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
41358         binaries built on the original Solaris 10.
41359         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
41360         trivial.
41362 2011-09-05  Bruno Haible  <bruno@clisp.org>
41364         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
41365         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
41366         10.
41367         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
41368         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
41369         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
41370         instead of acl_get, facl_get, acl_set, facl_set.
41372 2011-09-05  Bruno Haible  <bruno@clisp.org>
41374         copy-file: Try unit tests on more file systems.
41375         * tests/test-copy-file-1.sh: New file.
41376         * tests/test-copy-file-2.sh: New file.
41377         * modules/copy-file-tests (Files): Add them.
41378         (Makefile.am): Add them to TESTS.
41380         acl: Try unit tests on more file systems.
41381         * tests/test-file-has-acl-1.sh: New file.
41382         * tests/test-file-has-acl-2.sh: New file.
41383         * tests/test-set-mode-acl-1.sh: New file.
41384         * tests/test-set-mode-acl-2.sh: New file.
41385         * tests/test-copy-acl-1.sh: New file.
41386         * tests/test-copy-acl-2.sh: New file.
41387         * modules/acl-tests (Files): Add them.
41388         (Makefile.am): Add them to TESTS.
41390 2011-09-04  Bruno Haible  <bruno@clisp.org>
41392         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
41393         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
41394         10.
41395         (OLD_ALLOW, OLD_DENY): New macros.
41396         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
41397         ACE_ACCESS_ALLOWED_ACE_TYPE.
41398         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
41399         ACE_ACCESS_DENIED_ACE_TYPE.
41400         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
41401         (NEW_ACE_EXECUTE): Fix value.
41402         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
41403         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
41404         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
41405         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
41406         NEW_ACE_SYNCHRONIZE): New macros.
41407         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
41408         instead of acl_fromtext, acl_set, facl_set.
41409         Fixes a coreutils/tests/cp/perm failure.
41411 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
41413         openat: test for fstatat (..., 0) bug
41414         Further testing with tar suggests that fstatat (..., 0)
41415         does not work in general, on AIX 7.1; see
41416         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
41417         So, give up entirely on AIX 7.1's fstatat, and fall back on our
41418         replacement fstatat (which is what older AIX releases were using
41419         anyway).
41420         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
41421         use is now changed to orig_fstatat.  This was probably the right
41422         thing to do anyway.
41423         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
41424         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
41425         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
41426         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
41427         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
41428         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
41429         if the bug is found.
41431         openat: test for fstatat (AT_FDCWD, ..., 0) bug
41432         This tests for another fstatat bug on AIX 7.1:
41433         fstatat (AT_FDCWD, ..., 0) does not work.  See
41434         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
41435         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
41436         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
41437         (rpl_fstatat): Adjust so that it works around either (or both)
41438         bugs if present.
41439         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
41441 2011-09-03  Karl Berry  <karl@gnu.org>
41443         * doc/regex.texi (Character Class Operators): Avoid literal ":"
41444         in index entries.
41446 2011-09-02  Bruno Haible  <bruno@clisp.org>
41448         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
41449         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
41450         values of AR, ARFLAGS, RANLIB.
41451         Reported by John W. Eaton <jwe@gnu.org> for Octave.
41453 2011-09-02  Bruno Haible  <bruno@clisp.org>
41455         Find 'ar' program that fits with --host argument.
41456         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
41458 2011-09-02  Bruno Haible  <bruno@clisp.org>
41460         tests: init.sh: Support any non-GNU diff.
41461         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
41462         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
41463         Solaris 8.
41465 2011-09-02  Bruno Haible  <bruno@clisp.org>
41467         tests: init.sh: work also with any non-GNU diff that supports -u
41468         * tests/init.sh: Relax check for diff -u support.
41469         Rather than checking for GNU diff via --version, simply check
41470         for support for -u itself.  Useful at least on OpenBSD 4.9,
41471         AIX 7.1, IRIX 6.5, and Solaris 10.
41473 2011-09-01  Bruno Haible  <bruno@clisp.org>
41475         strtoimax, strtoumax: Document problem on HP-UX 11.
41476         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
41477         * doc/posix-functions/strtoumax.texi: Likewise.
41479 2011-09-01  Bruno Haible  <bruno@clisp.org>
41481         strtoumax: Avoid link error on OSF/1 with DTK cc.
41482         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
41483         defined as a function.
41484         * modules/strtoumax (Depends-on, configure.ac): Test only whether
41485         strtoumax is defined, not whether it is declared.
41487 2011-09-01  Bruno Haible  <bruno@clisp.org>
41489         strtoimax: Avoid link error on OSF/1 with DTK cc.
41490         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
41491         defined as a function.
41492         * modules/strtoimax (Depends-on, configure.ac): Test only whether
41493         strtoimax is defined, not whether it is declared.
41495 2011-09-01  Bruno Haible  <bruno@clisp.org>
41497         imaxdiv: Avoid link error on OSF/1 with DTK cc.
41498         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
41499         as a function.
41500         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
41501         whether it is declared.
41503 2011-09-01  Bruno Haible  <bruno@clisp.org>
41505         imaxabs: Avoid link error on OSF/1 with DTK cc.
41506         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
41507         as a function.
41508         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
41509         whether it is declared.
41511 2011-09-01  Bruno Haible  <bruno@clisp.org>
41513         Tests for module 'strtoumax'.
41514         * modules/strtoumax-tests: New file.
41515         * tests/test-strtoumax.c: New file.
41517         Tests for module 'strtoimax'.
41518         * modules/strtoimax-tests: New file.
41519         * tests/test-strtoimax.c: New file.
41521         Tests for module 'imaxdiv'.
41522         * modules/imaxdiv-tests: New file.
41523         * tests/test-imaxdiv.c: New file.
41525         Tests for module 'imaxabs'.
41526         * modules/imaxabs-tests: New file.
41527         * tests/test-imaxabs.c: New file.
41529 2011-09-01  Bruno Haible  <bruno@clisp.org>
41531         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
41532         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
41533         pthread_create.
41535 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41537         openat: work around AIX 7.1 fstatat issue
41538         This should fix the problem that was not properly fixed
41539         in the previous change, dated 2011-08-30.
41540         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
41541         __need_system_stat_h defined.
41542         (orig_fstatat) [HAVE_FSTATAT]: New function.
41543         (rpl_fstatat): Go back to the old way of doing things,
41544         except call orig_fstatat instead of fstatat.
41545         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
41546         Remove unnecessary check whether fstatat fills in st_size etc.
41548 2011-09-01  Bruno Haible  <bruno@clisp.org>
41550         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
41551         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
41552         just include the system's header.
41554 2011-08-31  Jim Meyering  <meyering@redhat.com>
41556         tests: avoid spurious assertion failure in test-float.c on ppc64
41557         * tests/test-float.c (test_long_double): Comment out an assertion,
41558         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
41559         with gcc-4.4.4.
41561         maint: indent with spaces, not TABs
41562         I need to get in the habit of running gnulib's "make check".
41563         Both of these would have been caught.
41564         * m4/largefile.m4: Indent with spaces, not TABs.
41565         * lib/parse-datetime.y (iso_8601_time): Likewise.
41566         Spotted by Pádraig Brady.
41568         test-parse-datetime.c: accommodate a relatively strict gcc warning
41569         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
41570         to avoid a warning from gcc's -Werror=missing-declarations.
41571         Insert a few spaces-before-funcall-parenthesis.
41573 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
41575         parse-datetime: accept ISO 8601 date and time rep with "T" separator
41576         The parser now accepts ISO 8601 date-time strings with "T" as the
41577         separator.  It has long parsed dates like "2004-02-29 16:21:42"
41578         with a space between the date and time strings.  Now it also parses
41579         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
41580         variants like "2004-02-29T16:21:42.333-07:00"
41581         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
41582         of day representation using the 'T' separator character.
41583         * doc/parse-datetime.texi (General date syntax): replace use of
41584         deprecated --iso-8601 option with --rfc-3339 in example of date
41585         command output formats that can be parsed.
41586         * tests/test-parse-datetime.c (tm_diff): New function, taken from
41587         lib/parse-datetime.y.
41588         (gmt_offset): New function.
41589         (main): Add additional test cases to validate ISO8601 extended
41590         date and time of day parsing.
41592 2011-08-31  Bruno Haible  <bruno@clisp.org>
41594         freopen: Documentation.
41595         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
41596         name.
41597         Reported by Claudio Bley <claudio.bley@gmail.com>.
41599 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
41601         freopen: Don't crash if the filename argument is NULL.
41602         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
41603         NULL.
41605 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41607         openat: work around AIX 7.1 fstatat bug
41608         Problem reported by Kevin Brott for GNU tar, in the thread containing
41609         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
41610         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
41611         FSTATAT_ST_SIZE_ETC_BROKEN.
41612         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
41613         rpl_fstatat.
41614         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
41615         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
41616         AC_CHECK_FUNCS_ONCE for fstatat.
41617         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
41618         fchmodat, mkdirat, openat and unlinkat.
41620 2011-08-30  Bruno Haible  <bruno@clisp.org>
41622         Avoid endless recursions if config.h includes some header files.
41623         * lib/fopen.c (__need_FILE): Define already before including config.h.
41624         * lib/freopen.c (__need_FILE): Likewise.
41625         * lib/open.c (__need_system_fcntl_h): Likewise.
41626         * lib/stat.c (__need_system_sys_stat_h): Likewise.
41627         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
41628         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
41630 2011-08-25  Karl Berry  <karl@gnu.org>
41632         * config/srclist.txt (ylwrap): new try.
41633         * build-aux/ylwrap: new file.
41635 2011-08-23  Bruno Haible  <bruno@clisp.org>
41637         tmpdir: Use a good default directory on native Windows.
41638         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
41639         (P_tmpdir): Default to _P_tmpdir on native Windows.
41640         (path_search): On native Windows, try the value returned by GetTempPath
41641         before trying P_tmpdir.
41642         * modules/tmpdir (Depends-on): Add pathmax.
41643         Suggested by John Darrington <john@darrington.wattle.id.au>.
41645 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
41647         doc: fix typo in README-release
41648         * top/README-release: Capitalize first word of a sentence.
41650 2011-08-19  Jim Meyering  <meyering@redhat.com>
41652         fts: do not exhaust memory when processing million-entry directories
41653         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
41654         directory would require about 256*N bytes of memory.  Thus, it was
41655         easy to construct a directory too large to be processed by any of
41656         those tools.  With this change, fts' maximum memory utilization is
41657         now limited to around 30MB.
41658         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
41659         (fts_read): When we've processed the final entry (i.e., when
41660         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
41661         using the parent entry to read any remaining entries.  Dispatch
41662         depending on what fts_build returns:
41663         - NULL+stop, aka failure: stop
41664         - NULL otherwise: move up in the dir hierarchy
41665         - non-NULL: handle this new entry
41666         (fts_build): Declare and use new local, continue_readdir.
41667         Prepare to be called from fts_read, when the entries
41668         from a partially-read directory have just been exhausted.
41669         In that case, we'll skip the opendir and instead use the parent's
41670         fts_dirp and derive dir_fd from that.
41671         Finally, in the readdir loop, if we read max_entries entries,
41672         exit the loop ensuring *not* to call closedir.  This is required
41673         so that fts_dirp can be reused on a subsequent call.
41674         Prompted by Ben England's report of memory exhaustion in find
41675         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
41677         maint: fts: move decl of `dp' down into while loop; split a long line
41678         * lib/fts.c (fts_build): No semantic change.
41680         fts: add/use new struct member, fts_dirp
41681         We are about to use this to manage any directory with
41682         too many entries to read all of them into memory at once.
41683         To do that, we'll need to save the DIR* pointer in each
41684         affected FTSENT struct.
41685         * lib/fts_.h: Include <dirent.h>.
41686         (struct FTSENT) [fts_dirp]: New member.
41687         * lib/fts.c (closedir_and_clear): Define.
41688         Use it in place of closedir so that we are sure to
41689         clear the new fts_dirp member when done with it.
41690         (fts_alloc): Initialize the new member.
41691         (fts_lfree): Free, if needed.
41693         maint: fts: give __opendir2 a new parameter and rename
41694         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
41695         than surreptitiously using sole caller's "dir_fd".
41696         (fts_opendir): Rename from __opendir2.
41698         maint: fts.c: remove __opendir2's now-unused parameter, oflag
41699         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
41701         maint: fts.c: correct off-by-one indentation
41702         * lib/fts.c (fts_build): Correct indentation, change style
41703         of a couple of block comments, and bracing style.
41705         maint: fts.c: move __opendir2 #define "up" out of function body
41706         * lib/fts.c (__opendir2): Move "up".  No semantic change.
41708         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
41709         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
41710         out for a long time and besides was useful only on BSD systems.
41712 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
41714         regex: port to Stratus OpenVOS
41715         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
41716         define to empty, rather than attempting nonportable optimizations.
41717         Problem reported by Paul Green in:
41718         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
41719         and fix suggested by Eric Blake in:
41720         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
41722 2011-08-17  Eric Blake  <eblake@redhat.com>
41724         getcwd: fix test failures on mingw
41725         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
41726         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
41727         test if long directory cannot be created, and allow mingw errno.
41729         getcwd-lgpl: fix m4 to match relaxed test for BSD
41730         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
41731         (gl_FUNC_GETCWD_SIGNATURE): New macro.
41732         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
41733         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
41734         signature problem.
41736         getcwd: fix compilation on mingw64
41737         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
41738         getcwd.
41739         Reported by Marc-André Lureau.
41741         pipe2: silence compiler warning
41742         * lib/pipe2.c (pipe2): Hide label if it is not used.
41744 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
41746         relocatable-prog: fix link error
41747         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
41748         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
41749         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
41750         into modules/relocatable-lib without noticing that
41751         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
41752         also needs to build relocatable.c.
41754 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
41756         getaddrinfo: fix sh typo in gai_strerrorA decl checking
41757         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
41758         shell code: it contained a 'break' that was not in a loop.
41759         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
41760         via a shell-language loop; this may have been true in old Autoconf
41761         versions, but it's not true in Autoconf 2.68.  I found this bug
41762         when testing coreutils git on Solaris 8, whose shell complains
41763         about the syntax error.
41765 2011-08-12  Simon Josefsson  <simon@josefsson.org>
41767         * lib/base64.c: Fix comment to reference RFC 4648.
41768         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
41769         <gvtulder@gmail.com>.
41771 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
41773         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
41775         po/Makefile.in.in: fix make -q problem
41776         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
41777         rule, since there's no file named 'check-macro-version' and its
41778         use as a file breaks make -q.
41779         (all): Don't depend on check-macro-version.
41780         (CHECK_MACRO_VERSION): New macro.
41781         (stamp-po): Use it.
41783         configmake: fix make -q problem
41784         * modules/configmake (configmake.h): Update configmake.h's time stamp
41785         even if the file does not change.  Otherwise, 'make -q' fails.
41786         Problem reported by Simon Josefsson in
41787         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
41789 2011-08-11  Jim Meyering  <meyering@redhat.com>
41791         git-version-gen: correct the advice in a comment
41792         * build-aux/git-version-gen: Correct comment.
41793         Don't recommend to list .tarball-version in .gitignore.
41795 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
41797         base64: fix off-by-one buffer size bug
41798         Problem and (trivial) fix reported by Gijs van Tulder in
41799         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
41800         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
41801         * tests/test-base64.c (main): Catch the bug.
41803 2011-08-10  Eric Blake  <eblake@redhat.com>
41805         closein: correct comments
41806         * lib/closein.c (close_stdin): Improve comments.
41808 2011-08-09  Bruno Haible  <bruno@clisp.org>
41810         More tests for 'fseeko'.
41811         * tests/test-fseeko3.c: New file, from Eric Blake.
41812         * tests/test-fseeko3.sh: New file.
41813         * modules/fseeko-tests (Files): Add them.
41814         (TESTS): Add test-fseeko3.sh.
41815         (check_PROGRAMS): Add test-fseeko3.
41817 2011-08-09  Eric Blake  <eblake@redhat.com>
41819         fseeko: remove unneeded hack
41820         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
41822         fseeko: fix bug on glibc
41823         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
41824         Reported by John W. Eaton.
41826 2011-08-08  Bruno Haible  <bruno@clisp.org>
41828         unictype/base: Fix interoperability with preinstalled libunistring.
41829         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
41830         Reported by Simon Josefsson.
41832 2011-08-08  Bruno Haible  <bruno@clisp.org>
41834         iswblank: Detect declaration correctly.
41835         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
41836         AC_CHECK_DECLS invocation.
41838 2011-08-08  Bruno Haible  <bruno@clisp.org>
41840         tcgetsid: Detect declaration correctly.
41841         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
41842         AC_CHECK_DECLS invocation.
41843         Reported by Simon Josefsson.
41845 2011-08-08  Eric Blake  <eblake@redhat.com>
41847         largefile: fix typo that regressed large file support
41848         * modules/largefile (configure.ac-early): Fix section name.
41850 2011-08-06  Karl Berry  <karl@gnu.org>
41852         * MODULES.html.sh (func_all_files): _Noreturn is no longer
41853         a separate module.
41855 2011-08-05  Simon Josefsson  <simon@josefsson.org>
41857         openat: Fix warnings and commens when building unlinkat.c on Hurd.
41858         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
41859         get prototype for free.
41861 2011-08-04  Bruno Haible  <bruno@clisp.org>
41863         Tests for module 'pathmax'.
41864         * modules/pathmax-tests: New file.
41865         * tests/test-pathmax.c: New file.
41867         canonicalize-lgpl: Support larger filenames on the Hurd.
41868         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
41869         Reported by Paul Eggert.
41871         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
41872         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
41873         * lib/chdir-long.h: Include pathmax.h.
41874         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
41875         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
41876         (PATH_MAX): Remove code that is done by pathmax.h.
41877         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
41878         * lib/tmpfile.c: Add a comment.
41879         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
41880         * modules/chdir-long (Depends-on): Add pathmax.
41881         * modules/getcwd (Depends-on): Add pathmax.
41882         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
41883         is not defined.
41884         * doc/posix-headers/limits.texi: Mention the pathmax module.
41885         * NEWS: Mention the change.
41887 2011-08-02  Bruno Haible  <bruno@clisp.org>
41889         pthread_sigmask: Actually use results of gl_THREADLIB.
41890         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
41891         gl_THREADLIB, not gl_[]THREADLIB.
41892         Reported by Eric Blake.
41894 2011-08-02  Jim Meyering  <meyering@redhat.com>
41896         maint.mk: relax the default _gl_TS_function_match regexp
41897         * top/maint.mk (_gl_TS_function_match): Don't require at least one
41898         space between function name and "(" in an "extern" declaration.
41899         That would fail to match a decl with no space there: extern void foo();
41901 2011-07-31  Iain Nicol  <iain@thenicols.net>
41903         git-version-gen: document that EXTRA_DIST must include .version
41904         * build-aux/git-version-gen: In the how-to-use comment, document
41905         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
41906         will fail when run from an unpacked distribution tarball.
41908 2011-08-01  Bruno Haible  <bruno@clisp.org>
41910         wctype-h: Fix last change.
41911         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
41912         REPLACE_TOWLOWER to 0.
41913         Reported by Sam Steingold <sds@gnu.org>.
41915 2011-07-31  Bruno Haible  <bruno@clisp.org>
41917         frexpl: Update autoconf test.
41918         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
41919         according to changes of 2011-06-20.
41921 2011-07-31  Bruno Haible  <bruno@clisp.org>
41923         sys_utsname: Add support for Minix.
41924         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
41925         <sys/utsname.h>.
41926         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
41927         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
41929 2011-07-31  Bruno Haible  <bruno@clisp.org>
41931         strings: Add support for Minix.
41932         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
41933         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
41934         * doc/posix-headers/strings.texi: Document the Minix problem.
41936 2011-07-31  Bruno Haible  <bruno@clisp.org>
41938         wctype-h: Add support for Minix.
41939         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
41940         REPLACE_TOWLOWER.
41941         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
41942         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
41943         REPLACE_ISWCNTRL.
41945 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
41947         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
41948         This is a performance improvement for 64-bit hosts: it causes the
41949         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
41951 2011-07-31  Bruno Haible  <bruno@clisp.org>
41953         stdioext: Add support for Minix.
41954         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
41955         * lib/fpurge.c (fpurge): Likewise.
41956         * lib/freadahead.c (freadahead): Likewise.
41957         * lib/freadable.c (freadable): Likewise.
41958         * lib/freading.c (freading): Likewise.
41959         * lib/freadptr.c (freadptr): Likewise.
41960         * lib/freadseek.c (freadptrinc): Likewise.
41961         * lib/fseeko.c (rpl_fseeko): Likewise.
41962         * lib/fseterr.c (fseterr): Likewise.
41963         * lib/fwritable.c (fwritable): Likewise.
41964         * lib/fwriting.c (fwriting): Likewise.
41965         * lib/fflush.c (clear_ungetc_buffer): Update comment.
41966         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
41968 2011-07-31  Bruno Haible  <bruno@clisp.org>
41970         errno: Port to Minix.
41971         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
41972         ECONNABORTED are defined.
41973         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
41974         GNULIB_defined_ECONNABORTED): New macros.
41975         * lib/strerror-override.h (strerror_override): Test also
41976         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
41977         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
41978         ECONNABORTED.
41979         * doc/posix-headers/errno.texi: Mention the Minix problem.
41981 2011-07-31  Bruno Haible  <bruno@clisp.org>
41983         Work around declaration collisions on Minix.
41984         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
41985         defined, set REPLACE_MBSINIT.
41986         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
41987         defined, set REPLACE_MBRTOWC.
41988         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
41989         set REPLACE_MBRLEN.
41990         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
41991         defined, set REPLACE_MBSRTOWCS.
41992         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
41993         defined, set REPLACE_WCRTOMB.
41994         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
41995         defined, set REPLACE_WCSRTOMBS.
41997 2011-07-31  Bruno Haible  <bruno@clisp.org>
41999         Add support for Minix with ACK compiler.
42000         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
42001         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
42002         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
42004 2011-07-31  Bruno Haible  <bruno@clisp.org>
42006         Documentation about Minix.
42007         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
42008         * doc/glibc-headers/*.texi: Likewise.
42009         * doc/posix-functions/*.texi: Likewise.
42010         * doc/glibc-functions/*.texi: Likewise.
42012 2011-07-31  Bruno Haible  <bruno@clisp.org>
42014         snippet/warn-on-use: Fix indentation.
42015         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
42017 2011-07-25  Jim Meyering  <meyering@redhat.com>
42019         tests: test-update-copyright.sh: remove unnecessary "rm" commands
42020         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
42021         commands.
42023 2011-07-27  Jim Meyering  <meyering@redhat.com>
42025         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
42026         * top/maint.mk (gl_extract_significant_defines_): Now that
42027         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
42028         gnulib/lib/signal.in.h, and now that we recommend to
42029         define-if-undefined those two symbols in application code,
42030         we must filter them out of the "significant" list.
42031         This avoids a "make syntax-check" failure in coreutils.
42033 2011-07-26  Eric Blake  <eblake@redhat.com>
42035         warnings: add comments about previous patch
42036         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
42037         * m4/include_next.m4: Likewise.
42038         * m4/warn-on-use.m4: Likewise.
42039         * m4/warnings.m4: Likewise, and simplify use.
42040         Suggested by Stefano Lattarini.
42042         include-next, warnings: support older autoconf
42043         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
42044         AS_VAR_PUSHDEF in a way that works with older autoconf.
42045         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
42046         Reported by Daniel P. Berrange.
42048 2011-07-25  Bruno Haible  <bruno@clisp.org>
42050         fseek, ftell: Fix doc.
42051         * doc/posix-functions/fseek.texi: Reword statement about
42052         AC_SYS_LARGEFILE.
42053         * doc/posix-functions/ftell.texi: Likewise.
42055 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
42056             Bruno Haible  <bruno@clisp.org>
42058         Add dependencies to the 'largefile' module.
42059         * modules/fopen (Depends-on): Add 'largefile'.
42060         * modules/freopen (Depends-on): Likewise.
42061         * modules/fseeko (Depends-on): Likewise.
42062         * modules/ftello (Depends-on): Likewise.
42063         * modules/glob (Depends-on): Likewise.
42064         * modules/lseek (Depends-on): Likewise.
42065         * modules/lstat (Depends-on): Likewise.
42066         * modules/mkostemp (Depends-on): Likewise.
42067         * modules/mkostemps (Depends-on): Likewise.
42068         * modules/mkstemp (Depends-on): Likewise.
42069         * modules/mkstemps (Depends-on): Likewise.
42070         * modules/open (Depends-on): Likewise.
42071         * modules/openat (Depends-on): Likewise.
42072         * modules/pread (Depends-on): Likewise.
42073         * modules/pwrite (Depends-on): Likewise.
42074         * modules/scandir (Depends-on): Likewise.
42075         * modules/stat (Depends-on): Likewise.
42076         * modules/tmpfile (Depends-on): Likewise.
42077         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
42078         since the containing module now depends on the largefile module.
42079         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
42080         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
42081         off_t is fixed by gnulib.
42082         * doc/posix-functions/freopen.texi: Likewise.
42083         * doc/posix-functions/fseeko.texi: Likewise.
42084         * doc/posix-functions/fstatat.texi: Likewise.
42085         * doc/posix-functions/ftello.texi: Likewise.
42086         * doc/posix-functions/glob.texi: Likewise.
42087         * doc/posix-functions/lseek.texi: Likewise.
42088         * doc/posix-functions/lstat.texi: Likewise.
42089         * doc/posix-functions/mkstemp.texi: Likewise.
42090         * doc/posix-functions/open.texi: Likewise.
42091         * doc/posix-functions/openat.texi: Likewise.
42092         * doc/posix-functions/pread.texi: Likewise.
42093         * doc/posix-functions/pwrite.texi: Likewise.
42094         * doc/posix-functions/scandir.texi: Likewise.
42095         * doc/posix-functions/stat.texi: Likewise.
42096         * doc/posix-functions/tmpfile.texi: Likewise.
42097         * doc/glibc-functions/mkostemp.texi: Likewise.
42098         * doc/glibc-functions/mkostemps.texi: Likewise.
42099         * doc/glibc-functions/mkstemps.texi: Likewise.
42101 2011-07-25  Bruno Haible  <bruno@clisp.org>
42103         fcntl: Move AC_LIBOBJ invocation to module description.
42104         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
42105         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
42107         fcntl: Remove call-in from fchdir.m4.
42108         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
42109         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
42111         dup3: Remove potential call-in from fchdir.m4.
42112         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
42113         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
42115         dup2: Move AC_LIBOBJ invocation to module description.
42116         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
42117         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
42118         Don't invoke AC_LIBOBJ.
42119         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
42121         dup2: Remove call-in from fchdir.m4.
42122         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
42123         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
42125         fclose: Move AC_LIBOBJ invocation to module description.
42126         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
42127         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
42128         to 1.
42129         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
42131         fclose: Remove call-in from close.m4.
42132         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
42133         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
42135         close: Move AC_LIBOBJ invocation to module description.
42136         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
42137         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
42138         1.
42139         * modules/close (configure.ac): Invoke AC_LIBOBJ.
42141         close: Remove call-in from fchdir.m4.
42142         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
42143         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
42145         open: Move AC_LIBOBJ invocation to module description.
42146         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
42147         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
42148         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
42150         open: Remove call-in from fchdir.m4.
42151         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
42152         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
42154         fchdir: Start to remove gl_REPLACE_* idiom.
42155         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
42156         (gl_FUNC_FCHDIR): Invoke it.
42158 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
42160         * lib/ftell.c (ftell): Comment out cast.
42162         close: use gl_REPLACE_FCLOSE only if defined
42163         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
42164         is defined.  The close module doesn't depend on the fclose module
42165         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
42166         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
42167         I reproduced the problem with "./gnulib-tool --test close sys_socket".
42169 2011-07-24  Jim Meyering  <meyering@redhat.com>
42171         test-select.h: avoid warning when using gcc's -Wmissing-declarations
42172         * tests/test-select.h (test_function): Declare as "static".
42174 2011-07-24  Bruno Haible  <bruno@clisp.org>
42176         doc: Mention the effects of AC_SYS_LARGEFILE.
42177         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
42178         on this function.
42179         * doc/posix-functions/aio_error.texi: Likewise.
42180         * doc/posix-functions/aio_fsync.texi: Likewise.
42181         * doc/posix-functions/aio_read.texi: Likewise.
42182         * doc/posix-functions/aio_return.texi: Likewise.
42183         * doc/posix-functions/aio_suspend.texi: Likewise.
42184         * doc/posix-functions/aio_write.texi: Likewise.
42185         * doc/posix-functions/fgetpos.texi: Likewise.
42186         * doc/posix-functions/fopen.texi: Likewise.
42187         * doc/posix-functions/freopen.texi: Likewise.
42188         * doc/posix-functions/fsetpos.texi: Likewise.
42189         * doc/posix-functions/fstatvfs.texi: Likewise.
42190         * doc/posix-functions/ftruncate.texi: Likewise.
42191         * doc/posix-functions/ftw.texi: Likewise.
42192         * doc/posix-functions/getrlimit.texi: Likewise.
42193         * doc/posix-functions/glob.texi: Likewise.
42194         * doc/posix-functions/lio_listio.texi: Likewise.
42195         * doc/posix-functions/lockf.texi: Likewise.
42196         * doc/posix-functions/mkstemp.texi: Likewise.
42197         * doc/posix-functions/mmap.texi: Likewise.
42198         * doc/posix-functions/nftw.texi: Likewise.
42199         * doc/posix-functions/openat.texi: Likewise.
42200         * doc/posix-functions/opendir.texi: Likewise.
42201         * doc/posix-functions/posix_fadvise.texi: Likewise.
42202         * doc/posix-functions/posix_fallocate.texi: Likewise.
42203         * doc/posix-functions/pread.texi: Likewise.
42204         * doc/posix-functions/pwrite.texi: Likewise.
42205         * doc/posix-functions/readdir.texi: Likewise.
42206         * doc/posix-functions/readdir_r.texi: Likewise.
42207         * doc/posix-functions/rewinddir.texi: Likewise.
42208         * doc/posix-functions/scandir.texi: Likewise.
42209         * doc/posix-functions/seekdir.texi: Likewise.
42210         * doc/posix-functions/setrlimit.texi: Likewise.
42211         * doc/posix-functions/statvfs.texi: Likewise.
42212         * doc/posix-functions/telldir.texi: Likewise.
42213         * doc/posix-functions/tmpfile.texi: Likewise.
42214         * doc/posix-functions/truncate.texi: Likewise.
42215         * doc/glibc-functions/fallocate.texi: Likewise.
42216         * doc/glibc-functions/fstatfs.texi: Likewise.
42217         * doc/glibc-functions/fts_children.texi: Likewise.
42218         * doc/glibc-functions/fts_read.texi: Likewise.
42219         * doc/glibc-functions/getdirentries.texi: Likewise.
42220         * doc/glibc-functions/mkostemp.texi: Likewise.
42221         * doc/glibc-functions/mkostemps.texi: Likewise.
42222         * doc/glibc-functions/mkstemps.texi: Likewise.
42223         * doc/glibc-functions/preadv.texi: Likewise.
42224         * doc/glibc-functions/pwritev.texi: Likewise.
42225         * doc/glibc-functions/sendfile.texi: Likewise.
42226         * doc/glibc-functions/statfs.texi: Likewise.
42228 2011-07-24  Bruno Haible  <bruno@clisp.org>
42230         doc: Fix typo.
42231         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
42233 2011-07-24  Bruno Haible  <bruno@clisp.org>
42235         doc: Mention fsusage.
42236         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
42238 2011-07-24  Bruno Haible  <bruno@clisp.org>
42240         doc: Mention new glibc headers and functions.
42241         * doc/glibc-headers/gshadow.texi: New file.
42242         * doc/glibc-functions/endsgent.texi: New file.
42243         * doc/glibc-functions/fgetsgent.texi: New file.
42244         * doc/glibc-functions/fgetsgent_r.texi: New file.
42245         * doc/glibc-functions/getsgent.texi: New file.
42246         * doc/glibc-functions/getsgent_r.texi: New file.
42247         * doc/glibc-functions/getsgnam.texi: New file.
42248         * doc/glibc-functions/getsgnam_r.texi: New file.
42249         * doc/glibc-functions/putsgent.texi: New file.
42250         * doc/glibc-functions/setsgent.texi: New file.
42251         * doc/glibc-functions/sgetsgent.texi: New file.
42252         * doc/glibc-functions/sgetsgent_r.texi: New file.
42253         * doc/glibc-functions/malloc_info.texi: New file.
42254         * doc/glibc-functions/preadv.texi: New file.
42255         * doc/glibc-functions/pwritev.texi: New file.
42256         * doc/glibc-functions/register_printf_modifier.texi: New file.
42257         * doc/glibc-functions/register_printf_specifier.texi: New file.
42258         * doc/glibc-functions/register_printf_type.texi: New file.
42259         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
42260         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
42261         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
42262         * doc/glibc-functions/pthread_getname_np.texi: New file.
42263         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
42264         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
42265         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
42266         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
42267         * doc/glibc-functions/pthread_setname_np.texi: New file.
42268         * doc/glibc-functions/pthread_sigqueue.texi: New file.
42269         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
42270         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
42271         * doc/glibc-functions/qsort_r.texi: New file.
42272         * doc/glibc-functions/quick_exit.texi: New file.
42273         * doc/glibc-functions/syncfs.texi: New file.
42274         * doc/gnulib.texi: Include them.
42275         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
42276         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
42277         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
42278         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
42279         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
42280         * doc/glibc-functions/execvpe.texi: Likewise.
42282 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
42284         ftell: don't include <unistd.h>
42285         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
42286         guaranteed to define off_t, and the ftell module depends on the
42287         stdio module.
42289         ftell: do not assume wraparound signed arithmetic
42290         * lib/ftell.c: Include <limits.h>.
42291         (ftell): Don't assume wraparound signed arithmetic.
42293 2011-07-24  Bruno Haible  <bruno@clisp.org>
42295         close: No longer depend on module 'fclose'.
42296         * modules/close (Depends-on): Remove fclose.
42297         * NEWS: Mention the change.
42298         Suggested by Sam Steingold <sds@gnu.org>.
42300 2011-07-24  Bruno Haible  <bruno@clisp.org>
42302         fsusage: Enable large volume support on AIX >= 5.2.
42303         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
42304         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
42305         instead of STAT_STATVFS.
42306         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
42308         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
42309         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
42310         f_blocks field only on MacOS X.
42312         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
42313         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
42314         * modules/fsusage (Depends-on): Add largefile.
42316 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
42318         * README: Modernize discussion of signed integers.
42319         Assuming overflow wraparound is no longer safe.
42320         Mention ones' complement and signed magnitude.
42322 2011-07-22  Bruno Haible  <bruno@clisp.org>
42324         select tests, pselect tests: Refactor.
42325         * tests/test-select.h: New file, extracted from tests/test-select.c.
42326         (select_fn): New type.
42327         (test, do_select, do_select_nowait, do_select_wait, test_tty,
42328         test_connect_first, test_accept_first, test_pair, test_socket_pair,
42329         test_pipe): Add my_select argument.
42330         (test_function): Renamed from main. Add my_select argument.
42331         * tests/test-select.c: Move most code to tests/test-select.h. Include
42332         test-select.h.
42333         * modules/select-tests (Files): Add tests/test-select.h.
42334         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
42335         (my_select, main): New functions.
42336         * modules/pselect-tests (Files): Add tests/test-select.h,
42337         tests/macros.h, tests/signature.h.
42338         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
42339         (configure.ac): Check for <sys/wait.h>.
42341 2011-07-22  Bruno Haible  <bruno@clisp.org>
42343         sys_select tests: Check the signature of FD_*.
42344         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
42345         signature tests from here...
42346         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
42347         here.
42348         * modules/sys_select-tests (Files): Add tests/signature.h.
42350 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
42352         largefile: new module, replacing large-inode
42353         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
42354         * MODULES.html.sh: Add largefile, remove large-inode.
42355         * modules/largefile, m4/largefile.m4: New files.
42356         * modules/large-inode, m4/large-inode.m4: Remove.
42358         fsusage: port to MacOS X 10.7 with 4 TiB file systems
42359         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
42360         implementations that use only 32 bits to count blocks.
42361         On typical hosts with 1024-byte blocks, this fails with file
42362         systems as small as 4 TiB.  Problem reported by Herb Wartens
42363         <http://debbugs.gnu.org/9140> and this should also fix a similar
42364         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
42366         large-inode: New module
42367         * MODULES.html.sh: Add it.
42368         * modules/large-inode, m4/large-inode.m4: New files.
42370         extensions: Enable extensions on MacOS X 10.5 and later.
42371         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
42373 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
42375         file-has-acl: use acl_extended_file_nofollow if available
42376         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
42377         (acl_extended_file): New macro.
42378         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
42379         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
42381 2011-07-21  Bruno Haible  <bruno@clisp.org>
42383         Declare system functions in a way that works with C++.
42384         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
42385         declare fdopendir as extern "C".
42386         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
42387         declare frexpl as extern "C".
42388         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
42389         declare gai_strerror as extern "C".
42390         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
42391         programs, declare gai_strerror as extern "C".
42392         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
42393         declare getlogin_r as extern "C".
42394         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
42395         as extern "C".
42396         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
42397         declare ldexpl as extern "C".
42398         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
42399         as extern "C".
42400         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
42401         program, declare getmntinfo as extern "C".
42402         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
42403         stpncpy as extern "C".
42404         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
42405         program, declare __xpg_strerror_r as extern "C".
42406         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
42407         strndup as extern "C".
42408         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
42409         declare memset and bzero as extern "C".
42410         Reported by Sam Steingold <sds@gnu.org>.
42412 2011-07-12  Jim Meyering  <meyering@redhat.com>
42414         maint.mk: prohibit inclusion of "verify.h" without use
42415         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
42417 2011-07-19  Pádraig Brady  <P@draigBrady.com>
42419         timer-time: A new module to check for timer_settime()
42420         * m4/timer_time.m4: Check for the posix function.
42421         * modules/timer-time: Add the new module.
42422         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
42423         Mention it.
42425 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
42426             Bruno Haible  <bruno@clisp.org>
42428         pthread_sigmask: assume POSIX threads if --avoid=threadlib
42429         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
42430         not defined, assume POSIX threads and look for pthread_sigmask in
42431         $LIBS, without changing $CPPFLAGS.
42433 2011-07-19  Bruno Haible  <bruno@clisp.org>
42435         strstr: Update cross-compilation guess.
42436         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
42437         CPUs, guess no, in view of glibc
42438         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
42439         Suggested by Eric Blake. Reported by Reuben Thomas.
42441 2011-07-19  Pádraig Brady  <P@draigBrady.com>
42443         getopt-gnu: suppress core dumps from detection code
42444         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
42445         to suppress core dumps that may well occur on glibc systems.
42446         * modules/getopt-gnu: Depend on nocrash.
42448 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
42450         pthread_sigmask: ensure usleep is declared
42451         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
42452         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
42454 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
42456         doc: Document NonStop portability issues.
42457         * doc/posix-functions/sigaction.texi (sigaction):
42458         * doc/posix-headers/signal.texi (signal.h):
42459         Document NonStop.  See Joachim Schmitz in
42460         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
42462 2011-07-15  Bruno Haible  <bruno@clisp.org>
42464         ffsl, ffsll: Avoid unportable behaviour.
42465         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
42467 2011-07-15  Bruno Haible  <bruno@clisp.org>
42469         ffs: More tests.
42470         * tests/test-ffs.c (NBITS): New macro.
42471         (main): Add more tests.
42472         * tests/test-ffsl.c (NBITS): New macro.
42473         (main): Add more tests.
42474         * tests/test-ffsll.c (NBITS): New macro.
42475         (main): Add more tests.
42477 2011-07-15  Eric Blake  <eblake@redhat.com>
42479         ffsl, ffsll: new modules
42480         * modules/ffsl: New file.
42481         * modules/ffsll: Likewise.
42482         * m4/ffsl.m4: Likewise.
42483         * m4/ffsll.m4: Likewise.
42484         * lib/ffsl.c: Likewise.
42485         * lib/ffsl.h: Likewise.
42486         * lib/ffsll.c: Likewise.
42487         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
42488         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
42489         * modules/string (Makefile.am): Substitute witnesses.
42490         * lib/strings.in.h (ffsl, ffsll): Declare.
42491         * modules/ffsl-tests: New test file.
42492         * modules/ffsll-tests: Likewise.
42493         * tests/test-ffsl.c: Likewise.
42494         * tests/test-ffsll.c: Likewise.
42495         * MODULES.html.sh (Integer arithmetic functions): Mention it.
42496         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
42497         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
42499         ffs: fix m4 prerequisite
42500         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
42502         ffs: avoid undefined behavior
42503         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
42504         * tests/test-ffs.c (naive, main): Avoid signed shifts.
42505         Reported by Bruno Haible.
42507 2011-07-12  Bruno Haible  <bruno@clisp.org>
42509         pthread_sigmask: Rely on module 'threadlib'.
42510         * modules/pthread_sigmask (Depends-on): Add threadlib.
42511         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
42512         is defined.
42514 2011-07-12  Bruno Haible  <bruno@clisp.org>
42516         regex: Depend on module 'strcase'.
42517         * modules/regex (Depends-on): Add strcase, for strcasecmp().
42519 2011-07-12  Jim Meyering  <meyering@redhat.com>
42521         warn-on-use: fix typo in file name
42522         * modules/snippet/warn-on-use (Files): Correct file name:
42523         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
42525 2011-07-12  Bruno Haible  <bruno@clisp.org>
42527         strings: Document module.
42528         * doc/posix-headers/strings.texi: Mention module 'strings'.
42530 2011-07-12  Bruno Haible  <bruno@clisp.org>
42532         Rename module '_Noreturn' to 'snippet/_Noreturn'.
42533         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
42534         (Files, Makefile.am): Update.
42535         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
42536         * modules/stdlib (Depends-on): Update.
42538 2011-07-12  Bruno Haible  <bruno@clisp.org>
42540         * NEWS: Mention the changes.
42542         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
42543         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
42544         (Files, Makefile.am): Update.
42545         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
42546         * modules/arpa_inet (Depends-on): Update.
42547         * modules/ctype (Depends-on): Update.
42548         * modules/dirent (Depends-on): Update.
42549         * modules/fcntl-h (Depends-on): Update.
42550         * modules/glob (Depends-on): Update.
42551         * modules/iconv-h (Depends-on): Update.
42552         * modules/inttypes-incomplete (Depends-on): Update.
42553         * modules/langinfo (Depends-on): Update.
42554         * modules/locale (Depends-on): Update.
42555         * modules/math (Depends-on): Update.
42556         * modules/netdb (Depends-on): Update.
42557         * modules/poll-h (Depends-on): Update.
42558         * modules/pty (Depends-on): Update.
42559         * modules/search (Depends-on): Update.
42560         * modules/signal (Depends-on): Update.
42561         * modules/spawn (Depends-on): Update.
42562         * modules/stdio (Depends-on): Update.
42563         * modules/stdlib (Depends-on): Update.
42564         * modules/string (Depends-on): Update.
42565         * modules/strings (Depends-on): Update.
42566         * modules/sys_file (Depends-on): Update.
42567         * modules/sys_ioctl (Depends-on): Update.
42568         * modules/sys_select (Depends-on): Update.
42569         * modules/sys_socket (Depends-on): Update.
42570         * modules/sys_stat (Depends-on): Update.
42571         * modules/sys_time (Depends-on): Update.
42572         * modules/sys_times (Depends-on): Update.
42573         * modules/sys_utsname (Depends-on): Update.
42574         * modules/sys_wait (Depends-on): Update.
42575         * modules/termios (Depends-on): Update.
42576         * modules/time (Depends-on): Update.
42577         * modules/unistd (Depends-on): Update.
42578         * modules/wchar (Depends-on): Update.
42579         * modules/wctype-h (Depends-on): Update.
42580         * MODULES.html.sh (Support for building libraries and executables):
42581         Update.
42583         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
42584         * modules/snippet/unused-parameter: Renamed from
42585         modules/unused-parameter.
42586         (Files, Makefile.am): Update.
42587         * build-aux/snippet/unused-parameter.h: Renamed from
42588         build-aux/unused-parameter.h.
42589         * modules/selinux-h (Depends-on): Update.
42590         * modules/unistr/base (Depends-on): Update.
42591         * MODULES.html.sh (Core language properties): Update.
42593         Rename module 'link-warning' to 'snippet/link-warning'.
42594         * modules/snippet/link-warning: Renamed from modules/link-warning.
42595         (Files, Makefile.am): Update.
42596         * build-aux/snippet/link-warning.h: Renamed from
42597         build-aux/link-warning.h.
42598         * MODULES.html.sh (Support for building libraries and executables):
42599         Update.
42601         Rename module 'c++defs' to 'snippet/c++defs'.
42602         * modules/snippet/c++defs: Renamed from modules/c++defs.
42603         (Files, Makefile.am): Update.
42604         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
42605         * modules/arpa_inet (Depends-on): Update.
42606         * modules/ctype (Depends-on): Update.
42607         * modules/dirent (Depends-on): Update.
42608         * modules/fcntl-h (Depends-on): Update.
42609         * modules/glob (Depends-on): Update.
42610         * modules/iconv-h (Depends-on): Update.
42611         * modules/langinfo (Depends-on): Update.
42612         * modules/locale (Depends-on): Update.
42613         * modules/math (Depends-on): Update.
42614         * modules/netdb (Depends-on): Update.
42615         * modules/poll-h (Depends-on): Update.
42616         * modules/pty (Depends-on): Update.
42617         * modules/search (Depends-on): Update.
42618         * modules/signal (Depends-on): Update.
42619         * modules/spawn (Depends-on): Update.
42620         * modules/stdio (Depends-on): Update.
42621         * modules/stdlib (Depends-on): Update.
42622         * modules/string (Depends-on): Update.
42623         * modules/strings (Depends-on): Update.
42624         * modules/sys_ioctl (Depends-on): Update.
42625         * modules/sys_select (Depends-on): Update.
42626         * modules/sys_socket (Depends-on): Update.
42627         * modules/sys_stat (Depends-on): Update.
42628         * modules/sys_time (Depends-on): Update.
42629         * modules/sys_wait (Depends-on): Update.
42630         * modules/termios (Depends-on): Update.
42631         * modules/time (Depends-on): Update.
42632         * modules/unistd (Depends-on): Update.
42633         * modules/wchar (Depends-on): Update.
42634         * modules/wctype-h (Depends-on): Update.
42636         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
42637         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
42638         (Files, Makefile.am): Update.
42639         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
42640         * modules/argv-iter (Depends-on): Update.
42641         * modules/arpa_inet (Depends-on): Update.
42642         * modules/dirent (Depends-on): Update.
42643         * modules/fcntl-h (Depends-on): Update.
42644         * modules/fnmatch (Depends-on): Update.
42645         * modules/getopt-posix (Depends-on): Update.
42646         * modules/glob (Depends-on): Update.
42647         * modules/iconv-h (Depends-on): Update.
42648         * modules/inttypes-incomplete (Depends-on): Update.
42649         * modules/locale (Depends-on): Update.
42650         * modules/math (Depends-on): Update.
42651         * modules/netdb (Depends-on): Update.
42652         * modules/search (Depends-on): Update.
42653         * modules/signal (Depends-on): Update.
42654         * modules/spawn (Depends-on): Update.
42655         * modules/stdio (Depends-on): Update.
42656         * modules/stdlib (Depends-on): Update.
42657         * modules/string (Depends-on): Update.
42658         * modules/strings (Depends-on): Update.
42659         * modules/sys_socket (Depends-on): Update.
42660         * modules/sys_stat (Depends-on): Update.
42661         * modules/sys_time (Depends-on): Update.
42662         * modules/sys_times (Depends-on): Update.
42663         * modules/sys_utsname (Depends-on): Update.
42664         * modules/time (Depends-on): Update.
42665         * modules/unistd (Depends-on): Update.
42666         * modules/wchar (Depends-on): Update.
42667         * MODULES.html.sh (Support for building libraries and executables):
42668         Update.
42670 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
42672         Improvements on _Noreturn and related modules.
42674         modules/_Exit-tests: test _Noreturn too
42675         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
42676         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
42677         (main): Use them.
42679         stdnoreturn, stdnoreturn-tests: remove modules
42680         They're not needed here and a bit premature for use elsewhere.  See
42681         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
42682         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
42683         * tests/test-stdnoreturn.c: Remove files.
42684         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
42685         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
42686         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
42687         and using noreturn.
42688         * modules/openat, modules/sigpipe-die, modules/xalloc:
42689         * modules/xmemdup0, modules/xstrtol:
42690         Remove dependency on stdnoreturn.
42692         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
42693         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
42694         Reparenthesize to avoid GCC warning.
42695         Support Microsoft's syntax.
42696         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
42698         _Noreturn-tests: remove module
42699         * modules/_Noreturn-tests: Remove.
42700         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
42701         * tests/test-_Noreturn.c: Remove.
42702         * tests/test-stdnoreturn.c: Merge from the old
42703         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
42705 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
42707         _Noreturn, stdnoreturn, and related modules.
42709         * top/maint.mk: Adjust to new noreturn support.
42710         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
42711         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
42713         xalloc: use stdnoreturn.h
42714         * lib/xalloc.h: Include <stdnoreturn.h>.
42715         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
42716         * modules/xalloc (Depends-on): Add stdnoreturn.
42718         xstrtol: use stdnoreturn.h
42719         * lib/xstrtol.h: Include <stdnoreturn.h>.
42720         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
42721         * modules/xstrtol (Depends-on): Add stdnoreturn.
42723         xmemdup0: use stdnoreturn.h
42724         * lib/xmemdup0.h: Include <stdnoreturn.h>.
42725         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
42726         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
42728         sigpipe-die: use stdnoreturn.h
42729         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
42730         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
42731         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
42733         openat: use stdnoreturn.h
42734         * lib/openat.h: Include <stdnoreturn.h>.
42735         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
42736         * modules/openat (Depends-on): Add stdnoreturn.
42738         * lib/openat-die.c (openat_save_fail): Modernize comment.
42740         * lib/xalloc-die.c (xalloc_die): Modernize comment.
42742         * lib/glthread/thread.h: Modernize comment.
42744         obstack: use _Noreturn
42745         * lib/obstack.c (__attribute__): Remove macro.
42746         (print_and_abort): Use _Noreturn.
42748         c-stack: use _Noreturn
42749         * lib/c-stack.c (die, overflow_handler, segv_handler):
42750         Use _Noreturn rather than __attribute__((noreturn)).
42752         argmatch-tests, exclude_tests: use _Noreturn
42753         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
42754         Remove.
42755         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
42757         stdlib: use _Noreturn
42758         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
42759         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
42760         * modules/stdlib (Depends-on): Add _Noreturn.
42761         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
42763         stdnoreturn-tests: new module
42764         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
42766         stdnoreturn: new module
42767         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
42768         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
42770         _Noreturn-tests: new module
42771         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
42773         _Noreturn: new module
42774         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
42775         New section, mentioning it.
42776         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
42778         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
42780 2011-07-11  Eric Blake  <eblake@redhat.com>
42782         ffs: new module
42783         * modules/ffs: New file.
42784         * m4/ffs.m4: Likewise.
42785         * lib/ffs.c: Likewise.
42786         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
42787         * modules/strings (Makefile.am): Substitute witness.
42788         (Depends-on): Add c++defs.
42789         * lib/strings.in.h (ffs): Declare.
42790         * modules/ffs-tests: New test file.
42791         * tests/test-ffs.c: Test new module.
42792         * MODULES.html.sh (Integer arithmetic functions): Mention it.
42793         * doc/posix-functions/ffs.texi (ffs): Likewise.
42795         regex: avoid compiler warning
42796         * lib/regex.c (includes): Include <strings.h>, for use of
42797         strcasecmp in regcomp.c.
42798         Reported by Joachim Schmitz.
42800 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
42802         stdint: respect system's intmax_t if INTMAX_MAX
42803         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
42804         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
42805         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
42806         long but int64_t is long long, and where we will clash with the
42807         system intmax_t if we override it.  See
42808         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
42809         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
42810         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
42811         similarly for UINTMAX_C.
42813 2011-07-08  Bruno Haible  <bruno@clisp.org>
42815         pthread_sigmask tests: Avoid a compiler warning.
42816         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
42817         non-zero.
42819         sigprocmask tests: A better way to avoid a compiler warning.
42820         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
42821         (main): Complain if system() returns non-zero.
42822         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
42824 2011-07-08  Bruno Haible  <bruno@clisp.org>
42826         pthread_sigmask: Work around IRIX bug.
42827         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
42828         bug.
42829         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
42830         there may be unblocked pending signals.
42831         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
42833 2011-07-08  Bruno Haible  <bruno@clisp.org>
42835         pthread_sigmask: Work around Cygwin bug.
42836         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
42837         bug.
42838         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
42839         the system's pthread_sigmask function.
42840         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
42842 2011-07-08  Bruno Haible  <bruno@clisp.org>
42844         pthread_sigmask: Work around bug in single-threaded implementation.
42845         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
42846         FreeBSD, HP-UX, Solaris bug.
42847         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
42848         * lib/pthread_sigmask.c: Include <stddef.h>.
42849         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
42850         the system's pthread_sigmask function.
42851         * modules/pthread_sigmask (configure.ac): Invoke
42852         gl_PREREQ_PTHREAD_SIGMASK.
42853         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
42854         HP-UX, Solaris.
42856 2011-07-08  Eric Blake  <eblake@redhat.com>
42858         test-sigprocmask: avoid compiler warning
42859         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
42860         * tests/test-sigprocmask.c (main): Use it to silence warning.
42861         Reported by Jim Meyering.
42863         test-snprintf: avoid compiler warning
42864         * tests/test-snprintf.c (main): Avoid shadowed declaration.
42865         * tests/test-vsnprintf.c (main): Likewise.
42866         Reported by Jim Meyering.
42868 2011-07-08  Bruno Haible  <bruno@clisp.org>
42870         Tests for module 'pthread_sigmask'.
42871         * modules/pthread_sigmask-tests: New file.
42872         * tests/test-pthread_sigmask1.c: New file, based on
42873         tests/test-sigprocmask.c.
42874         * tests/test-pthread_sigmask2.c: New file.
42876 2011-07-08  Jim Meyering  <meyering@redhat.com>
42878         test-getopt.h: avoid warning about an unused variable
42879         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
42881 2011-07-07  Jim Meyering  <meyering@redhat.com>
42883         maint: reduce list of files exempt from sc_prohibit_leading_TABs
42884         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
42885         now that it no longer contains leading TABs.
42886         Remove unused "url=FIXME" statement.
42888 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
42890         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
42891         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
42892         When gl_THREADLIB is not in use, assume that the POSIX sematics
42893         are desired.  This is better for Emacs, which uses POSIX semantics
42894         on GNUish and/or POSIXish platforms, and does not use threads at
42895         all otherwise.
42897         pthread_sigmask: fix typo when testing for libraries
42898         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
42899         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
42901 2011-07-08  Eric Blake  <eblake@redhat.com>
42903         fts: introduce FTS_NOATIME
42904         * lib/fts_.h (FTS_NOATIME): New bit flag.
42905         (FTS_OPTIONMASK): Adjust.
42906         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
42907         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
42909 2011-07-08  Bruno Haible  <bruno@clisp.org>
42911         Tests for module 'thread'.
42912         * modules/thread-tests: New file.
42913         * tests/test-thread_self.c: New file.
42914         * tests/test-thread_create.cc: New file.
42916 2011-07-08  Bruno Haible  <bruno@clisp.org>
42918         thread: Avoid gcc warnings when using gl_thread_self().
42919         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
42920         'void *'.
42921         (gl_thread_self_pointer): Update.
42923 2011-07-07  Bruno Haible  <bruno@clisp.org>
42925         signal-c++-tests: Check declaration of pthread_sigmask.
42926         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
42927         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
42928         $(LIB_PTHREAD_SIGMASK).
42930 2011-07-07  Bruno Haible  <bruno@clisp.org>
42932         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
42933         * lib/signal.in.h (pthread_sigmask): Override if
42934         REPLACE_PTHREAD_SIGMASK is 1.
42935         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
42936         REPLACE_PTHREAD_SIGMASK.
42937         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
42938         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
42939         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
42940         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
42941         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
42943 2011-07-07  Bruno Haible  <bruno@clisp.org>
42945         pthread_sigmask: Ensure declaration in <signal.h>.
42946         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
42947         include <pthread.h>.
42948         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
42949         problem.
42951 2011-07-07  Bruno Haible  <bruno@clisp.org>
42953         pthread_sigmask: Document the module.
42954         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
42956 2011-07-07  Bruno Haible  <bruno@clisp.org>
42958         pthread_sigmask: Follow gnulib conventions.
42959         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
42960         gl_PTHREAD_SIGMASK.
42961         * modules/pthread_sigmask (configure.ac): Update.
42963 2011-07-07  Bruno Haible  <bruno@clisp.org>
42965         pthread_sigmask: Make declaration C++ safe.
42966         * lib/signal.in.h: In two special conditions, just do an #include_next.
42967         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
42968         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
42969         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
42970         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
42971         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
42972         not REPLACE_PTHREAD_MASK.
42973         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
42974         not REPLACE_PTHREAD_MASK.
42975         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
42977 2011-07-07  Bruno Haible  <bruno@clisp.org>
42979         pthread_sigmask: Fix return value.
42980         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
42981         * lib/pthread_sigmask.c: New file.
42982         * modules/pthread_sigmask (Files): Add it.
42983         (configure.ac): Invoke AC_LIBOBJ.
42985 2011-07-07  Eric Blake  <eblake@redhat.com>
42987         getopt: more portable argv creation
42988         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
42989         const, use char arrays rather than strings.
42990         Suggested by Paul Eggert.
42992 2011-07-07  Bruno Haible  <bruno@clisp.org>
42994         Tests for module 'sigprocmask'.
42995         * modules/sigprocmask-tests: New file.
42996         * tests/test-sigprocmask.c: New file.
42998 2011-07-07  Bruno Haible  <bruno@clisp.org>
43000         float tests: Tweak.
43001         * tests/test-float.c (main): Tweak skip message.
43003 2011-07-07  Eric Blake  <eblake@redhat.com>
43005         getopt: avoid compiler warning during configure
43006         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
43007         assigning string literals to non-const pointer.
43009         getopt-gnu: avoid crash in glibc getopt
43010         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
43011         * tests/test-getopt.h (test_getopt): Enhance test.
43012         * tests/test-getopt_long.h (test_getopt_long): Likewise.
43013         * doc/posix-functions/getopt.texi (getopt): Document it.
43014         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
43015         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
43016         Likewise.
43018 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
43020         getopt: handle W; without long options in getopt [BZ #12922]
43021         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
43022         but no long options are defined, just return 'W'.
43024 2011-07-07  Bruno Haible  <bruno@clisp.org>
43026         Avoid literal tabs.
43027         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
43028         variable containing a tab instead of a literal tab.
43029         Reported by Jim Meyering.
43031 2011-07-07  Bruno Haible  <bruno@clisp.org>
43033         Comments.
43034         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
43036 2011-07-06  Bruno Haible  <bruno@clisp.org>
43038         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
43039         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
43040         <winsock2.h>.
43041         (rpl_fd_isset, FD_ISSET): New definitions, copied from
43042         lib/sys_socket.in.h.
43043         (close, gethostname): Hide declarations from <winsock2.h>.
43044         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
43045         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
43046         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
43047         (select): Don't override if gnulib's <sys/select.h> was already
43048         included.
43049         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
43050         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
43051         setsockopt, shutdown, select): Tweak indentation.
43053 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
43055         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
43056         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
43057         in an application that does not use the sys_select module.
43059 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
43061         poll: do not return 0 on timeout=-1
43062         * lib/poll.c: Loop with yield if no events occurred.
43064 2011-07-06  Eric Blake  <eblake@redhat.com>
43066         pthread_sigmask: always replace when not using pthread
43067         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
43068         replacement when using some threading other than pthread.  Fix
43069         logic bug.
43071 2011-07-06  Bruno Haible  <bruno@clisp.org>
43073         Comments.
43074         * m4/printf.m4: Update comments about mingw.
43076 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
43078         sys_select: define sigset_t more portably
43079         * lib/sys_select.in.h: Always include <sys/types.h>, since
43080         we now need sigset_t and mingw defines it there.
43081         Include <signal.h> before split inclusion guard, to avoid
43082         mishaps on Solaris, whose <signal.h> eventually includes us.
43083         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
43084         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
43085         which come from ...
43086         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
43087         gl_CHECK_TYPE_SIGSET_T.
43088         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
43089         does the real work.
43090         * modules/sys_select (Depends-on): Add 'signal'.
43092         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
43093         Suggested by Bruno Haible.
43095         pselect: Use pthread_sigmask, not sigprocmask.
43096         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
43097         multithreaded apps better than sigprocmask does.
43098         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
43099         sigprocmask directly.
43101 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
43103         * lib/pselect.c (pselect): Use plain name, without "rpl_".
43104         Don't #undef,  since we don't need any underlying pselect.
43105         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
43106         (Depends-on): Add select.
43107         (Link): Add $(LIBSOCKET).
43108         These changes suggested by Bruno Haible.
43110         pselect: document better
43111         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
43112         * doc/posix-functions/pselect.texi (pselect): Document new module.
43114         pthread_sigmask: new module
43115         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
43116         * doc/posix-functions/pthread_sigmask.texi: Document new module.
43117         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
43118         This is done only as a macro; I don't know how well that'll
43119         work for C++.  Move <sys/types.h> include before the include_next,
43120         to avoid mishap on Solaris.
43121         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
43122         * modules/signal (Makefile.am): Substitute the check's results.
43123         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
43125         test-pselect: new module
43126         * modules/pselect-tests, tests/test-pselect.c: New files.
43127         * tests/test-select.c, tests/test-sys_select-c++.cc:
43128         If TEST_PSELECT is defined, test pselect instead of testing select.
43130         * tests/test-sys_select.c (sigset_t): Test for it, too.
43131         Suggested by Bruno Haible.
43133 2011-07-05  Eric Blake  <eblake@redhat.com>
43135         snprintf: guarantee %1$d, for libintl
43136         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
43137         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
43138         * doc/posix-functions/snprintf.texi (snprintf): Update.
43139         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43140         * tests/test-snprintf.c (main): Enhance test.
43141         * tests/test-vsnprintf.c (main): Likewise.
43143 2011-07-05  Jim Meyering  <meyering@redhat.com>
43145         maint: exempt stdio-read.c and stdio-write.c from the cppi check
43146         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
43147         per Bruno's request, to accommodate this idiom (no space after "#")
43148         even when the function is inside an #if block:
43149         char *
43150         gets (char *s)
43151         #undef gets
43152         {
43153           ...
43154         }
43156 2011-07-04  Jim Meyering  <meyering@redhat.com>
43158         maint: indent with spaces, not TABs, and add a rule to check this
43159         * tests/test-userspec.c: Indent with spaces, not TABs.
43160         * tests/test-argp.c: Likewise.
43161         * tests/test-c-stack2.sh: Likewise.
43162         * tests/test-parse-duration.sh: Likewise
43163         * m4/strtod.m4: Likewise.
43164         * m4/alloca.m4: Likewise.
43165         * m4/pselect.m4: Likewise.
43166         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
43168 2011-07-03  Jim Meyering  <meyering@redhat.com>
43170         maint.mk: correct omissions in prohibit_argmatch_without_use check
43171         This rule would mistakenly report that argmatch.h is included without
43172         use even when both the argmatch and invalid_arg macro were used.
43173         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
43174         of argmatch and invalid_arg.
43176 2011-07-03  Bruno Haible  <bruno@clisp.org>
43178         Comments about EINTR.
43179         * lib/safe-read.h: Explain the purpose of this module.
43180         * lib/safe-write.h: Likewise.
43181         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
43182         module.
43183         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
43184         module.
43185         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43187 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
43189         xnanosleep: Rewrite to use new dtotimespec module.
43190         It has the conversion code that used to be in xnanosleep.
43191         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
43192         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
43193         (TIME_T_MAX): Remove.
43194         (xnanosleep): Rewrite in terms of dtotimespec.
43195         * modules/xnanosleep (Depends-on): Add dtotimespec.
43196         Remove intprops, stdbool.
43198         timespec-add, timespec-sub: new modules
43199         * lib/timespec.h (timespec_add, timespec_sub): New decls.
43200         * lib/timespec-add.c, lib/timespec-sub.c:
43201         * modules/timespec-add, modules/timespec-sub: New files.
43203         dtotimespec: new module
43204         * lib/timespec.h (dtotimespec): New decl.
43205         * lib/dtotimespec.c, modules/dtotimespec: New files.
43207         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
43209         pselect: new module
43210         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
43211         (pselect): New decls.
43212         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
43213         since the standard pselect decl uses 'restrict'.
43214         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
43215         HAVE_PSELECT, REPLACE_PSELECT.
43216         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
43217         HAVE_PSELECT, REPLACE_PSELECT.
43218         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
43220         sys_select: don't depend on sys_socket
43221         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
43222         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
43223         This fix works on GNU and GNU-like platforms, but has not been tested
43224         on native Windows.
43225         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
43226         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
43227         gl_HEADER_SYS_SOCKET.
43228         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
43229         gl_PREREQ_SYS_H_WINSOCK2.
43231 2011-06-29  Eric Blake  <eblake@redhat.com>
43233         pipe2: fix C89 compile problem
43234         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
43235         Reported by Bruno Haible.
43237         pipe, pipe2: don't corrupt fd on error
43238         * lib/pipe.c (pipe): Leave fd unchanged on error.
43239         * lib/pipe2.c (pipe2): Likewise.
43240         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
43241         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
43243 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
43245         mmap-anon: do not use regular expressions inadvertently
43246         * m4/mmap-anon.m4: Remove trailing period from strings sought
43247         in the output.
43249 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
43251         nanosleep: fix integer overflow problem
43252         * lib/nanosleep.c (my_usleep): Don't assume signed integer
43253         arithmetic wraps around on overflow.
43255         nanosleep: simplify carrying
43256         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
43257         first call to the underyling nanosleep, not for the last one.
43258         This doesn't fix any bugs, but it simplifies the computation of
43259         the remaining delay.  Found while auditing integer overflow issues.
43261         dup2: remove test for existence of fcntl
43262         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
43263         "#if HAVE_FCNTL", in the configure-time test program.
43264         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
43265         and therefore speeds up "configure" a bit.  Found while
43266         adding the dup2 module to Emacs.
43268 2011-06-24  Eric Blake  <eblake@redhat.com>
43270         maint.mk: enhance useless header checks
43271         * top/maint.mk (_sc_header_without_use): Check both include
43272         styles.
43273         (sc_prohibit_assert_without_use)
43274         (sc_prohibit_close_stream_without_use)
43275         (sc_prohibit_getopt_without_use)
43276         (sc_prohibit_quotearg_without_use)
43277         (sc_prohibit_quote_without_use)
43278         (sc_prohibit_long_options_without_use)
43279         (sc_prohibit_inttostr_without_use)
43280         (sc_prohibit_ignore_value_without_use)
43281         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
43282         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
43283         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
43284         (sc_prohibit_hash_pjw_without_use)
43285         (sc_prohibit_safe_read_without_use)
43286         (sc_prohibit_argmatch_without_use)
43287         (sc_prohibit_canonicalize_without_use)
43288         (sc_prohibit_root_dev_ino_without_use)
43289         (sc_prohibit_openat_without_use)
43290         (sc_prohibit_c_ctype_without_use)
43291         (sc_prohibit_signal_without_use)
43292         (sc_prohibit_stdio--_without_use)
43293         (sc_prohibit_stdio-safer_without_use)
43294         (sc_prohibit_strings_without_use)
43295         (sc_prohibit_intprops_without_use)
43296         (sc_prohibit_stddef_without_use)
43297         (sc_prohibit_xfreopen_without_use): Update clients.
43299 2011-06-24  Jim Meyering  <meyering@redhat.com>
43301         syntax-check: keep one maint.mk rule in sync with its header
43302         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
43303         of the bug Eric has just fixed, with today's commit 25e4c2ec.
43304         I prefer to avoid temporary files here, so use <(...), but that
43305         is not supported by /bin/sh, so...
43306         (SHELL): Define to /bin/bash.
43308 2011-06-24  Eric Blake  <eblake@redhat.com>
43310         maint.mk: update sc_prohibit_intprops_without_use
43311         * top/maint.mk (_intprops_names): Match recent changes.
43313 2011-06-24  Bruno Haible  <bruno@clisp.org>
43315         strerror-override: No-op tweak.
43316         * lib/strerror-override.h (strerror_override): Reorder conditions,
43317         for consistency with lib/strerror-override.c.
43319 2011-06-23  Eric Blake  <eblake@redhat.com>
43321         maint.mk: test further PATH_MAX issues
43322         * top/maint.mk (sc_prohibit_path_max_array): Rename...
43323         (sc_prohibit_path_max_allocation): ...and also test alloca.
43324         Suggested by Jim Meyering.
43326 2011-06-22  Eric Blake  <eblake@redhat.com>
43328         maint.mk: add syntax-check to avoid char[PATH_MAX]
43329         * top/maint.mk (sc_prohibit_path_max_array): New rule.
43331         stat: be robust to PATH_MAX definition
43332         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
43333         * modules/stat (Depends-on): Add verify.
43335         link: work around IRIX bug
43336         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
43337         * lib/link.c (rpl_link): Work around it.
43338         * tests/test-link.h (test_link): Enhance test.
43339         * doc/posix-functions/link.texi (link): Document the bug.
43341         getopt: silence clang warning
43342         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
43343         dereference.
43344         Reported by Gustavo Martin Domato.
43346 2011-06-22  Jim Meyering  <meyering@redhat.com>
43348         bootstrap: do not insert a blank line into each .gitignore file
43349         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
43351 2011-06-21  Eric Blake  <eblake@redhat.com>
43353         perror: test for output mismatch
43354         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
43355         perror on IRIX.
43357         strerror_r: fix OpenBSD behavior on out-of-range
43358         * lib/strerror_r.c (strerror_r): Always use maximal string.
43359         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
43361         strerror_r: fix OpenBSD behavior on 0
43362         * lib/strerror-override.c (strerror_override): Also override 0
43363         when needed.
43364         * lib/strerror-override.h (strerror_override): Likewise.
43365         * lib/strerror.c (strerror): Simplify, now that 0 override is done
43366         earlier.
43367         * lib/strerror_r.c (strerror_r): Likewise.
43368         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
43369         behavior...
43370         (gl_FUNC_STRERROR_0): ...into new macro.
43371         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
43372         is overridden.
43373         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
43374         * modules/strerror-override (Files): Add strerror.m4.
43375         (configure.ac): Also provide override for 0 when needed.
43376         * doc/posix-functions/strerror.texi (strerror): Document this.
43377         * doc/posix-functions/perror.texi (perror): Likewise.
43379         perror: adjust array size
43380         * modules/perror (Depends-on): Add strerror-override.
43381         * lib/perror.c (perror): Use it to avoid magic number.
43383         strerror-override: reduce size
43384         * lib/strerror-override.c (strerror_override): Use fewer lines.
43386 2011-06-20  Bruno Haible  <bruno@clisp.org>
43388         pathmax: Ensure correct value for PATH_MAX on HP-UX.
43389         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
43391 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
43393         alloca: port to compilers that can optimize like GCC 4.6.0
43394         * lib/alloca.c (find_stack_direction): New signature, taken from
43395         Autoconf git.  This works with GCC 4.6.0.  This code should never
43396         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
43397         be used with other compilers that optimize as well as GCC 4.6.0 does.
43398         (alloca): Adjust to new signature.
43399         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
43400         New macro, which patches Autoconf in a similar way.
43402         c-stack: stop worrying about stack direction
43403         * lib/c-stack.c (find_stack_direction): Remove.
43404         (segv_handler): Don't worry about stack direction growth, as it's
43405         too much of a pain to configure this correctly, given how compilers
43406         are optimizing-away our stack-growth detection code.  Instead, assume
43407         that any access to just before or just after the stack is OK.
43408         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
43409         Don't require AC_FUNC_ALLOCA; no longer needed.
43411 2011-06-20  Eric Blake  <eblake@redhat.com>
43413         test-stat: don't allocate PATH_MAX bytes
43414         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
43415         PATH_MAX-sized buffer.
43416         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
43417         * modules/stat-tests (Depends-on): Likewise.
43418         * tests/test-fstatat.c (includes): Drop pathmax.h.
43419         * tests/test-stat.c (includes): Likewise.
43420         Reported by Bruno Haible.
43422 2011-06-20  Bruno Haible  <bruno@clisp.org>
43424         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
43425         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
43426         * lib/float.c: New file.
43427         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
43428         REPLACE_FLOAT_LDBL.
43429         * modules/float (Files): Add lib/float.c.
43430         (configure.ac): Invoke AC_LIBOBJ.
43431         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
43433 2011-06-20  Bruno Haible  <bruno@clisp.org>
43435         Tests for module 'float'.
43436         * modules/float-tests: New file.
43437         * tests/test-float.c: New file.
43439 2011-06-19  Bruno Haible  <bruno@clisp.org>
43441         isinf: Coding style.
43442         * lib/isinf.c: Use GNU coding style.
43444 2011-06-19  Bruno Haible  <bruno@clisp.org>
43446         linkat test: Avoid test failure on AIX 7.1.
43447         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
43448         * tests/test-link.h (test_link): Likewise.
43450 2011-06-19  Bruno Haible  <bruno@clisp.org>
43452         pread test: Avoid test failure on OpenBSD 4.9.
43453         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
43455 2011-06-19  Bruno Haible  <bruno@clisp.org>
43457         sprintf-posix: Fix test failure on AIX 7.1.
43458         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
43459         * doc/posix-functions/dprintf.texi: Mention limited precision problem
43460         on AIX.
43461         * doc/posix-functions/fprintf.texi: Likewise.
43462         * doc/posix-functions/printf.texi: Likewise.
43463         * doc/posix-functions/snprintf.texi: Likewise.
43464         * doc/posix-functions/sprintf.texi: Likewise.
43465         * doc/posix-functions/vdprintf.texi: Likewise.
43466         * doc/posix-functions/vfprintf.texi: Likewise.
43467         * doc/posix-functions/vprintf.texi: Likewise.
43468         * doc/posix-functions/vsnprintf.texi: Likewise.
43469         * doc/posix-functions/vsprintf.texi: Likewise.
43471 2011-06-19  Bruno Haible  <bruno@clisp.org>
43473         roundl-ieee: Fix test failure on AIX 7.1.
43474         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
43475         * doc/posix-functions/roundl.texi: Mention problem with negative
43476         arguments.
43478 2011-06-19  Bruno Haible  <bruno@clisp.org>
43480         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
43481         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
43482         * doc/posix-functions/round.texi: Mention problem with negative
43483         arguments.
43484         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
43486 2011-06-19  Bruno Haible  <bruno@clisp.org>
43488         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
43489         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
43490         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
43491         * doc/posix-functions/roundf.texi: Mention problem with negative
43492         arguments.
43493         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
43495 2011-06-19  Bruno Haible  <bruno@clisp.org>
43497         ceilf-ieee: Work around bug on MacOS X 10.5.
43498         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
43500         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
43501         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
43502         IEEE compliant, avoid compiler optimizations.
43503         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
43504         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
43505         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
43506         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
43507         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
43508         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
43509         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
43510         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
43511         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
43512         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
43514 2011-06-19  Bruno Haible  <bruno@clisp.org>
43516         ceilf-ieee: Work around bug on AIX 7.1.
43517         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
43518         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
43520 2011-06-19  Bruno Haible  <bruno@clisp.org>
43522         ceil-ieee: Work around bug on AIX 7.1.
43523         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
43524         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
43526 2011-06-18  Bruno Haible  <bruno@clisp.org>
43528         fsync test: Avoid test failure on MacOS X and AIX.
43529         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
43530         EINVAL.
43532 2011-06-18  Bruno Haible  <bruno@clisp.org>
43534         openat, fdopendir tests: Fix link errors.
43535         * modules/openat-tests (Depends-on): Add progname.
43536         * modules/fdopendir-tests (Depends-on): Likewise.
43537         * tests/test-fchownat.c: Include progname.h.
43538         (main): Call set_program_name.
43539         * tests/test-fstatat.c: Include progname.h.
43540         (main): Call set_program_name.
43541         * tests/test-mkdirat.c: Include progname.h.
43542         (main): Call set_program_name.
43543         * tests/test-openat.c: Include progname.h.
43544         (main): Call set_program_name.
43545         * tests/test-unlinkat.c: Include progname.h.
43546         (main): Call set_program_name.
43547         * tests/test-fdopendir.c: Include progname.h.
43548         (main): Call set_program_name.
43550 2011-06-18  Bruno Haible  <bruno@clisp.org>
43552         Doc update.
43553         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
43554         HP-UX.
43555         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
43557 2011-06-18  Bruno Haible  <bruno@clisp.org>
43559         getcwd tests: Avoid compilation error on HP-UX 11.31.
43560         * modules/getcwd-tests (Depends-on): Add pathmax.
43561         * tests/test-getcwd.c: Include pathmax.h.
43563 2011-06-18  Bruno Haible  <bruno@clisp.org>
43565         isfinite, isinf: Fix link error on AIX 6 and 7.
43566         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
43567         needed, also test the macro with a 'float' argument.
43568         * m4/isinf.m4 (gl_ISINF): Likewise.
43570 2011-06-18  Bruno Haible  <bruno@clisp.org>
43572         getloadavg: Don't clobber LIBS. Regression from previous commit.
43573         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
43574         AC_CHECK_LIB from here...
43575         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
43576         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
43577         gl_func_getloadavg_done.
43578         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43580 2011-06-18  Bruno Haible  <bruno@clisp.org>
43582         clean-temp: Improve documentation.
43583         * lib/clean-temp.h: Explain better how to use this module.
43584         Reported by John Darrington <john@darrington.wattle.id.au>.
43586 2011-06-17  Bruno Haible  <bruno@clisp.org>
43588         pread, pwrite: Avoid cc warning on AIX.
43589         * lib/unistd.in.h (pread): Undefine before defining as a macro.
43590         (pwrite): Likewise.
43592 2011-06-17  Bruno Haible  <bruno@clisp.org>
43594         spawn-pipe tests: Fix link error.
43595         * tests/test-spawn-pipe-child.c: Undefine fprintf.
43596         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43598 2011-06-17  Bruno Haible  <bruno@clisp.org>
43600         Tests: Remove unnecessary dependency.
43601         * modules/canonicalize-tests (Depends-on): Remove progname.
43602         * modules/chown-tests (Depends-on): Likewise.
43603         * modules/dirname-tests (Depends-on): Likewise.
43604         * modules/fdopendir-tests (Depends-on): Likewise.
43605         * modules/fdutimensat-tests (Depends-on): Likewise.
43606         * modules/hash-tests (Depends-on): Likewise.
43607         * modules/lchown-tests (Depends-on): Likewise.
43608         * modules/linkat-tests (Depends-on): Likewise.
43609         * modules/renameat-tests (Depends-on): Likewise.
43610         * modules/spawn-pipe-tests (Depends-on): Likewise.
43611         * modules/utimensat-tests (Depends-on): Likewise.
43613 2011-06-17  Bruno Haible  <bruno@clisp.org>
43615         spawn-pipe tests: Fix link error.
43616         * tests/test-spawn-pipe-child.c: Undefine fflush.
43618 2011-06-17  Bruno Haible  <bruno@clisp.org>
43620         Fix tests link errors.
43621         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
43622         * modules/chown-tests (Makefile.am): Don't link test-chown with
43623         LIBINTL.
43624         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
43625         LIBINTL.
43626         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
43627         LIBINTL.
43628         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
43629         LIBINTL.
43631 2011-06-16  Bruno Haible  <bruno@clisp.org>
43633         crypto/gc-sha1: Fix recent regression.
43634         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
43635         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
43637         crypto/gc-md5: Fix recent regression.
43638         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
43640         crypto/gc-md4: Fix recent regression.
43641         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
43642         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
43644         crypto/gc-arctwo: Fix recent regression.
43645         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
43646         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
43648         crypto/gc-rijndael: Fix recent regression.
43649         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
43650         (configure.ac): Invoke AC_LIBOBJ here.
43651         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
43652         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43654         crypto/gc-hmac-sha1: Fix recent regression.
43655         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
43656         (configure.ac): Invoke AC_LIBOBJ here.
43657         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
43658         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43660         crypto/gc-hmac-md5: Fix recent regression.
43661         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
43662         (configure.ac): Invoke AC_LIBOBJ here.
43663         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
43664         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43666         crypto/gc-des: Fix recent regression.
43667         * modules/crypto/gc-des (Files): Remove m4/des.m4.
43668         (configure.ac): Invoke AC_LIBOBJ here.
43669         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
43670         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43672         crypto/gc-arcfour: Fix recent regression.
43673         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
43674         (configure.ac): Invoke AC_LIBOBJ here.
43675         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
43676         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43678 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
43680         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
43681         After the 2011-05-21 change, this macro requires
43682         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
43683         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43685 2011-06-16  Bruno Haible  <bruno@clisp.org>
43687         fprintftime: Move AC_LIBOBJ invocations to module description.
43688         * m4/fprintftime.m4: Remove file.
43689         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
43690         (configure.ac): Remove gl_FPRINTFTIME call.
43691         (Makefile.am): Augment lib_SOURCES.
43692         Reported by Jim Meyering.
43694 2011-06-16  Bruno Haible  <bruno@clisp.org>
43696         tmpfile-safer: Finish 2011-05-23 commit.
43697         * m4/stdio-safer.m4: Really remove file.
43698         Reported by Jim Meyering.
43700 2011-06-16  Bruno Haible  <bruno@clisp.org>
43702         syntax-check: Fix typo.
43703         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
43704         printf-posix.m4.
43705         Reported by Jim Meyering.
43707 2011-06-13  Jim Meyering  <meyering@redhat.com>
43709         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
43710         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
43712 2011-05-23  Bruno Haible  <bruno@clisp.org>
43714         yesno: Move AC_LIBOBJ invocations to module description.
43715         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
43716         * modules/yesno (Makefile.am): Augment lib_SOURCES.
43718 2011-05-23  Bruno Haible  <bruno@clisp.org>
43720         xstrtol: Move AC_LIBOBJ invocations to module description.
43721         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
43722         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
43724 2011-05-23  Bruno Haible  <bruno@clisp.org>
43726         xstrtold: Move AC_LIBOBJ invocations to module description.
43727         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
43728         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
43730 2011-05-23  Bruno Haible  <bruno@clisp.org>
43732         xstrtod: Move AC_LIBOBJ invocations to module description.
43733         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
43734         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
43736 2011-05-23  Bruno Haible  <bruno@clisp.org>
43738         xnanosleep: Move AC_LIBOBJ invocations to module description.
43739         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
43740         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
43742 2011-05-23  Bruno Haible  <bruno@clisp.org>
43744         xgetcwd: Move AC_LIBOBJ invocations to module description.
43745         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
43746         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
43748 2011-05-23  Bruno Haible  <bruno@clisp.org>
43750         xalloc: Move AC_LIBOBJ invocations to module description.
43751         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
43752         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
43754 2011-05-23  Bruno Haible  <bruno@clisp.org>
43756         write-any-file: Move AC_LIBOBJ invocations to module description.
43757         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
43758         invocation.
43759         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
43761 2011-05-23  Bruno Haible  <bruno@clisp.org>
43763         utimens: Move AC_LIBOBJ invocations to module description.
43764         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
43765         * modules/utimens (Makefile.am): Augment lib_SOURCES.
43767 2011-05-23  Bruno Haible  <bruno@clisp.org>
43769         utimecmp: Move AC_LIBOBJ invocations to module description.
43770         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
43771         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
43773 2011-05-23  Bruno Haible  <bruno@clisp.org>
43775         userspec: Move AC_LIBOBJ invocations to module description.
43776         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
43777         * modules/userspec (Makefile.am): Augment lib_SOURCES.
43779 2011-05-23  Bruno Haible  <bruno@clisp.org>
43781         unlinkdir: Move AC_LIBOBJ invocations to module description.
43782         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
43783         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
43785 2011-05-23  Bruno Haible  <bruno@clisp.org>
43787         unistd-safer: Move AC_LIBOBJ invocations to module description.
43788         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
43789         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
43791 2011-05-23  Bruno Haible  <bruno@clisp.org>
43793         tempname: Move AC_LIBOBJ invocations to module description.
43794         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
43795         * modules/tempname (Makefile.am): Augment lib_SOURCES.
43797 2011-05-23  Bruno Haible  <bruno@clisp.org>
43799         strftime: Move AC_LIBOBJ invocations to module description.
43800         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
43801         * modules/strftime (Makefile.am): Augment lib_SOURCES.
43803 2011-05-23  Bruno Haible  <bruno@clisp.org>
43805         stdlib-safer: Move AC_LIBOBJ invocations to module description.
43806         * m4/stdlib-safer.m4: Remove file.
43807         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
43808         (configure.ac): Remove gl_STDLIB_SAFER call.
43809         (Makefile.am): Augment lib_SOURCES.
43811 2011-05-23  Bruno Haible  <bruno@clisp.org>
43813         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
43814         * m4/stdio-safer.m4: Remove file.
43815         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
43816         (configure.ac): Remove gl_TMPFILE_SAFER call.
43817         (Makefile.am): Augment lib_SOURCES.
43819 2011-05-23  Bruno Haible  <bruno@clisp.org>
43821         popen-safer: Move AC_LIBOBJ invocations to module description.
43822         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
43823         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
43824         (configure.ac): Remove gl_POPEN_SAFER call.
43825         (Makefile.am): Augment lib_SOURCES.
43827 2011-05-23  Bruno Haible  <bruno@clisp.org>
43829         freopen-safer: Move AC_LIBOBJ invocations to module description.
43830         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
43831         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
43832         (configure.ac): Remove gl_FREOPEN_SAFER call.
43833         (Makefile.am): Augment lib_SOURCES.
43835 2011-05-23  Bruno Haible  <bruno@clisp.org>
43837         fopen-safer: Move AC_LIBOBJ invocations to module description.
43838         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
43839         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
43840         (configure.ac): Remove gl_FOPEN_SAFER call.
43841         (Makefile.am): Augment lib_SOURCES.
43843 2011-05-23  Bruno Haible  <bruno@clisp.org>
43845         crypto/sha512: Move AC_LIBOBJ invocations to module description.
43846         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
43847         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
43849 2011-05-23  Bruno Haible  <bruno@clisp.org>
43851         crypto/sha256: Move AC_LIBOBJ invocations to module description.
43852         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
43853         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
43855 2011-05-23  Bruno Haible  <bruno@clisp.org>
43857         crypto/sha1: Move AC_LIBOBJ invocations to module description.
43858         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
43859         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
43861 2011-05-23  Bruno Haible  <bruno@clisp.org>
43863         settime: Move AC_LIBOBJ invocations to module description.
43864         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
43865         * modules/settime (Makefile.am): Augment lib_SOURCES.
43867 2011-05-23  Bruno Haible  <bruno@clisp.org>
43869         savedir: Move AC_LIBOBJ invocations to module description.
43870         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
43871         * modules/savedir (Makefile.am): Augment lib_SOURCES.
43873 2011-05-23  Bruno Haible  <bruno@clisp.org>
43875         save-cwd: Move AC_LIBOBJ invocations to module description.
43876         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
43877         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
43879 2011-05-23  Bruno Haible  <bruno@clisp.org>
43881         same: Move AC_LIBOBJ invocations to module description.
43882         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
43883         * modules/same (Makefile.am): Augment lib_SOURCES.
43885 2011-05-23  Bruno Haible  <bruno@clisp.org>
43887         safe-write: Move AC_LIBOBJ invocations to module description.
43888         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
43889         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
43890         instead of gl_SAFE_WRITE.
43891         (Makefile.am): Augment lib_SOURCES.
43893 2011-05-23  Bruno Haible  <bruno@clisp.org>
43895         safe-read: Move AC_LIBOBJ invocations to module description.
43896         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
43897         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
43898         of gl_SAFE_READ.
43899         (Makefile.am): Augment lib_SOURCES.
43901 2011-05-23  Bruno Haible  <bruno@clisp.org>
43903         safe-alloc: Move AC_LIBOBJ invocations to module description.
43904         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
43905         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
43907 2011-05-23  Bruno Haible  <bruno@clisp.org>
43909         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
43910         * m4/rijndael.m4: Remove file.
43911         * modules/crypto/rijndael (Files): Remove it.
43912         (configure.ac): Remove gl_RIJNDAEL call.
43913         (Makefile.am): Augment lib_SOURCES.
43915 2011-05-23  Bruno Haible  <bruno@clisp.org>
43917         readtokens: Move AC_LIBOBJ invocations to module description.
43918         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
43919         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
43921 2011-05-23  Bruno Haible  <bruno@clisp.org>
43923         read-file: Move AC_LIBOBJ invocations to module description.
43924         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
43925         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
43926         of gl_FUNC_READ_FILE.
43927         (Makefile.am): Augment lib_SOURCES.
43929 2011-05-23  Bruno Haible  <bruno@clisp.org>
43931         quotearg: Move AC_LIBOBJ invocations to module description.
43932         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
43933         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
43935 2011-05-23  Bruno Haible  <bruno@clisp.org>
43937         quote: Move AC_LIBOBJ invocations to module description.
43938         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
43939         * modules/quote (Makefile.am): Augment lib_SOURCES.
43941 2011-05-23  Bruno Haible  <bruno@clisp.org>
43943         posixver: Move AC_LIBOBJ invocations to module description.
43944         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
43945         * modules/posixver (Makefile.am): Augment lib_SOURCES.
43947 2011-05-23  Bruno Haible  <bruno@clisp.org>
43949         posixtm: Move AC_LIBOBJ invocations to module description.
43950         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
43951         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
43953 2011-05-23  Bruno Haible  <bruno@clisp.org>
43955         physmem: Move AC_LIBOBJ invocations to module description.
43956         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
43957         * modules/physmem (Makefile.am): Augment lib_SOURCES.
43959 2011-05-23  Bruno Haible  <bruno@clisp.org>
43961         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
43962         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
43963         invocation.
43964         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
43966 2011-05-23  Bruno Haible  <bruno@clisp.org>
43968         mpsort: Move AC_LIBOBJ invocations to module description.
43969         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
43970         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
43972 2011-05-23  Bruno Haible  <bruno@clisp.org>
43974         modechange: Move AC_LIBOBJ invocations to module description.
43975         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
43976         * modules/modechange (Makefile.am): Augment lib_SOURCES.
43978 2011-05-23  Bruno Haible  <bruno@clisp.org>
43980         mkdir-p: Move AC_LIBOBJ invocations to module description.
43981         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
43982         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
43984 2011-05-23  Bruno Haible  <bruno@clisp.org>
43986         mkancesdirs: Move AC_LIBOBJ invocations to module description.
43987         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
43988         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
43990 2011-05-23  Bruno Haible  <bruno@clisp.org>
43992         mgetgroups: Move AC_LIBOBJ invocations to module description.
43993         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
43994         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
43996 2011-05-23  Bruno Haible  <bruno@clisp.org>
43998         memxor: Move AC_LIBOBJ invocations to module description.
43999         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
44000         * modules/memxor (Makefile.am): Augment lib_SOURCES.
44002 2011-05-23  Bruno Haible  <bruno@clisp.org>
44004         memcoll: Move AC_LIBOBJ invocations to module description.
44005         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
44006         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
44008 2011-05-23  Bruno Haible  <bruno@clisp.org>
44010         memcasecmp: Move AC_LIBOBJ invocations to module description.
44011         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
44012         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
44014 2011-05-23  Bruno Haible  <bruno@clisp.org>
44016         crypto/md5: Move AC_LIBOBJ invocations to module description.
44017         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
44018         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
44020 2011-05-23  Bruno Haible  <bruno@clisp.org>
44022         crypto/md4: Move AC_LIBOBJ invocations to module description.
44023         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
44024         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
44026 2011-05-23  Bruno Haible  <bruno@clisp.org>
44028         crypto/md2: Move AC_LIBOBJ invocations to module description.
44029         * m4/md2.m4: Remove file.
44030         * modules/crypto/md2 (Files): Remove it.
44031         (configure.ac): Remove gl_MD2 call.
44032         (Makefile.am): Augment lib_SOURCES.
44034 2011-05-23  Bruno Haible  <bruno@clisp.org>
44036         long-options: Move AC_LIBOBJ invocations to module description.
44037         * m4/long-options.m4: Remove file.
44038         * modules/long-options (Files): Remove it.
44039         (configure.ac): Remove gl_LONG_OPTIONS call.
44040         (Makefile.am): Augment lib_SOURCES.
44042 2011-05-23  Bruno Haible  <bruno@clisp.org>
44044         i-ring: Move AC_LIBOBJ invocations to module description.
44045         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
44046         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
44048 2011-05-23  Bruno Haible  <bruno@clisp.org>
44050         idcache: Move AC_LIBOBJ invocations to module description.
44051         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
44052         * modules/idcache (Makefile.am): Augment lib_SOURCES.
44054 2011-05-23  Bruno Haible  <bruno@clisp.org>
44056         human: Move AC_LIBOBJ invocations to module description.
44057         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
44058         * modules/human (Makefile.am): Augment lib_SOURCES.
44060 2011-05-23  Bruno Haible  <bruno@clisp.org>
44062         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
44063         * m4/hmac-sha1.m4: Remove file.
44064         * modules/crypto/hmac-sha1 (Files): Remove it.
44065         (configure.ac): Remove gl_HMAC_SHA1 call.
44066         (Makefile.am): Augment lib_SOURCES.
44068 2011-05-23  Bruno Haible  <bruno@clisp.org>
44070         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
44071         * m4/hmac-md5.m4: Remove file.
44072         * modules/crypto/hmac-md5 (Files): Remove it.
44073         (configure.ac): Remove gl_HMAC_MD5 call.
44074         (Makefile.am): Augment lib_SOURCES.
44076 2011-05-23  Bruno Haible  <bruno@clisp.org>
44078         hash: Move AC_LIBOBJ invocations to module description.
44079         * m4/hash.m4: Remove file.
44080         * modules/hash (Files): Remove it.
44081         (configure.ac): Remove gl_HASH call.
44082         (Makefile.am): Augment lib_SOURCES.
44084 2011-05-23  Bruno Haible  <bruno@clisp.org>
44086         hard-locale: Move AC_LIBOBJ invocations to module description.
44087         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
44088         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
44090 2011-05-23  Bruno Haible  <bruno@clisp.org>
44092         getugroups: Move AC_LIBOBJ invocations to module description.
44093         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
44094         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
44096 2011-05-23  Bruno Haible  <bruno@clisp.org>
44098         gettime: Move AC_LIBOBJ invocations to module description.
44099         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
44100         * modules/gettime (Makefile.am): Augment lib_SOURCES.
44102 2011-05-23  Bruno Haible  <bruno@clisp.org>
44104         getndelim2: Move AC_LIBOBJ invocations to module description.
44105         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
44106         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
44108 2011-05-23  Bruno Haible  <bruno@clisp.org>
44110         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
44111         * m4/gc-pbkdf2-sha1.m4: Remove file.
44112         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
44113         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
44114         (Makefile.am): Augment lib_SOURCES.
44116 2011-05-23  Bruno Haible  <bruno@clisp.org>
44118         fts: Move AC_LIBOBJ invocations to module description.
44119         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
44120         * modules/fts (configure.ac): ... to here.
44122 2011-05-23  Bruno Haible  <bruno@clisp.org>
44124         file-type: Move AC_LIBOBJ invocations to module description.
44125         * m4/file-type.m4: Remove file.
44126         * modules/file-type (Files): Remove it.
44127         (configure.ac): Remove gl_FILE_TYPE call.
44128         (Makefile.am): Augment lib_SOURCES.
44130 2011-05-23  Bruno Haible  <bruno@clisp.org>
44132         filenamecat*: Respect rules for use of AC_LIBOBJ.
44133         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
44134         Remove AC_LIBOBJ invocation.
44135         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
44136         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
44138 2011-05-23  Bruno Haible  <bruno@clisp.org>
44140         filemode: Move AC_LIBOBJ invocations to module description.
44141         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
44142         * modules/filemode (Makefile.am): Augment lib_SOURCES.
44144 2011-05-23  Bruno Haible  <bruno@clisp.org>
44146         openat-safer: Move AC_LIBOBJ invocations to module description.
44147         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
44148         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
44150 2011-05-23  Bruno Haible  <bruno@clisp.org>
44152         fcntl-safer: Move AC_LIBOBJ invocations to module description.
44153         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
44154         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
44156 2011-05-23  Bruno Haible  <bruno@clisp.org>
44158         exclude: Move AC_LIBOBJ invocations to module description.
44159         * m4/exclude.m4: Remove file.
44160         * modules/exclude (Files): Remove it.
44161         (configure.ac): Remove gl_EXCLUDE call.
44162         (Makefile.am): Augment lib_SOURCES.
44164 2011-05-23  Bruno Haible  <bruno@clisp.org>
44166         dirname*: Respect rules for use of AC_LIBOBJ.
44167         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
44168         invocations.
44169         * modules/dirname (Makefile.am): Augment lib_SOURCES.
44170         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
44172 2011-05-23  Bruno Haible  <bruno@clisp.org>
44174         dirent-safer: Move AC_LIBOBJ invocations to module description.
44175         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
44176         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
44178 2011-05-23  Bruno Haible  <bruno@clisp.org>
44180         crypto/des: Move AC_LIBOBJ invocations to module description.
44181         * m4/des.m4: Remove file.
44182         * modules/crypto/des (Files): Remove it.
44183         (configure.ac): Remove gl_DES call.
44184         (Makefile.am): Augment lib_SOURCES.
44186 2011-05-23  Bruno Haible  <bruno@clisp.org>
44188         cycle-check: Move AC_LIBOBJ invocations to module description.
44189         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
44190         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
44192 2011-05-23  Bruno Haible  <bruno@clisp.org>
44194         c-strtold: Move AC_LIBOBJ invocations to module description.
44195         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
44196         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
44198 2011-05-23  Bruno Haible  <bruno@clisp.org>
44200         c-strtod: Move AC_LIBOBJ invocations to module description.
44201         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
44202         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
44204 2011-05-23  Bruno Haible  <bruno@clisp.org>
44206         crc: Move AC_LIBOBJ invocations to module description.
44207         * m4/crc.m4: Remove file.
44208         * modules/crc (Files): Remove it.
44209         (configure.ac): Remove gl_CRC call.
44210         (Makefile.am): Augment lib_SOURCES.
44212 2011-05-23  Bruno Haible  <bruno@clisp.org>
44214         close-stream: Move AC_LIBOBJ invocations to module description.
44215         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
44216         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
44218 2011-05-23  Bruno Haible  <bruno@clisp.org>
44220         closeout: Move AC_LIBOBJ invocations to module description.
44221         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
44222         * modules/closeout (Makefile.am): Augment lib_SOURCES.
44224 2011-05-23  Bruno Haible  <bruno@clisp.org>
44226         closein: Move AC_LIBOBJ invocations to module description.
44227         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
44228         * modules/closein (Makefile.am): Augment lib_SOURCES.
44230 2011-05-23  Bruno Haible  <bruno@clisp.org>
44232         cloexec: Move AC_LIBOBJ invocations to module description.
44233         * m4/cloexec.m4: Remove file.
44234         * modules/cloexec (Files): Remove it.
44235         (configure.ac): Remove gl_CLOEXEC call.
44236         (Makefile.am): Augment lib_SOURCES.
44238 2011-05-23  Bruno Haible  <bruno@clisp.org>
44240         check-version: Move AC_LIBOBJ invocations to module description.
44241         * m4/check-version.m4: Remove file.
44242         * modules/check-version (Files): Remove it.
44243         (configure.ac): Remove gl_CHECK_VERSION call.
44244         (Makefile.am): Augment lib_SOURCES.
44246 2011-05-23  Bruno Haible  <bruno@clisp.org>
44248         chdir-safer: Move AC_LIBOBJ invocations to module description.
44249         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
44250         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
44252 2011-05-23  Bruno Haible  <bruno@clisp.org>
44254         canonicalize: Move AC_LIBOBJ invocations to module description.
44255         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
44256         AC_LIBOBJ invocation.
44257         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
44259 2011-05-23  Bruno Haible  <bruno@clisp.org>
44261         canon-host: Move AC_LIBOBJ invocations to module description.
44262         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
44263         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
44264         instead of gl_CANON_HOST.
44265         (Makefile.am): Augment lib_SOURCES.
44267 2011-05-23  Bruno Haible  <bruno@clisp.org>
44269         backupfile: Move AC_LIBOBJ invocations to module description.
44270         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
44271         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
44273 2011-05-23  Bruno Haible  <bruno@clisp.org>
44275         argmatch: Move AC_LIBOBJ invocations to module description.
44276         * m4/argmatch.m4: Remove file.
44277         * modules/argmatch (Files): Remove it.
44278         (configure.ac): Remove gl_ARGMATCH call.
44279         (Makefile.am): Augment lib_SOURCES.
44281 2011-05-23  Bruno Haible  <bruno@clisp.org>
44283         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
44284         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
44285         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
44287 2011-05-23  Bruno Haible  <bruno@clisp.org>
44289         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
44290         * m4/arcfour.m4: Remove file.
44291         * modules/crypto/arcfour (Files): Remove it.
44292         (configure.ac): Remove gl_ARCFOUR call.
44293         (Makefile.am): Augment lib_SOURCES.
44295 2011-05-22  Bruno Haible  <bruno@clisp.org>
44297         write: Move AC_LIBOBJ invocations to module description.
44298         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
44299         * modules/write (configure.ac): ... to here.
44301 2011-05-22  Bruno Haible  <bruno@clisp.org>
44303         wmemset: Move AC_LIBOBJ invocations to module description.
44304         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
44305         here...
44306         * modules/wmemset (configure.ac): ... to here.
44308 2011-05-22  Bruno Haible  <bruno@clisp.org>
44310         wmemmove: Move AC_LIBOBJ invocations to module description.
44311         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
44312         here...
44313         * modules/wmemmove (configure.ac): ... to here.
44315 2011-05-22  Bruno Haible  <bruno@clisp.org>
44317         wmemcpy: Move AC_LIBOBJ invocations to module description.
44318         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
44319         here...
44320         * modules/wmemcpy (configure.ac): ... to here.
44322 2011-05-22  Bruno Haible  <bruno@clisp.org>
44324         wmemcmp: Move AC_LIBOBJ invocations to module description.
44325         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
44326         here...
44327         * modules/wmemcmp (configure.ac): ... to here.
44329 2011-05-22  Bruno Haible  <bruno@clisp.org>
44331         wmemchr: Move AC_LIBOBJ invocations to module description.
44332         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
44333         here...
44334         * modules/wmemchr (configure.ac): ... to here.
44336 2011-05-22  Bruno Haible  <bruno@clisp.org>
44338         wcswidth: Move AC_LIBOBJ invocations to module description.
44339         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
44340         here...
44341         * modules/wcswidth (configure.ac): ... to here.
44343 2011-05-22  Bruno Haible  <bruno@clisp.org>
44345         wcwidth: Respect rules for use of AC_LIBOBJ.
44346         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
44347         invocation from here...
44348         * modules/wcwidth (configure.ac): ... to here.
44349         (Depends-on): Update conditions.
44351 2011-05-22  Bruno Haible  <bruno@clisp.org>
44353         wctype: Move AC_LIBOBJ invocations to module description.
44354         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
44355         invocation from here...
44356         * modules/wctype (configure.ac): ... to here.
44357         (Depends-on): Update conditions.
44359 2011-05-22  Bruno Haible  <bruno@clisp.org>
44361         wctrans: Move AC_LIBOBJ invocations to module description.
44362         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
44363         invocation from here...
44364         * modules/wctrans (configure.ac): ... to here.
44366 2011-05-22  Bruno Haible  <bruno@clisp.org>
44368         wctomb: Move AC_LIBOBJ invocations to module description.
44369         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
44370         invocations from here...
44371         * modules/wctomb (configure.ac): ... to here.
44373 2011-05-22  Bruno Haible  <bruno@clisp.org>
44375         wctob: Move AC_LIBOBJ invocations to module description.
44376         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
44377         gl_PREREQ_WCTOB invocations from here...
44378         * modules/wctob (configure.ac): ... to here.
44379         (Depends-on): Update conditions.
44381 2011-05-22  Bruno Haible  <bruno@clisp.org>
44383         wcsxfrm: Move AC_LIBOBJ invocations to module description.
44384         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
44385         here...
44386         * modules/wcsxfrm (configure.ac): ... to here.
44388 2011-05-22  Bruno Haible  <bruno@clisp.org>
44390         wcstok: Move AC_LIBOBJ invocations to module description.
44391         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
44392         * modules/wcstok (configure.ac): ... to here.
44394 2011-05-22  Bruno Haible  <bruno@clisp.org>
44396         wcsstr: Move AC_LIBOBJ invocations to module description.
44397         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
44398         * modules/wcsstr (configure.ac): ... to here.
44400 2011-05-22  Bruno Haible  <bruno@clisp.org>
44402         wcsspn: Move AC_LIBOBJ invocations to module description.
44403         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
44404         * modules/wcsspn (configure.ac): ... to here.
44406 2011-05-22  Bruno Haible  <bruno@clisp.org>
44408         wcsrtombs: Move AC_LIBOBJ invocations to module description.
44409         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
44410         gl_PREREQ_WCSRTOMBS invocations from here...
44411         * modules/wcsrtombs (configure.ac): ... to here.
44413 2011-05-22  Bruno Haible  <bruno@clisp.org>
44415         wcsrchr: Move AC_LIBOBJ invocations to module description.
44416         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
44417         here...
44418         * modules/wcsrchr (configure.ac): ... to here.
44420 2011-05-22  Bruno Haible  <bruno@clisp.org>
44422         wcspbrk: Move AC_LIBOBJ invocations to module description.
44423         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
44424         here...
44425         * modules/wcspbrk (configure.ac): ... to here.
44427 2011-05-22  Bruno Haible  <bruno@clisp.org>
44429         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
44430         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
44431         gl_PREREQ_WCSNRTOMBS invocations from here...
44432         * modules/wcsnrtombs (configure.ac): ... to here.
44434 2011-05-22  Bruno Haible  <bruno@clisp.org>
44436         wcsnlen: Move AC_LIBOBJ invocations to module description.
44437         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
44438         here...
44439         * modules/wcsnlen (configure.ac): ... to here.
44441 2011-05-22  Bruno Haible  <bruno@clisp.org>
44443         wcsncpy: Move AC_LIBOBJ invocations to module description.
44444         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
44445         here...
44446         * modules/wcsncpy (configure.ac): ... to here.
44448 2011-05-22  Bruno Haible  <bruno@clisp.org>
44450         wcsncmp: Move AC_LIBOBJ invocations to module description.
44451         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
44452         here...
44453         * modules/wcsncmp (configure.ac): ... to here.
44455 2011-05-22  Bruno Haible  <bruno@clisp.org>
44457         wcsncat: Move AC_LIBOBJ invocations to module description.
44458         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
44459         here...
44460         * modules/wcsncat (configure.ac): ... to here.
44462 2011-05-22  Bruno Haible  <bruno@clisp.org>
44464         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
44465         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
44466         from here...
44467         * modules/wcsncasecmp (configure.ac): ... to here.
44469 2011-05-22  Bruno Haible  <bruno@clisp.org>
44471         wcslen: Move AC_LIBOBJ invocations to module description.
44472         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
44473         * modules/wcslen (configure.ac): ... to here.
44475 2011-05-22  Bruno Haible  <bruno@clisp.org>
44477         wcsdup: Move AC_LIBOBJ invocations to module description.
44478         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
44479         * modules/wcsdup (configure.ac): ... to here.
44481 2011-05-22  Bruno Haible  <bruno@clisp.org>
44483         wcscspn: Move AC_LIBOBJ invocations to module description.
44484         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
44485         here...
44486         * modules/wcscspn (configure.ac): ... to here.
44488 2011-05-22  Bruno Haible  <bruno@clisp.org>
44490         wcscpy: Move AC_LIBOBJ invocations to module description.
44491         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
44492         * modules/wcscpy (configure.ac): ... to here.
44494 2011-05-22  Bruno Haible  <bruno@clisp.org>
44496         wcscoll: Move AC_LIBOBJ invocations to module description.
44497         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
44498         here...
44499         * modules/wcscoll (configure.ac): ... to here.
44501 2011-05-22  Bruno Haible  <bruno@clisp.org>
44503         wcscmp: Move AC_LIBOBJ invocations to module description.
44504         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
44505         * modules/wcscmp (configure.ac): ... to here.
44507 2011-05-22  Bruno Haible  <bruno@clisp.org>
44509         wcschr: Move AC_LIBOBJ invocations to module description.
44510         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
44511         * modules/wcschr (configure.ac): ... to here.
44513 2011-05-22  Bruno Haible  <bruno@clisp.org>
44515         wcscat: Move AC_LIBOBJ invocations to module description.
44516         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
44517         * modules/wcscat (configure.ac): ... to here.
44519 2011-05-22  Bruno Haible  <bruno@clisp.org>
44521         wcscasecmp: Move AC_LIBOBJ invocations to module description.
44522         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
44523         here...
44524         * modules/wcscasecmp (configure.ac): ... to here.
44526 2011-05-22  Bruno Haible  <bruno@clisp.org>
44528         wcrtomb: Move AC_LIBOBJ invocations to module description.
44529         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
44530         invocations from here...
44531         * modules/wcrtomb (configure.ac): ... to here.
44533 2011-05-22  Bruno Haible  <bruno@clisp.org>
44535         wcpncpy: Move AC_LIBOBJ invocations to module description.
44536         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
44537         here...
44538         * modules/wcpncpy (configure.ac): ... to here.
44540 2011-05-22  Bruno Haible  <bruno@clisp.org>
44542         wcpcpy: Move AC_LIBOBJ invocations to module description.
44543         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
44544         * modules/wcpcpy (configure.ac): ... to here.
44546 2011-05-22  Bruno Haible  <bruno@clisp.org>
44548         waitpid: Move AC_LIBOBJ invocations to module description.
44549         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
44550         invocation from here...
44551         * modules/waitpid (configure.ac): ... to here.
44553 2011-05-22  Bruno Haible  <bruno@clisp.org>
44555         utimensat: Move AC_LIBOBJ invocations to module description.
44556         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
44557         here...
44558         * modules/utimensat (configure.ac): ... to here.
44560 2011-05-22  Bruno Haible  <bruno@clisp.org>
44562         usleep: Move AC_LIBOBJ invocations to module description.
44563         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
44564         here...
44565         * modules/usleep (configure.ac): ... to here.
44567 2011-05-22  Bruno Haible  <bruno@clisp.org>
44569         unlockpt: Move AC_LIBOBJ invocations to module description.
44570         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
44571         gl_PREREQ_UNLOCKPT invocations from here...
44572         * modules/unlockpt (configure.ac): ... to here.
44574 2011-05-22  Bruno Haible  <bruno@clisp.org>
44576         unlink: Respect rules for use of AC_LIBOBJ.
44577         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
44578         * modules/unlink (configure.ac): ... to here.
44580 2011-05-22  Bruno Haible  <bruno@clisp.org>
44582         uname: Move AC_LIBOBJ invocations to module description.
44583         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
44584         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
44585         here...
44586         * modules/uname (configure.ac): ... to here.
44588 2011-05-22  Bruno Haible  <bruno@clisp.org>
44590         ttyname_r: Move AC_LIBOBJ invocations to module description.
44591         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
44592         gl_PREREQ_TTYNAME_R invocations from here...
44593         * modules/ttyname_r (configure.ac): ... to here.
44595 2011-05-22  Bruno Haible  <bruno@clisp.org>
44597         tsearch: Move AC_LIBOBJ invocations to module description.
44598         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
44599         invocations from here...
44600         * modules/tsearch (configure.ac): ... to here.
44602 2011-05-22  Bruno Haible  <bruno@clisp.org>
44604         towctrans: Move AC_LIBOBJ invocations to module description.
44605         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
44606         AC_LIBOBJ invocation from here...
44607         * modules/towctrans (configure.ac): ... to here.
44609 2011-05-22  Bruno Haible  <bruno@clisp.org>
44611         tmpfile: Move AC_LIBOBJ invocations to module description.
44612         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
44613         invocations from here...
44614         * modules/tmpfile (configure.ac): ... to here.
44616 2011-05-22  Bruno Haible  <bruno@clisp.org>
44618         times: Move AC_LIBOBJ invocations to module description.
44619         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
44620         * modules/times (configure.ac): ... to here.
44622 2011-05-22  Bruno Haible  <bruno@clisp.org>
44624         time_r: Move AC_LIBOBJ invocations to module description.
44625         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
44626         invocations from here...
44627         * modules/time_r (configure.ac): ... to here.
44629 2011-05-22  Bruno Haible  <bruno@clisp.org>
44631         timegm: Move AC_LIBOBJ invocations to module description.
44632         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
44633         invocations from here...
44634         * modules/timegm (configure.ac): ... to here.
44636 2011-05-22  Bruno Haible  <bruno@clisp.org>
44638         tcgetsid: Move AC_LIBOBJ invocations to module description.
44639         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
44640         and gl_PREREQ_TCGETSID invocations from here...
44641         * modules/tcgetsid (configure.ac): ... to here.
44642         (Depends-on): Update conditions.
44644 2011-05-22  Bruno Haible  <bruno@clisp.org>
44646         symlinkat: Move AC_LIBOBJ invocations to module description.
44647         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
44648         here...
44649         * modules/symlinkat (configure.ac): ... to here.
44651 2011-05-22  Bruno Haible  <bruno@clisp.org>
44653         symlink: Move AC_LIBOBJ invocations to module description.
44654         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
44655         here...
44656         * modules/symlink (configure.ac): ... to here.
44658 2011-05-22  Bruno Haible  <bruno@clisp.org>
44660         strverscmp: Move AC_LIBOBJ invocations to module description.
44661         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
44662         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
44663         from here...
44664         * modules/strverscmp (configure.ac): ... to here.
44666 2011-05-22  Bruno Haible  <bruno@clisp.org>
44668         strtok_r: Move AC_LIBOBJ invocations to module description.
44669         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
44670         and gl_PREREQ_STRTOK_R invocations from here...
44671         * modules/strtok_r (configure.ac): ... to here.
44672         (Depends-on): Update conditions.
44674 2011-05-22  Bruno Haible  <bruno@clisp.org>
44676         strtoumax: Move AC_LIBOBJ invocations to module description.
44677         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
44678         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
44679         from here...
44680         * modules/strtoumax (configure.ac): ... to here.
44682 2011-05-22  Bruno Haible  <bruno@clisp.org>
44684         strtoimax: Move AC_LIBOBJ invocations to module description.
44685         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
44686         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
44687         from here...
44688         * modules/strtoimax (configure.ac): ... to here.
44690 2011-05-22  Bruno Haible  <bruno@clisp.org>
44692         strtoull: Move AC_LIBOBJ invocations to module description.
44693         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
44694         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
44695         from here...
44696         * modules/strtoull (configure.ac): ... to here.
44698 2011-05-22  Bruno Haible  <bruno@clisp.org>
44700         strtoll: Move AC_LIBOBJ invocations to module description.
44701         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
44702         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
44703         here...
44704         * modules/strtoll (configure.ac): ... to here.
44706 2011-05-22  Bruno Haible  <bruno@clisp.org>
44708         strtoul: Move AC_LIBOBJ invocations to module description.
44709         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
44710         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
44711         * modules/strtoul (configure.ac): ... to here.
44713 2011-05-22  Bruno Haible  <bruno@clisp.org>
44715         strtol: Move AC_LIBOBJ invocations to module description.
44716         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
44717         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
44718         * modules/strtol (configure.ac): ... to here.
44720 2011-05-22  Bruno Haible  <bruno@clisp.org>
44722         strtod: Move AC_LIBOBJ invocations to module description.
44723         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
44724         invocations from here...
44725         * modules/strtod (configure.ac): ... to here.
44727 2011-05-22  Bruno Haible  <bruno@clisp.org>
44729         strstr*: Move AC_LIBOBJ invocations to module description.
44730         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
44731         invocations from here...
44732         * modules/strstr-simple (configure.ac): ... to here.
44733         * modules/strstr (configure.ac): ... and here.
44735 2011-05-22  Bruno Haible  <bruno@clisp.org>
44737         strsignal: Move AC_LIBOBJ invocations to module description.
44738         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
44739         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
44740         * modules/strsignal (configure.ac): ... to here.
44741         (Depends-on): Update conditions.
44743 2011-05-22  Bruno Haible  <bruno@clisp.org>
44745         strsep: Move AC_LIBOBJ invocations to module description.
44746         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
44747         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
44748         here...
44749         * modules/strsep (configure.ac): ... to here.
44751 2011-05-22  Bruno Haible  <bruno@clisp.org>
44753         strptime: Move AC_LIBOBJ invocations to module description.
44754         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
44755         gl_PREREQ_STRPTIME invocations from here...
44756         * modules/strptime (configure.ac): ... to here.
44758 2011-05-22  Bruno Haible  <bruno@clisp.org>
44760         strpbrk: Move AC_LIBOBJ invocations to module description.
44761         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
44762         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
44763         here...
44764         * modules/strpbrk (configure.ac): ... to here.
44766 2011-05-22  Bruno Haible  <bruno@clisp.org>
44768         strnlen: Move AC_LIBOBJ invocations to module description.
44769         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
44770         invocations from here...
44771         * modules/strnlen (configure.ac): ... to here.
44773 2011-05-22  Bruno Haible  <bruno@clisp.org>
44775         strndup: Move AC_LIBOBJ invocations to module description.
44776         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
44777         invocations from here...
44778         * modules/strndup (configure.ac): ... to here.
44779         (Depends-on): Update conditions.
44781 2011-05-22  Bruno Haible  <bruno@clisp.org>
44783         strncat: Move AC_LIBOBJ invocations to module description.
44784         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
44785         invocations from here...
44786         * modules/strncat (configure.ac): ... to here.
44788 2011-05-22  Bruno Haible  <bruno@clisp.org>
44790         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
44791         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
44792         invocations from here...
44793         * modules/strdup (configure.ac): ... to here.
44794         * modules/strdup-posix (configure.ac): ... and here.
44796 2011-05-22  Bruno Haible  <bruno@clisp.org>
44798         strcspn: Move AC_LIBOBJ invocations to module description.
44799         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
44800         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
44801         here...
44802         * modules/strcspn (configure.ac): ... to here.
44804 2011-05-22  Bruno Haible  <bruno@clisp.org>
44806         strchrnul: Move AC_LIBOBJ invocations to module description.
44807         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
44808         gl_PREREQ_STRCHRNUL invocations from here...
44809         * modules/strchrnul (configure.ac): ... to here.
44811 2011-05-22  Bruno Haible  <bruno@clisp.org>
44813         strcasestr*: Move AC_LIBOBJ invocations to module description.
44814         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
44815         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
44816         * modules/strcasestr-simple (configure.ac): ... to here.
44817         * modules/strcasestr (configure.ac): ... and here.
44819 2011-05-22  Bruno Haible  <bruno@clisp.org>
44821         strcase: Move AC_LIBOBJ invocations to module description.
44822         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
44823         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
44824         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
44825         gl_PREREQ_STRNCASECMP invocations from here...
44826         * modules/strcase (configure.ac): ... to here.
44828 2011-05-22  Bruno Haible  <bruno@clisp.org>
44830         stpncpy: Move AC_LIBOBJ invocations to module description.
44831         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
44832         here...
44833         * modules/stpncpy (configure.ac): ... to here.
44835 2011-05-22  Bruno Haible  <bruno@clisp.org>
44837         stpcpy: Move AC_LIBOBJ invocations to module description.
44838         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
44839         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
44840         here...
44841         * modules/stpcpy (configure.ac): ... to here.
44843 2011-05-21  Bruno Haible  <bruno@clisp.org>
44845         stat: Move AC_LIBOBJ invocations to module description.
44846         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
44847         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
44848         here...
44849         * modules/stat (configure.ac): ... to here.
44851 2011-05-21  Bruno Haible  <bruno@clisp.org>
44853         sleep: Move AC_LIBOBJ invocations to module description.
44854         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
44855         * modules/sleep (configure.ac): ... to here.
44857 2011-05-21  Bruno Haible  <bruno@clisp.org>
44859         signbit: Move AC_LIBOBJ invocations to module description.
44860         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
44861         * modules/signbit (configure.ac): ... to here.
44863 2011-05-21  Bruno Haible  <bruno@clisp.org>
44865         sigprocmask: Move AC_LIBOBJ invocations to module description.
44866         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
44867         gl_PREREQ_SIGPROMASK invocations from here...
44868         * modules/sigprocmask (configure.ac): ... to here.
44870 2011-05-21  Bruno Haible  <bruno@clisp.org>
44872         sigaction: Move AC_LIBOBJ invocations to module description.
44873         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
44874         gl_PREREQ_SIGACTION invocations from here...
44875         * modules/sigaction (configure.ac): ... to here.
44877 2011-05-21  Bruno Haible  <bruno@clisp.org>
44879         sig2str: Move AC_LIBOBJ invocations to module description.
44880         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
44881         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
44882         here...
44883         * modules/sig2str (configure.ac): ... to here.
44885 2011-05-21  Bruno Haible  <bruno@clisp.org>
44887         setlocale: Move AC_LIBOBJ invocations to module description.
44888         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
44889         gl_PREREQ_SETLOCALE invocations from here...
44890         * modules/setlocale (configure.ac): ... to here.
44892 2011-05-21  Bruno Haible  <bruno@clisp.org>
44894         unsetenv: Move AC_LIBOBJ invocations to module description.
44895         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
44896         and gl_PREREQ_UNSETENV invocations from here...
44897         * modules/unsetenv (configure.ac): ... to here.
44898         (Depends-on): Update.
44900 2011-05-21  Bruno Haible  <bruno@clisp.org>
44902         setenv: Move AC_LIBOBJ invocations to module description.
44903         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
44904         here...
44905         * modules/setenv (configure.ac): ... to here.
44907 2011-05-21  Bruno Haible  <bruno@clisp.org>
44909         selinux-h: Move AC_LIBOBJ invocations to module description.
44910         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
44911         AC_LIBOBJ invocation from here...
44912         * modules/selinux-h (configure.ac): ... to here.
44914 2011-05-21  Bruno Haible  <bruno@clisp.org>
44916         select: Respect rules for use of AC_LIBOBJ.
44917         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
44918         here...
44919         * modules/select (configure.ac): ... to here.
44921 2011-05-21  Bruno Haible  <bruno@clisp.org>
44923         scandir: Move AC_LIBOBJ invocations to module description.
44924         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
44925         invocations from here...
44926         * modules/scandir (configure.ac): ... to here.
44928 2011-05-21  Bruno Haible  <bruno@clisp.org>
44930         rpmatch: Move AC_LIBOBJ invocations to module description.
44931         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
44932         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
44933         here...
44934         * modules/rpmatch (configure.ac): ... to here.
44936 2011-05-21  Bruno Haible  <bruno@clisp.org>
44938         rmdir: Respect rules for use of AC_LIBOBJ.
44939         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
44940         * modules/rmdir (configure.ac): ... to here.
44942 2011-05-21  Bruno Haible  <bruno@clisp.org>
44944         renameat: Move AC_LIBOBJ invocations to module description.
44945         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
44946         here...
44947         * modules/renameat (configure.ac): ... to here.
44949 2011-05-21  Bruno Haible  <bruno@clisp.org>
44951         rename: Respect rules for use of AC_LIBOBJ.
44952         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
44953         here...
44954         * modules/rename (configure.ac): ... to here.
44956 2011-05-21  Bruno Haible  <bruno@clisp.org>
44958         remove: Move AC_LIBOBJ invocations to module description.
44959         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
44960         here...
44961         * modules/remove (configure.ac): ... to here.
44963 2011-05-21  Bruno Haible  <bruno@clisp.org>
44965         relocatable-lib: Move AC_LIBOBJ invocations to module description.
44966         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
44967         macro.
44968         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
44969         * modules/relocatable-lib (configure.ac): ... to here.
44970         * modules/relocatable-prog-wrapper (configure.ac): Invoke
44971         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
44973 2011-05-21  Bruno Haible  <bruno@clisp.org>
44975         relocatable-prog: Move AC_LIBOBJ invocations to module description.
44976         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
44977         here...
44978         * modules/relocatable-prog (configure.ac): ... to here.
44980 2011-05-21  Bruno Haible  <bruno@clisp.org>
44982         regex: Move AC_LIBOBJ invocations to module description.
44983         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
44984         invocations from here...
44985         * modules/regex (configure.ac): ... to here.
44987 2011-05-21  Bruno Haible  <bruno@clisp.org>
44989         realloc-*: Move AC_LIBOBJ invocations to module description.
44990         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
44991         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
44992         AC_LIBOBJ invocations from here...
44993         * modules/realloc-gnu (configure.ac): ... to here.
44994         * modules/realloc-posix (configure.ac): ... and here.
44996 2011-05-21  Bruno Haible  <bruno@clisp.org>
44998         readutmp: Move AC_LIBOBJ invocations to module description.
44999         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
45000         * modules/readutmp (configure.ac): ... to here.
45002 2011-05-21  Bruno Haible  <bruno@clisp.org>
45004         readlinkat: Move AC_LIBOBJ invocations to module description.
45005         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
45006         here...
45007         * modules/readlinkat (configure.ac): ... to here.
45009 2011-05-21  Bruno Haible  <bruno@clisp.org>
45011         readlink: Move AC_LIBOBJ invocations to module description.
45012         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
45013         gl_PREREQ_READLINK invocations from here...
45014         * modules/readlink (configure.ac): ... to here.
45016 2011-05-21  Bruno Haible  <bruno@clisp.org>
45018         readline: Move AC_LIBOBJ invocations to module description.
45019         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
45020         gl_PREREQ_READLINE invocations from here...
45021         * modules/readline (configure.ac): ... to here.
45023 2011-05-21  Bruno Haible  <bruno@clisp.org>
45025         read: Move AC_LIBOBJ invocations to module description.
45026         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
45027         * modules/read (configure.ac): ... to here.
45029 2011-05-21  Bruno Haible  <bruno@clisp.org>
45031         rawmemchr: Move AC_LIBOBJ invocations to module description.
45032         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
45033         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
45034         from here...
45035         * modules/rawmemchr (configure.ac): ... to here.
45037 2011-05-21  Bruno Haible  <bruno@clisp.org>
45039         random_r: Move AC_LIBOBJ invocations to module description.
45040         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
45041         gl_PREREQ_RANDOM_R invocations from here...
45042         * modules/random_r (configure.ac): ... to here.
45044 2011-05-21  Bruno Haible  <bruno@clisp.org>
45046         pwrite: Move AC_LIBOBJ invocations to module description.
45047         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
45048         * modules/pwrite (configure.ac): ... to here.
45050 2011-05-21  Bruno Haible  <bruno@clisp.org>
45052         putenv: Move AC_LIBOBJ invocations to module description.
45053         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
45054         * modules/putenv (configure.ac): ... to here.
45056 2011-05-21  Bruno Haible  <bruno@clisp.org>
45058         login_tty: Move AC_LIBOBJ invocations to module description.
45059         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
45060         * modules/login_tty (configure.ac): ... to here.
45062 2011-05-21  Bruno Haible  <bruno@clisp.org>
45064         openpty: Move AC_LIBOBJ invocations to module description.
45065         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
45066         * modules/openpty (configure.ac): ... to here.
45068 2011-05-21  Bruno Haible  <bruno@clisp.org>
45070         forkpty: Move AC_LIBOBJ invocations to module description.
45071         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
45072         * modules/forkpty (configure.ac): ... to here.
45074 2011-05-21  Bruno Haible  <bruno@clisp.org>
45076         ptsname: Move AC_LIBOBJ invocations to module description.
45077         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
45078         invocations from here...
45079         * modules/ptsname (configure.ac): ... to here.
45081 2011-05-21  Bruno Haible  <bruno@clisp.org>
45083         pread: Move AC_LIBOBJ invocations to module description.
45084         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
45085         * modules/pread (configure.ac): ... to here.
45087 2011-05-21  Bruno Haible  <bruno@clisp.org>
45089         posix_spawn*: Move AC_LIBOBJ invocations to module description.
45090         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
45091         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
45092         * modules/posix_spawn (configure.ac): ... to here.
45093         * modules/posix_spawnp (configure.ac): ... and here.
45095 2011-05-21  Bruno Haible  <bruno@clisp.org>
45097         popen: Move AC_LIBOBJ invocations to module description.
45098         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
45099         invocations from here...
45100         * modules/popen (configure.ac): ... to here.
45102 2011-05-21  Bruno Haible  <bruno@clisp.org>
45104         poll: Move AC_LIBOBJ invocations to module description.
45105         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
45106         invocations from here...
45107         * modules/poll (configure.ac): ... to here.
45109 2011-05-21  Bruno Haible  <bruno@clisp.org>
45111         pipe-posix: Move AC_LIBOBJ invocations to module description.
45112         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
45113         * modules/pipe-posix (configure.ac): ... to here.
45115 2011-05-21  Bruno Haible  <bruno@clisp.org>
45117         openat: Respect rules for use of AC_LIBOBJ.
45118         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
45119         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
45120         * modules/openat (configure.ac): ... to here.
45122 2011-05-21  Bruno Haible  <bruno@clisp.org>
45124         obstack-printf*: Move AC_LIBOBJ invocations to module description.
45125         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
45126         invocation from here...
45127         * modules/obstack-printf (configure.ac): ... to here.
45128         * modules/obstack-printf-posix (configure.ac): ... and here.
45130 2011-05-21  Bruno Haible  <bruno@clisp.org>
45132         nl_langinfo: Move AC_LIBOBJ invocations to module description.
45133         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
45134         from here...
45135         * modules/nl_langinfo (configure.ac): ... to here.
45137 2011-05-21  Bruno Haible  <bruno@clisp.org>
45139         nanosleep: Move AC_LIBOBJ invocations to module description.
45140         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
45141         gl_PREREQ_NANOSLEEP invocations from here...
45142         * modules/nanosleep (configure.ac): ... to here.
45144 2011-05-21  Bruno Haible  <bruno@clisp.org>
45146         mountlist: Move AC_LIBOBJ invocations to module description.
45147         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
45148         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
45149         * modules/mountlist (configure.ac): ... to here.
45151 2011-05-21  Bruno Haible  <bruno@clisp.org>
45153         mktime: Respect rules for use of AC_LIBOBJ.
45154         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
45155         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
45156         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
45157         (gl_FUNC_MKTIME_INTERNAL): ... and here...
45158         * modules/mktime (configure.ac): ... to here.
45159         * modules/mktime-internal (configure.ac): ... and here.
45160         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
45162 2011-05-21  Bruno Haible  <bruno@clisp.org>
45164         mkstemps: Move AC_LIBOBJ invocations to module description.
45165         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
45166         here...
45167         * modules/mkstemps (configure.ac): ... to here.
45169 2011-05-21  Bruno Haible  <bruno@clisp.org>
45171         mkstemp: Move AC_LIBOBJ invocations to module description.
45172         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
45173         gl_PREREQ_MKSTEMP invocations from here...
45174         * modules/mkstemp (configure.ac): ... to here.
45176 2011-05-21  Bruno Haible  <bruno@clisp.org>
45178         mkostemps: Move AC_LIBOBJ invocations to module description.
45179         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
45180         here...
45181         * modules/mkostemps (configure.ac): ... to here.
45183 2011-05-21  Bruno Haible  <bruno@clisp.org>
45185         mkostemp: Move AC_LIBOBJ invocations to module description.
45186         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
45187         gl_PREREQ_MKOSTEMP invocations from here...
45188         * modules/mkostemp (configure.ac): ... to here.
45190 2011-05-21  Bruno Haible  <bruno@clisp.org>
45192         mknod: Move AC_LIBOBJ invocations to module description.
45193         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
45194         * modules/mknod (configure.ac): ... to here.
45196 2011-05-21  Bruno Haible  <bruno@clisp.org>
45198         mkfifoat: Move AC_LIBOBJ invocations to module description.
45199         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
45200         here...
45201         * modules/mkfifoat (configure.ac): ... to here.
45203 2011-05-21  Bruno Haible  <bruno@clisp.org>
45205         mkfifo: Respect rules for use of AC_LIBOBJ.
45206         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
45207         here...
45208         * modules/mkfifo (configure.ac): ... to here.
45210 2011-05-21  Bruno Haible  <bruno@clisp.org>
45212         mkdtemp: Move AC_LIBOBJ invocations to module description.
45213         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
45214         invocations from here...
45215         * modules/mkdtemp (configure.ac): ... to here.
45217 2011-05-21  Bruno Haible  <bruno@clisp.org>
45219         mkdir: Move AC_LIBOBJ invocations to module description.
45220         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
45221         * modules/mkdir (configure.ac): ... to here.
45223 2011-05-21  Bruno Haible  <bruno@clisp.org>
45225         memset: Move AC_LIBOBJ invocations to module description.
45226         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
45227         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
45228         here...
45229         * modules/memset (configure.ac): ... to here.
45231 2011-05-21  Bruno Haible  <bruno@clisp.org>
45233         memrchr: Move AC_LIBOBJ invocations to module description.
45234         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
45235         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
45236         here...
45237         * modules/memrchr (configure.ac): ... to here.
45239 2011-05-21  Bruno Haible  <bruno@clisp.org>
45241         mempcpy: Move AC_LIBOBJ invocations to module description.
45242         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
45243         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
45244         here...
45245         * modules/mempcpy (configure.ac): ... to here.
45247 2011-05-21  Bruno Haible  <bruno@clisp.org>
45249         memmove: Move AC_LIBOBJ invocations to module description.
45250         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
45251         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
45252         here...
45253         * modules/memmove (configure.ac): ... to here.
45255 2011-05-21  Bruno Haible  <bruno@clisp.org>
45257         memmem*: Move AC_LIBOBJ invocations to module description.
45258         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
45259         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
45260         here...
45261         (gl_FUNC_MEMMEM): ... and here...
45262         * modules/memmem-simple (configure.ac): ... to here.
45263         * modules/memmem (configure.ac): ... and here.
45265 2011-05-21  Bruno Haible  <bruno@clisp.org>
45267         memcpy: Move AC_LIBOBJ invocations to module description.
45268         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
45269         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
45270         here...
45271         * modules/memcpy (configure.ac): ... to here.
45273 2011-05-21  Bruno Haible  <bruno@clisp.org>
45275         memcmp: Simplify autoconf macro.
45276         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
45277         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
45278         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
45280 2011-05-21  Bruno Haible  <bruno@clisp.org>
45282         memcmp: Move AC_LIBOBJ invocations to module description.
45283         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
45284         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
45285         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
45286         * modules/memcmp (configure.ac): ... to here.
45287         (Depends-on): Update conditions.
45289 2011-05-21  Bruno Haible  <bruno@clisp.org>
45291         memchr: Respect rules for use of AC_LIBOBJ.
45292         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
45293         invocations from here...
45294         * modules/memchr (configure.ac): ... to here.
45296 2011-05-21  Bruno Haible  <bruno@clisp.org>
45298         mbtowc: Move AC_LIBOBJ invocations to module description.
45299         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
45300         invocations from here...
45301         * modules/mbtowc (configure.ac): ... to here.
45303 2011-05-21  Bruno Haible  <bruno@clisp.org>
45305         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
45306         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
45307         gl_PREREQ_MBSRTOWCS invocations from here...
45308         * modules/mbsrtowcs (configure.ac): ... to here.
45310 2011-05-21  Bruno Haible  <bruno@clisp.org>
45312         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
45313         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
45314         gl_PREREQ_MBSNRTOWCS invocations from here...
45315         * modules/mbsnrtowcs (configure.ac): ... to here.
45317 2011-05-21  Bruno Haible  <bruno@clisp.org>
45319         mbsinit: Move AC_LIBOBJ invocations to module description.
45320         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
45321         invocations from here...
45322         * modules/mbsinit (configure.ac): ... to here.
45324 2011-05-21  Bruno Haible  <bruno@clisp.org>
45326         mbrlen: Move AC_LIBOBJ invocations to module description.
45327         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
45328         invocations from here...
45329         * modules/mbrlen (configure.ac): ... to here.
45331 2011-05-21  Bruno Haible  <bruno@clisp.org>
45333         mbrtowc: Respect rules for use of AC_LIBOBJ.
45334         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
45335         invocations from here...
45336         * modules/mbrtowc (configure.ac): ... to here.
45338 2011-05-21  Bruno Haible  <bruno@clisp.org>
45340         malloc-*: Move AC_LIBOBJ invocations to module description.
45341         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
45342         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
45343         AC_LIBOBJ invocations from here...
45344         * modules/malloc-gnu (configure.ac): ... to here.
45345         * modules/malloc-posix (configure.ac): ... and here.
45347 2011-05-21  Bruno Haible  <bruno@clisp.org>
45349         lstat, openat: Respect rules for use of AC_LIBOBJ.
45350         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
45351         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
45352         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
45353         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
45354         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
45355         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
45356         here.
45357         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
45359 2011-05-21  Bruno Haible  <bruno@clisp.org>
45361         lseek: Move AC_LIBOBJ invocations to module description.
45362         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
45363         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
45364         * modules/lseek (configure.ac): ... to here.
45366 2011-05-21  Bruno Haible  <bruno@clisp.org>
45368         linkat: Move AC_LIBOBJ invocations to module description.
45369         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
45370         here...
45371         * modules/linkat (configure.ac): ... to here.
45373 2011-05-21  Bruno Haible  <bruno@clisp.org>
45375         link: Respect rules for use of AC_LIBOBJ.
45376         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
45377         * modules/link (configure.ac): ... to here.
45379 2011-05-21  Bruno Haible  <bruno@clisp.org>
45381         lchown: Move AC_LIBOBJ invocations to module description.
45382         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
45383         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
45384         * modules/lchown (configure.ac): ... to here.
45386 2011-05-21  Bruno Haible  <bruno@clisp.org>
45388         iswctype: Move AC_LIBOBJ invocations to module description.
45389         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
45390         here...
45391         * modules/iswctype (configure.ac): ... to here.
45393 2011-05-21  Bruno Haible  <bruno@clisp.org>
45395         iswblank: Move AC_LIBOBJ invocations to module description.
45396         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
45397         here...
45398         * modules/iswblank (configure.ac): ... to here.
45400 2011-05-21  Bruno Haible  <bruno@clisp.org>
45402         atanl: Move AC_LIBOBJ invocations to module description.
45403         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
45404         * modules/atanl (configure.ac): ... to here.
45406 2011-05-21  Bruno Haible  <bruno@clisp.org>
45408         acosl: Move AC_LIBOBJ invocations to module description.
45409         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
45410         * modules/acosl (configure.ac): ... to here.
45412 2011-05-21  Bruno Haible  <bruno@clisp.org>
45414         asinl: Respect rules for use of AC_LIBOBJ.
45415         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
45416         * modules/asinl (configure.ac): ... to here.
45418 2011-05-21  Bruno Haible  <bruno@clisp.org>
45420         tanl: Move AC_LIBOBJ invocations to module description.
45421         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
45422         * modules/tanl (configure.ac): ... to here.
45424 2011-05-21  Bruno Haible  <bruno@clisp.org>
45426         cosl: Move AC_LIBOBJ invocations to module description.
45427         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
45428         * modules/cosl (configure.ac): ... to here.
45430 2011-05-21  Bruno Haible  <bruno@clisp.org>
45432         sinl: Move AC_LIBOBJ invocations to module description.
45433         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
45434         * modules/sinl (configure.ac): ... to here.
45436 2011-05-21  Bruno Haible  <bruno@clisp.org>
45438         logl: Move AC_LIBOBJ invocations to module description.
45439         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
45440         * modules/logl (configure.ac): ... to here.
45442 2011-05-21  Bruno Haible  <bruno@clisp.org>
45444         expl: Move AC_LIBOBJ invocations to module description.
45445         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
45446         * modules/expl (configure.ac): ... to here.
45448 2011-05-21  Bruno Haible  <bruno@clisp.org>
45450         roundl: Move AC_LIBOBJ invocations to module description.
45451         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
45452         * modules/roundl (configure.ac): ... to here.
45454 2011-05-21  Bruno Haible  <bruno@clisp.org>
45456         round: Move AC_LIBOBJ invocations to module description.
45457         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
45458         * modules/round (configure.ac): ... to here.
45460 2011-05-21  Bruno Haible  <bruno@clisp.org>
45462         roundf: Move AC_LIBOBJ invocations to module description.
45463         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
45464         * modules/roundf (configure.ac): ... to here.
45466 2011-05-21  Bruno Haible  <bruno@clisp.org>
45468         truncl: Move AC_LIBOBJ invocations to module description.
45469         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
45470         * modules/truncl (configure.ac): ... to here.
45472 2011-05-21  Bruno Haible  <bruno@clisp.org>
45474         trunc: Move AC_LIBOBJ invocations to module description.
45475         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
45476         * modules/trunc (configure.ac): ... to here.
45478 2011-05-21  Bruno Haible  <bruno@clisp.org>
45480         truncf: Move AC_LIBOBJ invocations to module description.
45481         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
45482         * modules/truncf (configure.ac): ... to here.
45484 2011-05-21  Bruno Haible  <bruno@clisp.org>
45486         ceill: Move AC_LIBOBJ invocations to module description.
45487         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
45488         * modules/ceill (configure.ac): ... to here.
45490 2011-05-21  Bruno Haible  <bruno@clisp.org>
45492         ceil: Move AC_LIBOBJ invocations to module description.
45493         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
45494         * modules/ceil (configure.ac): ... to here.
45496 2011-05-21  Bruno Haible  <bruno@clisp.org>
45498         ceilf: Move AC_LIBOBJ invocations to module description.
45499         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
45500         * modules/ceilf (configure.ac): ... to here.
45502 2011-05-21  Bruno Haible  <bruno@clisp.org>
45504         floorl: Respect rules for use of AC_LIBOBJ.
45505         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
45506         * modules/floorl (configure.ac): ... to here.
45508 2011-05-21  Bruno Haible  <bruno@clisp.org>
45510         floor: Respect rules for use of AC_LIBOBJ.
45511         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
45512         * modules/floor (configure.ac): ... to here.
45514 2011-05-21  Bruno Haible  <bruno@clisp.org>
45516         floorf: Move AC_LIBOBJ invocations to module description.
45517         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
45518         * modules/floorf (configure.ac): ... to here.
45520 2011-05-20  Bruno Haible  <bruno@clisp.org>
45522         sqrtl: Respect rules for use of AC_LIBOBJ.
45523         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
45524         * modules/sqrtl (configure.ac): ... to here.
45526 2011-05-20  Bruno Haible  <bruno@clisp.org>
45528         ldexpl: Respect rules for use of AC_LIBOBJ.
45529         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
45530         * modules/ldexpl (configure.ac): ... to here.
45532 2011-05-20  Bruno Haible  <bruno@clisp.org>
45534         frexpl*: Respect rules for use of AC_LIBOBJ.
45535         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
45536         invocation from here...
45537         * modules/frexpl (configure.ac): ... to here.
45538         * modules/frexpl-nolibm (configure.ac): ... and here.
45540 2011-05-20  Bruno Haible  <bruno@clisp.org>
45542         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
45543         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
45544         invocation from here...
45545         * modules/frexp (configure.ac): ... to here.
45546         * modules/frexp-nolibm (configure.ac): ... and here.
45548 2011-05-20  Bruno Haible  <bruno@clisp.org>
45550         isnan: Respect rules for use of AC_LIBOBJ.
45551         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
45552         invocations here.
45553         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
45554         REPLACE_ISNAN.
45555         * modules/isnand (configure.ac): Likewise.
45556         * modules/isnanl (configure.ac): Likewise.
45558 2011-05-20  Bruno Haible  <bruno@clisp.org>
45560         isnanl*: Respect rules for use of AC_LIBOBJ.
45561         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
45562         invocation from here...
45563         * modules/isnanl (configure.ac): ... to here.
45564         * modules/isnanl-nolibm (configure.ac): ... and here.
45566 2011-05-20  Bruno Haible  <bruno@clisp.org>
45568         isnand*: Move AC_LIBOBJ invocations to module description.
45569         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
45570         invocation from here...
45571         * modules/isnand (configure.ac): ... to here.
45572         * modules/isnand-nolibm (configure.ac): ... and here.
45574 2011-05-20  Bruno Haible  <bruno@clisp.org>
45576         isnanf*: Move AC_LIBOBJ invocations to module description.
45577         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
45578         invocation from here...
45579         * modules/isnanf (configure.ac): ... to here.
45580         * modules/isnanf-nolibm (configure.ac): ... and here.
45582 2011-05-20  Bruno Haible  <bruno@clisp.org>
45584         isnan*: Separate the AC_LIBOBJ invocations.
45585         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
45586         AC_LIBOBJ invocation.
45587         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
45588         here.
45589         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
45590         AC_LIBOBJ invocation.
45591         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
45592         here.
45593         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
45594         AC_LIBOBJ invocation.
45595         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
45596         here.
45597         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
45599 2011-05-08  Bruno Haible  <bruno@clisp.org>
45601         isinf: Move AC_LIBOBJ invocations to module description.
45602         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
45603         * modules/isinf (configure.ac): ... to here.
45605 2011-05-08  Bruno Haible  <bruno@clisp.org>
45607         isfinite: Move AC_LIBOBJ invocations to module description.
45608         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
45609         * modules/isfinite (configure.ac): ... to here.
45611 2011-05-08  Bruno Haible  <bruno@clisp.org>
45613         isblank: Move AC_LIBOBJ invocations to module description.
45614         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
45615         here...
45616         * modules/isblank (configure.ac): ... to here.
45618 2011-05-08  Bruno Haible  <bruno@clisp.org>
45620         isapipe: Move AC_LIBOBJ invocations to module description.
45621         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
45622         gl_PREREQ_ISAPIPE invocations from here...
45623         * modules/isapipe (configure.ac): ... to here.
45624         (Depends-on): Update condition.
45626 2011-05-08  Bruno Haible  <bruno@clisp.org>
45628         ioctl: Move AC_LIBOBJ invocations to module description.
45629         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
45630         invocations from here...
45631         * modules/ioctl (configure.ac): ... to here.
45632         (Depends-on): Update condition.
45634 2011-05-08  Bruno Haible  <bruno@clisp.org>
45636         imaxdiv: Move AC_LIBOBJ invocations to module description.
45637         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
45638         invocations from here...
45639         * modules/imaxdiv (configure.ac): ... to here.
45641 2011-05-08  Bruno Haible  <bruno@clisp.org>
45643         imaxabs: Move AC_LIBOBJ invocations to module description.
45644         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
45645         invocations from here...
45646         * modules/imaxabs (configure.ac): ... to here.
45648 2011-05-08  Bruno Haible  <bruno@clisp.org>
45650         getaddrinfo: Move AC_LIBOBJ invocations to module description.
45651         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
45652         AC_LIBOBJ invocations from here...
45653         * modules/getaddrinfo (configure.ac): ... to here.
45654         (Depends-on): Add conditions.
45656 2011-05-08  Bruno Haible  <bruno@clisp.org>
45658         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
45659         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
45660         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
45661         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
45662         (gl_PREREQ_INET_PTON): ... from here.
45663         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
45664         gl_PREREQ_INET_PTON here.
45665         (Depends-on): Update condition.
45667 2011-05-08  Bruno Haible  <bruno@clisp.org>
45669         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
45670         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
45671         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
45672         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
45673         (gl_PREREQ_INET_NTOP): ... from here.
45674         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
45675         gl_PREREQ_INET_NTOP here.
45676         (Depends-on): Update condition.
45678 2011-05-08  Bruno Haible  <bruno@clisp.org>
45680         iconv_open: Move AC_LIBOBJ invocations to module description.
45681         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
45682         AC_LIBOBJ invocations from here...
45683         * modules/iconv_open (configure.ac): ... to here.
45685 2011-05-08  Bruno Haible  <bruno@clisp.org>
45687         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
45688         If module 'iconv_open' is among the main modules and module
45689         'iconv_open-utf' is among the tests dependencies, then
45690         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
45691         return the special iconv_t values. Therefore iconv() and iconv_close()
45692         must support these special iconv_t values, already in lib, not only in
45693         tests.
45694         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
45695         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
45696         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
45697         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
45698         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
45699         (Depends-on): Add the dependencies of iconv_open-utf.
45700         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
45701         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
45702         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
45704 2011-05-08  Bruno Haible  <bruno@clisp.org>
45706         group-member: Move AC_LIBOBJ invocations to module description.
45707         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
45708         gl_PREREQ_GROUP_MEMBER invocations from here...
45709         * modules/group-member (configure.ac): ... to here.
45711 2011-05-08  Bruno Haible  <bruno@clisp.org>
45713         grantpt: Move AC_LIBOBJ invocations to module description.
45714         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
45715         invocations from here...
45716         * modules/grantpt (configure.ac): ... to here.
45718 2011-05-08  Bruno Haible  <bruno@clisp.org>
45720         glob: Move AC_LIBOBJ invocations to module description.
45721         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
45722         from here...
45723         * modules/glob (configure.ac): ... to here.
45725 2011-05-08  Bruno Haible  <bruno@clisp.org>
45727         getusershell: Move AC_LIBOBJ invocations to module description.
45728         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
45729         Move AC_LIBOBJ invocation from here...
45730         * modules/getusershell (configure.ac): ... to here.
45731         (Depends-on): Update condition.
45733 2011-05-08  Bruno Haible  <bruno@clisp.org>
45735         gettimeofday: Move AC_LIBOBJ invocations to module description.
45736         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
45737         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
45738         gl_PREREQ_GETTIMEOFDAY invocations from here...
45739         * modules/gettimeofday (configure.ac): ... to here.
45741 2011-05-08  Bruno Haible  <bruno@clisp.org>
45743         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
45744         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
45745         just gl_FUNC_TZSET.
45746         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
45747         (gl_FUNC_TZSET_CLOBBER): Remove actions.
45748         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
45749         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
45751 2011-05-08  Bruno Haible  <bruno@clisp.org>
45753         getsubopt: Move AC_LIBOBJ invocations to module description.
45754         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
45755         gl_PREREQ_GETSUBOPT invocations from here...
45756         * modules/getsubopt (configure.ac): ... to here.
45758 2011-05-08  Bruno Haible  <bruno@clisp.org>
45760         getpass-gnu: Move AC_LIBOBJ invocations to module description.
45761         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
45762         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
45763         * modules/getpass-gnu (configure.ac): ... to here.
45765 2011-05-08  Bruno Haible  <bruno@clisp.org>
45767         getpass: Move AC_LIBOBJ invocations to module description.
45768         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
45769         gl_PREREQ_GETPASS invocations from here...
45770         * modules/getpass (configure.ac): ... to here.
45772 2011-05-08  Bruno Haible  <bruno@clisp.org>
45774         getpagesize: Move AC_LIBOBJ invocations to module description.
45775         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
45776         from here...
45777         * modules/getpagesize (configure.ac): ... to here.
45779 2011-05-08  Bruno Haible  <bruno@clisp.org>
45781         getopt: Move AC_LIBOBJ invocations to module description.
45782         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
45783         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
45784         invocations from here...
45785         * modules/getopt-gnu (configure.ac): ... to here.
45786         * modules/getopt-posix (configure.ac): ... and here.
45787         (Depends-on): Update condition.
45789 2011-05-08  Bruno Haible  <bruno@clisp.org>
45791         getopt, argp: Respect rules for use of AC_LIBOBJ.
45792         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
45793         (gl_REPLACE_GETOPT_ALWAYS): New macro.
45794         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
45795         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
45797 2011-05-08  Bruno Haible  <bruno@clisp.org>
45799         getlogin_r: Move AC_LIBOBJ invocations to module description.
45800         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
45801         gl_PREREQ_GETLOGIN_R invocations from here...
45802         * modules/getlogin_r (configure.ac): ... to here.
45804 2011-05-08  Bruno Haible  <bruno@clisp.org>
45806         getlogin: Move AC_LIBOBJ invocations to module description.
45807         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
45808         here...
45809         * modules/getlogin (configure.ac): ... to here.
45811 2011-05-08  Bruno Haible  <bruno@clisp.org>
45813         getloadavg: Move AC_LIBOBJ invocations to module description.
45814         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
45815         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
45816         * modules/getloadavg (configure.ac): ... to here.
45818 2011-05-08  Bruno Haible  <bruno@clisp.org>
45820         gethrxtime: Move AC_LIBOBJ invocations to module description.
45821         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
45822         LIB_GETHRXTIME from here...
45823         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
45824         invocations from here...
45825         * modules/gethrxtime (configure.ac): ... to here.
45827 2011-05-08  Bruno Haible  <bruno@clisp.org>
45829         gethostname: Move AC_LIBOBJ invocations to module description.
45830         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
45831         gl_PREREQ_GETHOSTNAME invocations from here...
45832         * modules/gethostname (configure.ac): ... to here.
45834 2011-05-08  Bruno Haible  <bruno@clisp.org>
45836         getgroups: Move AC_LIBOBJ invocations to module description.
45837         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
45838         here...
45839         * modules/getgroups (configure.ac): ... to here.
45841 2011-05-08  Bruno Haible  <bruno@clisp.org>
45843         getdtablesize: Move AC_LIBOBJ invocations to module description.
45844         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
45845         invocation from here...
45846         * modules/getdtablesize (configure.ac): ... to here.
45848 2011-05-08  Bruno Haible  <bruno@clisp.org>
45850         getdomainname: Move AC_LIBOBJ invocations to module description.
45851         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
45852         gl_PREREQ_GETDOMAINNAME invocations from here...
45853         * modules/getdomainname (configure.ac): ... to here.
45855 2011-05-08  Bruno Haible  <bruno@clisp.org>
45857         getline: Move AC_LIBOBJ invocations to module description.
45858         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
45859         invocations from here...
45860         * modules/getline (configure.ac): ... to here.
45862 2011-05-08  Bruno Haible  <bruno@clisp.org>
45864         getline: Simplify.
45865         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
45866         It's already handled through the module dependency.
45868 2011-05-08  Bruno Haible  <bruno@clisp.org>
45870         getdelim: Move AC_LIBOBJ invocations to module description.
45871         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
45872         and gl_PREREQ_GETDELIM invocations from here...
45873         * modules/getdelim (configure.ac): ... to here.
45874         (Depends-on): Fix condition.
45876 2011-05-08  Bruno Haible  <bruno@clisp.org>
45878         getcwd: Move AC_LIBOBJ invocations to module description.
45879         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
45880         invocations from here...
45881         * modules/getcwd (configure.ac): ... to here.
45883 2011-05-08  Bruno Haible  <bruno@clisp.org>
45885         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
45886         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
45887         here...
45888         * modules/getcwd-lgpl (configure.ac): ... to here.
45890 2011-05-07  Bruno Haible  <bruno@clisp.org>
45892         crypto/gc: Move AC_LIBOBJ invocations to module description.
45893         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
45894         * modules/crypto/gc (configure.ac): ... to here.
45896 2011-05-07  Bruno Haible  <bruno@clisp.org>
45898         fwriting: Move AC_LIBOBJ invocations to module description.
45899         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
45900         here...
45901         * modules/fwriting (configure.ac): ... to here.
45903 2011-05-07  Bruno Haible  <bruno@clisp.org>
45905         fwritable: Move AC_LIBOBJ invocations to module description.
45906         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
45907         here...
45908         * modules/fwritable (configure.ac): ... to here.
45910 2011-05-07  Bruno Haible  <bruno@clisp.org>
45912         futimens: Move AC_LIBOBJ invocations to module description.
45913         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
45914         here...
45915         * modules/futimens (configure.ac): ... to here.
45917 2011-05-07  Bruno Haible  <bruno@clisp.org>
45919         ftruncate: Move AC_LIBOBJ invocations to module description.
45920         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
45921         gl_PREREQ_FTRUNCATE invocations from here...
45922         * modules/ftruncate (configure.ac): ... to here.
45924 2011-05-07  Bruno Haible  <bruno@clisp.org>
45926         fsync: Move AC_LIBOBJ invocations to module description.
45927         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
45928         invocations from here...
45929         * modules/fsync (configure.ac): ... to here.
45931 2011-05-07  Bruno Haible  <bruno@clisp.org>
45933         fsusage: Move AC_LIBOBJ invocations to module description.
45934         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
45935         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
45936         * modules/fsusage (configure.ac): ... to here.
45938 2011-05-07  Bruno Haible  <bruno@clisp.org>
45940         freopen: Move AC_LIBOBJ invocations to module description.
45941         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
45942         invocations from here...
45943         * modules/freopen (configure.ac): ... to here.
45945 2011-05-07  Bruno Haible  <bruno@clisp.org>
45947         free: Move AC_LIBOBJ invocations to module description.
45948         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
45949         invocations from here...
45950         * modules/free (configure.ac): ... to here.
45952 2011-05-07  Bruno Haible  <bruno@clisp.org>
45954         freadable: Move AC_LIBOBJ invocations to module description.
45955         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
45956         here...
45957         * modules/freadable (configure.ac): ... to here.
45959 2011-05-07  Bruno Haible  <bruno@clisp.org>
45961         fpurge: Move AC_LIBOBJ invocations to module description.
45962         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
45963         invocations from here...
45964         * modules/fpurge (configure.ac): ... to here.
45966 2011-05-07  Bruno Haible  <bruno@clisp.org>
45968         fpending: Move AC_LIBOBJ invocations to module description.
45969         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
45970         gl_FUNC_FPENDING.
45971         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
45972         invocations from here...
45973         * modules/fpending (configure.ac): ... to here.
45975 2011-05-07  Bruno Haible  <bruno@clisp.org>
45977         fopen: Move AC_LIBOBJ invocations to module description.
45978         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
45979         invocations from here...
45980         * modules/fopen (configure.ac): ... to here.
45982 2011-05-07  Bruno Haible  <bruno@clisp.org>
45984         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
45985         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
45986         gl_FUNC_FNMATCH_POSIX.
45987         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
45988         invocations from here...
45989         * modules/fnmatch (configure.ac): ... to here.
45990         * modules/fnmatch-gnu (configure.ac): ... and here.
45992 2011-05-07  Bruno Haible  <bruno@clisp.org>
45994         flock: Move AC_LIBOBJ invocations to module description.
45995         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
45996         invocations from here...
45997         * modules/flock (configure.ac): ... to here.
45999 2011-05-07  Bruno Haible  <bruno@clisp.org>
46001         fileblocks: Move AC_LIBOBJ invocations to module description.
46002         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
46003         gl_PREREQ_FILEBLOCKS invocations from here...
46004         * modules/fileblocks (configure.ac): ... to here.
46006 2011-05-06  Bruno Haible  <bruno@clisp.org>
46008         fflush: Move AC_LIBOBJ invocations to module description.
46009         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
46010         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
46011         invocations from here...
46012         * modules/fflush (configure.ac): ... to here.
46014 2011-05-06  Bruno Haible  <bruno@clisp.org>
46016         fdopendir: Move AC_LIBOBJ invocations to module description.
46017         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
46018         here...
46019         * modules/fdopendir (configure.ac): ... to here.
46020         (Depends-on): Improve conditions.
46022 2011-05-06  Bruno Haible  <bruno@clisp.org>
46024         _Exit: Move AC_LIBOBJ invocations to module description.
46025         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
46026         invocations from here...
46027         * modules/_Exit (configure.ac): ... to here.
46029 2011-05-21  Bruno Haible  <bruno@clisp.org>
46031         euidaccess: Respect rules for use of AC_LIBOBJ.
46032         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
46033         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
46034         from here...
46035         * modules/euidaccess (configure.ac): ... to here.
46037 2011-05-06  Bruno Haible  <bruno@clisp.org>
46039         error: Move AC_LIBOBJ invocations to module description.
46040         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
46041         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
46042         invocations from here...
46043         * modules/error (configure.ac): ... to here.
46045 2011-05-06  Bruno Haible  <bruno@clisp.org>
46047         duplocale: Move AC_LIBOBJ invocations to module description.
46048         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
46049         gl_PREREQ_DUPLOCALE invocations from here...
46050         * modules/duplocale (configure.ac): ... to here.
46052 2011-05-05  Bruno Haible  <bruno@clisp.org>
46054         dirfd: Move AC_LIBOBJ invocations to module description.
46055         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
46056         gl_FUNC_DIRFD.
46057         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
46058         here...
46059         * modules/dirfd (configure.ac): ... to here.
46060         (Depends-on): Fix condition.
46062 2011-05-05  Bruno Haible  <bruno@clisp.org>
46064         chown: Respect rules for use of AC_LIBOBJ.
46065         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
46066         * modules/chown (configure.ac): ... to here.
46068 2011-05-05  Bruno Haible  <bruno@clisp.org>
46070         chdir-long: Move AC_LIBOBJ invocations to module description.
46071         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
46072         gl_PREREQ_CHDIR_LONG invocations from here...
46073         * modules/chdir-long (configure.ac): ... to here.
46075 2011-05-05  Bruno Haible  <bruno@clisp.org>
46077         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
46078         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
46079         from here...
46080         * modules/canonicalize-lgpl (configure.ac): ... to here.
46082 2011-05-05  Bruno Haible  <bruno@clisp.org>
46084         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
46085         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
46086         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
46087         REPLACE_CALLOC.
46088         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
46089         * modules/calloc-gnu (configure.ac): Likewise.
46091 2011-05-05  Bruno Haible  <bruno@clisp.org>
46093         btowc: Move AC_LIBOBJ invocations to module description.
46094         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
46095         invocations from here...
46096         * modules/btowc (configure.ac): ... to here.
46098 2011-05-21  Bruno Haible  <bruno@clisp.org>
46100         atexit: Move AC_LIBOBJ invocations to module description.
46101         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
46102         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
46103         here...
46104         * modules/atexit (configure.ac): ... to here.
46106 2011-05-05  Bruno Haible  <bruno@clisp.org>
46108         atoll: Move AC_LIBOBJ invocations to module description.
46109         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
46110         invocations from here...
46111         * modules/atoll (configure.ac): ... to here.
46113 2011-05-05  Bruno Haible  <bruno@clisp.org>
46115         argz: Move AC_LIBOBJ invocations to module description.
46116         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
46117         * modules/argz (configure.ac): ... to here.
46119 2011-05-05  Bruno Haible  <bruno@clisp.org>
46121         alphasort: Move AC_LIBOBJ invocations to module description.
46122         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
46123         gl_PREREQ_ALPHASORT invocations from here...
46124         * modules/alphasort (configure.ac): ... to here.
46126 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
46128         verify: new macro verify_expr; verify_true deprecated
46129         * NEWS: Mention this.
46130         * doc/verify.texi (Compile-time Assertions): Document this.
46131         * lib/verify.h (verify_true): Deprecate.
46132         (verify_expr): New macro.
46133         * tests/test-verify.c (function): Test verify_expr.
46135 2011-06-14  Jim Meyering  <meyering@redhat.com>
46137         init.sh: give more portable redirection-related advice in a comment
46138         * tests/init.sh (stderr_fileno_): Update the advice in comments.
46139         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
46140         for lots of discussion.  Stefano Lattarini suggested the solution
46141         of putting "9>&2" after the command.  Reported by Bruno Haible.
46143 2011-06-13  Bruno Haible  <bruno@clisp.org>
46145         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
46146         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
46147         'none'.
46149 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
46151         ftoastr: use strtof only if HAVE_STRTOF
46152         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
46153         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
46154         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
46155         * modules/ftoastr (configure.ac): Check for strtof.
46157 2011-06-13  Bruno Haible  <bruno@clisp.org>
46159         gnulib-tool: Addendum to 2011-06-08 commit.
46160         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
46161         and --witness-c-macro have been given, augment AM_CPPFLAGS.
46163 2011-06-13  Bruno Haible  <bruno@clisp.org>
46165         fseeko: Provide a non-inline replacement of fseek().
46166         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
46167         * modules/fseeko (Depends-on): Add fseek.
46168         * modules/fseek (License): Change to LGPLv2+.
46170 2011-06-13  Bruno Haible  <bruno@clisp.org>
46172         ftello: Provide a non-inline replacement of ftell().
46173         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
46174         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
46175         not have ftello() (such as on mingw).
46176         * modules/ftello (Depends-on): Add ftell.
46177         * modules/ftell (License): Change to LGPLv2+.
46179 2011-05-07  Bruno Haible  <bruno@clisp.org>
46181         ftell: Move AC_LIBOBJ invocations to module description.
46182         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
46183         * modules/ftell (configure.ac): ... to here.
46185 2011-05-07  Bruno Haible  <bruno@clisp.org>
46187         ftello: Respect rules for use of AC_LIBOBJ.
46188         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
46189         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
46190         here...
46191         * modules/ftello (configure.ac): ... to here.
46193 2011-05-07  Bruno Haible  <bruno@clisp.org>
46195         fseeko: Simplify.
46196         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
46197         (gl_FUNC_FSEEKO): Inline it here.
46199 2011-05-07  Bruno Haible  <bruno@clisp.org>
46201         fseek: Move AC_LIBOBJ invocations to module description.
46202         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
46203         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
46204         * modules/fseek (configure.ac): ... to here.
46206 2011-05-07  Bruno Haible  <bruno@clisp.org>
46208         fseek: Respect rules for use of AC_LIBOBJ.
46209         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
46210         here...
46211         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
46213 2011-05-07  Bruno Haible  <bruno@clisp.org>
46215         fseeko: Respect rules for use of AC_LIBOBJ.
46216         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
46217         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
46218         here...
46219         * modules/fseeko (configure.ac): ... to here.
46221 2011-06-13  Bruno Haible  <bruno@clisp.org>
46223         gnulib-tool: Allow comments in the 'Depends-on' section.
46224         * doc/gnulib.texi (Module description): Mention comment syntax in the
46225         Depends-on section.
46226         * gnulib-tool (func_get_dependencies): Filter out comment lines.
46228 2011-06-13  Bruno Haible  <bruno@clisp.org>
46230         file-set.h: guard __attibute__ use, now that it's not always defined
46231         * lib/file-set.h (record_file): Use __attribute__ only with compiler
46232         versions that support it.  This fixes a coreutils build failure with
46233         the vendor cc on HP-UX 11.31.
46235 2011-06-12  Bruno Haible  <bruno@clisp.org>
46237         acl: Add support for HP-UX >= 11.11 JFS ACLs.
46238         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
46239         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
46240         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
46241         (acl, aclsort): New declarations.
46242         (aclv_nontrivial): New declaration.
46243         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
46244         (file_has_acl): Read also the second kind of HP-UX ACLs.
46245         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
46246         kind of HP-UX ACLs if the first kind fails.
46247         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
46248         second kind of HP-UX ACLs.
46249         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
46250         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
46251         agree.
46252         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
46253         hpuxjfs.
46254         Handle hpuxjfs.
46255         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
46256         hpuxjfs.
46257         Handle hpuxjfs.
46258         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
46259         (func_test_same_acls): Use both lsacl and getacl.
46260         Handle hpuxjfs.
46261         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
46262         (func_test_same_acls): Use both lsacl and getacl.
46263         Handle hpuxjfs.
46265 2011-06-12  Bruno Haible  <bruno@clisp.org>
46267         acl: Complete the 2010-08-10 fix.
46268         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
46269         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
46270         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
46271         explicitly.
46272         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
46273         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
46275 2011-06-12  Bruno Haible  <bruno@clisp.org>
46277         spawn-pipe tests: Comments.
46278         * tests/test-spawn-pipe-child.c (main): Update comment.
46279         Reported by James Youngman <jay@gnu.org>.
46281 2011-06-11  James Youngman  <jay@gnu.org>
46283         New module 'stat-size'.
46284         * modules/stat-size: New module.  Provides macros for accessing
46285         file size information in instances of struct stat.  Depends on the
46286         fileblocks module because it calls st_blocks.
46287         * lib/stat-size.h: New file, adapted from coreutils' system.h.
46288         * doc/gnulib.texi: Include stat-size.texi.
46289         * doc/stat-size.texi: Documentation for this module.
46290         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
46291         * m4/fileblocks.m4: Mention that stat-size depends on the call to
46292         AC_STRUCT_ST_BLOCKS.
46294 2011-06-09  Bruno Haible  <bruno@clisp.org>
46296         thread: Support pthreads-win32.
46297         * lib/glthread/thread.h (gl_thread_self): Define differently on
46298         pthreads-win32.
46299         (gl_null_thread): New declaration.
46300         (gl_thread_self_pointer): New macro.
46301         * lib/glthread/thread.c (gl_null_thread): New constant.
46302         * tests/test-lock.c: Use gl_thread_self_pointer instead of
46303         gl_thread_self.
46304         * tests/test-tls.c: Likewise.
46305         Suggested by Paul Eggert. Reported by Eric Blake.
46307 2011-06-09  Bruno Haible  <bruno@clisp.org>
46309         thread: Fix confusion between NULL and 0.
46310         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
46311         Reported by Paul Eggert.
46313 2011-06-09  Bruno Haible  <bruno@clisp.org>
46315         spawn-pipe tests: Avoid test failure on HP-UX 11.
46316         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
46317         is closed.
46319 2011-06-09  Bruno Haible  <bruno@clisp.org>
46321         acl tests: Fix compilation error on HP-UX 11.
46322         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
46324 2011-06-09  Bruno Haible  <bruno@clisp.org>
46326         rmdir: Avoid test failure on HP-UX 10.20.
46327         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
46328         EEXIST.
46330 2011-06-08  Eric Blake  <eblake@redhat.com>
46332         perror: fix test on mingw
46333         * modules/perror-tests (Depends-on): Add dup2.
46335         strerror_r-posix: fix on MacOS
46336         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
46337         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
46338         logic bug.
46339         * lib/strerror_r.c (strerror_r): Fix the bug.
46340         * lib/strerror.c (strerror): Likewise.
46341         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
46342         problem.
46343         * doc/posix-functions/strerror.texi (strerror): Likewise.
46344         * doc/posix-functions/perror.texi (perror): Likewise.
46345         * tests/test-strerror.c (main): Enhance test.
46346         * tests/test-strerror_r.c (main): Likewise.
46348 2011-06-08  Bruno Haible  <bruno@clisp.org>
46350         gnulib-tool: Better isolation between different gnulib-tool invocations.
46351         * gnulib-tool: New option --witness-c-macro.
46352         (witness_c_macro): New variable.
46353         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
46354         AM_CPPFLAGS define it as a C macro.
46355         (func_emit_tests_Makefile_am): Likewise.
46356         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
46357         read it from there.
46358         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
46359         m4_define, not AC_DEFUN.
46360         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
46361         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
46362         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
46363         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
46364         s|...|...|, to substitute the values of the GNULIB_* module indicator
46365         variables.
46366         * modules/dirent (Makefile.am): Likewise.
46367         * modules/fcntl-h (Makefile.am): Likewise.
46368         * modules/iconv-h (Makefile.am): Likewise.
46369         * modules/langinfo (Makefile.am): Likewise.
46370         * modules/locale (Makefile.am): Likewise.
46371         * modules/math (Makefile.am): Likewise.
46372         * modules/netdb (Makefile.am): Likewise.
46373         * modules/poll-h (Makefile.am): Likewise.
46374         * modules/pty (Makefile.am): Likewise.
46375         * modules/search (Makefile.am): Likewise.
46376         * modules/signal (Makefile.am): Likewise.
46377         * modules/spawn (Makefile.am): Likewise.
46378         * modules/stdio (Makefile.am): Likewise.
46379         * modules/stdlib (Makefile.am): Likewise.
46380         * modules/string (Makefile.am): Likewise.
46381         * modules/sys_ioctl (Makefile.am): Likewise.
46382         * modules/sys_select (Makefile.am): Likewise.
46383         * modules/sys_socket (Makefile.am): Likewise.
46384         * modules/sys_stat (Makefile.am): Likewise.
46385         * modules/sys_times (Makefile.am): Likewise.
46386         * modules/sys_utsname (Makefile.am): Likewise.
46387         * modules/sys_wait (Makefile.am): Likewise.
46388         * modules/termios (Makefile.am): Likewise.
46389         * modules/time (Makefile.am): Likewise.
46390         * modules/unistd (Makefile.am): Likewise.
46391         * modules/wchar (Makefile.am): Likewise.
46393 2011-06-08  Eric Blake  <eblake@redhat.com>
46395         strerror: simplify replacement
46396         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
46397         * modules/strerror (configure.ac): No prereqs needed here...
46398         * modules/strerror-override (configure.ac): ...but this needs it.
46399         (Files): Add file for needed prereq macro.
46401 2011-06-08  Bruno Haible  <bruno@clisp.org>
46403         strerror_r-posix: Tweaks.
46404         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
46405         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
46406         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
46407         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
46408         (gl_FUNC_STRERROR_R): ... to here.
46409         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
46411 2011-06-07  Eric Blake  <eblake@redhat.com>
46413         perror: document fixed bugs
46414         * doc/posix-functions/perror.texi (perror): Document recent
46415         patches.
46417 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
46419         stat-time: get_stat_birthtime failure is better-defined
46420         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
46421         return a timestamp whose tv_sec and tv_nsec values are both -1.
46422         Previously, the spec said only that the tv_nsec value was negative.
46423         This upward-compatible change simplifies GNU tar a bit.
46425 2011-06-07  Eric Blake  <eblake@redhat.com>
46427         strerror_r-posix: work around cygwin 1.7.9
46428         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
46429         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
46430         bug without replacing strerror_r.
46431         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
46432         strerror_r is buggy, but without requiring strerror_r compilation.
46433         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
46435         test-perror: relax test to ignore cygwin bug
46436         * tests/test-perror2.c (main): Relax test on requiring detection
46437         of stream errors, and use unbuffered stream.
46438         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
46439         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
46440         * doc/posix-functions/fputc.texi (fputc): Likewise.
46441         * doc/posix-functions/fputs.texi (fputs): Likewise.
46442         * doc/posix-functions/fputws.texi (fputws): Likewise.
46443         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
46444         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
46445         * doc/posix-functions/getopt.texi (getopt): Likewise.
46446         * doc/posix-functions/perror.texi (perror): Likewise.
46447         * doc/posix-functions/printf.texi (printf): Likewise.
46448         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
46449         * doc/posix-functions/psignal.texi (psignal): Likewise.
46450         * doc/posix-functions/putc.texi (putc): Likewise.
46451         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
46452         Likewise.
46453         * doc/posix-functions/putchar.texi (putchar): Likewise.
46454         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
46455         Likewise.
46456         * doc/posix-functions/puts.texi (puts): Likewise.
46457         * doc/posix-functions/putwc.texi (putwc): Likewise.
46458         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
46459         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
46460         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
46461         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
46462         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
46463         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
46464         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
46465         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
46467 2011-05-22  Bruno Haible  <bruno@clisp.org>
46469         strerror: Move AC_LIBOBJ invocations to module description.
46470         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
46471         gl_PREREQ_STRERROR invocations from here...
46472         * modules/strerror (configure.ac): ... to here.
46474 2011-05-21  Bruno Haible  <bruno@clisp.org>
46476         perror: Use common idiom.
46477         * modules/perror (configure.ac): Reorder statements.
46479 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
46481         tests: fix usage message in 'mktempd_'
46482         * tests/init.sh (mktempd_): In the usage message, use literal
46483         'mktempd_', not '$ME' (which is even undefined), as the name of
46484         the subroutine.
46486 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
46488         tests init: new function 'fatal_', for hard errors
46489         Before this patch, the only way offered by tests/init.sh to
46490         properly signal a hard error was the `framework_failure_'
46491         function.  But the error message issued by that function,
46492         as its name would suggest, refers to a set-up failure in the
46493         testsuite, while hard errors can obviously also be due to
46494         other reasons.  The best way to fix this inconsistency is to
46495         introduce a new function with a more general error message.
46496         * tests/init.sh (fatal_): New function.
46498 2011-06-06  Eric Blake  <eblake@redhat.com>
46500         canonicalize-lgpl: use common idiom
46501         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
46502         over newer POSIX -Rf.
46503         Reported by Bruno Haible.
46505         canonicalize-lgpl: work around AIX realpath bug
46506         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
46507         * doc/posix-functions/realpath.texi (realpath): Document it.
46508         Reported by Bruno Haible.
46510         strerror: work around FreeBSD bug
46511         * lib/strerror.c (strerror): Special case 0.
46512         Reported by Bruno Haible.
46514         strerror-override: avoid bloating errno module
46515         * modules/errno (Files, configure.ac): Move replacement strings...
46516         * modules/strerror-override: ...to new module.
46517         * modules/strerror (Depends-on): Add strerror-override.
46518         * modules/strerror_r-posix (Depends-on): Likewise.
46519         * MODULES.html.sh: Document new module.
46520         Reported by Bruno Haible.
46522 2011-06-06  Bruno Haible  <bruno@clisp.org>
46524         spawn-pipe tests: Rename program.
46525         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
46526         * tests/test-spawn-pipe-child.c: Update comment.
46527         * tests/test-spawn-pipe.sh: Update.
46528         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
46530         spawn-pipe tests: Link the child program only against libc.
46531         * tests/test-spawn-pipe-child.c: New file, extracted from
46532         tests/test-spawn-pipe.c.
46533         (main): Expect only one argument.
46534         (is_open): New function, copied from tests/test-pipe.c.
46535         * tests/test-spawn-pipe.c: Don't include <errno.h>.
46536         (child_main): Remove function.
46537         (test_pipe): Pass only one argument to the child program.
46538         (main): Remove child process code. Expect the child program's name as
46539         first argument.
46540         * tests/test-spawn-pipe.sh: Pass the child program's name as first
46541         argument.
46542         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
46543         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
46544         test-spawn-pipe-child against no libraries.
46546 2011-06-06  Bruno Haible  <bruno@clisp.org>
46548         careadlinkat: Avoid mismatch between ssize_t and int.
46549         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
46550         * lib/careadlinkat.c (careadlinkatcwd): Define always.
46552 2011-06-06  Jim Meyering  <meyering@redhat.com>
46554         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
46555         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
46556         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
46558 2011-06-05  Bruno Haible  <bruno@clisp.org>
46560         ansi-c++-opt: Interoperability with libtool.
46561         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
46562         set the variable to "no", not to ":".
46563         * NEWS: Mention the change.
46565 2011-06-05  Bruno Haible  <bruno@clisp.org>
46567         acl: Fix test failure on AIX 7.
46568         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
46569         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
46571 2011-06-05  Bruno Haible  <bruno@clisp.org>
46573         pipe-filter-ii: Fix test failure on AIX and IRIX.
46574         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
46575         with EAGAIN, retry with a smaller buffer size.
46577 2011-06-05  Bruno Haible  <bruno@clisp.org>
46579         localename: Fix link dependencies.
46580         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
46581         * modules/localename-tests (Makefile.am): Link test-localename with
46582         $(LIBTHREAD).
46584 2011-06-05  Bruno Haible  <bruno@clisp.org>
46586         error: Avoid gcc warning.
46587         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
46589 2011-06-05  Bruno Haible  <bruno@clisp.org>
46591         unsetenv: Avoid gcc warning.
46592         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
46594 2011-06-05  Bruno Haible  <bruno@clisp.org>
46596         setenv: Avoid gcc warning.
46597         * lib/setenv.c (setenv): Provide declaration if system lacks it.
46599 2011-06-05  Bruno Haible  <bruno@clisp.org>
46601         sys_select: Ensure memset is declared also on AIX 7.
46602         * lib/sys_select.in.h: Include <string.h> also on AIX.
46603         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
46604         self-contained also on AIX 7.1.
46606 2011-06-04  Jim Meyering  <meyering@redhat.com>
46608         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
46609         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
46610         function name, "error".
46611         (_gl_translatable_diag_func_re): New configurable variable.
46613 2011-06-04  Bruno Haible  <bruno@clisp.org>
46615         getopt: Avoid gcc warning.
46616         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
46618 2011-06-04  Bruno Haible  <bruno@clisp.org>
46620         strerror_r: Fix comments.
46621         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
46622         commit.
46624 2011-06-04  Bruno Haible  <bruno@clisp.org>
46626         perror: Fix compilation error.
46627         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
46628         Undefine fprintf, not sprintf.
46629         * modules/perror (Depends-on): Remove intprops, verify.
46631 2011-06-04  Bruno Haible  <bruno@clisp.org>
46633         setlocale: Enable replacement on Cygwin 1.5.
46634         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
46635         Cygwin 1.5.x.
46636         * doc/posix-functions/setlocale.texi: Mention that the problem with the
46637         LC_CTYPE category also exists on Cygwin 1.5.x.
46639 2011-06-04  Bruno Haible  <bruno@clisp.org>
46641         strerror-override: Don't disable symbol renamings.
46642         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
46643         * lib/strerror-override.c: Include config.h.
46644         (strerror_override): Don't undefine.
46646 2011-06-03  Bruno Haible  <bruno@clisp.org>
46648         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
46649         * lib/localename.h: Update copyright header.
46650         * lib/localename.c: Likewise.
46651         * lib/relocatable.h: Likewise.
46652         * lib/relocatable.c: Likewise.
46654 2011-06-02  Bruno Haible  <bruno@clisp.org>
46656         doc: Fix a module name.
46657         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
46659 2011-06-02  Bruno Haible  <bruno@clisp.org>
46661         pipe2: Remove dependency on 'nonblocking' module.
46662         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
46663         O_NONBLOCK is defined by gnulib.
46664         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
46665         is zero.
46666         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
46667         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
46668         defined by gnulib.
46669         (get_nonblocking_flag): New function.
46670         (main): Test O_NONBLOCK flag only if it is nonzero.
46671         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
46673 2011-06-03  Jim Meyering  <meyering@redhat.com>
46675         maint: three new prohibit-header-without-use rules
46676         Prohibit use of cloexec.h, posixver.h, same.h without use.
46677         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
46678         (sc_prohibit_posixver_without_use): Likewise.
46679         (sc_prohibit_same_without_use): Likewise.
46681 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
46683         allocator: 'die' routine is now given requested size
46684         * lib/allocator.h (struct allocator.die): New size arg.
46685         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
46686         If the actual problem is an ssize_t limitation, not a size_t or
46687         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
46689 2011-06-01  Eric Blake  <eblake@redhat.com>
46691         strerror: drop strerror_r dependency
46692         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
46693         * lib/strerror-override.c (strerror_override): ...to new file.
46694         * lib/strerror-override.h: Add prototype.
46695         * lib/strerror-impl.h: Delete.
46696         * lib/strerror.c (strerror): New implementation.
46697         * modules/errno (Files): Add new files.
46698         (configure.ac): Compile new file as appropriate.
46699         * modules/strerror (Files): Drop unused file.
46700         (Depends-on): Drop strerror_r-posix.
46701         * MODULES.html.sh: Document strerror_r-posix.
46702         Requested by Sam Steingold.
46704         perror: call strerror_r directly
46705         * modules/perror (Files): Drop strerror-impl.h.
46706         * lib/perror.c (perror): Use our own stack buffer, rather than
46707         calling a wrapper that uses static storage.
46708         * doc/posix-functions/perror.texi (perror): Document a limitation
46709         of our replacement.
46711         strerror_r: fix includes for FreeBSD
46712         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
46713         since we use abort on some platforms.
46714         Reported by Matthias Bolte.
46716 2011-05-31  Bruno Haible  <bruno@clisp.org>
46718         Fix link errors in tests: openat-die uses gettext-h.
46719         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
46720         against $(LIBINTL).
46721         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
46722         against $(LIBINTL).
46723         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
46724         $(LIBINTL).
46725         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
46726         against $(LIBINTL).
46727         * modules/linkat-tests (Makefile.am): Link test-linkat against
46728         $(LIBINTL).
46729         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
46730         $(LIBINTL).
46731         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
46732         against $(LIBINTL).
46733         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
46734         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
46735         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
46736         $(LIBINTL).
46737         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
46738         $(LIBINTL).
46739         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
46740         $(LIBINTL).
46741         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46743 2011-05-31  Bruno Haible  <bruno@clisp.org>
46745         Fix link errors in tests: wait-process uses gettext-h.
46746         * modules/nonblocking-pipe-tests (Makefile.am): Set
46747         test_nonblocking_pipe_main_LDADD.
46748         * modules/nonblocking-socket-tests (Makefile.am): Link
46749         test-nonblocking-socket-main against $(LIBINTL).
46750         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46752 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
46754         assert-h: work around 'verify' incompatibility
46755         * lib/verify.h: Use @...@ directives, not ifdef.
46756         * modules/assert-h (assert.h): Implement the directives.
46757         (assert.h): Substitute the symbol-prefix more consistently.
46759 2011-05-29  Jim Meyering  <meyering@redhat.com>
46761         trim: remove three superfluous assignments
46762         * lib/trim.c (trim2): Remove three superfluous assignments
46763         and correct brace positioning.
46765 2011-05-29  Bruno Haible  <bruno@clisp.org>
46767         wctype-h: Avoid namespace pollution on Solaris 2.6.
46768         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
46769         identifiers.
46770         * doc/posix-headers/wctype.texi: Mention the problem.
46771         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46773 2011-05-28  Jim Meyering  <meyering@redhat.com>
46775         parse-datetime.y: accommodate -Wstrict-overflow
46776         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
46777         placate -Wstrict-overflow.
46779         trim: avoid a warning from -O2 -Wstrict-overflow
46780         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
46782 2011-05-29  Bruno Haible  <bruno@clisp.org>
46784         gnulib-tool: Fix bug in yesterday's commit.
46785         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
46786         twice.
46788 2011-05-29  Bruno Haible  <bruno@clisp.org>
46790         Allow multiple gnulib generated include files to be combined.
46791         * gnulib-tool (func_compute_include_guard_prefix): New function.
46792         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
46793         ${gl_include_guard_prefix} references.
46794         (func_import, func_create_testdir): Invoke
46795         func_compute_include_guard_prefix.
46796         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
46797         * lib/ctype.in.h: Likewise.
46798         * lib/dirent.in.h: Likewise.
46799         * lib/errno.in.h: Likewise.
46800         * lib/fcntl.in.h: Likewise.
46801         * lib/float.in.h: Likewise.
46802         * lib/getopt.in.h: Likewise.
46803         * lib/iconv.in.h: Likewise.
46804         * lib/langinfo.in.h: Likewise.
46805         * lib/locale.in.h: Likewise.
46806         * lib/math.in.h: Likewise.
46807         * lib/netdb.in.h: Likewise.
46808         * lib/netinet_in.in.h: Likewise.
46809         * lib/poll.in.h: Likewise.
46810         * lib/pthread.in.h: Likewise.
46811         * lib/pty.in.h: Likewise.
46812         * lib/sched.in.h: Likewise.
46813         * lib/se-selinux.in.h: Likewise.
46814         * lib/search.in.h: Likewise.
46815         * lib/signal.in.h: Likewise.
46816         * lib/spawn.in.h: Likewise.
46817         * lib/stdarg.in.h: Likewise.
46818         * lib/stddef.in.h: Likewise.
46819         * lib/stdint.in.h: Likewise.
46820         * lib/stdio.in.h: Likewise.
46821         * lib/stdlib.in.h: Likewise.
46822         * lib/string.in.h: Likewise.
46823         * lib/strings.in.h: Likewise.
46824         * lib/sys_file.in.h: Likewise.
46825         * lib/sys_ioctl.in.h: Likewise.
46826         * lib/sys_select.in.h: Likewise.
46827         * lib/sys_socket.in.h: Likewise.
46828         * lib/sys_stat.in.h: Likewise.
46829         * lib/sys_time.in.h: Likewise.
46830         * lib/sys_times.in.h: Likewise.
46831         * lib/sys_uio.in.h: Likewise.
46832         * lib/sys_utsname.in.h: Likewise.
46833         * lib/sys_wait.in.h: Likewise.
46834         * lib/sysexits.in.h: Likewise.
46835         * lib/termios.in.h: Likewise.
46836         * lib/time.in.h: Likewise.
46837         * lib/unistd.in.h: Likewise.
46838         * lib/wchar.in.h: Likewise.
46839         * lib/wctype.in.h: Likewise.
46840         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
46841         * modules/ctype (Makefile.am): Likewise.
46842         * modules/dirent (Makefile.am): Likewise.
46843         * modules/errno (Makefile.am): Likewise.
46844         * modules/fcntl-h (Makefile.am): Likewise.
46845         * modules/float (Makefile.am): Likewise.
46846         * modules/getopt-posix (Makefile.am): Likewise.
46847         * modules/iconv-h (Makefile.am): Likewise.
46848         * modules/langinfo (Makefile.am): Likewise.
46849         * modules/locale (Makefile.am): Likewise.
46850         * modules/math (Makefile.am): Likewise.
46851         * modules/netdb (Makefile.am): Likewise.
46852         * modules/netinet_in (Makefile.am): Likewise.
46853         * modules/poll-h (Makefile.am): Likewise.
46854         * modules/pthread (Makefile.am): Likewise.
46855         * modules/pty (Makefile.am): Likewise.
46856         * modules/sched (Makefile.am): Likewise.
46857         * modules/search (Makefile.am): Likewise.
46858         * modules/selinux-h (Makefile.am): Likewise.
46859         * modules/signal (Makefile.am): Likewise.
46860         * modules/spawn (Makefile.am): Likewise.
46861         * modules/stdarg (Makefile.am): Likewise.
46862         * modules/stddef (Makefile.am): Likewise.
46863         * modules/stdint (Makefile.am): Likewise.
46864         * modules/stdio (Makefile.am): Likewise.
46865         * modules/stdlib (Makefile.am): Likewise.
46866         * modules/string (Makefile.am): Likewise.
46867         * modules/strings (Makefile.am): Likewise.
46868         * modules/sys_file (Makefile.am): Likewise.
46869         * modules/sys_ioctl (Makefile.am): Likewise.
46870         * modules/sys_select (Makefile.am): Likewise.
46871         * modules/sys_socket (Makefile.am): Likewise.
46872         * modules/sys_stat (Makefile.am): Likewise.
46873         * modules/sys_time (Makefile.am): Likewise.
46874         * modules/sys_times (Makefile.am): Likewise.
46875         * modules/sys_uio (Makefile.am): Likewise.
46876         * modules/sys_utsname (Makefile.am): Likewise.
46877         * modules/sys_wait (Makefile.am): Likewise.
46878         * modules/sysexits (Makefile.am): Likewise.
46879         * modules/termios (Makefile.am): Likewise.
46880         * modules/time (Makefile.am): Likewise.
46881         * modules/unistd (Makefile.am): Likewise.
46882         * modules/wchar (Makefile.am): Likewise.
46883         * modules/wctype-h (Makefile.am): Likewise.
46884         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
46886 2011-05-29  Bruno Haible  <bruno@clisp.org>
46888         assert-h: Allow multiple gnulib generated replacements to coexist.
46889         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
46891 2011-05-29  Bruno Haible  <bruno@clisp.org>
46893         argp: Allow coexistence with strerror_r-posix module.
46894         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
46895         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
46896         by gnulib's <string.h> replacement), assume it has the POSIX signature,
46897         not the glibc signature.
46899 2011-05-28  Bruno Haible  <bruno@clisp.org>
46901         gnulib-tool: Alternative structure of testdirs, similar to --import.
46902         * gnulib-tool: New option --single-configure.
46903         (func_usage): Document it.
46904         (single_configure): New variable.
46905         (func_modules_transitive_closure_separately,
46906         func_modules_transitive_closure_separately,
46907         func_determine_use_libtests, func_modules_add_dummy_separately,
46908         func_modules_to_filelist_separately): New functions, extracted from
46909         func_import.
46910         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
46911         (func_import): Use the new functions.
46912         (func_create_testdir): Set final_modules. Handle $single_configure =
46913         true case.
46915 2011-05-28  Bruno Haible  <bruno@clisp.org>
46917         getloadavg: Remove an unreliable safety check.
46918         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
46919         getloadavg.c is in place.
46920         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
46921         Reported by Sam Steingold <sds@gnu.org>.
46923 2011-05-28  Bruno Haible  <bruno@clisp.org>
46925         doc: Cleanup yet another file produced by texinfo.tex.
46926         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
46928 2011-05-28  Bruno Haible  <bruno@clisp.org>
46930         Finish the conditional dependencies mechanism.
46931         * gnulib-tool: New option --no-conditional-dependencies.
46932         (func_usage): Document it. Don't mark --conditional-dependencies as
46933         experimental.
46934         (cond_dependencies): The possible values can now be true, false, empty.
46935         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
46936         (func_import): Store setting in gnulib-cache.m4 and read it from there.
46937         * doc/gnulib-tool.texi (Conditional dependencies): New section.
46939 2011-05-28  Bruno Haible  <bruno@clisp.org>
46941         doc: Use a recent texinfo.tex.
46942         * doc/Makefile (tex_opts): New variable.
46943         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
46945 2011-05-28  Jim Meyering  <meyering@redhat.com>
46947         intprops.h: adjust comment to match code change
46948         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
46949         only once, it *may* have side effects.  Also fix an unrelated typo.
46950         (_GL_INT_SIGNED): Likewise.
46952 2011-05-26  Simon Josefsson  <simon@josefsson.org>
46954         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
46956 2011-05-26  Bruno Haible  <bruno@clisp.org>
46958         mbsrchr: Avoid collision with system function on Interix.
46959         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
46960         Reported by Markus Duft <mduft@gentoo.org>.
46962 2011-05-15  James Youngman  <jay@gnu.org>
46964         getopt: for ambiguous options, enumerate the possibilities.
46965         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
46966         the ambiguous options when an ambiguous prefix is given. This was
46967         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
46968         glibc change was
46969         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
46971 2011-05-25  Eric Blake  <eblake@redhat.com>
46973         getcwd: work around mingw bug
46974         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
46975         * doc/posix-functions/getcwd.texi (getcwd): Document it.
46976         Reported by Matthias Bolte.
46978 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
46980         test-intprops: disable -Wtype-limits diagnostics
46981         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
46982         diagnostics.  Otherwise, the integer overflow macros generate many
46983         diagnostics.  Reported by Jim Meyering in
46984         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
46986         intprops: shorten, to pacify gcc -Woverlength-strings
46987         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
46988         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
46989         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
46990         likely to run afoul of C compiler limits for string constant lengths.
46991         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
46993 2011-05-24  Eric Blake  <eblake@redhat.com>
46995         docs: document recently fixed glibc printf bug
46996         * doc/posix-functions/fprintf.texi (fprintf): Document it.
46997         * doc/posix-functions/printf.texi (printf): Likewise.
46998         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
46999         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47001         closein-tests: convert to init.sh
47002         * modules/closein-tests (Files): Add init.sh
47003         * tests/test-closein.sh Use it.
47005         yesno-tests: convert to init.sh
47006         * modules/yesno-tests (Files): Add init.sh.
47007         * tests/test-yesno.sh: Use it.
47009         atexit-tests: ensure reliable exit status
47010         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
47011         Reported by Bruno Haible.
47013 2011-05-24  Bruno Haible  <bruno@clisp.org>
47015         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
47016         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
47017         gl_PREREQ_STRERROR_R invocations from here...
47018         * modules/strerror_r-posix (configure.ac): ... to here.
47020 2011-05-24  Eric Blake  <eblake@redhat.com>
47022         strerror_r: fix missing header
47023         * lib/strerror_r.c: Avoid compiler warning about snprintf.
47025         strerror_r: fix AIX test failures
47026         * lib/strerror_r.c (strerror_r): Convert silent truncation to
47027         ERANGE failure.
47029         strerror_r: fix Solaris test failures
47030         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
47031         failures.
47032         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
47034         strerror_r: enforce POSIX recommendations
47035         * lib/strerror_r.c (safe_copy): New helper method.
47036         (strerror_r): Guarantee a non-empty string.
47037         * tests/test-strerror_r.c (main): Enhance tests to incorporate
47038         recent POSIX rulings and to match our strerror guarantees.
47039         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
47041 2011-05-24  Jim Meyering  <meyering@redhat.com>
47043         test-perror2.c: avoid warning about unused variable
47044         * tests/test-perror2.c (main): Remove declaration of unused "fp".
47046 2011-05-24  Eric Blake  <eblake@redhat.com>
47048         perror: avoid spurious test failure on HP-UX
47049         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
47051         tests: fix logic bug in init.sh
47052         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
47053         shell.
47055 2011-05-24  Jim Meyering  <meyering@redhat.com>
47057         utimensat: do not reference an out-of-scope buffer
47058         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
47059         declared in an inner scope, yet "times" would be dereferenced outside
47060         the scope in which "ts" was valid.
47061         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
47062         of ts[2] "out/up", so that the use of aliased "times" (via
47063         "times = ts;") does not end up referencing an out-of-scope "ts"
47065         opendir-safer.c: don't clobber errno; don't close negative FD
47066         * lib/opendir-safer.c (opendir_safer):
47067         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
47068         file descriptor, and more importantly, don't clobber the
47069         offending errno value with EINVAL.  Before, upon failure
47070         of dup_safer, we would pass the negative file descriptor to
47071         fdopendir, which would clobber errno.
47073 2011-05-23  Bruno Haible  <bruno@clisp.org>
47075         idcache: Fix module description.
47076         * modules/idcache (Include): Set to "idcache.h".
47078 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
47080         gnulib-tool: fix portability problem with MacOS sed
47081         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
47082         before the "}".  Problem reported by Leo in
47083         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
47084         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
47085         sed_extract_condition1, sed_extract_condition2.
47087 2011-05-23  Bruno Haible  <bruno@clisp.org>
47089         hash: Simplify autoconf macro.
47090         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
47092 2011-05-23  Bruno Haible  <bruno@clisp.org>
47094         getugroups: Fix module description.
47095         * modules/getugroups (Include): Set to "getugroups.h".
47097 2011-05-23  Bruno Haible  <bruno@clisp.org>
47099         linkat: Simplify autoconf macro.
47100         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
47102 2011-05-23  Bruno Haible  <bruno@clisp.org>
47103             Eric Blake  <eblake@redhat.com>
47105         linkat, renameat: Update dependencies.
47106         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
47107         * modules/linkat (Depends-on): Likewise. Remove also readlink,
47108         symlinkat.
47110 2011-05-23  Jim Meyering  <meyering@redhat.com>
47112         maint.mk: more tight_scope improvements
47113         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
47114         (_gl_TS_headers): Define only in if-0'd block.
47115         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
47116         sometimes we must *not* use it.  Adjust uses accordingly.
47117         (sc_tight_scope): Use much simpler grep-based test to determine
47118         whether we skip this rule.
47120         maint.mk: generalize/improve the tight-scope rule
47121         * top/maint.mk: Emit a warning when the test is skipped.
47122         (_gl_TS_dir): Add $(srcdir)/ prefix.
47123         (_gl_TS_function_match): Simplify, rather than trying
47124         to enumerate common types.  Otherwise, it would fail to match an
47125         "extern unsigned char const *" declaration in idutils.
47126         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
47127         a way to support use of that type of macro.
47128         (_gl_TS_var_match): Simplify regexp.
47129         (_gl_TS_obj_files): New configurable variable.
47130         (_gl_TS_headers): Likewise.
47132 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
47134         verify: fix bug when gnulib <assert.h> is also included
47135         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
47136         is defined, not if _GL_STATIC_ASSERT_H is not defined.
47137         Perhaps there's a better way, but this fixes the immediate problem.
47138         Problem reported by Bruno Haible in
47139         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
47141 2011-05-22  Bruno Haible  <bruno@clisp.org>
47143         xgetcwd: Simplify autoconf macro.
47144         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
47146 2011-05-22  Bruno Haible  <bruno@clisp.org>
47148         New module 'mktime-internal'.
47149         * modules/mktime-internal: New file.
47150         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
47151         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
47152         mktime_internal as a C macro if libc has __mktime_internal.
47153         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
47154         conditions.
47155         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
47157 2011-05-22  Bruno Haible  <bruno@clisp.org>
47159         timegm: Correct mktime replacement statements.
47160         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
47161         defining mktime as a C macro. This completes a 2009-07-28 commit.
47163 2011-05-22  Bruno Haible  <bruno@clisp.org>
47165         timegm: Simplify autoconf macro.
47166         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
47168 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
47170         clock-time: change to LGPLv2+.
47171         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
47172         BSD-like but we have no mark for that; this is good enough for now.
47174 2011-05-21  Bruno Haible  <bruno@clisp.org>
47176         strerror_r: Fix comments.
47177         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
47179 2011-05-21  Bruno Haible  <bruno@clisp.org>
47181         relocatable-prog-wrapper: Fix possible link error.
47182         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
47183         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
47184         (gl_FUNC_SETENV): ... to here.
47185         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
47186         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
47188 2011-05-21  Bruno Haible  <bruno@clisp.org>
47190         relocatable-prog-wrapper: Assume strerror() exists.
47191         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
47192         m4/strerror.m4.
47193         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
47194         * lib/relocwrapper.c: Remove mention of strerror module.
47195         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
47196         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
47197         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
47198         C macro.
47200 2011-05-21  Bruno Haible  <bruno@clisp.org>
47202         select: Simplify replacement idiom.
47203         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
47204         Win32 platforms.
47205         * lib/sys_select.in.h (select): Simplify accordingly.
47206         * modules/select (Depends-on): Likewise.
47208 2011-05-21  Bruno Haible  <bruno@clisp.org>
47210         mkdir-p: Simplify autoconf macro.
47211         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
47212         gl_FUNC_LCHOWN.
47214 2011-05-21  Eric Blake  <eblake@redhat.com>
47216         strerror_r: avoid clobbering strerror on cygwin
47217         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
47218         fall back instead to sys_errlist.
47219         * modules/strerror (configure.ac): Add witness.
47220         * tests/test-strerror_r.c (main): Enhance test.
47221         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
47222         * tests/test-perror2.c (main): Free memory before exit.
47224 2011-05-21  Bruno Haible  <bruno@clisp.org>
47226         mkdtemp: Use gnulib naming conventions.
47227         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
47228         * modules/mkdtemp (configure.ac): Update.
47230 2011-05-20  Eric Blake  <eblake@redhat.com>
47232         strerror_r: avoid corrupting errno on Solaris
47233         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
47234         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
47236         strerror_r: avoid compiler warning
47237         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
47239         strerror_r: simplify AIX code
47240         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
47242         test-perror: avoid spurious failure on FreeBSD
47243         * modules/perror-tests (Depends-on): Add strerror, now that
47244         strerror_r no longer pulls it in.
47246 2011-05-20  Bruno Haible  <bruno@clisp.org>
47248         strerror_r-posix: Remove unused dependencies.
47249         * modules/strerror_r-posix (Depends-on): Remove strerror.
47250         Reported by Eric Blake.
47252 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
47254         intprops: remove assumption about A|B representation
47255         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
47256         is a valid integer if both A and B are.  Although this is true for
47257         all known practical hosts, the C standard doesn't guarantee it,
47258         and the code need not assume it.  Also, this change may work around
47259         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
47260         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
47262 2011-05-20  Eric Blake  <eblake@redhat.com>
47264         perror: work around FreeBSD bug
47265         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
47266         is broken.  Move AC_LIBOBJ...
47267         * modules/perror (configure.ac): Here.
47268         * doc/posix-functions/perror.texi (perror): Document this.
47269         * tests/test-perror2.c (main): Enhance test.
47271         test-perror: check for strerror interactions
47272         * tests/macros.h (STREQ): Add macro.
47273         * modules/perror-tests (Files): Add second test.
47274         * tests/test-perror2.c (main): New file.
47275         * doc/posix-functions/perror.texi (perror): Document glibc bug.
47277         test-perror: rewrite to use init script
47278         * modules/perror-tests (Files): Add init.sh.
47279         * tests/test-perror.sh: Use temporary directory.
47281 2011-05-20  Jim Meyering  <meyering@redhat.com>
47283         maint: replace misused "a" with "an"
47284         * doc/intprops.texi: "a integer"
47285         * doc/regex.texi: "a explanation"
47286         * lib/alignof.h: "a object"
47287         * lib/argmatch.h: "a explanation"
47288         * lib/argp-help.c: "a option" and "a OPTION_DOC"
47289         * lib/stdint.in.h: "a integer"
47290         * lib/userspec.c: "a owner"
47291         * doc/gnulib.texi: Fix "a idea", and reword.
47293 2011-05-19  Jim Meyering  <meyering@redhat.com>
47295         maint: correct misuse of "a" and "an"
47296         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
47297         * lib/argp-help.c: "an docum...": s/an/a/
47298         * lib/argp-parse.c: "An vector": s/An/A/
47299         * lib/execute.c: "an native": s/an/a/
47300         * lib/spawn-pipe.c: Likewise.
47301         * lib/gc.h: "an Gc_rc": s/an/a/
47302         * lib/unigbrk.in.h: "an grapheme": s/an/a/
47303         * lib/fts.c: "an stat.st_dev": s/an/a/
47305 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47307         intprops-tests: work around HP-UX 11.23 cc bug with constants
47308         * tests/test-intprops.c (VERIFY): New macro.
47309         (main): Use it, instead of verify, to work around the compiler bug; see
47310         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
47312         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
47313         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
47314         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
47315         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
47316         (_GL_REMAINDER_OVERFLOW): Use it.
47318         intprops-tests: revert unsigned part of previous change
47319         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
47320         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
47321         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
47322         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
47324 2011-05-19  Bruno Haible  <bruno@clisp.org>
47326         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
47327         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
47328         strerror_r() returned without filling the buffer.
47329         Reported by Eric Blake.
47331 2011-05-19  Eric Blake  <eblake@redhat.com>
47333         strerror_r: guarantee unchanged errno
47334         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
47335         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
47336         failure.
47337         * tests/test-strerror_r.c (main): Enhance test.
47339 2011-05-19  Bruno Haible  <bruno@clisp.org>
47341         strerror_r: Reorder #if blocks.
47342         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
47343         for consistency with the previous commit.
47345 2011-05-19  Bruno Haible  <bruno@clisp.org>
47347         perror: Avoid clobbering the strerror buffer when possible.
47348         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
47349         * lib/strerror.c: Include it.
47350         * modules/strerror (Files): Add lib/strerror-impl.h.
47351         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
47352         (my_strerror): New function, defined through lib/strerror-impl.h.
47353         (perror): Use it instead of strerror.
47354         * modules/perror (Files): Add lib/strerror-impl.h.
47355         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
47357 2011-05-19  Eric Blake  <eblake@redhat.com>
47359         strerror_r: fix on newer cygwin
47360         * lib/strerror_r.c (strerror_r): Cygwin now has
47361         __xpg_strerror_r, use it.
47363 2011-05-19  Bruno Haible  <bruno@clisp.org>
47365         strerror_r: Avoid clobbering the strerror buffer when possible.
47366         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
47367         (sys_nerr, sys_errlist): New declarations.
47368         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
47369         HP-UX, native Win32, IRIX, and 32-bit Solaris.
47370         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
47372 2011-05-19  Bruno Haible  <bruno@clisp.org>
47374         strerror_r: Fix test failure on mingw.
47375         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
47376         EXTEND_STRERROR_R.
47377         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
47378         macros from errno.in.h instead.
47380 2011-05-19  Eric Blake  <eblake@redhat.com>
47382         strerror: relax test for Solaris
47383         * tests/test-strerror.c (main): Permit Solaris behavior.
47384         * tests/test-strerror_r.c (main): Likewise.
47386         strerror: enforce POSIX ruling on strerror(0)
47387         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
47388         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
47389         * lib/strerror_r.c (rpl_strerror_r): Work around it.
47390         * doc/posix-functions/strerror.texi (strerror): Document it.
47391         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
47392         * tests/test-strerror.c (main): Strengthen test.
47393         * tests/test-strerror_r.c (main): Likewise.
47395 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47397         intprop-tests: port to older and more-pedantic compilers
47398         * modules/intprops-tests (Files): Add tests/macros.h.
47399         * tests/test-intprops.c: Include macros.h.
47400         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
47401         it's no longer documented to expand to an integer constant expression.
47402         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
47403         argument is floating point, as it's no longer documented to expand
47404         to an integer constant expression in that case.
47405         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
47406         compiler bugs reported by Bruno Haible.  See
47407         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
47408         (U0, U1): New constants, to work around the same bugs.  Also,
47409         in tests, use e.g., "(unsigned int) 39" rather than "39u".
47411         intprops: work around C compiler bugs
47412         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
47413         bug in Sun C 5.11 2010/08/13 and other compilers; see
47414         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
47416         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
47417         * doc/intprops.texi (Integer Type Determination): Fix
47418         documentation for TYPE_IS_INTEGER: it returns an constant
47419         expression, not an integer constant expression.  Fix doc for
47420         TYPE_SIGNED: it returns an integer constant expression only if its
47421         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
47422         hardly worth documented that way....)
47424 2011-05-18  Bruno Haible  <bruno@clisp.org>
47426         strerror_r: Avoid clobbering the strerror buffer when possible.
47427         * lib/strerror_r.c (strerror_r): Merge the three implementations.
47428         Handle gnulib defined errno values here. When strerror() returns NULL
47429         or an empty string, return EINVAL.
47430         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
47431         gnulib defined errno values here.
47432         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
47434 2011-05-18  Eric Blake  <eblake@redhat.com>
47436         fnmatch: avoid compiler warning
47437         * lib/fnmatch_loop.c (FCT): Use correct type.
47438         Reported by Matthias Bolte.
47440 2011-05-13  Jim Meyering  <meyering@redhat.com>
47442         maint.mk: three new prohibit_<HDR>_without_use rules
47443         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
47444         (sc_prohibit_stdio-safer_without_use): Likewise.
47445         (sc_prohibit_xfreopen_without_use): Likewise.
47447 2011-05-17  Jim Meyering  <meyering@redhat.com>
47449         announce-gen: fail if the NEWS delta is empty
47450         If there's nothing noteworthy in NEWS, then either you forgot
47451         or you shouldn't be releasing.
47452         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
47454 2011-05-17  Pádraig Brady  <P@draigBrady.com>
47456         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
47457         reserved symbols starting with double underscore from the check.
47459 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
47461         intprops: add doc
47462         * doc/intprops.texi: New file, documenting intprops.
47463         * doc/gnulib.texi (Particular Modules): Include it.
47465         verify: add doc to gnulib manual and fix example
47466         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
47467         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
47468         (Compile-time Assertions): Fix example so it can't overflow.
47470 2011-05-17  Jim Meyering  <meyering@redhat.com>
47472         warnings.m4: don't usurp save_CPPFLAGS variable name
47473         * m4/warnings.m4: Prefix local temporary variable name with gl_.
47475         doc: fix typo
47476         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
47478 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
47479             Bruno Haible  <bruno@clisp.org>
47481         doc: Tweak recent change.
47482         * README (Portability guidelines): Tweak new text.
47483         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
47484         Interix 6.1.
47486 2011-05-16  Eric Blake  <eblake@redhat.com>
47488         inttypes: avoid autoconf warning
47489         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
47490         * m4/stdint.m4 (gl_STDINT_H): Likewise.
47492 2011-05-16  Sam Steingold  <sds@gnu.org>
47493         and Eric Blake  <eblake@redhat.com>
47495         vc-list-files: accept multiple directory operands
47496         * build-aux/vc-list-files: Iterate over all remaining operands.
47498 2011-05-16  Bruno Haible  <bruno@clisp.org>
47500         Fix confusion regarding deprecated modules.
47501         * modules/calloc (Status, Notice): Mark module as deprecated, not
47502         obsolete.
47503         * modules/fnmatch-posix (Status, Notice): Likewise.
47504         * modules/getdate (Status, Notice): Likewise.
47505         * modules/getopt (Status, Notice): Likewise.
47506         * modules/malloc (Status, Notice): Likewise.
47507         * modules/pipe (Status, Notice): Likewise.
47508         * modules/realloc (Status, Notice): Likewise.
47509         * modules/rename-dest-slash (Status, Notice): Likewise.
47510         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
47511         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
47512         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
47513         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
47514         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
47516 2011-05-16  Bruno Haible  <bruno@clisp.org>
47518         doc: List the target platforms.
47519         * doc/gnulib-intro.texi (Target Platforms): New section.
47520         * doc/gnulib.texi (Introduction): Update menu.
47521         * README (Portability guidelines): Refer to the new section. Update
47522         statement about oldest supported environment. Remove rationale why
47523         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
47524         unportable C89 function.
47525         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
47526         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
47528 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
47530         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
47532 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
47534         intprops-tests: new module
47535         * modules/intprops-tests, tests/test-intprops.c: New files.
47537         intprops: add safe, portable integer overflow checking
47538         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
47539         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
47540         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
47541         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
47542         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
47543         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
47544         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
47545         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
47546         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
47547         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
47548         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
47550 2011-05-12  James Youngman  <jay@gnu.org>
47552         Add a test for glibc's Bugzilla bug #12378.
47553         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
47554         doesn't allow the literal matching of a lone "[" (which is
47555         required by POSIX).
47556         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
47558 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
47560         Sync glibc change fixing Bugzilla bug #12378.
47561         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
47562         beginning and fall back to matching as normal character if the
47563         string ends before the matching ']' is found.  This is what POSIX
47564         requires.
47566 2011-05-13  Eric Blake  <eblake@redhat.com>
47568         getcwd-lgpl: relax test for FreeBSD
47569         * doc/posix-functions/getcwd.texi (getcwd): Document portability
47570         issue.
47571         * tests/test-getcwd-lgpl.c (main): Relax test.
47572         Reported by Matthias Bolte.
47574 2011-05-11  Eric Blake  <eblake@redhat.com>
47576         test-fflush: silence compiler warning
47577         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
47579 2011-05-11  Bruno Haible  <bruno@clisp.org>
47581         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
47582         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
47583         * modules/canonicalize (Depends-on): Add 'nocrash'.
47584         * modules/canonicalize-lgpl (Depends-on): Likewise.
47585         * doc/posix-functions/realpath.texi: Update platforms list.
47586         Reported by Ryan Schmidt <ryandesign@macports.org>.
47588 2011-05-11  Bruno Haible  <bruno@clisp.org>
47590         group-member: Declare function in <unistd.h>.
47591         * lib/unistd.in.h (group_member): New declaration.
47592         * lib/group-member.h: Remove file.
47593         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
47594         * tests/test-unistd-c++.cc: Check signature of group_member.
47595         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
47596         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
47597         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
47598         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
47599         HAVE_GROUP_MEMBER.
47600         * modules/group-member (Files): Remove lib/group-member.h.
47601         (Depends-on): Add unistd. Specify conditions.
47602         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47603         (Include): Change to <unistd.h>.
47604         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
47605         HAVE_GROUP_MEMBER.
47606         * NEWS: Mention the change.
47607         * lib/euidaccess.c: Don't include group-member.h.
47609 2011-05-11  Bruno Haible  <bruno@clisp.org>
47611         group-member: Document module.
47612         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
47613         module.
47615 2011-05-11  Bruno Haible  <bruno@clisp.org>
47617         fclose: Fix mistake earlier today.
47618         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
47620 2011-05-11  Eric Blake  <eblake@redhat.com>
47622         fclose: preserve fflush errors
47623         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
47624         Reported by Jim Meyering.
47626         bootstrap: support a prereq of 'rpcgen -' on RHEL5
47627         * build-aux/bootstrap (check_versions): When no specific version
47628         is required, merely check that the app produces an exit status
47629         that indicates its existence.
47631         maint.mk: drop redundant check
47632         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
47633         the same but better.
47635 2011-05-11  Bruno Haible  <bruno@clisp.org>
47637         fclose: Fix possible link error.
47638         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
47639         unregister_shadow_fd. Improve comments.
47640         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
47641         Eric Blake.
47643 2011-05-11  Jim Meyering  <meyering@redhat.com>
47645         maint.mk: improve "can not" detection and generalize rule name
47646         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
47647         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
47648         Use the same technique as in sc_prohibit_doubled_word, so that
47649         we recognize "can not" also when the words are separated by a newline.
47650         Suggested by Eric Blake.
47651         (perl_filename_lineno_text_): Define.  Factored out of...
47652         (prohibit_doubled_word_): ...here.  Use the new definition.
47653         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
47654         (prohibit_undesirable_word_seq_RE_): New overridable variable.
47655         (ignore_undesirable_word_sequence_RE_): New overridable variable.
47657 2011-05-10  Eric Blake  <eblake@redhat.com>
47659         fclose: avoid double close race when possible
47660         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
47661         all but WINDOWS_SOCKETS.
47663 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
47665         openat: correct new comment
47666         * lib/openat-proc.c (openat_proc_name): Correct the comment.
47668 2011-05-10  Jim Meyering  <meyering@redhat.com>
47670         openat: add comments
47671         * lib/openat-proc.c (openat_proc_name): Add comments,
47672         mostly from Eric Blake.
47674 2011-05-09  Eric Blake  <eblake@redhat.com>
47676         openat: reduce syscalls in first probe of /proc
47677         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
47678         be a directory.  Simplify the probe for .. bugs.
47679         * modules/openat (Depends-on): Drop same-inode.
47680         Reported by Bastien ROUCARIES.
47682 2011-05-09  Jim Meyering  <meyering@redhat.com>
47684         maint.mk: change semantics/name of tight_scope variables
47685         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
47686         Rename variables to align with semantics that make them more useful.
47688         maint.mk: tweak new rule's name not to impinge
47689         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
47690         (sc_tight_scope): Use new rule name rather than $@-0.
47692         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
47693         * top/maint.mk (sc_tight_scope): New rule.
47694         (sc_tight_scope-0): New rule, ifdef'd out.
47695         (_gl_TS_dir): Default.
47696         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
47697         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
47699 2011-05-09  Simon Josefsson  <simon@josefsson.org>
47701         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
47702         Haible <bruno@clisp.org>.
47704 2011-05-08  Bruno Haible  <bruno@clisp.org>
47706         Comments.
47707         * m4/isnanf.m4: Add comment.
47708         * m4/isnanl.m4: Likewise.
47710 2011-05-08  Bruno Haible  <bruno@clisp.org>
47712         glob: Remove obsolete macro.
47713         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
47715 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
47717         intprops: Sun C 5.11 supports __typeof__
47718         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
47719         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
47720         which is new.
47721         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
47723         intprops: switch to usual gnulib indenting and naming
47724         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
47725         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
47727         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
47729 2011-05-08  Jim Meyering  <meyering@redhat.com>
47731         maint.mk: suppress "Entering/Leaving directory" diag in announcement
47732         * top/maint.mk (release-prep): Use make's --no-print-directory
47733         option when generating the announcement.  This eliminates the
47734         pesky "make[2]: Entering/Leaving directory" diagnostics in the
47735         generated announcement template.
47737 2011-05-08  Bruno Haible  <bruno@clisp.org>
47739         tzset: Fix gettimeofday wrapper on Solaris 2.6.
47740         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
47741         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
47743 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
47745         ignore-value, verify: Omit include files from lib_SOURCES.
47746         * modules/ignore-value, modules/verify (Makefile.am):
47747         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
47748         that leads Automake to duplicate use of am__objects_... variables
47749         in Makefile.in.  See
47750         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
47752 2011-05-07  Bruno Haible  <bruno@clisp.org>
47754         fclose: Simplify autoconf macro.
47755         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
47756         defined.
47758 2011-05-07  Bruno Haible  <bruno@clisp.org>
47760         canonicalize-lgpl: Fix autoconf macro ordering bug.
47761         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
47762         gl_STDLIB_H_DEFAULTS.
47764 2011-05-06  Eric Blake  <eblake@redhat.com>
47766         maintainer-makefile: make sc_po_check easier to tune
47767         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
47768         to probe for strings, such as an alternate location for gnulib.
47770         fclose: guarantee behavior on seekable stdin
47771         * modules/fclose (Depends-on): Add fflush.
47772         * doc/posix-functions/fclose.texi (fclose): Document this.
47773         * tests/test-fclose.c (main): Make test for this unconditional.
47775 2011-05-06  Bruno Haible  <bruno@clisp.org>
47777         fflush, fpurge: Relicense under LGPLv2+.
47778         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
47779         * modules/fpurge (License): Likewise.
47780         With permission from Eric Blake and Jim Meyering.
47781         Suggested by Eric Blake.
47783 2011-05-06  Karl Berry  <karl@gnu.org>
47785         * MODULES.html.sh (func_all_modules): remove exit.
47787 2011-05-06  Jim Meyering  <meyering@redhat.com>
47789         maint.mk: use info-gnu@ as the default only for a stable release
47790         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
47791         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
47792         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
47793         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
47795 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
47797         assert-h: new module, which supports C1X-style static_assert
47798         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
47799         * lib/verify.h: Revamp so that this can be copied into assert.h,
47800         while retaining the ability to use it standalone as before.
47801         Rename private identifiers so as not to encroach on the
47802         standard C namespace, since this is now used by assert.h.
47803         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
47804         the old verify_true.
47805         (_GL_VERIFY_TRUE): New macro, with much of the contents of
47806         the old verify_true.  Use _GL_VERIFY_TYPE.
47807         (_GL_VERIFY): New macro, with much of the contents of the old verify.
47808         (static_assert): New macro, if _GL_STATIC_ASSERT_H
47809         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
47810         defined when this file is copied into the replacement assert.h.
47811         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
47812         and _Static_assert is not built in.
47813         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
47814         defined, and use the new macros mentioned above.
47815         * doc/posix-headers/assert.texi: Document this.
47817 2011-05-05  Bruno Haible  <bruno@clisp.org>
47819         fclose, fflush: Respect rules for use of AC_LIBOBJ.
47820         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
47821         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
47822         gl_REPLACE_FCLOSE here.
47823         * modules/fflush (Depends-on): Remove fclose.
47824         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
47825         combination with module 'fclose'.
47827 2011-05-05  Bruno Haible  <bruno@clisp.org>
47829         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
47830         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
47831         gl_FUNC_FFLUSH.
47832         (gl_FUNC_FFLUSH): Use it.
47833         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
47834         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
47835         gl_REPLACE_FSEEKO here.
47837 2011-05-05  Bruno Haible  <bruno@clisp.org>
47839         tzset: Relicense under LGPL.
47840         * modules/tzset (License): Change to LGPL.
47841         No agreement needed; it's a no-op.
47843         strtoimax, strtoumax: Relicense under LGPL.
47844         * modules/strtoimax (License): Change to LGPL.
47845         * modules/strtoumax (License): Likewise.
47846         With permission from Jim Meyering, Paul Eggert:
47847         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
47848         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
47850         getgroups: Relicense under LGPL.
47851         * modules/getgroups (License): Change to LGPL.
47852         With permission from Jim Meyering, Paul Eggert, Eric Blake:
47853         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
47854         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
47855         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
47857         nanosleep: Relicense under LGPL.
47858         * modules/nanosleep (License): Change to LGPL.
47859         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
47860         Haible:
47861         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
47862         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
47863         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
47864         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
47866         futimens: Relicense under LGPL.
47867         * modules/futimens (License): Change to LGPL.
47868         With permission from Eric Blake:
47869         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
47871         fflush: Relicense under LGPL.
47872         * modules/fflush (License): Change to LGPL.
47873         With permission from Eric Blake, Bruno Haible, Jim Meyering:
47874         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
47875         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
47876         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
47878         tmpfile: Relicense under LGPL.
47879         * modules/tmpfile (License): Change to LGPL.
47880         With permission from Ben Pfaff:
47881         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
47883         isfinite: Relicense under LGPL.
47884         * modules/isfinite (License): Change to LGPL.
47885         With permission from Ben Pfaff, Bruno Haible:
47886         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
47887         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
47889         acosl..tanl: Relicense under LGPL.
47890         * modules/acosl (License): Change to LGPL.
47891         * modules/asinl (License): Likewise.
47892         * modules/atanl (License): Likewise.
47893         * modules/cosl (License): Likewise.
47894         * modules/expl (License): Likewise.
47895         * modules/logl (License): Likewise.
47896         * modules/sinl (License): Likewise.
47897         * modules/sqrtl (License): Likewise.
47898         * modules/tanl (License): Likewise.
47899         Source code originally from glibc and Paolo Bonzini. Agreements:
47900         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
47901         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
47903 2011-05-05  Bruno Haible  <bruno@clisp.org>
47905         signal: Define sighandler_t.
47906         * lib/signal.in.h (sighandler_t): New type.
47907         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
47908         whether sighandler_t is defined.
47909         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
47910         * modules/signal (Depends-on): Add extensions.
47911         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
47912         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
47913         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
47915 2011-05-05  Eric Blake  <eblake@redhat.com>
47917         maint: remove useless REPLACE_*_H macros
47918         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
47919         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
47920         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
47921         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
47922         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
47923         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
47924         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
47925         * m4/btowc.m4: Update callers.
47926         * m4/dirfd.m4: Likewise.
47927         * m4/duplocale.m4: Likewise.
47928         * m4/fchdir.m4: Likewise.
47929         * m4/fdopendir.m4: Likewise.
47930         * m4/inet_ntop.m4: Likewise.
47931         * m4/inet_pton.m4: Likewise.
47932         * m4/ioctl.m4: Likewise.
47933         * m4/mbrlen.m4: Likewise.
47934         * m4/mbrtowc.m4: Likewise.
47935         * m4/mbsinit.m4: Likewise.
47936         * m4/mbsnrtowcs.m4: Likewise.
47937         * m4/mbsrtowcs.m4: Likewise.
47938         * m4/poll.m4: Likewise.
47939         * m4/setlocale.m4: Likewise.
47940         * m4/wcrtomb.m4: Likewise.
47941         * m4/wcsnrtombs.m4: Likewise.
47942         * m4/wcsrtombs.m4: Likewise.
47943         * m4/wctob.m4: Likewise.
47944         * m4/wcwidth.m4: Likewise.
47945         * modules/posix_spawn: Likewise.
47946         * modules/posix_spawn_file_actions_addclose: Likewise.
47947         * modules/posix_spawn_file_actions_adddup2: Likewise.
47948         * modules/posix_spawn_file_actions_addopen: Likewise.
47949         * modules/posix_spawn_file_actions_destroy: Likewise.
47950         * modules/posix_spawn_file_actions_init: Likewise.
47951         * modules/posix_spawnattr_destroy: Likewise.
47952         * modules/posix_spawnattr_getflags: Likewise.
47953         * modules/posix_spawnattr_getpgroup: Likewise.
47954         * modules/posix_spawnattr_getschedparam: Likewise.
47955         * modules/posix_spawnattr_getschedpolicy: Likewise.
47956         * modules/posix_spawnattr_getsigdefault: Likewise.
47957         * modules/posix_spawnattr_getsigmask: Likewise.
47958         * modules/posix_spawnattr_init: Likewise.
47959         * modules/posix_spawnattr_setflags: Likewise.
47960         * modules/posix_spawnattr_setpgroup: Likewise.
47961         * modules/posix_spawnattr_setschedparam: Likewise.
47962         * modules/posix_spawnattr_setschedpolicy: Likewise.
47963         * modules/posix_spawnattr_setsigdefault: Likewise.
47964         * modules/posix_spawnattr_setsigmask: Likewise.
47965         * modules/posix_spawnp: Likewise.
47967 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
47969         Add option to do-release-commit-and-tag to specify branch.
47970         * build-aux/do-release-commit-and-tag: Add --branch.
47972 2011-05-03  Bruno Haible  <bruno@clisp.org>
47974         Avoid unnecessary compilation units, through conditional dependencies.
47975         * modules/accept (Depends-on): Add conditions to the dependencies.
47976         * modules/acosl (Depends-on): Likewise.
47977         * modules/argz (Depends-on): Likewise.
47978         * modules/asinl (Depends-on): Likewise.
47979         * modules/atanl (Depends-on): Likewise.
47980         * modules/atoll (Depends-on): Likewise.
47981         * modules/bind (Depends-on): Likewise.
47982         * modules/btowc (Depends-on): Likewise.
47983         * modules/canonicalize-lgpl (Depends-on): Likewise.
47984         * modules/ceil (Depends-on): Likewise.
47985         * modules/ceilf (Depends-on): Likewise.
47986         * modules/ceill (Depends-on): Likewise.
47987         * modules/chdir-long (Depends-on): Likewise.
47988         * modules/chown (Depends-on): Likewise.
47989         * modules/close (Depends-on): Likewise.
47990         * modules/connect (Depends-on): Likewise.
47991         * modules/cosl (Depends-on): Likewise.
47992         * modules/dirfd (Depends-on): Likewise.
47993         * modules/dprintf (Depends-on): Likewise.
47994         * modules/dprintf-posix (Depends-on): Likewise.
47995         * modules/error (Depends-on): Likewise.
47996         * modules/euidaccess (Depends-on): Likewise.
47997         * modules/expl (Depends-on): Likewise.
47998         * modules/faccessat (Depends-on): Likewise.
47999         * modules/fchdir (Depends-on): Likewise.
48000         * modules/fclose (Depends-on): Likewise.
48001         * modules/fcntl (Depends-on): Likewise.
48002         * modules/fdopendir (Depends-on): Likewise.
48003         * modules/fflush (Depends-on): Likewise.
48004         * modules/floor (Depends-on): Likewise.
48005         * modules/floorf (Depends-on): Likewise.
48006         * modules/floorl (Depends-on): Likewise.
48007         * modules/fnmatch (Depends-on): Likewise.
48008         * modules/fopen (Depends-on): Likewise.
48009         * modules/fprintf-posix (Depends-on): Likewise.
48010         * modules/frexp (Depends-on): Likewise.
48011         * modules/frexp-nolibm (Depends-on): Likewise.
48012         * modules/frexpl (Depends-on): Likewise.
48013         * modules/frexpl-nolibm (Depends-on): Likewise.
48014         * modules/fseek (Depends-on): Likewise.
48015         * modules/fsusage (Depends-on): Likewise.
48016         * modules/ftell (Depends-on): Likewise.
48017         * modules/ftello (Depends-on): Likewise.
48018         * modules/futimens (Depends-on): Likewise.
48019         * modules/getcwd (Depends-on): Likewise.
48020         * modules/getcwd-lgpl (Depends-on): Likewise.
48021         * modules/getdelim (Depends-on): Likewise.
48022         * modules/getdomainname (Depends-on): Likewise.
48023         * modules/getgroups (Depends-on): Likewise.
48024         * modules/gethostname (Depends-on): Likewise.
48025         * modules/getline (Depends-on): Likewise.
48026         * modules/getlogin_r (Depends-on): Likewise.
48027         * modules/getopt-posix (Depends-on): Likewise.
48028         * modules/getpeername (Depends-on): Likewise.
48029         * modules/getsockname (Depends-on): Likewise.
48030         * modules/getsockopt (Depends-on): Likewise.
48031         * modules/getsubopt (Depends-on): Likewise.
48032         * modules/getusershell (Depends-on): Likewise.
48033         * modules/glob (Depends-on): Likewise.
48034         * modules/grantpt (Depends-on): Likewise.
48035         * modules/iconv_open (Depends-on): Likewise.
48036         * modules/iconv_open-utf (Depends-on): Likewise.
48037         * modules/inet_ntop (Depends-on): Likewise.
48038         * modules/inet_pton (Depends-on): Likewise.
48039         * modules/ioctl (Depends-on): Likewise.
48040         * modules/isapipe (Depends-on): Likewise.
48041         * modules/isfinite (Depends-on): Likewise.
48042         * modules/isinf (Depends-on): Likewise.
48043         * modules/lchown (Depends-on): Likewise.
48044         * modules/ldexpl (Depends-on): Likewise.
48045         * modules/link (Depends-on): Likewise.
48046         * modules/linkat (Depends-on): Likewise.
48047         * modules/listen (Depends-on): Likewise.
48048         * modules/logl (Depends-on): Likewise.
48049         * modules/lstat (Depends-on): Likewise.
48050         * modules/mbrlen (Depends-on): Likewise.
48051         * modules/mbrtowc (Depends-on): Likewise.
48052         * modules/mbsinit (Depends-on): Likewise.
48053         * modules/mbsnrtowcs (Depends-on): Likewise.
48054         * modules/mbsrtowcs (Depends-on): Likewise.
48055         * modules/mbtowc (Depends-on): Likewise.
48056         * modules/memcmp (Depends-on): Likewise.
48057         * modules/mkdir (Depends-on): Likewise.
48058         * modules/mkdtemp (Depends-on): Likewise.
48059         * modules/mkfifo (Depends-on): Likewise.
48060         * modules/mkfifoat (Depends-on): Likewise.
48061         * modules/mknod (Depends-on): Likewise.
48062         * modules/mkostemp (Depends-on): Likewise.
48063         * modules/mkostemps (Depends-on): Likewise.
48064         * modules/mkstemp (Depends-on): Likewise.
48065         * modules/mkstemps (Depends-on): Likewise.
48066         * modules/mktime (Depends-on): Likewise.
48067         * modules/nanosleep (Depends-on): Likewise.
48068         * modules/open (Depends-on): Likewise.
48069         * modules/openat (Depends-on): Likewise.
48070         * modules/perror (Depends-on): Likewise.
48071         * modules/poll (Depends-on): Likewise.
48072         * modules/popen (Depends-on): Likewise.
48073         * modules/posix_spawn (Depends-on): Likewise.
48074         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
48075         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
48076         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
48077         * modules/posix_spawnp (Depends-on): Likewise.
48078         * modules/pread (Depends-on): Likewise.
48079         * modules/printf-posix (Depends-on): Likewise.
48080         * modules/ptsname (Depends-on): Likewise.
48081         * modules/putenv (Depends-on): Likewise.
48082         * modules/pwrite (Depends-on): Likewise.
48083         * modules/readline (Depends-on): Likewise.
48084         * modules/readlink (Depends-on): Likewise.
48085         * modules/readlinkat (Depends-on): Likewise.
48086         * modules/recv (Depends-on): Likewise.
48087         * modules/recvfrom (Depends-on): Likewise.
48088         * modules/regex (Depends-on): Likewise.
48089         * modules/remove (Depends-on): Likewise.
48090         * modules/rename (Depends-on): Likewise.
48091         * modules/renameat (Depends-on): Likewise.
48092         * modules/rmdir (Depends-on): Likewise.
48093         * modules/round (Depends-on): Likewise.
48094         * modules/roundf (Depends-on): Likewise.
48095         * modules/roundl (Depends-on): Likewise.
48096         * modules/rpmatch (Depends-on): Likewise.
48097         * modules/select (Depends-on): Likewise.
48098         * modules/send (Depends-on): Likewise.
48099         * modules/sendto (Depends-on): Likewise.
48100         * modules/setenv (Depends-on): Likewise.
48101         * modules/setlocale (Depends-on): Likewise.
48102         * modules/setsockopt (Depends-on): Likewise.
48103         * modules/shutdown (Depends-on): Likewise.
48104         * modules/sigaction (Depends-on): Likewise.
48105         * modules/signbit (Depends-on): Likewise.
48106         * modules/sigprocmask (Depends-on): Likewise.
48107         * modules/sinl (Depends-on): Likewise.
48108         * modules/sleep (Depends-on): Likewise.
48109         * modules/snprintf (Depends-on): Likewise.
48110         * modules/snprintf-posix (Depends-on): Likewise.
48111         * modules/socket (Depends-on): Likewise.
48112         * modules/sprintf-posix (Depends-on): Likewise.
48113         * modules/sqrtl (Depends-on): Likewise.
48114         * modules/stat (Depends-on): Likewise.
48115         * modules/strchrnul (Depends-on): Likewise.
48116         * modules/strdup-posix (Depends-on): Likewise.
48117         * modules/strerror (Depends-on): Likewise.
48118         * modules/strerror_r-posix (Depends-on): Likewise.
48119         * modules/strndup (Depends-on): Likewise.
48120         * modules/strnlen (Depends-on): Likewise.
48121         * modules/strptime (Depends-on): Likewise.
48122         * modules/strsep (Depends-on): Likewise.
48123         * modules/strsignal (Depends-on): Likewise.
48124         * modules/strstr-simple (Depends-on): Likewise.
48125         * modules/strtod (Depends-on): Likewise.
48126         * modules/strtoimax (Depends-on): Likewise.
48127         * modules/strtok_r (Depends-on): Likewise.
48128         * modules/strtoumax (Depends-on): Likewise.
48129         * modules/symlink (Depends-on): Likewise.
48130         * modules/symlinkat (Depends-on): Likewise.
48131         * modules/tanl (Depends-on): Likewise.
48132         * modules/tcgetsid (Depends-on): Likewise.
48133         * modules/tmpfile (Depends-on): Likewise.
48134         * modules/trunc (Depends-on): Likewise.
48135         * modules/truncf (Depends-on): Likewise.
48136         * modules/truncl (Depends-on): Likewise.
48137         * modules/uname (Depends-on): Likewise.
48138         * modules/unlink (Depends-on): Likewise.
48139         * modules/unlockpt (Depends-on): Likewise.
48140         * modules/unsetenv (Depends-on): Likewise.
48141         * modules/usleep (Depends-on): Likewise.
48142         * modules/utimensat (Depends-on): Likewise.
48143         * modules/vasprintf (Depends-on): Likewise.
48144         * modules/vdprintf (Depends-on): Likewise.
48145         * modules/vdprintf-posix (Depends-on): Likewise.
48146         * modules/vfprintf-posix (Depends-on): Likewise.
48147         * modules/vprintf-posix (Depends-on): Likewise.
48148         * modules/vsnprintf (Depends-on): Likewise.
48149         * modules/vsnprintf-posix (Depends-on): Likewise.
48150         * modules/vsprintf-posix (Depends-on): Likewise.
48151         * modules/wcrtomb (Depends-on): Likewise.
48152         * modules/wcscasecmp (Depends-on): Likewise.
48153         * modules/wcscspn (Depends-on): Likewise.
48154         * modules/wcsdup (Depends-on): Likewise.
48155         * modules/wcsncasecmp (Depends-on): Likewise.
48156         * modules/wcsnrtombs (Depends-on): Likewise.
48157         * modules/wcspbrk (Depends-on): Likewise.
48158         * modules/wcsrtombs (Depends-on): Likewise.
48159         * modules/wcsspn (Depends-on): Likewise.
48160         * modules/wcsstr (Depends-on): Likewise.
48161         * modules/wcstok (Depends-on): Likewise.
48162         * modules/wcswidth (Depends-on): Likewise.
48163         * modules/wctob (Depends-on): Likewise.
48164         * modules/wctomb (Depends-on): Likewise.
48165         * modules/wctype (Depends-on): Likewise.
48166         * modules/wcwidth (Depends-on): Likewise.
48167         * modules/write (Depends-on): Likewise.
48169 2011-05-03  Bruno Haible  <bruno@clisp.org>
48171         Support for conditional dependencies.
48172         * doc/gnulib.texi (Module description): Document the syntax of
48173         conditional dependencies.
48174         * gnulib-tool: New option --conditional-dependencies.
48175         (func_usage): Document it.
48176         (cond_dependencies): New variable.
48177         (func_get_automake_snippet_conditional,
48178         func_get_automake_snippet_unconditional): New functions, extracted from
48179         func_get_automake_snippet.
48180         (func_get_automake_snippet): Use them.
48181         (sed_first_32_chars): New variable.
48182         (func_module_shellfunc_name): New function.
48183         (func_module_shellvar_name): New function.
48184         (func_module_conditional_name): New function.
48185         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
48186         func_cond_module_condition): New functions.
48187         (func_modules_transitive_closure): Add support for conditional
48188         dependencies.
48189         (func_emit_lib_Makefile_am): For a conditional module, enclose the
48190         conditional automake snippet in an automake conditional.
48191         (func_emit_autoconf_snippets): Emit shell functions that contain the
48192         code for conditional modules.
48193         (func_import, func_create_testdir): Update specification.
48195 2011-05-03  Eric Blake  <eblake@redhat.com>
48197         test-getaddrinfo: report error information
48198         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
48200 2011-05-03  Jim Meyering  <meyering@redhat.com>
48202         bootstrap: avoid build failure when $GZIP is set
48203         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
48204         program name.  If defined at all, it is supposed to list gzip options.
48205         Reported by Alan Curry in http://debbugs.gnu.org/8609
48207 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
48209         readme-release: new module with release instructions
48210         * modules/readme-release: New module.
48211         * top/README-release: New file, from coreutils, grep, diffutils.
48212         * MODULES.html.sh (Support for maintaining and releasing): Add it.
48214 2011-05-02  Eric Blake  <eblake@redhat.com>
48216         fflush: also replace fclose when fixing fflush
48217         * modules/fflush (Depends-on): Add fclose.
48218         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
48219         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
48220         memstreams with no backing fd.
48221         * doc/posix-functions/fclose.texi (fclose): Document the use of
48222         fflush module to fix the bug.
48223         * tests/test-fclose.c (main): Relax test when fclose is used in
48224         isolation.
48226         fclose: add some tests
48227         * modules/fclose-tests: New test module.
48228         * tests/test-fclose.c: New file.
48229         * doc/posix-functions/fclose.texi (fclose): Document the bug.
48231         fclose: reduced dependencies
48232         * modules/fclose (Depends-on): Switch from fflush/fseeko to
48233         simpler lseek.
48234         * lib/fclose.c (rpl_fclose): Likewise.
48235         Reported by Simon Josefsson.
48237         exit: drop remaining clients
48238         * modules/argmatch (Depends-on): Replace exit with stdlib.
48239         * modules/copy-file (Depends-on): Likewise.
48240         * modules/execute (Depends-on): Likewise.
48241         * modules/exitfail (Depends-on): Likewise.
48242         * modules/obstack (Depends-on): Likewise.
48243         * modules/pagealign_alloc (Depends-on): Likewise.
48244         * modules/pipe-filter-gi (Depends-on): Likewise.
48245         * modules/pipe-filter-ii (Depends-on): Likewise.
48246         * modules/savewd (Depends-on): Likewise.
48247         * modules/spawn-pipe (Depends-on): Likewise.
48248         * modules/wait-process (Depends-on): Likewise.
48249         * modules/xsetenv (Depends-on): Likewise.
48250         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
48251         * modules/git-merge-changelog (Depends-on): Likewise.
48252         * modules/long-options (Depends-on): Likewise.
48253         * modules/pt_chown (Depends-on): Likewise.
48254         * modules/sysexits (Depends-on): Likewise.
48256         freading: relax license from LGPLv3+ to LGPLv2+
48257         * modules/freading (License): Relax LGPL version.
48259 2011-05-02  Bruno Haible  <bruno@clisp.org>
48261         fchdir: Remove unused dependencies.
48262         * modules/fchdir (Depends-on): Remove include_next.
48264 2011-05-02  Bruno Haible  <bruno@clisp.org>
48266         gnulib-tool: Refactor.
48267         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
48268         from func_emit_autoconf_snippets.
48269         (func_emit_autoconf_snippets): Use it.
48271 2011-05-02  Simon Josefsson  <simon@josefsson.org>
48273         * NEWS: Document removal of 'exit'.
48274         * modules/exit: Remove file.
48276 2011-05-01  Bruno Haible  <bruno@clisp.org>
48278         Update DEPENDENCIES.
48279         * DEPENDENCIES (gettext): Recommend the newest release.
48280         Reported by Simon Josefsson.
48282 2011-05-01  Bruno Haible  <bruno@clisp.org>
48284         gnulib-tool: Reduce code duplication.
48285         * gnulib-tool (func_emit_autoconf_snippets): New function.
48286         (func_import, func_create_testdir): Use it.
48288 2011-04-30  Eric Blake  <eblake@redhat.com>
48290         fclose: don't fail on non-seekable input stream
48291         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
48292         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
48293         since fflush is allowed to fail in that case.
48295 2011-04-30  Bruno Haible  <bruno@clisp.org>
48297         dup3: cleanup
48298         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
48300 2011-04-30  Bruno Haible  <bruno@clisp.org>
48302         netdb: Make it work in C++ mode.
48303         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
48304         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
48305         module.
48306         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
48307         gl_MODULE_INDICATOR_FOR_TESTS.
48308         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
48309         * modules/netdb-c++-tests: New file.
48310         * tests/test-netdb-c++.cc: New file.
48312 2011-04-30  Bruno Haible  <bruno@clisp.org>
48314         New modules 'vfscanf', 'vscanf'.
48315         * modules/vfscanf: New file.
48316         * modules/vscanf: New file.
48317         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
48318         here.
48319         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
48320         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
48322 2011-04-30  Bruno Haible  <bruno@clisp.org>
48324         passfd: Add comments.
48325         * lib/passfd.c: Add comments about platforms.
48327 2011-04-30  Bruno Haible  <bruno@clisp.org>
48329         sys_uio: Make <sys/uio.h> self-contained.
48330         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
48331         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
48333 2011-04-30  Bruno Haible  <bruno@clisp.org>
48335         sys_socket: Ensure 'struct iovec' definition.
48336         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
48337         <sys/socket.h>.
48338         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
48340 2011-04-30  Bruno Haible  <bruno@clisp.org>
48342         sys_uio: Protect definition of 'struct iovec'.
48343         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
48344         it as a C struct.
48346 2011-04-30  Bruno Haible  <bruno@clisp.org>
48348         manywarnings: fix indentation
48349         * m4/manywarnings.m4: Indent by 2 spaces consistently.
48351 2011-04-30  Pádraig Brady  <P@draigBrady.com>
48353         manywarnings: add -Wno-missing-field-initializers if needed.
48354         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
48355         option if it's needed to allow initialization with { 0, }
48357 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
48359         announce-gen: cosmetic improvement
48360         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
48362 2011-04-29  Jim Meyering  <meyering@redhat.com>
48364         vc-list-files: indent with spaces, not TABs
48365         * build-aux/vc-list-files: Convert leading TABs to spaces,
48366         to match the style of most other files in gnulib.
48368         announce-gen: indent with spaces, not TABs
48369         * build-aux/announce-gen: Convert all TABs to spaces, to match
48370         the style of most other files in gnulib.
48372 2011-04-29  Eric Blake  <eblake@redhat.com>
48374         quotearg: avoid uninitialized variable use
48375         * lib/quotearg.c (quoting_options_from_style): Initialize
48376         remaining fields, and ensure that custom styles are only used via
48377         quoting_options rather than quoting_style.
48379 2011-04-29  Jim Meyering  <meyering@redhat.com>
48381         maint.mk: remove unused VC-tag variable
48382         * top/maint.mk (VC-tag): Remove unused variable.
48384 2011-04-29  Bruno Haible  <bruno@clisp.org>
48386         netdb: fix gai_strerror replacements
48387         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
48388         * modules/netdb: Substitute it.
48390 2011-04-29  Jim Meyering  <meyering@redhat.com>
48392         test-getcwd.c: avoid new set-but-not-used warning
48393         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
48394         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
48395         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
48396         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
48398         test-hash.c: avoid a new shadowing warning
48399         * tests/test-hash.c (main): Don't shadow "dup".
48401 2011-04-28  Eric Blake  <eblake@redhat.com>
48403         getaddrinfo: fix gai_strerror signature
48404         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
48405         and work around mingw with UNICODE defined.
48406         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
48407         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
48408         * modules/netdb (Makefile.am): Substitute it.
48409         * lib/netdb.in.h (gai_strerror): Declare replacement.
48410         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
48411         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
48412         the fix.
48414         getsockopt: avoid compiler warning
48415         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
48416         Reported by Matthias Bolte.
48418         tests: drop unused link dependency
48419         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
48420         * modules/dirent-safer-tests (Makefile.am): Likewise.
48421         * modules/fdopendir-tests (Makefile.am): Likewise.
48422         * modules/mkfifoat-tests (Makefile.am): Likewise.
48423         * modules/openat-safer-tests (Makefile.am): Likewise.
48424         * modules/openat-tests (Makefile.am): Likewise.
48425         * modules/readlinkat-tests (Makefile.am): Likewise.
48426         * modules/symlinkat-tests (Makefile.am): Likewise.
48427         * modules/linkat-tests (Makefile.am): Likewise.
48428         (Depends-on): Switch to filenamecat-lgpl.
48429         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
48430         LIBINTL.
48431         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
48432         * tests/test-linkat.c (main): Don't require xalloc.
48434         hash, mgetgroups: drop xalloc dependency
48435         * lib/hash.c (includes): Adjust includes.
48436         * lib/mgetgroups.c (includes): Likewise.
48437         (xgetgroups): Move...
48438         * lib/xgetgroups.c: ...to new file.
48439         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
48440         * modules/xgetgroups: New file, split from...
48441         * modules/mgetgroups: ...here.
48442         (Depends-on): Add xalloc-oversized.
48443         * modules/hash (Depends-on): Likewise.
48444         * modules/hash-tests (Depends-on): Drop xalloc.
48445         (test_hash_LDADD): Drop unused library.
48446         * tests/test-hash.c (main): Break xalloc dependency.
48447         (includes): Drop unused include.
48449         xalloc-oversized: new module
48450         * modules/xalloc-oversized: New module.
48451         * modules/xalloc (Depends-on): Add it.
48452         * lib/xalloc.h (xalloc_oversized): Move...
48453         * lib/xalloc-oversized.h: ...into new file.
48455         utimecmp: drop dependency on xmalloc
48456         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
48457         due to memory pressure.
48458         * modules/utimecmp (Depends-on): Drop xalloc.
48460 2011-04-27  Eric Blake  <eblake@redhat.com>
48462         getcwd: fix mingw bugs
48463         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
48464         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
48465         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
48467 2011-04-27  Bruno Haible  <bruno@clisp.org>
48469         mkstemps: Ensure declaration on MacOS X 10.5.
48470         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
48471         * doc/glibc-functions/mkstemps.texi: Document header file problem on
48472         MacOS X.
48474 2011-04-27  Bruno Haible  <bruno@clisp.org>
48476         mkstemp: More documentation.
48477         * doc/posix-functions/mkstemp.texi: Document header file problem on
48478         MacOS X.
48480 2011-04-27  Bruno Haible  <bruno@clisp.org>
48482         mkstemp: Tweak configure message when cross-compiling.
48483         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
48484         result as a guess.
48486 2011-04-27  Bruno Haible  <bruno@clisp.org>
48488         clean-temp: Clarify what it does.
48489         * lib/clean-temp.h: Add more comments.
48490         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
48491         module.
48492         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
48493         * doc/glibc-functions/mkstemps.texi: Likewise.
48494         * doc/glibc-functions/mkostemps.texi: Likewise.
48496 2011-04-27  Eric Blake  <eblake@redhat.com>
48498         fchdir: avoid extra chdir and fix test
48499         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
48500         getcwd-lgpl.
48501         * lib/fchdir.c (get_name): Any absolute name will do; it does not
48502         have to be canonical.
48503         (canonicalize_file_name): Drop unused macro.
48504         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
48506         filenamecat-lgpl: fix licence
48507         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
48508         when it was first created.
48510         linkat, renameat: add missing dependency
48511         * modules/linkat (Depends-on): Require getcwd-lgpl.
48512         * modules/renameat (Depends-on): Likewise.
48514         tests: reduce dependencies
48515         * tests/test-linkat.c (main): Use lighter-weight getcwd.
48516         * tests/test-renameat.c (main): Likewise.
48517         * modules/linkat-tests (Depends-on): Relax dependency.
48518         * modules/renameat-tests (Depends-on): Likewise.
48519         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
48520         dependency explicit.
48522         save-cwd: reduce default dependency
48523         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
48524         * lib/save-cwd.c: Update comments.
48525         * NEWS: Document the semantic change.
48527         getcwd: enhance tests
48528         * tests/test-getcwd-lgpl.c: New file, taken from...
48529         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
48530         repeat long path stress tests from m4 probe.
48531         * modules/getcwd-lgpl-tests: New module.
48532         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
48533         * m4/getcwd-abort-bug.m4: Update comment.
48534         * m4/getcwd-path-max.m4: Likewise.
48536         getcwd-lgpl: new module
48537         * modules/getcwd-lgpl: New module.
48538         * lib/getcwd-lgpl.c: New file.
48539         * doc/posix-functions/getcwd.texi (getcwd): Document it.
48540         * MODULES.html.sh (lacking POSIX:2008): Likewise.
48541         * modules/getcwd (configure.ac): Set C witness.
48542         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
48544         getcwd: tweak comments
48545         * m4/getcwd-abort-bug.m4: Fix comments.
48546         * m4/getcwd-path-max.m4: Likewise.
48547         * m4/getcwd.m4: Likewise.
48549 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
48550         and Eric Blake  <eblake@redhat.com>
48552         mkstemp: replace if system version uses wrong permissions
48553         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
48554         read/write mode bits set in file created by mkstemp.
48555         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
48557 2011-04-27  Eric Blake  <eblake@redhat.com>
48559         passfd: avoid compiler warning
48560         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
48561         Reported by Laine Stump.
48563 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
48565         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
48566         required by the NetBSD (and perhaps other 4.4BSD derived) join.
48568 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
48569         and Eric Blake  <eblake@redhat.com>
48571         mkstemp: mention clean-temp module
48572         * lib/mkstemp.c: Add comment.
48573         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
48575 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
48577         inttypes: also provide default values for 32-bit tests
48578         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
48579         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
48581 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
48583         strtoumax: remove dependency on strtoimax
48584         This is like the strtoull change of yesterday.
48585         * modules/strtoumax (Files): Add lib/strtoimax.c.
48586         (Depends-on): Remove strtoimax and add verify.
48588         inttypes-incomplete: new module
48589         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
48590         all but the PRI* and SCN* parts of gl_INTTYPES_H.
48591         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
48592         of gl_INTTYPES_H.
48593         (gl_INTTYPES_H): Rewrite in terms of these new macros.
48594         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
48595         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
48596         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
48597         * modules/strtoumax, modules/xstrtol (Depends-on):
48598         Depend on inttypes-incomplete, not inttypes.
48599         * modules/inttypes-incomplete: New module, containing the contents
48600         of the old modules/inttypes module, except that the Files: section
48601         omits m4/inttypes-pri.m4, and the configure.ac section invokes
48602         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
48603         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
48604         (Depends-on): Depend only on inttypes-incomplete.
48605         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
48607         inttypes: omit now-redundant strtoimax and strtoumax work
48608         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
48609         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
48611         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
48612         This supports apps that need pointers to strtoimax and strtoumax,
48613         and ports to HP-UX 11.00 64.bit, which has macros that expand to
48614         nonexistent functions.  See
48615         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
48616         et seq.
48617         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
48618         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
48619         a macro.
48620         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
48622 2011-04-25  Simon Josefsson  <simon@josefsson.org>
48624         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
48626 2011-04-25  Bruno Haible  <bruno@clisp.org>
48628         strtol, strtoul: Mark modules as obsolete.
48629         * modules/strtol (Status, Notice): New sections.
48630         * modules/strtoul (Status, Notice): New sections.
48632 2011-04-25  Bruno Haible  <bruno@clisp.org>
48634         strtod: Remove check for strtod, unless supporting old platforms.
48635         * modules/strtod-obsolete: New file.
48636         * m4/strtod-obsolete.m4: New file.
48637         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
48638         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
48639         * modules/strtod (Depends-on): Add strtod-obsolete.
48640         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
48642 2011-04-25  Bruno Haible  <bruno@clisp.org>
48644         strcase: Make module obsolete.
48645         * modules/strcase (Status, Notice): New sections.
48647 2011-04-25  Bruno Haible  <bruno@clisp.org>
48649         dup2: Remove check for dup2, unless supporting old obsolete platforms.
48650         * modules/dup2-obsolete: New file.
48651         * m4/dup2-obsolete.m4: New file.
48652         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
48653         gl_FUNC_DUP2_OBSOLETE is not also defined.
48654         * modules/dup2 (Depends-on): Add dup2-obsolete.
48655         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
48657 2011-04-25  Bruno Haible  <bruno@clisp.org>
48659         strnlen: Avoid memchr related link error on old obsolete platforms.
48660         * modules/memchr-obsolete: New file.
48661         * m4/memchr-obsolete.m4: New file.
48662         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
48663         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
48664         * modules/memchr (Depends-on): Add memchr-obsolete.
48665         * modules/strnlen (Depends-on): Likewise.
48666         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
48668 2011-04-25  Jim Meyering  <meyering@redhat.com>
48670         maint.mk: makefile_at_at_check extend and clean up
48671         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
48672         in addition to */Makefile.am.
48673         Exempt legitimate uses of @VAR@ notation, e.g.,
48674         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
48675         Remove obsolete coreutils-specific comment.
48676         Prompted by discussion here:
48677         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
48679 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
48681         strtoul: remove dependency on strtol
48682         This is so that 'configure' need not check for strtol merely because
48683         the application needs strtoul.
48684         * modules/strtoul (Files): Add lib/strtol.c.
48685         (Depends-on): Remove strtol.
48687         strtoull: remove dependency on strtoul
48688         This is like the strtoll change.
48689         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
48690         (Depends-on): Remove strtoul.
48692         strtoll: remove dependency on strtol
48693         This is so that 'configure' need not check for strtol merely because
48694         the application needs strtoll.
48695         * modules/strtoll (Files): Add lib/strtol.c.
48696         (Depends-on): Remove strtol.
48698 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
48700         inttypes: Move some configure check to module 'imaxdiv'.
48701         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
48702         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
48703         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
48705 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
48707         inttypes: Move some configure check to module 'imaxabs'.
48708         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
48709         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
48710         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
48712 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
48714         inttypes: Remove configure tests that are not needed since 2009-12-31.
48715         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
48716         gl_cv_header_working_inttypes_h.
48718 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
48720         * modules/strnlen (Depends-on): Remove memchr.
48721         The strnlen implementation doesn't need the memchr module's fixes; see
48722         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
48724         strtol: remove dependency on wchar
48725         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
48726         * modules/strtol (Depends-on): Remove wchar.
48728 2011-04-21  Eric Blake  <eblake@redhat.com>
48730         passfd: fix test regression on Linux
48731         * modules/passfd-tests (configure.ac): Correct socketpair check.
48733         passfd: speed up configure and drop unused code
48734         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
48735         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
48736         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
48737         Instead of probing at configure for unix_scm_rights_bsd44_way,
48738         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
48739         check to a struct member probe.
48740         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
48741         (sendfd, recvfd): Update preprocessor checks.
48742         * modules/passfd (Files): Reflect rename, and drop unused file.
48743         (Depends-on): Drop unused dependency.
48745         passfd: allow compilation on mingw
48746         * modules/sys_socket (Depends-on): Add sys_uio.
48747         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
48748         iovec and a minimal struct msghdr.
48749         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
48750         * tests/test-sys_socket.c (main): Enhance test.
48751         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
48752         guaranteed to provide what we need.
48753         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
48754         * modules/passfd-tests (Depends-on): Add sys_wait.
48755         * tests/test-passfd.c (main): Skip test on mingw, for now.
48756         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
48757         partial 'struct msghdr' implementation.
48759         sys_uio: new module
48760         * modules/sys_uio: New module.
48761         * modules/sys_uio-tests: Likewise.
48762         * lib/sys_uio.in.h: New file.
48763         * m4/sys_uio_h.m4: Likewise.
48764         * tests/test-sys_uio.c: Likewise.
48765         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
48766         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
48768 2011-04-20  Jim Meyering  <meyering@redhat.com>
48770         useless-if-before-free: avoid false-positive
48771         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
48772         disjunct so that it too requires a terminating ";".  Without that,
48773         this script would identify as useless one statement from gcc that
48774         was not:
48775           if (aligned_ptr)
48776             free (((void **) aligned_ptr) [-1]);
48778 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
48780         doc: update users.txt.
48781         * users.txt: Add barcode.
48783 2011-04-19  Bruno Haible  <bruno@clisp.org>
48785         ioctl: Remove link dependency on native Windows.
48786         * lib/fd-hook.h: Renamed from lib/close-hook.h.
48787         (gl_close_fn, gl_ioctl_fn): New types.
48788         (struct fd_hook): Renamed from struct close_hook. Change type of
48789         private_close_fn field. Add private_ioctl_fn field.
48790         (close_hook_fn): Add parameter for primary close method.
48791         (execute_close_hooks, execute_all_close_hooks): Likewise.
48792         (ioctl_hook_fn): New type.
48793         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
48794         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
48795         argument.
48796         (unregister_fd_hook): Renamed from unregister_close_hook.
48797         * lib/fd-hook.c: Renamed from lib/close-hook.c.
48798         Don't include <unistd.h>.
48799         (close): Remove undef.
48800         (anchor): Update.
48801         (execute_close_hooks): Add argument for primary close method.
48802         (execute_all_close_hooks): Likewise.
48803         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
48804         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
48805         argument. Allow each argument to be NULL.
48806         (unregister_fd_hook): Renamed from unregister_close_hook.
48807         * lib/close.c (rpl_close): Pass 'close' function pointer to
48808         execute_all_close_hooks.
48809         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
48810         (primary_ioctl): New function.
48811         (ioctl): Don't call ioctlsocket here. Instead, call
48812         execute_all_ioctl_hooks.
48813         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
48814         close method.
48815         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
48816         (fd_sockets_hook): Renamed from close_sockets_hook.
48817         (gl_sockets_startup, gl_sockets_cleanup): Update.
48818         * modules/fd-hook: Renamed from modules/close-hook. Update.
48819         * modules/close (Depends-on): Add fd-hook, remove close-hook.
48820         * modules/sockets (Depends-on): Likewise.
48821         * modules/ioctl (Depends-on): Add fd-hook.
48822         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
48823         GNULIB_SOCKET.
48825 2011-04-19  Bruno Haible  <bruno@clisp.org>
48827         Move the support of O_NONBLOCK in open() to the 'open' module.
48828         * modules/nonblocking (Depends-on): Remove 'open'.
48829         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
48830         gl_cv_have_open_O_NONBLOCK.
48831         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
48832         O_NONBLOCK support.
48833         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
48835 2011-04-17  Bruno Haible  <bruno@clisp.org>
48837         pipe2: Simplify code.
48838         * lib/pipe2.c (pipe2): Reduce code duplication.
48840 2011-04-17  Bruno Haible  <bruno@clisp.org>
48842         nonblocking: Add comment.
48843         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
48845 2011-04-17  Bruno Haible  <bruno@clisp.org>
48847         nonblocking: Add tests for sockets.
48848         * tests/test-nonblocking-socket.sh: New file.
48849         * tests/test-nonblocking-socket-main.c: New file.
48850         * tests/test-nonblocking-socket-child.c: New file.
48851         * tests/test-nonblocking-socket.h: New file.
48852         * tests/socket-server.h: New file.
48853         * tests/socket-client.h: New file.
48854         * modules/nonblocking-socket-tests: New file.
48855         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
48857 2011-04-17  Bruno Haible  <bruno@clisp.org>
48859         nonblocking: Add tests for pipes.
48860         * tests/test-nonblocking-pipe.sh: New file.
48861         * tests/test-nonblocking-pipe-main.c: New file.
48862         * tests/test-nonblocking-pipe-child.c: New file.
48863         * tests/test-nonblocking-pipe.h: New file.
48864         * tests/test-nonblocking-writer.h: New file.
48865         * tests/test-nonblocking-reader.h: New file.
48866         * tests/test-nonblocking-misc.h: New file.
48867         * modules/nonblocking-pipe-tests: New file.
48868         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
48870 2011-04-16  Bruno Haible  <bruno@clisp.org>
48872         gettext: Clarify the needed programmer actions.
48873         * modules/gettext (Notice): New field.
48874         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
48876 2011-04-16  Bruno Haible  <bruno@clisp.org>
48878         strchrnul: Tweak last commit.
48879         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
48880         bug.
48881         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
48882         as in _GL_FUNCDECL_SYS.
48883         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
48884         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
48886 2011-04-15  Eric Blake  <eblake@redhat.com>
48888         strchrnul: work around cygwin bug
48889         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
48890         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
48891         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
48892         * modules/string (Makefile.am): Substitute it.
48893         * lib/string.in.h (strchrnul): Use it.
48895 2011-04-15  Bruno Haible  <bruno@clisp.org>
48897         Don't require lib/stdio-write.c when only module 'stdio' is used.
48898         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
48899         invocation.
48900         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
48902 2011-04-14  Bruno Haible  <bruno@clisp.org>
48904         Support non-blocking pipe I/O in read() on native Windows.
48905         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
48906         (read): New declaration.
48907         * lib/read.c: New file.
48908         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
48909         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
48910         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
48911         vscanf): New declarations.
48912         * lib/stdio-read.c: New file.
48913         * m4/read.m4: New file.
48914         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
48915         REPLACE_READ.
48916         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
48917         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
48918         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
48919         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
48920         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
48921         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
48922         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
48923         * modules/read: New file.
48924         * modules/nonblocking (Files): Add lib/stdio-read.c.
48925         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
48926         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
48927         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
48928         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
48929         * modules/pread (Depends-on): Add read.
48930         * modules/safe-read (Depends-on): Likewise.
48931         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
48932         gets, scanf, vfscanf, vscanf): Verify signatures.
48933         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
48934         problem with non-blocking pipes.
48935         * doc/posix-functions/fgetc.texi: Likewise.
48936         * doc/posix-functions/fgets.texi: Likewise.
48937         * doc/posix-functions/fread.texi: Likewise.
48938         * doc/posix-functions/fscanf.texi: Likewise.
48939         * doc/posix-functions/getc.texi: Likewise.
48940         * doc/posix-functions/getchar.texi: Likewise.
48941         * doc/posix-functions/gets.texi: Likewise.
48942         * doc/posix-functions/scanf.texi: Likewise.
48943         * doc/posix-functions/vfscanf.texi: Likewise.
48944         * doc/posix-functions/vscanf.texi: Likewise.
48946 2011-04-14  Bruno Haible  <bruno@clisp.org>
48948         Support non-blocking pipe I/O in write() on native Windows.
48949         * lib/write.c (rpl_write): Split a write request that failed merely
48950         because the byte count was larger than the pipe buffer's size.
48951         * doc/posix-functions/write.texi: Mention the problem with large byte
48952         counts.
48954 2011-04-14  Bruno Haible  <bruno@clisp.org>
48956         wchar: Ensure that wchar_t gets defined on uClibc.
48957         * lib/wchar.in.h: On uClibc, include <stddef.h>.
48958         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
48960 2011-04-13  Bruno Haible  <bruno@clisp.org>
48962         safe-write, full-read: Avoid unnecessary compilation units.
48963         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
48964         (Depends-on): Remove safe-read. Add ssize_t.
48965         * modules/full-read (Files): Add lib/full-write.c.
48966         (Depends-on): Add full-write.
48968 2011-04-13  Bruno Haible  <bruno@clisp.org>
48970         Support non-blocking pipe I/O and SIGPIPE in pwrite().
48971         * modules/pwrite (Depends-on): Add 'write'.
48973 2011-04-13  Bruno Haible  <bruno@clisp.org>
48975         Support non-blocking pipe I/O in write() on native Windows.
48976         * lib/unistd.in.h (write): Enable replacement also if
48977         GNULIB_UNISTD_H_NONBLOCKING is 1.
48978         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
48979         (rpl_write): When failing to write on a non-blocking pipe, change
48980         errno from ENOSPC to EAGAIN.
48981         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
48982         putchar, puts, vfprintf, vprintf): Enable replacement also if
48983         GNULIB_STDIO_H_NONBLOCKING is 1.
48984         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
48985         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
48986         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
48987         CALL_WITH_SIGPIPE_EMULATION.
48988         (CALL_WITH_SIGPIPE_EMULATION): Use them.
48989         * m4/nonblocking.m4: New file.
48990         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
48991         for non-blocking I/O support.
48992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48993         GNULIB_UNISTD_H_NONBLOCKING.
48994         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
48995         required for non-blocking I/O support.
48996         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
48997         * modules/nonblocking (Files): Add m4/nonblocking.m4,
48998         lib/stdio-write.c, m4/asm-underscore.m4.
48999         (Depends-on): Add stdio, unistd.
49000         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
49001         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
49002         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
49003         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
49004         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
49005         problem with non-blocking pipes.
49006         * doc/posix-functions/fputc.texi: Likewise.
49007         * doc/posix-functions/fputs.texi: Likewise.
49008         * doc/posix-functions/fwrite.texi: Likewise.
49009         * doc/posix-functions/printf.texi: Likewise.
49010         * doc/posix-functions/putc.texi: Likewise.
49011         * doc/posix-functions/putchar.texi: Likewise.
49012         * doc/posix-functions/puts.texi: Likewise.
49013         * doc/posix-functions/vfprintf.texi: Likewise.
49014         * doc/posix-functions/vprintf.texi: Likewise.
49015         * doc/posix-functions/write.texi: Likewise.
49017 2011-04-10  Jim Meyering  <meyering@redhat.com>
49019         maint.mk: prohibit doubled words
49020         Detect them also when they're separated by a newline.
49021         There are 3 ways to customize it:
49022           - disable the test on a per file basis, as usual with rules using
49023             $(VC_LIST_EXCEPT)
49024           - replace the default doubled-word-selecting regexp (affects all files)
49025           - ignore a particular file-vs-doubled-word match
49026         I nearly used that last one to ignore the "is is" match in
49027         coreutils' NEWS file, since the text was "ls -is is ..."
49028         To do that, I would have added this line to cfg.mk:
49029           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
49030         but it would have ignored any "is is" match in NEWS.
49031         Low probability, but still...
49032         Instead, I changed the text, slightly:
49033           -  ls -is is now consistent with ls -lis in ignoring values returned
49034           +  "ls -is" is now consistent with ls -lis in ignoring values returned
49035         * top/maint.mk (prohibit_double_word_RE_): Provide default.
49036         (prohibit_doubled_word_): Define.
49037         (sc_prohibit_doubled_word): New rule.
49038         (sc_prohibit_the_the): Remove.  Subsumed by the above.
49040 2011-04-10  Jim Meyering  <meyering@redhat.com>
49042         maint: fix doubled-word typo in comment
49043         * m4/gethostname.m4: s/is is/it is/
49044         * m4/getdomainname.m4: Likewise.
49046 2011-04-10  Jim Meyering  <meyering@redhat.com>
49048         maint: remove doubled word: s/it it/it/
49049         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
49051 2011-04-10  Jim Meyering  <meyering@redhat.com>
49053         maint.mk: remove useless semicolon and backslash
49054         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
49055         semicolon and backslash.
49057 2011-04-10  Bruno Haible  <bruno@clisp.org>
49059         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
49060         * modules/stdint-tests (Depends-on): Add wchar.
49062 2011-04-10  Jim Meyering  <meyering@redhat.com>
49064         maint: remove doubled words in comments, e.g., s/a a/a/
49065         * lib/strptime.c (day_of_the_week): s/the the/the/
49066         * tests/test-chown.h (test_chown): s/a a/a/
49068         test-chown.h: correct a cast
49069         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
49070         when the destination is a stat.st_gid.
49072 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
49074         getaddrinfo: Fix test for sa_len member.
49075         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
49076         include <sys/types.h> before <sys/socket.h>.
49078 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
49080         maint: change "can not" to "cannot"
49081         * doc/posix-functions/iconv.texi (iconv): This one crossed line
49082         boundaries.
49084 2011-04-09  Jim Meyering  <meyering@redhat.com>
49086         maint: change "a a" to "a"
49087         * tests/test-lchown.h (test_lchown): s/a a/a/
49089         maint.mk: prohibit \<the the\>
49090         * top/maint.mk (sc_prohibit_the_the): New rule.
49092         maint: fix "the the" in comment
49093         * lib/count-one-bits.h: s/the the/the/
49095         maint: change "can not" to "cannot"
49096         But do not change the occurrences in maintain.texi or in
49097         build-aux/po/Makefile.in.in, which I presume comes from gettext.
49098         * doc/gnulib-tool.texi: s/can not/cannot/
49099         * doc/posix-functions/accept.texi (accept): Likewise.
49100         * doc/posix-functions/socket.texi (socket): Likewise.
49101         * lib/mbrtowc.c: Likewise.
49103         maint.mk: prohibit use of "can not"
49104         * top/maint.mk (sc_prohibit_can_not): New rule.
49105         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
49107 2011-04-09  Bruno Haible  <bruno@clisp.org>
49109         careadlinkat: Guard against misuse of careadlinkatcwd.
49110         * lib/careadlinkat.c: Include <stdlib.h>.
49111         (careadlinkatcwd): Check that the fd argument is as expected.
49113 2011-04-09  Bruno Haible  <bruno@clisp.org>
49115         careadlinkat: Use common coding style.
49116         * lib/careadlinkat.c: Move gnulib includes after system includes.
49118 2011-04-09  Bruno Haible  <bruno@clisp.org>
49120         careadlinkat: Clarify specification.
49121         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
49122         (careadlinkatcwd): Add comment.
49123         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
49125 2011-04-09  Bruno Haible  <bruno@clisp.org>
49127         areadlinkat: Avoid link error on many platforms.
49128         * modules/areadlinkat (Depends-on): Add areadlink.
49130 2011-04-09  Bruno Haible  <bruno@clisp.org>
49132         allocator, careadlinkat: Fix double-inclusion guard.
49133         * lib/allocator.h: Fix double-inclusion guard.
49134         * lib/careadlinkat.h: Likewise.
49136 2011-04-09  Bruno Haible  <bruno@clisp.org>
49138         relocatable-prog-wrapper: Update after module 'areadlink' changed.
49139         * lib/relocwrapper.c: Update dependencies hierarchy.
49140         * build-aux/install-reloc: Update list of files to be compiled.
49141         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
49142         lib/allocator.[hc].
49144 2011-04-08  Eric Blake  <eblake@redhat.com>
49146         strftime: silence gnulib-tool warning
49147         * modules/strftime-tests (Depends-on): Drop automatic dependency.
49149 2011-04-08  Bruno Haible  <bruno@clisp.org>
49151         verify: Fix syntax error with GCC 4.6 in C++ mode.
49152         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
49153         (HAVE_STATIC_ASSERT): New macro.
49154         (verify_true, verify): Use 'static_assert' if it is supported and
49155         '_Static_assert' is not supported.
49157 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
49159         allocator: New module.
49160         * modules/allocator, lib/allocator.c: New files.
49161         * lib/allocator.h (stdlib_allocator): New decl.
49162         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
49163         Remove.  Do not include <stdlib.h>.
49164         (careadlinkat): Use stdlib_allocator instead of rolling our own.
49165         * modules/careadlinkat (Files): Remove lib/allocator.h.
49166         (Depends-on): Add allocator.
49168         stdlib: let modules use system malloc, realloc
49169         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
49170         if !_GL_USE_STDLIB_ALLOC.
49171         (malloc, realloc): Limit this change to a smaller scope.
49173         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
49174         (malloc, realloc): Don't #undef; no longer needed.
49175         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
49176         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
49177         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
49178         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
49179         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
49180         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
49181         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
49182         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
49184         careadlinkat: rename members to avoid problem
49185         * lib/allocator.h (struct allocator): Rename members from
49186         malloc/realloc to allocate/reallocate, to avoid problems if malloc
49187         and realloc are #define'd.  Reported by Eric Blake in
49188         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
49189         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
49191 2011-04-08  Eric Blake  <eblake@redhat.com>
49193         nonblocking: reduce dependency
49194         * tests/test-nonblocking.c: Only test sockets when in use.
49195         * modules/nonblocking-tests (Depends-on): Drop socket.
49196         (Makefile.am): Link even if sockets are not present.
49197         * modules/pipe2-tests (Makefile.am): Likewise.
49198         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
49200         pipe2: fix O_NONBLOCK support on mingw
49201         * modules/pipe2 (Depends-on): Add nonblocking.
49202         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
49203         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
49204         * tests/test-nonblocking.c (main): Likewise.
49205         * modules/pipe2-tests (Makefile.am): Avoid link failure.
49207         fcntl-h: fix O_ACCMODE on cygwin
49208         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
49209         * lib/fcntl.in.h (O_ACCMODE): Fix it.
49211         pipe-filter: drop O_NONBLOCK workarounds
49212         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
49213         * modules/pipe-filter-ii (Depends-on): Likewise.
49214         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
49216         nonblocking: provide O_NONBLOCK for mingw
49217         * modules/nonblocking (Depends-on): Add open.
49218         (configure.ac): Set new witness macro.
49219         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
49220         * modules/fcntl-h (Makefile.am): Substitute it.
49221         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
49222         nonblocking module is in use.
49223         * lib/nonblocking.c: Adjust portability test.
49224         * lib/open.c (open): Don't let native open see gnulib flag.
49225         * tests/test-fcntl-h.c (main): Enhance test.
49226         * tests/test-open.h (test_open): Likewise.
49227         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
49229         careadlinkat: fix compilation error on mingw
49230         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
49231         within struct allocator.
49233 2011-04-06  Eric Blake  <eblake@redhat.com>
49235         binary-io: relicense under LGPLv2+
49236         * modules/binary-io (License): Relax to LGPLv2+.
49237         Requested for libvirt, and required by pipe2.
49239 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
49241         verify: use _Static_assert if available
49242         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
49243         (verify_true, verify): Use it if available.  This generates better
49244         diagnostics with GCC 4.6.0 and later.
49246 2011-04-05  Bruno Haible  <bruno@clisp.org>
49248         Remove leftover generated .h files after config.status changed.
49250         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
49251         GL_GENERATE_ALLOCA_H.
49252         * modules/alloca-opt (Makefile.am): Remove alloca.h if
49253         GL_GENERATE_ALLOCA_H evaluates to false.
49255         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
49256         GL_GENERATE_ARGZ_H.
49257         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
49258         evaluates to false.
49260         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
49261         GL_GENERATE_BYTESWAP_H.
49262         * modules/byteswap (Makefile.am): Remove byteswap.h if
49263         GL_GENERATE_BYTESWAP_H evaluates to false.
49265         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
49266         GL_GENERATE_ERRNO_H.
49267         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
49268         evaluates to false.
49270         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
49271         GL_GENERATE_FLOAT_H.
49272         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
49273         evaluates to false.
49275         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
49276         GL_GENERATE_FNMATCH_H.
49277         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
49278         GL_GENERATE_FNMATCH_H evaluates to false.
49280         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
49281         GL_GENERATE_GLOB_H.
49282         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
49283         evaluates to false.
49285         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
49286         automake conditional GL_GENERATE_ICONV_H.
49287         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
49288         evaluates to false.
49290         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
49291         GL_GENERATE_NETINET_IN_H.
49292         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
49293         GL_GENERATE_NETINET_IN_H evaluates to false.
49295         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
49296         conditional GL_GENERATE_PTHREAD_H.
49297         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
49298         * modules/pthread (Makefile.am): Remove pthread.h if
49299         GL_GENERATE_PTHREAD_H evaluates to false.
49301         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
49302         GL_GENERATE_SCHED_H.
49303         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
49304         evaluates to false.
49306         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
49307         conditional GL_GENERATE_SELINUX_CONTEXT_H.
49308         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
49309         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
49311         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
49312         GL_GENERATE_STDARG_H.
49313         * modules/stdarg (Makefile.am): Remove stdarg.h if
49314         GL_GENERATE_STDARG_H evaluates to false.
49316         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
49317         GL_GENERATE_STDBOOL_H.
49318         * modules/stdbool (Makefile.am): Remove stdbool.h if
49319         GL_GENERATE_STDBOOL_H evaluates to false.
49321         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
49322         conditional GL_GENERATE_STDDEF_H.
49323         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
49324         * modules/stddef (Makefile.am): Remove stddef.h if
49325         GL_GENERATE_STDDEF_H evaluates to false.
49327         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
49328         GL_GENERATE_STDINT_H.
49329         * modules/stdint (Makefile.am): Remove stdint.h if
49330         GL_GENERATE_STDINT_H evaluates to false.
49332         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
49333         GL_GENERATE_SYSEXITS_H.
49334         * modules/sysexits (Makefile.am): Remove sysexits.h if
49335         GL_GENERATE_SYSEXITS_H evaluates to false.
49337         Reported by Karl Berry and Ralf Wildenhues.
49339 2011-04-05  Bruno Haible  <bruno@clisp.org>
49341         Ensure to rebuild generated .h files when config.status has changed.
49342         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
49343         config.status.
49344         * modules/ctype (Makefile.am): Likewise.
49345         * modules/dirent (Makefile.am): Likewise.
49346         * modules/errno (Makefile.am): Likewise.
49347         * modules/fcntl-h (Makefile.am): Likewise.
49348         * modules/float (Makefile.am): Likewise.
49349         * modules/getopt-posix (Makefile.am): Likewise.
49350         * modules/glob (Makefile.am): Likewise.
49351         * modules/iconv-h (Makefile.am): Likewise.
49352         * modules/inttypes (Makefile.am): Likewise.
49353         * modules/langinfo (Makefile.am): Likewise.
49354         * modules/locale (Makefile.am): Likewise.
49355         * modules/math (Makefile.am): Likewise.
49356         * modules/netdb (Makefile.am): Likewise.
49357         * modules/netinet_in (Makefile.am): Likewise.
49358         * modules/poll-h (Makefile.am): Likewise.
49359         * modules/pthread (Makefile.am): Likewise.
49360         * modules/pty (Makefile.am): Likewise.
49361         * modules/sched (Makefile.am): Likewise.
49362         * modules/search (Makefile.am): Likewise.
49363         * modules/selinux-h (Makefile.am): Likewise.
49364         * modules/signal (Makefile.am): Likewise.
49365         * modules/spawn (Makefile.am): Likewise.
49366         * modules/stdarg (Makefile.am): Likewise.
49367         * modules/stdbool (Makefile.am): Likewise.
49368         * modules/stddef (Makefile.am): Likewise.
49369         * modules/stdint (Makefile.am): Likewise.
49370         * modules/stdio (Makefile.am): Likewise.
49371         * modules/stdlib (Makefile.am): Likewise.
49372         * modules/string (Makefile.am): Likewise.
49373         * modules/strings (Makefile.am): Likewise.
49374         * modules/sys_file (Makefile.am): Likewise.
49375         * modules/sys_ioctl (Makefile.am): Likewise.
49376         * modules/sys_select (Makefile.am): Likewise.
49377         * modules/sys_socket (Makefile.am): Likewise.
49378         * modules/sys_stat (Makefile.am): Likewise.
49379         * modules/sys_time (Makefile.am): Likewise.
49380         * modules/sys_times (Makefile.am): Likewise.
49381         * modules/sys_utsname (Makefile.am): Likewise.
49382         * modules/sys_wait (Makefile.am): Likewise.
49383         * modules/sysexits (Makefile.am): Likewise.
49384         * modules/termios (Makefile.am): Likewise.
49385         * modules/time (Makefile.am): Likewise.
49386         * modules/unistd (Makefile.am): Likewise.
49387         * modules/wchar (Makefile.am): Likewise.
49388         * modules/wctype-h (Makefile.am): Likewise.
49389         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
49391 2011-04-05  Bruno Haible  <bruno@clisp.org>
49393         pipe2: Relicense under LGPLv2+.
49394         * modules/pipe2 (License): Change to LGPLv2+.
49395         Requested by Eric Blake, for libvirt.
49397 2011-04-05  Bruce Korb  <bkorb@gnu.org>
49399         bootstrap: compute gnulib_extra_files after updating build_aux
49400         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
49401         change build_aux or also supply gnulib_extra_files.  Handle correctly.
49403 2011-04-05  Eric Blake  <eblake@redhat.com>
49405         bootstrap: preserve git whitelist item sorting
49406         * build-aux/bootstrap (sort_patterns): New function.
49407         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
49409 2011-04-05  Simon Josefsson  <simon@josefsson.org>
49411         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
49412         sc_space_tab check.
49414 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
49416         areadlink, areadlinkat: rewrite in terms of careadlinkat
49417         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
49418         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
49419         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
49420         (malloc, realloc): Remove #undefs.
49421         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
49422         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
49423         readlink, ssize_t, stdint, unistd.
49424         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
49425         areadlink, stdint.
49427         careadlinkat: new module
49428         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
49429         * modules/careadlinkat: New files, written by me with
49430         a review and feedback from Ben Pfaff in
49431         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
49433 2011-04-01  Bruno Haible  <bruno@clisp.org>
49435         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
49436         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
49437         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
49438         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
49439         Reported by Bruce Korb <bruce.korb@gmail.com>.
49441 2011-04-01  Bruno Haible  <bruno@clisp.org>
49443         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
49444         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
49445         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
49446         * modules/wcpcpy (Depends-on): Add extensions.
49447         * modules/wcpncpy (Depends-on): Likewise.
49448         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
49449         systems.
49450         * doc/posix-functions/wcpncpy.texi: Likewise.
49451         * doc/posix-functions/wcwidth.texi: Likewise.
49453 2011-03-31  Eric Blake  <eblake@redhat.com>
49455         nonblocking: fix mingw test failures
49456         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
49457         non-blocking flag on regular file.
49458         (get_nonblocking_flag): Set errno on invalid fd.
49459         * tests/test-nonblocking.c (main): Avoid test failure on
49460         directories if fchdir is not active.
49461         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
49463 2011-03-31  Bruno Haible  <bruno@clisp.org>
49465         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
49466         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
49467         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
49468         Reported by Simon Josefsson <simon@josefsson.org>.
49470 2011-03-31  Bruno Haible  <bruno@clisp.org>
49471         and Eric Blake  <eblake@redhat.com>
49473         nonblocking: new module
49474         * modules/nonblocking: New module.
49475         * modules/nonblocking-tests: Likewise.
49476         * lib/nonblocking.h: New file.
49477         * lib/nonblocking.c: Likewise.
49478         * tests/test-nonblocking.c: New test.
49479         * lib/ioctl.c (ioctl) [mingw]: Update comment.
49481 2011-03-30  Bruno Haible  <bruno@clisp.org>
49483         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
49484         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
49485         instead of 'printf' format for GCC >= 4.4.
49486         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
49487         (fprintf, printf, vfprintf, vprintf): Declare with
49488         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
49489         the system's vfprintf() function.
49490         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
49492 2011-03-30  Eric Blake  <eblake@redhat.com>
49494         passfd: fix scoping bug
49495         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
49496         before sendmsg/recvmsg.
49498         passfd: standardize coding conventions
49499         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
49500         can be learned at compile time.
49501         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
49502         ifdefs.
49503         (sendfd, recvfd): Follow gnulib code conventions.
49505         passfd: fix incorrect sendmsg arguments
49506         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
49507         incorrect msg_controllen value.
49508         * modules/passfd-tests (Depends-on): Check for alarm.
49509         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
49510         Reported by Bastien ROUCARIES.
49512 2011-03-30  Bruno Haible  <bruno@clisp.org>
49514         c-strcasestr: Relicense under LGPLv2+.
49515         * modules/c-strcasestr (License): Change to LGPLv2+.
49516         Requested by Eric Blake, for libvirt.
49518 2011-03-30  Simon Josefsson  <simon@josefsson.org>
49520         * users.txt: Add libidn2.  Fix libtasn1 link.
49522 2011-03-30  Jim Meyering  <meyering@redhat.com>
49524         tests: readlink* ("",... fails with EINVAL on newer kernels
49525         readlink and readlinkat have typically failed with ENOENT for
49526         the invalid, empty file name,  "".  However, with the advent
49527         of linux-2.6.39, they fail with EINVAL.
49528         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
49529         when operating on the empty file name.
49530         * tests/test-readlink.h (test_readlink): Likewise.
49532 2011-03-29  Bruno Haible  <bruno@clisp.org>
49534         Relicense some modules under LGPLv2+, for libidn2.
49535         * modules/array-mergesort (License): Change to LGPLv2+.
49536         * modules/c-strcaseeq (License): Likewise.
49537         * modules/striconveh (License): Likewise.
49538         * modules/striconveha (License): Likewise.
49539         * modules/uniconv/base (License): Likewise.
49540         * modules/uniconv/u8-conv-from-enc (License): Likewise.
49541         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
49542         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
49543         * modules/unictype/base (License): Likewise.
49544         * modules/unictype/bidiclass-of (License): Likewise.
49545         * modules/unictype/category-M (License): Likewise.
49546         * modules/unictype/category-none (License): Likewise.
49547         * modules/unictype/category-of (License): Likewise.
49548         * modules/unictype/category-test (License): Likewise.
49549         * modules/unictype/category-test-withtable (License): Likewise.
49550         * modules/unictype/combining-class (License): Likewise.
49551         * modules/unictype/joiningtype-of (License): Likewise.
49552         * modules/unictype/scripts (License): Likewise.
49553         * modules/uninorm/base (License): Likewise.
49554         * modules/uninorm/canonical-decomposition (License): Likewise.
49555         * modules/uninorm/composition (License): Likewise.
49556         * modules/uninorm/decompose-internal (License): Likewise.
49557         * modules/uninorm/decomposition-table (License): Likewise.
49558         * modules/uninorm/nfc (License): Likewise.
49559         * modules/uninorm/nfd (License): Likewise.
49560         * modules/uninorm/u32-normalize (License): Likewise.
49561         * modules/unistr/base (License): Likewise.
49562         * modules/unistr/u32-cpy (License): Likewise.
49563         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
49564         * modules/unistr/u32-to-u8 (License): Likewise.
49565         * modules/unistr/u32-uctomb (License): Likewise.
49566         * modules/unistr/u8-check (License): Likewise.
49567         * modules/unistr/u8-mblen (License): Likewise.
49568         * modules/unistr/u8-mbtouc (License): Likewise.
49569         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
49570         * modules/unistr/u8-mbtoucr (License): Likewise.
49571         * modules/unistr/u8-prev (License): Likewise.
49572         * modules/unistr/u8-strlen (License): Likewise.
49573         * modules/unistr/u8-to-u32 (License): Likewise.
49574         * modules/unistr/u8-uctomb (License): Likewise.
49575         * modules/unitypes (License): Likewise.
49576         Requested by Simon Josefsson.
49578 2011-03-29  Simon Josefsson  <simon@josefsson.org>
49580         lib-symbol-visibility: Add a notice.
49581         * modules/lib-symbol-visibility (Notice): New field.
49583 2011-03-29  Bruno Haible  <bruno@clisp.org>
49585         getaddrinfo: Doc fix.
49586         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
49587         section "fixed in Gnulib".
49589 2011-03-28  Simon Josefsson  <simon@josefsson.org>
49591         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
49592         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
49594 2011-03-26  Bruno Haible  <bruno@clisp.org>
49596         unictype/property-byname: Reduce the number of load-time relocations.
49597         * lib/unictype/pr_byname.c: Include <stdlib.h>.
49598         (UC_PROPERTY_INDEX_*): New enumeration values.
49599         (uc_property_byname): Convert an index from the lookup table to an
49600         uc_property_t.
49601         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
49602         values.
49604 2011-03-26  Bruno Haible  <bruno@clisp.org>
49606         unictype/property-byname: Allow omitted word separators and aliases.
49607         * lib/unictype/pr_byname.gperf: Add property names without word
49608         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
49609         for 'space'.
49611 2011-03-26  Bruno Haible  <bruno@clisp.org>
49613         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
49614         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
49615         also hyphens to space.
49616         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
49617         without spaces.
49618         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
49620 2011-03-26  Bruno Haible  <bruno@clisp.org>
49622         unictype/joiningtype-byname: Recognize long names as well.
49623         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
49624         a long name.
49625         * lib/unictype/joiningtype_byname.c: Include <string.h>,
49626         unictype/joiningtype_byname.h.
49627         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
49628         * lib/unictype/joiningtype_byname.gperf: New file.
49629         * modules/unictype/joiningtype-byname (Files): Add
49630         lib/unictype/joiningtype_byname.gperf.
49631         (Depends-on): Add gperf.
49632         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
49633         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
49634         long names.
49636         Tests for module 'unictype/joiningtype-longname'.
49637         * modules/unictype/joiningtype-longname-tests: New file.
49638         * tests/unictype/test-joiningtype_longname.c: New file.
49640         New module 'unictype/joiningtype-longname'.
49641         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
49642         * lib/unictype/joiningtype_longname.c: New file.
49643         * modules/unictype/joiningtype-longname: New file.
49644         * modules/unictype/joiningtype-all (Depends-on): Add
49645         unictype/joiningtype-longname.
49647 2011-03-26  Bruno Haible  <bruno@clisp.org>
49649         unictype/bidiclass-byname: Recognize long names as well.
49650         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
49651         name.
49652         * lib/unictype/bidi_byname.c: Include <string.h>,
49653         unictype/bidi_byname.h.
49654         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
49655         * lib/unictype/bidi_byname.gperf: New file.
49656         * modules/unictype/bidiclass-byname (Files): Add
49657         lib/unictype/bidi_byname.gperf.
49658         (Depends-on): Add gperf.
49659         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
49660         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
49661         long names.
49663         Tests for module 'unictype/bidiclass-longname'.
49664         * modules/unictype/bidiclass-longname-tests: New file.
49665         * tests/unictype/test-bidi_longname.c: New file.
49667         New module 'unictype/bidiclass-longname'.
49668         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
49669         * lib/unictype/bidi_longname.c: New file.
49670         * modules/unictype/bidiclass-longname: New file.
49671         * modules/unictype/bidiclass-all (Depends-on): Add
49672         unictype/bidiclass-longname.
49674 2011-03-26  Bruno Haible  <bruno@clisp.org>
49676         unictype/bidi*: Rename modules.
49677         * modules/unictype/bidiclass-all: Renamed from
49678         modules/unictype/bidicategory-all.
49679         * modules/unictype/bidiclass-name: Renamed from
49680         modules/unictype/bidiclass-name.
49681         (Description): Update.
49682         * modules/unictype/bidiclass-name-tests: Renamed from
49683         modules/unictype/bidicategory-name-tests.
49684         * modules/unictype/bidiclass-byname: Renamed from
49685         modules/unictype/bidicategory-byname.
49686         (Description): Update.
49687         * modules/unictype/bidiclass-byname-tests: Renamed from
49688         modules/unictype/bidicategory-byname-tests.
49689         * modules/unictype/bidiclass-of: Renamed from
49690         modules/unictype/bidicategory-of.
49691         (Description): Update.
49692         * modules/unictype/bidiclass-of-tests: Renamed from
49693         modules/unictype/bidicategory-of-tests.
49694         * modules/unictype/bidiclass-test: Renamed from
49695         modules/unictype/bidicategory-test.
49696         (Description): Update.
49697         * modules/unictype/bidiclass-test-tests: Renamed from
49698         modules/unictype/bidicategory-test-tests.
49699         * modules/unictype/bidicategory-all: New file, a simple redirection.
49700         * modules/unictype/bidicategory-name: Likewise.
49701         * modules/unictype/bidicategory-byname: Likewise.
49702         * modules/unictype/bidicategory-of: Likewise.
49703         * modules/unictype/bidicategory-test: Likewise.
49704         * modules/unictype/property-bidi-* (Dependencies): Update.
49705         * lib/unictype/bidi_*.c: Update comment.
49707 2011-03-26  Bruno Haible  <bruno@clisp.org>
49709         unictype/bidi*: Rename functions, part 2.
49710         * modules/unictype/bidicategory-name (configure.ac): Update required
49711         libunistring version.
49712         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
49714 2011-03-25  Bruno Haible  <bruno@clisp.org>
49716         New module 'unictype/combining-class-all'.
49717         * modules/unictype/combining-class-all: New file.
49719         Tests for module 'unictype/combining-class-byname'.
49720         * modules/unictype/combining-class-byname-tests: New file.
49721         * tests/unictype/test-combiningclass_byname.c: New file.
49723         New module 'unictype/combining-class-byname'.
49724         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
49725         * lib/unictype/combiningclass_byname.c: New file.
49726         * lib/unictype/combiningclass_byname.gperf: New file.
49727         * modules/unictype/combining-class-byname: New file.
49729         Tests for module 'unictype/combining-class-longname'.
49730         * modules/unictype/combining-class-longname-tests: New file.
49731         * tests/unictype/test-combiningclass_longname.c: New file.
49733         New module 'unictype/combining-class-longname'.
49734         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
49735         * lib/unictype/combiningclass_longname.c: New file.
49736         * modules/unictype/combining-class-longname: New file.
49738         Tests for module 'unictype/combining-class-name'.
49739         * modules/unictype/combining-class-name-tests: New file.
49740         * tests/unictype/test-combiningclass_name.c: New file.
49742         New module 'unictype/combining-class-name'.
49743         * lib/unictype.in.h (uc_combining_class_name): New declaration.
49744         * lib/unictype/combiningclass_name.c: New file.
49745         * modules/unictype/combining-class-name: New file.
49747 2011-03-25  Bruno Haible  <bruno@clisp.org>
49749         unictype/combining-class: Rename source files.
49750         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
49751         of unictype/combining.h.
49752         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
49753         Update.
49754         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
49755         * modules/unictype/combining-class (Description): Fix.
49756         (Files, Makefile.am): Update.
49757         * tests/unictype/test-combiningclass.c: Renamed from
49758         tests/unictype/test-combining.c.
49759         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
49761 2011-03-25  Bruno Haible  <bruno@clisp.org>
49763         unictype: Update list of canonical combining classes.
49764         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
49766 2011-03-25  Bruno Haible  <bruno@clisp.org>
49768         unictype/category-byname: Recognize long names as well.
49769         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
49770         a long name.
49771         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
49772         unictype/categ_byname.h.
49773         (UC_CATEGORY_INDEX_*): New enumeration values.
49774         (uc_general_category_byname): Use uc_general_category_lookup and
49775         convert from index to value.
49776         * lib/unictype/categ_byname.gperf: New file.
49777         * modules/unictype/category-byname (Files): Add
49778         lib/unictype/categ_byname.gperf.
49779         (Depends-on): Add gperf.
49780         (Makefile.am): Add rule for generating unictype/categ_byname.h.
49781         * tests/unictype/test-categ_byname.c (main): Test the recognition of
49782         long names.
49784         Tests for module 'unictype/category-longname'.
49785         * modules/unictype/category-longname-tests: New file.
49786         * tests/unictype/test-categ_longname.c: New file.
49788         New module 'unictype/category-longname'.
49789         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
49790         * lib/unictype/categ_longname.c: New file.
49791         * modules/unictype/category-longname: New file.
49792         * modules/unictype/category-all (Depends-on): Add it.
49794 2011-03-25  Bruno Haible  <bruno@clisp.org>
49796         Tests for module 'unictype/category-LC'.
49797         * modules/unictype/category-LC-tests: New file.
49798         * tests/unictype/test-categ_LC.c: New file, automatically generated.
49800         New module 'unictype/category-LC'.
49801         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
49802         (UC_CATEGORY_LC): New declaration.
49803         (UC_CASED_LETTER): New macro.
49804         * lib/gen-uni-tables.c (is_category_LC): New function.
49805         (output_categories): Also handle category LC.
49806         (UC_CATEGORY_MASK_LC): New enumeration value.
49807         (general_category_byname): Also handle category LC.
49808         * lib/unictype/categ_LC.c: New file.
49809         * lib/unictype/categ_LC.h: New file, automatically generated.
49810         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
49811         category LC.
49812         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
49813         * modules/unictype/category-LC: New file.
49814         * modules/unictype/category-byname (Depends-on): Add
49815         unictype/category-LC.
49816         * modules/unictype/category-all (Depends-on): Likewise.
49818 2011-03-25  Eric Blake  <eblake@redhat.com>
49820         xmalloc: revert yesterday's regression
49821         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
49822         realloc's underlying behavior (allowing allocation of zero-size
49823         objects, especially if malloc-gnu is also in use).
49825 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
49827         maint.mk: add missing version to VC-tag
49828         * top/maint.mk: git tag was missing actual tag name; add it.
49830         valgrind: do leak checking, and exit with code 1 on error (not 0)
49831         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
49832         to VALGRIND.
49834 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
49836         posix-modules: say what it does.
49837         * posix-modules: Add a line to the --help output saying what it does.
49839 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
49841         xmalloc: Do not leak if underlying realloc is C99 compatible.
49842         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
49843         This avoids a leak on C99-based systems.  See
49844         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
49846 2011-03-24  Eric Blake  <eblake@redhat.com>
49848         realloc: document portability problem
49849         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
49850         passing 0 size to realloc.
49852 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
49854         doc: update users.txt
49855         * users.txt: Add cvsps, tmpwatch
49857 2011-03-23  Matt Rice  <ratmice@gmail.com>
49859         doc: update users.txt
49860         * users.txt: Add gdb.
49862 2011-03-23  Jim Meyering  <meyering@redhat.com>
49864         doc: update users.txt
49865         Looking through matches up to the following URL (there are still
49866         several more pages), I found several projects that use gnulib:
49867         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
49868         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
49869         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
49871 2011-03-22  Bruno Haible  <bruno@clisp.org>
49873         unictype/bidi*: Rename functions.
49874         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
49875         uc_bidi_class, uc_is_bidi_class): New declarations.
49876         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
49877         uc_bidi_category_byname.
49878         (uc_bidi_category_byname): New function.
49879         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
49880         u_bidi_category_name.
49881         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
49882         (uc_bidi_category_name): New function.
49883         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
49884         uc_bidi_category.
49885         (uc_bidi_category): New function.
49886         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
49887         uc_is_bidi_category. Invoke uc_bidi_class.
49888         (uc_is_bidi_category): New function.
49889         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
49890         instead of uc_bidi_category_byname.
49891         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
49892         instead of uc_bidi_category_name.
49893         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
49894         uc_bidi_category.
49895         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
49896         instead of uc_is_bidi_category.
49898 2011-03-21  Bruno Haible  <bruno@clisp.org>
49900         New module 'unictype/joininggroup-all'.
49901         * modules/unictype/joininggroup-all: New file.
49903         Tests for module 'unictype/joininggroup-of'.
49904         * modules/unictype/joininggroup-of-tests: New file.
49905         * tests/unictype/test-joininggroup_of.c: New file.
49906         * tests/unictype/test-joininggroup_of.h: New file, automatically
49907         generated by gen-uni-tables.
49909         New module 'unictype/joininggroup-of'.
49910         * modules/unictype/joininggroup-of: New file.
49911         * lib/unictype/joininggroup_of.c: New file.
49912         * lib/unictype/joininggroup_of.h: New file, automatically generated by
49913         gen-uni-tables.
49915         Tests for module 'unictype/joininggroup-byname'.
49916         * modules/unictype/joininggroup-byname-tests: New file.
49917         * tests/unictype/test-joininggroup_byname.c: New file.
49919         New module 'unictype/joininggroup-byname'.
49920         * modules/unictype/joininggroup-byname: New file.
49921         * lib/unictype/joininggroup_byname.c: New file.
49922         * lib/unictype/joininggroup_byname.gperf: New file.
49924         Tests for module 'unictype/joininggroup-name'.
49925         * modules/unictype/joininggroup-name-tests: New file.
49926         * tests/unictype/test-joininggroup_name.c: New file.
49928         New module 'unictype/joininggroup-name'.
49929         * modules/unictype/joininggroup-name: New file.
49930         * lib/unictype/joininggroup_name.c: New file.
49931         * lib/unictype/joininggroup_name.h: New file.
49933         New module 'unictype/joiningtype-all'.
49934         * modules/unictype/joiningtype-all: New file.
49936         Tests for module 'unictype/joiningtype-of'.
49937         * modules/unictype/joiningtype-of-tests: New file.
49938         * tests/unictype/test-joiningtype_of.c: New file.
49939         * tests/unictype/test-joiningtype_of.h: New file, automatically
49940         generated by gen-uni-tables.
49942         New module 'unictype/joiningtype-of'.
49943         * modules/unictype/joiningtype-of: New file.
49944         * lib/unictype/joiningtype_of.c: New file.
49945         * lib/unictype/joiningtype_of.h: New file, automatically generated by
49946         gen-uni-tables.
49948         Tests for module 'unictype/joiningtype-byname'.
49949         * modules/unictype/joiningtype-byname-tests: New file.
49950         * tests/unictype/test-joiningtype_byname.c: New file.
49952         New module 'unictype/joiningtype-byname'.
49953         * modules/unictype/joiningtype-byname: New file.
49954         * lib/unictype/joiningtype_byname.c: New file.
49956         Tests for module 'unictype/joiningtype-name'.
49957         * modules/unictype/joiningtype-name-tests: New file.
49958         * tests/unictype/test-joiningtype_name.c: New file.
49960         New module 'unictype/joiningtype-name'.
49961         * modules/unictype/joiningtype-name: New file.
49962         * lib/unictype/joiningtype_name.c: New file.
49964         unictype: Add support for Arabic shaping properties.
49965         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
49966         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
49967         declarations.
49968         (UC_JOINING_GROUP_*): New enumeration values.
49969         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
49970         declarations.
49971         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
49972         (unicode_joining_type): New variable.
49973         (UC_JOINING_GROUP_*): New enumeration values.
49974         (unicode_joining_group): New variable.
49975         (fill_arabicshaping, joining_type_as_c_identifier,
49976         output_joining_type_test, output_joining_type,
49977         joining_group_as_c_identifier, output_joining_group_test,
49978         output_joining_group): New functions.
49979         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
49980         fill_arabicshaping and output_joining_type_test, output_joining_type,
49981         output_joining_group_test, output_joining_group.
49982         Reported by Simon Josefsson.
49984 2011-03-21  Jim Meyering  <meyering@redhat.com>
49986         strftime: fix a bug in yesterday's change
49987         * lib/strftime.c (add): Accommodate width's initial value of -1.
49988         Otherwise, nstrftime would copy uninitialized data into
49989         the result buffer.
49991 2011-03-21  Jim Meyering  <meyering@redhat.com>
49993         tests: add strftime-tests module
49994         * tests/test-strftime.c: New file.
49995         * modules/strftime-tests: New module.
49997 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
49999         strftime: don't assume a byte count fits in 'int'
50000         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
50001         found this problem by static analysis, using gcc -Wstrict-overflow
50002         (GCC 4.5.2, x86-64).  This reported an optimization that depended
50003         on an integer overflow having undefined behavior, but it turns out
50004         that the argument is a size, which might not fit in 'int' anyway,
50006 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
50008         stdio: don't require ignore_value around fwrite
50010         This patch works around libc bug 11959
50011         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
50012         Without this patch, applications must often write
50013         ignore_value (fwrite (...)) even though the ignore_value is
50014         not helpful here.  It's common to write many objects, using
50015         fwrite/printf/etc., and then use ferror to detect output error.
50017         I considered making this patch optional, but decided against it,
50018         because libc is obviously being inconsistent here: there is no
50019         reason libc should insist that user code must inspect fwrite
50020         return's value without also insisting that it inspect printf's,
50021         putchar's, etc.  If user code wants to have a strict style where
50022         all these functions' values are checked (so that ferror need not
50023         be checked), we could add support for that style in a new gnulib
50024         module, but in the meantime it's better to be consistent and to
50025         support common usage.
50027         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
50028         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
50029         that we are compiling in checking mode, and if not C++, and
50030         if not already wrapping fwrite for some other reason.
50031         (fwrite): #define to rpl_fwrite if the latter is defined.
50033 2011-03-20  Bruno Haible  <bruno@clisp.org>
50035         verror: Fix compilation error introduced on 2011-02-13.
50036         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
50037         instead of __attribute__.
50038         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50040 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
50041             Bruno Haible  <bruno@clisp.org>
50043         socklen: do not depend on sys_socket
50044         While trying to modify Emacs to use gnulib's socklen module,
50045         I discovered a circular dependency: socklen depends on sys_socket
50046         and vice versa.  Emacs can use socklen, but it does not need
50047         sys_socket because it has its own substitute for sys/socket.h.
50048         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
50049         gl_TYPE_SOCKLEN_T.
50050         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
50051         gl_PREREQ_SYS_H_SOCKET.
50052         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
50053         gl_PREREQ_SYS_H_SOCKET.
50054         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
50055         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
50056         * modules/socklen (Depends-on): Do not depend on sys_socket.
50057         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
50059 2011-03-20  Jim Meyering  <meyering@redhat.com>
50061         maint.mk: sort file names *after* new transformation
50062         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
50063         prefix would have led to an unwarranted failure in GNU parted.
50064         Sort after that transformation.
50066 2011-03-19  Jim Meyering  <meyering@redhat.com>
50068         maint.mk: fix po-file syntax-check rule
50069         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
50070         Patch by Bruno Haible.
50072 2011-03-19  Bruno Haible  <bruno@clisp.org>
50074         socklen: Update comment.
50075         * m4/socklen.m4: Update comment about platforms.
50077 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50078             Bruno Haible  <bruno@clisp.org>
50080         inet_ntop, inet_pton: Simplify.
50081         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
50082         documented to provide socklen_t and we already depend on sys_socket.
50083         * modules/inet_pton (Depends-on): Likewise.
50084         * lib/arpa_inet.in.h: Adjust comment.
50086 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50087             Bruno Haible  <bruno@clisp.org>
50089         netdb: Simplify.
50090         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
50091         documented to provide socklen_t and we already depend on sys_socket.
50092         * lib/netdb.in.h: Adjust comment.
50094 2011-03-19  Bruno Haible  <bruno@clisp.org>
50096         sys_socket, netdb: Document problem with socklen_t.
50097         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
50098         platforms.
50099         * doc/posix-headers/netdb.texi: Likewise.
50101 2011-03-18  Eric Blake  <eblake@redhat.com>
50103         maint.mk: let po check work in VPATH build
50104         * top/maint.mk (po_file): Allow cfg.mk override.
50105         (sc_po_check): Allow VPATH use.
50106         Reported by Jiri Denemark.
50108 2011-03-16  Jim Meyering  <meyering@redhat.com>
50110         maint.mk: allow fine-grained syntax-check exclusion via Make variables
50111         Before, you would have had to create one .x-sc_ file per rule in order
50112         to exempt offending files.  Now, you may instead use a Make variable --
50113         usually defined in cfg.mk -- whose name identifies the affected rule.
50114         * top/maint.mk (_sc_excl): Define.
50115         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
50116         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
50118 2011-03-13  Bruno Haible  <bruno@clisp.org>
50120         ignore-value tests: Avoid warnings.
50121         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
50122         empty for gcc < 3.4.
50124 2011-03-13  Bruno Haible  <bruno@clisp.org>
50126         passfd: Fix link error on Solaris.
50127         * modules/passfd (Description): Correct.
50128         (Depends-on): Add socketlib.
50129         (Link): New section.
50130         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
50132 2011-03-13  Bruno Haible  <bruno@clisp.org>
50134         passfd: Fix link error on AIX 5.2.
50135         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
50137 2011-03-13  Bruno Haible  <bruno@clisp.org>
50139         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
50140         * lib/sys_socket.in.h: Include <stddef.h>.
50141         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
50142         CMSG_FIRSTHDR. Remove unused variable.
50144 2011-03-13  Bruno Haible  <bruno@clisp.org>
50146         passfd: Fix compilation error on OpenBSD.
50147         * lib/passfd.c: Include <sys/uio.h>.
50149 2011-03-13  Bruno Haible  <bruno@clisp.org>
50151         passfd test: Fix warnings.
50152         * tests/test-passfd.c: Include <sys/wait.h>.
50153         (main): Fix typo.
50155 2011-03-13  Bruno Haible  <bruno@clisp.org>
50157         passfd module, part 4, tweaks.
50158         * tests/test-passfd.c: Reorder includes.
50159         (main): Fix perror and printf calls.
50161 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
50163         passfd module, part 4.
50164         * modules/passfd-tests: New file.
50165         * tests/test-passfd.c: New file.
50167 2011-03-13  Jim Meyering  <meyering@redhat.com>
50169         Makefile: rely on GNU make; derive syntax-check rule names
50170         Rather than requiring that each sc_ rule be listed as a dependent
50171         of "check", use features of GNU make to derive the list.
50172         * Makefile (syntax-check-rules): Define.
50173         (check): Depend on the new variable, not the hard-coded list.
50175 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
50176             Bruno Haible  <bruno@clisp.org>
50178         passfd module, part 3.
50179         * lib/passfd.h (recvfd): Add a flags argument.
50180         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
50181         (recvfd): Add a flags argument.
50182         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
50183         exists.
50184         * modules/passfd (Depends-on): Add cloexec.
50185         Suggested by Eric Blake.
50187 2011-03-13  Bruno Haible  <bruno@clisp.org>
50189         passfd module, part 2, tweaks.
50190         * modules/passfd (Files): Reorder.
50191         (Depends-on): Remove errno.
50192         (Include): Remove <sys/socket.h>, <sys/un.h>.
50193         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
50194         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
50195         specification header. Include <sys/socket.h> always. Don't include
50196         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
50197         (sendfd): Clarify that it sets errno when it fails.
50198         (recvfd): Fix specification.
50200 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
50202         passfd module, part 2.
50203         * modules/passfd: New file.
50204         * lib/passfd.h: New file.
50205         * lib/passfd.c: New file.
50207 2011-03-12  Bruno Haible  <bruno@clisp.org>
50209         wcswidth, mbswidth: Avoid integer overflow.
50210         * lib/wcswidth.c: Include <limits.h>.
50211         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
50212         * lib/mbswidth.c: Include <limits.h>.
50213         (mbsnwidth): Avoid 'int' overflow.
50214         Reported by Jim Meyering.
50216 2011-03-12  Bruno Haible  <bruno@clisp.org>
50218         futimens, utimensat: Avoid endless recursion on Solaris 10.
50219         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
50220         Solaris.
50221         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
50222         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
50224 2011-03-11  Jim Meyering  <meyering@redhat.com>
50226         maint.mk: relax a regexp to accommodate other formatting styles
50227         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
50228         between "ngettext" and the following "(".
50230 2011-03-11  Pádraig Brady  <P@draigBrady.com>
50232         maint.mk: suppress a false positive warning
50233         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
50234         diagnostics are marked with ngettext.
50236 2011-03-10  Eric Blake  <eblake@redhat.com>
50238         wchar: add explicit dependencies, for Tru64
50239         * modules/mbmemcasecoll (Depends-on): Add wchar.
50240         * modules/mbtowc (Depends-on): Likewise.
50241         * modules/vasnprintf (Depends-on): Likewise.
50242         * modules/unistdio/u-printf-args (Depends-on): Likewise.
50243         * modules/wctomb (Depends-on): Likewise.
50244         Reported by Peter O'Gorman.
50246 2011-03-08  Bruno Haible  <bruno@clisp.org>
50248         passfd module, part 1, tweaks.
50249         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
50250         Improve indentation. Improve AC_MSG_CHECKING messages.
50251         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
50252         gl_SOCKET_FAMILIES.
50254 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
50256         passfd module, part 1.
50257         * m4/afunix.m4: New file.
50258         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
50259         sockets.
50261 2011-03-08  Bruno Haible  <bruno@clisp.org>
50263         regex-quote: New API.
50264         * lib/regex-quote.h: Include <stdbool.h>.
50265         (struct regex_quote_spec): New type.
50266         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
50267         New declarations.
50268         (regex_quote_length, regex_quote_copy, regex_quote): Take a
50269         'const struct regex_quote_spec *' argument.
50270         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
50271         (pcre_special): New constant.
50272         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
50273         New functions.
50274         (regex_quote_length, regex_quote_copy, regex_quote): Take a
50275         'const struct regex_quote_spec *' argument.
50276         * modules/regex-quote (Depends-on): Add stdbool.
50277         * tests/test-regex-quote.c (check): Update for new API. Add test for
50278         anchored results.
50279         * NEWS: Mention the API change.
50280         Reported by Reuben Thomas and Eric Blake.
50282 2011-03-06  Bruno Haible  <bruno@clisp.org>
50284         regex-quote: Fix creation of POSIX extended regular expressions.
50285         * lib/regex-quote.c (ere_special): Add grouping and alternation
50286         operators.
50288 2011-03-05  Bruno Haible  <bruno@clisp.org>
50290         doc: Improve doc regarding autopoint vs. gnulib.
50291         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
50292         disable autopoint while running autoreconf.
50293         Suggested by Ralf Wildenhues.
50295 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50297         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
50298         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
50300 2011-03-03  Bruce Korb  <bkorb@gnu.org>
50302         parse-duration: remove xalloc.h dependency
50303         * lib/parse-duration.c (parse_period): handle NULL return from
50304         strdup instead of calling xstrdup().
50305         * modules/parse-duration: remove "xalloc" dependency
50307 2011-03-03  Matthew Booth  <mbooth@redhat.com>
50309         bootstrap: honor m4_base when running aclocal
50310         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
50312 2011-03-02  Jim Meyering  <meyering@redhat.com>
50314         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
50315         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
50316         on request from Matt Booth.
50318 2011-03-01  Eric Blake  <eblake@redhat.com>
50320         test-link: work on Hurd
50321         * tests/test-link.h (test_link): Hurd rejects linking directories
50322         with EISDIR instead of the POSIX-mandated EPERM.
50324 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
50326         stdio: simplify by moving files to printf-posix, sigpipe
50327         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
50328         since this symbol is needed only if printf is replaced.
50329         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
50330         Require gl_ASM_SYMBOL_PREFIX.
50331         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
50332         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
50333         (Depends-on): Add 'raise'.
50334         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
50335         * modules/stdio (Files): Remove lib/stdio-write.c,
50336         m4/asm-underscore.m4.
50337         (Depends-on): Remove 'raise'.
50339         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
50340         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
50341         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
50342         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
50344 2011-02-28  Bruno Haible  <bruno@clisp.org>
50346         localcharset: Assume ANSI C behaviour of free().
50347         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
50348         calling free().
50349         Suggested by Simon Josefsson <simon@josefsson.org>.
50351 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
50352             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
50353             Bruno Haible  <bruno@clisp.org>  (tiny change)
50355         On Cygwin, use /proc file system instead of win32 API.
50356         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
50357         Win32 file names.
50358         (DllMain): Simplify by removing Cygwin specific code.
50359         (find_shared_library_fullname): Use Linux specific implementation also
50360         for Cygwin.
50361         (get_shared_library_fullname): Update accordingly.
50362         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
50363         Win32 file names.
50364         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
50365         Cygwin specific code.
50367 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
50368             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
50370         Fix OpenMP flag detection for various Fortran compilers.
50371         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
50372         OpenMP-conditional compilation construct, to force compile
50373         failure with missing OpenMP flag.
50374         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
50376 2011-02-25  Eric Blake  <eblake@redhat.com>
50378         strstr: expand test coverage
50379         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
50380         compilation.
50381         * tests/test-memmem.c (main): Duplicate tests.
50382         * tests/test-strcasestr.c (main): Likewise.
50383         * tests/test-c-strcasestr.c (main): Likewise.
50385 2011-02-25  Jim Meyering  <meyering@redhat.com>
50387         maint.mk: detect missing-NL-at-EOF, too
50388         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
50389         it also detects when a file lacks a newline at EOF.
50390         (require_exactly_one_NL_at_EOF_): Renamed from
50391         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
50392         since people may well have .x-sc_... file names tied to the
50393         existing name.  Suggested by Eric Blake.
50395 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
50397         dirname: move m4/dos.m4 functionality into lib/dosname.h
50399         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
50400         extracts symbols from it, puts them into config.h; but it's much
50401         easier to use the symbols directly.  filename.h already does this,
50402         but it disagrees with dos.m4 in some respects.  This patch
50403         introduces a different include file dosname.h that packages up
50404         dos.m4, and then later we can work on merging filename.h and
50405         dosname.h.  Applications that need only the easy-to-configure
50406         symbols should consider including dosname.h rather than dirname.h.
50407         * NEWS: Mention incompatible changes.
50408         * m4/dos.m4: Remove.
50409         * lib/dosname.h, modules/dosname: New files.
50410         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
50411         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
50412         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
50413         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
50414         Include dosname.h, not dirname.h.
50415         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
50416         Include dosname.h, for definitions of symbols like ISSLASH
50417         that used to be in config.h.
50418         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
50419         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
50420         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
50421         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
50422         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
50423         * modules/rmdir (Files): Likewise.
50424         * modules/stat (Files): Likewise.
50425         * modules/unlink (Files): Likewise.
50426         * modules/dirname-lgpl (Depends-on): Add dosname.
50427         * modules/lstat (Depends-on): Likewise.
50428         * modules/openat (Depends-on): Likewise.
50429         * modules/rmdir (Depends-on): Likewise.
50430         * modules/savewd (Depends-on): Likewise.
50431         * modules/stat (Depends-on): Likewise.
50432         * modules/unlink (Depends-on): Likewise.
50433         * modules/openat (Depends-on): Remove dirname-lgpl.
50434         * modules/savewd (Depends-on): Likewise.
50435         * tests/test-dirname.c: Do not use removed symbols like
50436         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
50437         the remaining symbols, e.g., ISSLASH ('\\').
50439 2011-02-25  Eric Blake  <eblake@redhat.com>
50441         strstr: revert patches that introduced bug and pessimization
50442         * lib/str-two-way.h: Add another reference.
50443         (two_way_short_needle, two_way_long_needle): Revert changes from
50444         2011-02-24; they pessimize search speed.
50445         (critical_factorization): Partially revert changes from
50446         2010-06-22; they violate the requirement that the left half of the
50447         needle be smaller than the period of the needle.
50449 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
50451         filenamecat: remove unnecessary dependency on dirname-lgpl
50452         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
50453         is no direct dependency, just an indirect one via filenamecat-lgpl.
50455         remove: remove unnecessary use of m4/dos.m4
50456         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
50457         * modules/remove (FILES): Remove m4/dos.m4.
50459         * lib/openat-proc.c: Don't include dirname.h; not needed.
50461         backupfile: remove unnecessary use of m4/dos.m4
50462         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
50463         of its symbols are used by the backupfile code.  backupfile.c does
50464         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
50465         for the rare case of programs that want all their backup file
50466         names to live within 8+3 limits, and dos.m4 doesn't address that.
50467         * modules/backupfile (Files): Remove m4/dos.m4.
50469 2011-02-24  Jim Meyering  <meyering@redhat.com>
50471         strstr: fix a bug whereby strstr would mistakenly return NULL
50472         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
50473         in period calculation.
50474         (two_way_long_needle): Likewise.
50475         The original problem was reported by Mike Stump in
50476         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
50477         Ralf Wildenhues provided the short needle and haystack.
50478         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
50479         Add a more involved test to trigger the bug in two_way_long_needle.
50481 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
50483         gnulib-tool: remove use of bold display in help screen
50484         * gnulib-tool (func_usage): Do not use bold display anymore in the
50485         help screen.  That was just meant to be a temporary emphasis for a
50486         backward-incompatible change.
50488 2011-02-23  Bruno Haible  <bruno@clisp.org>
50490         Fix misindentation of preprocessor directives.
50491         * lib/argp-namefrob.h: Reindent preprocessor directives.
50492         * lib/getopt_int.h (struct _getopt_data): Likewise.
50493         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
50494         * lib/vasnprintf.c (decode_long_double): Likewise.
50495         * tests/test-argmatch.c: Insert blank lines, for clarity.
50496         * tests/test-exclude.c: Likewise.
50498 2011-02-22  Bruno Haible  <bruno@clisp.org>
50500         ioctl: Fix for MacOS X in 64-bit mode.
50501         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
50502         value.
50503         Suggested by Eric Blake.
50504         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
50506 2011-02-22  Jim Meyering  <meyering@redhat.com>
50508         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
50509         * Makefile (sc_cpp_indent_check): Don't limit the check to files
50510         in lib/.
50512 2011-02-22  Eric Blake  <eblake@redhat.com>
50514         maint: avoid any CDPATH issue
50515         * Makefile (sc_cpp_indent_check): Anchor cd argument.
50517         maint: adjust cpp indentation for my modules, as well
50518         * Makefile (sc_cpp_indent_check): Add my name.
50519         * lib/fbufmode.c: Filter through cppi.
50520         * lib/fpurge.c: Likewise.
50521         * lib/freadable.c: Likewise.
50522         * lib/freading.c: Likewise.
50523         * lib/fwritable.c: Likewise.
50524         * lib/fwriting.c: Likewise.
50525         * lib/sigaction.c: Likewise.
50527 2011-02-22  Jim Meyering  <meyering@redhat.com>
50529         maint: adjust cpp indentation to reflect nesting depth
50530         I.e., in a block of code that begins with an unnested "#if",
50531         put one space between the "#" in column 1 and following token.
50532         For example,
50533         -#include <sys/vfs.h>
50534         +# include <sys/vfs.h>
50535         Do this only in .c files that are part of a module I maintain.
50536         * lib/linkat.c: Filter through cppi.
50537         * lib/nanosleep.c: Likewise.
50538         * lib/openat.c: Likewise.
50539         * lib/openat-die.c: Likewise.
50540         * lib/dup3.c: Likewise.
50541         * lib/fchownat.c: Likewise.
50542         * lib/flock.c: Likewise.
50543         * lib/fsync.c: Likewise.
50544         * lib/fts.c: Likewise.
50545         * lib/getpass.c: Likewise.
50546         * lib/gettimeofday.c: Likewise.
50547         * lib/userspec.c: Likewise.
50548         * Makefile (sc_cpp_indent_check): New rule, to check this.
50550 2011-02-22  Bruno Haible  <bruno@clisp.org>
50552         New module 'wctomb'.
50553         * lib/stdlib.in.h (wctomb): New declaration.
50554         * lib/wctomb.c: New file.
50555         * lib/wctomb-impl.h: New file.
50556         * m4/wctomb.m4: New file.
50557         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
50558         REPLACE_WCTOMB.
50559         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
50560         REPLACE_WCTOMB.
50561         * modules/wctomb: New file.
50562         * tests/test-stdlib-c++.cc: Test signature of wctomb.
50563         * doc/posix-functions/wctomb.texi: Mention the new module.
50564         * modules/wctob (Depends-on): Add wctomb.
50566 2011-02-22  Bruno Haible  <bruno@clisp.org>
50568         New module 'mbtowc'.
50569         * lib/stdlib.in.h (mbtowc): New declaration.
50570         * lib/mbtowc.c: New file.
50571         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
50572         * m4/mbtowc.m4: New file.
50573         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
50574         REPLACE_MBTOWC.
50575         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
50576         REPLACE_MBTOWC.
50577         * modules/mbtowc: New file.
50578         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
50579         * doc/posix-functions/mbtowc.texi: Mention the new module.
50580         * modules/btowc (Depends-on): Add mbtowc.
50582 2011-02-22  Bruno Haible  <bruno@clisp.org>
50584         wcrtomb: Add more tests for native Windows platforms.
50585         * tests/test-wcrtomb-w32-1.sh: New file.
50586         * tests/test-wcrtomb-w32-2.sh: New file.
50587         * tests/test-wcrtomb-w32-3.sh: New file.
50588         * tests/test-wcrtomb-w32-4.sh: New file.
50589         * tests/test-wcrtomb-w32-5.sh: New file.
50590         * tests/test-wcrtomb-w32.c: New file.
50591         * modules/wcrtomb-tests (Files): Add them.
50592         (Makefile.am): Arrange to run these tests.
50593         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
50594         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
50596 2011-02-20  Bruno Haible  <bruno@clisp.org>
50598         wcrtomb: Enhance test.
50599         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
50601 2011-02-20  Bruno Haible  <bruno@clisp.org>
50603         mbrtowc: Tiny optimization.
50604         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
50606 2011-02-20  Jim Meyering  <meyering@redhat.com>
50608         test-exclude.c: remove unmatched #endif
50609         * tests/test-exclude.c: Remove stray #endif, left over from
50610         the change of a week ago.
50612 2011-02-19  Jim Meyering  <meyering@redhat.com>
50614         git-version-gen: skip "-dirty" check when appropriate
50615         * build-aux/git-version-gen: Don't run any git commands when the
50616         version string comes from .tarball-version.  Prior to this, we
50617         would run git update-index --refresh even from a just-unpacked
50618         tarball directory, and that could affect a .git/ directory in a
50619         parent of the build directory.  Reported by Mike Frysinger.
50621 2011-02-19  Bruno Haible  <bruno@clisp.org>
50623         unictype/property-byname: Reduce the size of the 'data' segment.
50624         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
50626 2011-02-19  Bruno Haible  <bruno@clisp.org>
50628         unictype/scripts: Reduce the size of the 'data' segment.
50629         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
50630         '%pic'.
50631         * lib/unictype/scripts_byname.gperf: Regenerated.
50633 2011-02-19  Bruno Haible  <bruno@clisp.org>
50635         stdint: Update documentation.
50636         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
50638 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
50640         stdint: omit redundant check for wchar.h
50641         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
50642         always tests whether wchar.h exists, so remove the now-redundant test.
50644 2011-02-18  Bruno Haible  <bruno@clisp.org>
50646         stdint: Cut dependency to module 'wchar'.
50647         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
50648         include the necessary prerequisites.
50649         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
50650         * modules/stdint (Depends-on): Remove wchar.
50651         (Makefile.am): Substitute HAVE_WCHAR_H.
50652         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
50654 2011-02-18  Eric Blake  <eblake@redhat.com>
50656         longlong: skip, rather than fail, on cross-compilation
50657         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
50658         when cross-compiling; regression from 2011-02-16.
50660 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
50662         * NEWS: Mention 2011-02-08 change to stdlib.
50664 2011-02-17  Bruno Haible  <bruno@clisp.org>
50666         getloadavg: Add comments about platforms.
50667         * m4/getloadavg.m4: Add comment.
50668         * lib/getloadavg.c: Likewise.
50670 2011-02-17  Bruno Haible  <bruno@clisp.org>
50672         getloadavg: Fix link error on Solaris 2.6.
50673         * modules/getloadavg (Link): New section.
50674         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
50675         linking test-getloadavg.
50676         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
50677         getloadavg.
50679 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
50681         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
50682         It was 'int', but this doesn't match the IRIX 6.5 manual.
50683         Suggested by Bruno Haible in
50684         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
50686 2011-02-17  Bruno Haible  <bruno@clisp.org>
50688         havelib: Fix comments.
50689         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
50690         change.
50692 2011-02-17  Bruno Haible  <bruno@clisp.org>
50694         havelib: Update config.rpath.
50695         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
50697 2011-02-17  Bruno Haible  <bruno@clisp.org>
50699         getloadavg test: Add some plausibility checks.
50700         * tests/test-getloadavg.c (check_avg): Print a warning when the value
50701         is improbable.
50703 2011-02-16  Eric Blake  <eblake@redhat.com>
50705         maintainer-makefile: make syntax-check a no-op from tarballs
50706         * top/maint.mk (no-vc-detected): New rule.
50707         (local-checks-available): Use it to avoid hanging if someone tries
50708         'make syntax-check' from a tarball.  Also append to any non-syntax
50709         checks already defined in cfg.mk.
50711 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
50713         longlong: tune, particularly for common case of c99
50715         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
50716         or running anything if c99, or if unsigned long long int does not
50717         work.  In either case, we know the answer without further tests.
50718         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
50719         it at most once, and use its results for both long long int and
50720         unsigned long long int.  This is more likely to be efficient in
50721         the common case where the program wants to check for both long
50722         long int and unsigned long long int.
50723         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
50724         since the answer is already known.
50726 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
50728         getloadavg: set errno
50729         * lib/getloadavg.c: Set errno when returning -1.  If no other
50730         error number looks appropriate, set it to ENOSYS if the getloadavg
50731         looks like it can't possibly ever work, ENOTSUP otherwise.
50732         Suggested by Bruno Haible in
50733         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
50735         getloadavg: trim unused parts and speed up 'configure'
50736         * NEWS: Document this.
50737         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
50738         always compiled if getloadavg is absent.
50739         Move test code to ...
50740         * tests/test-getloadavg.c: New file, containing previous
50741         contents of test from lib/getloadavg.c.  It also contains
50742         suggestions by Bruno Haible in
50743         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
50744         * modules/getloadavg-tests: New file.
50745         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
50746         Do tests in the same order as they're needed for getloadavg.c.
50747         Omit setgid-related tests that generate symbols KMEM_GROUP,
50748         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
50749         Do only the tests that are needed to see whether the system has
50750         getloadavg, moving the other tests into ...
50751         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
50752         NLIST_NAME_UNION; nobody should be using it.  Do not define
50753         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
50754         relevant, as the user of this module shouldn't care how getloadavg
50755         is implemented.
50757         getloadavg: omit unused var
50758         * lib/getloadavg.c (getloadavg): Omit unused local variable.
50760 2011-02-15  Jim Meyering  <meyering@redhat.com>
50762         doc: update users.txt
50763         * users.txt: Update iwhd's URL.
50765 2011-02-13  Bruno Haible  <bruno@clisp.org>
50767         Consistent macro naming for macros that use GCC __attribute__.
50768         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
50769         _ATTRIBUTE_NONNULL_.
50770         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
50771         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
50772         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
50773         ATTRIBUTE_DEPRECATED.
50774         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
50775         ATTRIBUTE_NORETURN.
50776         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
50777         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
50778         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
50779         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
50780         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
50781         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
50782         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
50783         ATTRIBUTE_SENTINEL.
50784         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
50785         ATTRIBUTE_RETURN_CHECK.
50786         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
50787         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
50788         ATTRIBUTE_NORETURN.
50789         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
50790         Reported by Paul Eggert.
50792 2011-02-13  Bruno Haible  <bruno@clisp.org>
50794         Don't interfere with a program's definition of __attribute__.
50795         * lib/argp.h (__attribute__): Remove definition.
50796         (_GL_ATTRIBUTE_FORMAT): New macro.
50797         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
50798         * lib/argp-fmtstream.h (__attribute__): Remove definition.
50799         (_GL_ATTRIBUTE_FORMAT): New macro.
50800         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
50801         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
50802         GCC 3 or newer.
50803         * lib/error.h (__attribute__): Remove definition.
50804         (_GL_ATTRIBUTE_FORMAT): New macro.
50805         (error, error_at_line): Use it.
50806         * lib/hash.h (__attribute__): Remove definition.
50807         (ATTRIBUTE_WUR): Update definition. Define always.
50808         * lib/openat.h (__attribute__): Remove definition.
50809         (ATTRIBUTE_NORETURN): Update definition. Define always.
50810         * lib/sigpipe-die.h (__attribute__): Remove definition.
50811         (ATTRIBUTE_NORETURN): Update definition. Define always.
50812         * lib/vasnprintf.h (__attribute__): Remove definition.
50813         (_GL_ATTRIBUTE_FORMAT): New macro.
50814         (asnprintf, vasnprintf): Use it.
50815         * lib/xalloc.h (__attribute__): Remove definition.
50816         (ATTRIBUTE_NORETURN): Update definition. Define always.
50817         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
50818         * lib/xmemdup0.h (__attribute__): Remove definition.
50819         (ATTRIBUTE_NORETURN): Update definition. Define always.
50820         * lib/xprintf.h (__attribute__): Remove definition.
50821         (_GL_ATTRIBUTE_FORMAT): New macro.
50822         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
50823         * lib/xstrtol.h (__attribute__): Remove definition.
50824         (ATTRIBUTE_NORETURN): Update definition. Define always.
50825         * lib/xvasprintf.h (__attribute__): Remove definition.
50826         (_GL_ATTRIBUTE_FORMAT): New macro.
50827         (xasprintf, xvasprintf): Use it.
50828         * tests/test-argmatch.c (__attribute__): Remove definition.
50829         (ATTRIBUTE_NORETURN): Update definition. Define always.
50830         * tests/test-exclude.c (__attribute__): Remove definition.
50831         (ATTRIBUTE_NORETURN): Update definition. Define always.
50832         Reported by Paul Eggert.
50834 2011-02-13  Bruno Haible  <bruno@clisp.org>
50836         mbrtowc: Add more tests for native Windows platforms.
50837         * tests/test-mbrtowc-w32-1.sh: New file.
50838         * tests/test-mbrtowc-w32-2.sh: New file.
50839         * tests/test-mbrtowc-w32-3.sh: New file.
50840         * tests/test-mbrtowc-w32-4.sh: New file.
50841         * tests/test-mbrtowc-w32-5.sh: New file.
50842         * tests/test-mbrtowc-w32.c: New file.
50843         * modules/mbrtowc-tests (Files): Add them.
50844         (Makefile.am): Arrange to run these tests.
50845         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
50846         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
50848 2011-02-13  Bruno Haible  <bruno@clisp.org>
50850         mbrtowc: Work around native Windows bug.
50851         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
50852         guess when no suitable locale for testing was found.
50853         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
50855 2011-02-13  Bruno Haible  <bruno@clisp.org>
50857         mbsinit: Work around mingw bug.
50858         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
50859         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
50860         Windows.
50861         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
50863 2011-02-13  Bruno Haible  <bruno@clisp.org>
50865         mbsinit: Don't crash for a NULL argument.
50866         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
50867         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
50869 2011-02-13  Bruno Haible  <bruno@clisp.org>
50871         Don't interfere with a program's definition of __attribute__.
50872         * lib/stdio.in.h (__attribute__): Remove definition.
50873         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
50874         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
50875         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
50876         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
50877         * lib/string.in.h (__attribute__): Remove definition.
50878         Reported by Paul Eggert.
50880 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
50882         stdlib: don't get in the way of non-GCC __attribute__
50883         See thread starting at
50884         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
50885         Revert previous stdlib change, installing the following instead:
50886         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
50887         to get in the way of a non-GCC compiler that supports __attribute__.
50888         (_GL_ATTRIBUTE_RETURN): New macro.
50889         (_Exit): Use it instead of __attribute__.
50891 2011-02-12  Bruno Haible  <bruno@clisp.org>
50893         quotearg test: Avoid test failure on mingw.
50894         * tests/test-quotearg.sh: Convert the locale identifier from native
50895         Windows syntax to Unix syntax.
50897 2011-02-12  Bruno Haible  <bruno@clisp.org>
50899         setlocale: Prefer gnulib's override over libintl's override.
50900         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
50901         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
50902         GNULIB_defined_setlocale is set.
50904 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
50906         stdlib: support non-GCC __attribute__
50908         Fix a serious and tricky problem encountered when attempting to
50909         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
50910         5.5, but it crashed due to memory corruption on Solaris 10 with
50911         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
50912         bits that are otherwise zero.  This tagging is optional inside
50913         Emacs but is preferred and is used when __attribute__ ((__aligned
50914         (8))) works, as it does with both recent-enough GCC and with Sun C
50915         5.11.  However, Sun C 5.11 is not GCC and does not #define
50916         __GNUC__ and __GNUC_MINOR__.
50918         When I added the getloadavg module to Emacs, it brought in
50919         stdlib.in.h, which contained this fragment:
50921            #ifndef __attribute__
50922            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
50923            #  define __attribute__(Spec)   /* empty */
50924            # endif
50925            #endif
50927         When files that include <stdlib.h> were compiled with Sun C 5.11,
50928         the above code disabled __attribute__ ((__aligned (8))), which
50929         caused variables to not be properly aligned, which eventually led
50930         to the pointer corruption mentioned above.  (This was a bit hard
50931         to diagnose, unfortunately.)
50933         Several "#define __attribute__(X) /* empty */" code snippets need
50934         to be eradicated from Gnulib to work with non-GCC compilers that
50935         support __attribute__.  The Autoconf way to do this is to test for
50936         each kind of attribute that we want support for, and selectively
50937         enable that in source code.
50939         Fix this problem just for stdlib.h, by adding a test for the
50940         __noreturn__ attribute, and change stdlib.in.h to use that test
50941         when needed.  This technique can be easily generalized to the
50942         other *.in.h files and attributes, and a similar technique can be
50943         used for *.h and *.c files.  This patch is enough to solve the
50944         problem for Emacs + getloadavg, and I thought I'd publish it for
50945         feedback before undertaking further, similar fixes in other
50946         modules.
50948         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
50949         because it's not needed for stdlib.h.  It merely substitutes the
50950         value directly into stdlib.h.  We may well need to #define it, or
50951         similar symbols, for other modules, but it's nice to also have an
50952         option to not #define it for applications like Emacs that do not
50953         need it.
50955         * lib/stdlib.in.h (__attribute__): Do not #define.
50956         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
50957         be defined only if the _Exit module is also used.
50958         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
50959         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
50960         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
50961         platforms.
50962         * modules/_Exit (Files): Add m4/attribute.m4.
50963         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
50964         * m4/attribute.m4: New file.
50966 2011-02-12  Bruno Haible  <bruno@clisp.org>
50968         wcsrtombs: Work around bug on native Windows.
50969         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
50970         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
50971         instead of len.
50972         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
50974 2011-02-12  Bruno Haible  <bruno@clisp.org>
50976         mbsrtowcs: Work around bug on native Windows.
50977         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
50978         against mingw bug.
50979         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
50981 2011-02-12  Bruno Haible  <bruno@clisp.org>
50983         Avoid setlocale bugs in tests.
50984         * modules/btowc (Dependencies): Add setlocale.
50985         * modules/c-strcase (Dependencies): Likewise.
50986         * modules/mbmemcasecmp (Dependencies): Likewise.
50987         * modules/mbmemcasecoll (Dependencies): Likewise.
50988         * modules/mbrtowc (Dependencies): Likewise.
50989         * modules/mbscasecmp (Dependencies): Likewise.
50990         * modules/mbscasestr (Dependencies): Likewise.
50991         * modules/mbschr (Dependencies): Likewise.
50992         * modules/mbscspn (Dependencies): Likewise.
50993         * modules/mbsinit (Dependencies): Likewise.
50994         * modules/mbsncasecmp (Dependencies): Likewise.
50995         * modules/mbsnrtowcs (Dependencies): Likewise.
50996         * modules/mbspbrk (Dependencies): Likewise.
50997         * modules/mbspcasecmp (Dependencies): Likewise.
50998         * modules/mbsrchr (Dependencies): Likewise.
50999         * modules/mbsrtowcs (Dependencies): Likewise.
51000         * modules/mbsspn (Dependencies): Likewise.
51001         * modules/mbsstr (Dependencies): Likewise.
51002         * modules/nl_langinfo (Dependencies): Likewise.
51003         * modules/quotearg (Dependencies): Likewise.
51004         * modules/unicase/locale-language (Dependencies): Likewise.
51005         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
51006         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
51007         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
51008         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
51009         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
51010         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
51011         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
51012         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
51013         * modules/vasnprintf-posix (Dependencies): Likewise.
51014         * modules/wcrtomb (Dependencies): Likewise.
51015         * modules/wcsnrtombs (Dependencies): Likewise.
51016         * modules/wcsrtombs (Dependencies): Likewise.
51018 2011-02-12  Bruno Haible  <bruno@clisp.org>
51020         setlocale: Workaround native Windows bug.
51021         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
51022         succeeds but sets LC_CTYPE to "C", report a failure.
51023         * tests/test-setlocale2.sh: New file.
51024         * tests/test-setlocale2.c: New file.
51025         * modules/setlocale-tests (Files): Add the new files.
51026         (Makefile.am): Enable test-setlocale2.sh test.
51027         * doc/posix-functions/setlocale.texi: Mention workaround.
51029 2011-02-11  Bruno Haible  <bruno@clisp.org>
51031         Tests for module 'setlocale'.
51032         * modules/setlocale-tests: New file.
51033         * tests/test-setlocale1.sh: New file.
51034         * tests/test-setlocale1.c: New file.
51036         New module 'setlocale'.
51037         * lib/locale.in.h (setlocale): New declaration.
51038         * lib/setlocale.c: New file, based on
51039         gettext/gettext-runtime/intl/setlocale.c.
51040         * m4/setlocale.m4: New file.
51041         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
51042         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
51043         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
51044         REPLACE_SETLOCALE.
51045         * modules/setlocale: New file.
51046         * tests/test-locale-c++.cc: Test the declaration of setlocale.
51047         * doc/posix-functions/setlocale.texi: Mention the new module.
51049 2011-02-11  Bruno Haible  <bruno@clisp.org>
51051         Prepare for locale dependent tests on mingw.
51052         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
51053         because it has the wrong locale encoding.
51054         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
51055         French_France.1252 instead of "fr".
51056         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
51057         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
51058         because it has the wrong locale encoding.
51059         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
51060         native Windows, try Turkish_Turkey.65001.
51061         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
51062         Chinese_China.54936.
51064         Prepare for locale dependent tests on mingw.
51065         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
51066         differently.
51067         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
51068         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
51069         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51070         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51072 2011-02-11  Eric Blake  <eblake@redhat.com>
51074         strptime: avoid compiler warnings
51075         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
51076         compiler warnings about dead code.
51077         Reported by Daniel P. Berrange.
51079 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
51081         doc: update users.txt
51082         * users.txt: Add rcs.
51084 2011-02-10  John W. Eaton  <jwe@gnu.org>
51086         doc: update users.txt
51087         * users.txt: Add octave.
51089 2011-02-10  Jim Meyering  <meyering@redhat.com>
51091         doc: update users.txt
51092         * users.txt: Add iwhd.
51094 2011-02-09  Bruno Haible  <bruno@clisp.org>
51096         gnulib-tool: Make copyright notice adjustment more robust.
51097         * gnulib-tool (func_import): In sed_transform_main_lib_file,
51098         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
51099         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
51100         License".
51101         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
51103 2011-02-06  Bruno Haible  <bruno@clisp.org>
51105         New module 'towctrans'.
51106         * modules/towctrans: New file.
51107         * lib/wctype.in.h (towctrans): New declaration.
51108         * lib/towctrans.c: New file.
51109         * lib/towctrans-impl.h: New file.
51110         * m4/towctrans.m4: New file.
51111         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
51112         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
51113         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
51114         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
51115         * doc/posix-functions/towctrans.texi: Mention the new module.
51117 2011-02-06  Bruno Haible  <bruno@clisp.org>
51119         New module 'wctrans'.
51120         * modules/wctrans: New file.
51121         * lib/wctype.in.h (wctrans): New declaration.
51122         * lib/wctrans.c: New file.
51123         * lib/wctrans-impl.h: New file.
51124         * m4/wctrans.m4: New file.
51125         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
51126         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
51127         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
51128         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
51129         * doc/posix-functions/wctrans.texi: Mention the new module.
51131 2011-02-06  Bruno Haible  <bruno@clisp.org>
51133         New module 'iswctype'.
51134         * modules/iswctype: New file.
51135         * lib/wctype.in.h (iswctype): New declaration.
51136         * lib/iswctype.c: New file.
51137         * lib/iswctype-impl.h: New file.
51138         * m4/iswctype.m4: New file.
51139         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
51140         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
51141         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
51142         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
51143         * doc/posix-functions/iswctype.texi: Mention the new module and the
51144         HP-UX 11.00 problem.
51146 2011-02-06  Bruno Haible  <bruno@clisp.org>
51148         New module 'wctype'.
51149         * modules/wctype: Change to represent the wctype() substitute.
51150         * lib/wctype.in.h (wctype): New declaration.
51151         * lib/wctype.c: New file.
51152         * lib/wctype-impl.h: New file.
51153         * m4/wctype.m4: New file.
51154         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
51155         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
51156         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
51157         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
51158         * doc/posix-functions/wctype.texi: Mention the new module and the
51159         HP-UX 11.00 problem.
51161 2011-02-06  Bruno Haible  <bruno@clisp.org>
51163         wctype-h: Ensure wctype_t and wctrans_t are defined.
51164         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
51165         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
51166         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
51167         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
51168         HAVE_WCTRANS_T.
51169         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
51171 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
51173         flock: fix license typo
51175         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
51176         omitted.
51178 2011-02-08  Bruno Haible  <bruno@clisp.org>
51180         Split large sed scripts, for HP-UX sed.
51181         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
51182         to avoid HP-UX limit of 99 commands, in the near future.
51183         * modules/stdlib (Makefile.am): Likewise.
51184         * modules/unistd (Makefile.am): Likewise.
51185         * modules/wchar (Makefile.am): Likewise.
51186         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51187         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
51188         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
51190 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
51191             Bruno Haible  <bruno@clisp.org>
51193         stdlib: improve random_r modularization
51194         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
51195         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
51196         you also need the random_r module to get this material right.
51197         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
51198         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
51199         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
51201 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
51203         stdlib: don't depend on stdint
51204         * lib/stdlib.in.h: Don't include <stdint.h> merely because
51205         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
51206         be independent of whether stdint.h is needed.
51207         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
51208         here, instead of ...
51209         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
51210         struct random_data should be using the random_r module, not just
51211         the stdlib module (which wouldn't make sense: what package needs
51212         just struct random_data without also needing random_r?).
51213         * modules/stdlib (Depends-on): Remove stdint.
51215         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
51216         See the thread rooted at
51217         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
51218         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
51219         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
51220         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
51221         __VMS)); previously it was always included (via fcntl--.h).
51222         (getloadavg): Do not use c_strtod.  Instead, approximate it by
51223         hand; this is good enough for load averages.  Also, do not use
51224         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
51225         flags directly if available and don't bother otherwise.  (Packages
51226         that need the extra reliability should use the modules that define
51227         these flags on older platforms that lack them.)
51228         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
51229         fcntl-safer.
51231 2011-02-08  Jim Meyering  <meyering@redhat.com>
51233         di-set.h, ino-map.h: add multiple-inclusion guard
51234         Technically, the guard is required only for ino-map.h, due to its
51235         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
51236         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
51237         * lib/ino-map.h: Likewise.
51239 2011-02-06  Bruno Haible  <bruno@clisp.org>
51241         iswblank: Ensure declaration on glibc systems.
51242         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
51243         * modules/iswblank (Dependencies): Add 'extensions'.
51244         * doc/posix-functions/iswblank.texi: Document the glibc problem.
51246 2011-02-06  Bruno Haible  <bruno@clisp.org>
51248         New module 'iswblank'.
51249         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
51250         * modules/iswblank: New file.
51251         * modules/wctype-h (Files): Remove lib/iswblank.c.
51252         (Makefile.am): Substitute GNULIB_ISWBLANK.
51253         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
51254         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
51255         (gl_WCTYPE_H_DEFAULTS): New macro.
51256         (gl_WCTYPE_H): Require it. Remove iswblank related code.
51257         * modules/iswblank-tests: New file.
51258         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
51259         * tests/test-wctype-h.c (main): Remove iswblank tests.
51260         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
51261         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
51262         of 'wctype-h'.
51263         * NEWS: Mention the change.
51264         * modules/mbchar (Depends-on): Add iswblank.
51266 2011-02-08  Bruno Haible  <bruno@clisp.org>
51268         di-set tests: Refactor.
51269         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
51270         unnecessary includes.
51271         (ASSERT): Remove macro.
51272         (main): Make C90 compliant by avoiding variable declaration after
51273         statement.
51274         * modules/di-set-tests (Files): Add tests/macros.h.
51276 2011-02-08  Bruno Haible  <bruno@clisp.org>
51278         ino-map tests: Refactor.
51279         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
51280         unnecessary includes.
51281         (ASSERT): Remove macro.
51282         (main): Make C90 compliant by avoiding variable declaration after
51283         statement.
51284         * modules/ino-map-tests (Files): Add tests/macros.h.
51286 2011-02-08  Jim Meyering  <meyering@redhat.com>
51288         di-set: add "const" to a cast
51289         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
51290         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
51292 2011-02-06  Bruno Haible  <bruno@clisp.org>
51294         Rename module 'wctype' to 'wctype-h'.
51295         * modules/wctype-h: Renamed from modules/wctype.
51296         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
51297         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
51298         (Files, Depends-on, Makefile.am): Update.
51299         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
51300         (Files, Makefile.am): Update.
51301         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
51302         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
51303         * doc/posix-headers/wctype.texi: Update.
51304         * doc/posix-functions/iswalnum.texi: Update.
51305         * doc/posix-functions/iswalpha.texi: Update.
51306         * doc/posix-functions/iswblank.texi: Update.
51307         * doc/posix-functions/iswcntrl.texi: Update.
51308         * doc/posix-functions/iswdigit.texi: Update.
51309         * doc/posix-functions/iswgraph.texi: Update.
51310         * doc/posix-functions/iswlower.texi: Update.
51311         * doc/posix-functions/iswprint.texi: Update.
51312         * doc/posix-functions/iswpunct.texi: Update.
51313         * doc/posix-functions/iswspace.texi: Update.
51314         * doc/posix-functions/iswupper.texi: Update.
51315         * doc/posix-functions/iswxdigit.texi: Update.
51316         * doc/posix-functions/towlower.texi: Update.
51317         * doc/posix-functions/towupper.texi: Update.
51318         * NEWS: Mention the change.
51319         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
51320         * modules/mbchar (Dependencies): Likewise.
51321         * modules/mbswidth (Dependencies): Likewise.
51322         * modules/quotearg (Dependencies): Likewise.
51323         * modules/regex (Dependencies): Likewise.
51324         * modules/wcscasecmp (Dependencies): Likewise.
51325         * modules/wcsncasecmp (Dependencies): Likewise.
51326         * modules/wcwidth (Dependencies): Likewise.
51328 2011-02-06  Bruno Haible  <bruno@clisp.org>
51330         New module 'wcswidth'.
51331         * modules/wcswidth: New file.
51332         * lib/wchar.in.h (wcswidth): New declaration.
51333         * lib/wcswidth.c: New file.
51334         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
51335         * m4/wcswidth.m4: New file.
51336         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
51337         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
51338         REPLACE_WCSWIDTH.
51339         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
51340         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
51341         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
51342         * doc/posix-functions/wcswidth.texi: Mention the new module.
51344 2011-02-06  Bruno Haible  <bruno@clisp.org>
51346         New module 'wcstok'.
51347         * modules/wcstok: New file.
51348         * lib/wchar.in.h (wcstok): New declaration.
51349         * lib/wcstok.c: New file.
51350         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
51351         * m4/wcstok.m4: New file.
51352         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
51353         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
51354         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
51355         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
51356         * doc/posix-functions/wcstok.texi: Mention the new module.
51358 2011-02-06  Bruno Haible  <bruno@clisp.org>
51360         New module 'wcsstr'.
51361         * modules/wcsstr: New file.
51362         * lib/wchar.in.h (wcsstr): New declaration.
51363         * lib/wcsstr.c: New file.
51364         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
51365         * m4/wcsstr.m4: New file.
51366         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
51367         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
51368         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
51369         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
51370         * doc/posix-functions/wcsstr.texi: Mention the new module.
51372 2011-02-06  Bruno Haible  <bruno@clisp.org>
51374         New module 'wcspbrk'.
51375         * modules/wcspbrk: New file.
51376         * lib/wchar.in.h (wcspbrk): New declaration.
51377         * lib/wcspbrk.c: New file.
51378         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
51379         * m4/wcspbrk.m4: New file.
51380         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
51381         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
51382         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
51383         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
51384         * doc/posix-functions/wcspbrk.texi: Mention the new module.
51386 2011-02-06  Bruno Haible  <bruno@clisp.org>
51388         New module 'wcsspn'.
51389         * modules/wcsspn: New file.
51390         * lib/wchar.in.h (wcsspn): New declaration.
51391         * lib/wcsspn.c: New file.
51392         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
51393         * m4/wcsspn.m4: New file.
51394         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
51395         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
51396         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
51397         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
51398         * doc/posix-functions/wcsspn.texi: Mention the new module.
51400 2011-02-06  Bruno Haible  <bruno@clisp.org>
51402         New module 'wcscspn'.
51403         * modules/wcscspn: New file.
51404         * lib/wchar.in.h (wcscspn): New declaration.
51405         * lib/wcscspn.c: New file.
51406         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
51407         * m4/wcscspn.m4: New file.
51408         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
51409         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
51410         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
51411         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
51412         * doc/posix-functions/wcscspn.texi: Mention the new module.
51414 2011-02-06  Bruno Haible  <bruno@clisp.org>
51416         New module 'wcsrchr'.
51417         * modules/wcsrchr: New file.
51418         * lib/wchar.in.h (wcsrchr): New declaration.
51419         * lib/wcsrchr.c: New file.
51420         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
51421         * m4/wcsrchr.m4: New file.
51422         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
51423         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
51424         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
51425         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
51426         * doc/posix-functions/wcsrchr.texi: Mention the new module.
51428 2011-02-06  Bruno Haible  <bruno@clisp.org>
51430         New module 'wcschr'.
51431         * modules/wcschr: New file.
51432         * lib/wchar.in.h (wcschr): New declaration.
51433         * lib/wcschr.c: New file.
51434         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
51435         * m4/wcschr.m4: New file.
51436         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
51437         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
51438         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
51439         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
51440         * doc/posix-functions/wcschr.texi: Mention the new module.
51442 2011-02-06  Bruno Haible  <bruno@clisp.org>
51444         New module 'wcsdup'.
51445         * modules/wcsdup: New file.
51446         * lib/wchar.in.h (wcsdup): New declaration.
51447         * lib/wcsdup.c: New file.
51448         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
51449         * m4/wcsdup.m4: New file.
51450         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
51451         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
51452         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
51453         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
51454         * doc/posix-functions/wcsdup.texi: Mention the new module.
51456 2011-02-06  Bruno Haible  <bruno@clisp.org>
51458         New module 'wcsxfrm'.
51459         * modules/wcsxfrm: New file.
51460         * lib/wchar.in.h (wcsxfrm): New declaration.
51461         * lib/wcsxfrm.c: New file.
51462         * lib/wcsxfrm-impl.h: New file.
51463         * m4/wcsxfrm.m4: New file.
51464         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
51465         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
51466         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
51467         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
51468         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
51470 2011-02-06  Bruno Haible  <bruno@clisp.org>
51472         New module 'wcscoll'.
51473         * modules/wcscoll: New file.
51474         * lib/wchar.in.h (wcscoll): New declaration.
51475         * lib/wcscoll.c: New file.
51476         * lib/wcscoll-impl.h: New file.
51477         * m4/wcscoll.m4: New file.
51478         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
51479         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
51480         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
51481         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
51482         * doc/posix-functions/wcscoll.texi: Mention the new module.
51484 2011-02-06  Bruno Haible  <bruno@clisp.org>
51486         New module 'wcsncasecmp'.
51487         * modules/wcsncasecmp: New file.
51488         * lib/wchar.in.h (wcsncasecmp): New declaration.
51489         * lib/wcsncasecmp.c: New file.
51490         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
51491         * m4/wcsncasecmp.m4: New file.
51492         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
51493         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
51494         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
51495         HAVE_WCSNCASECMP.
51496         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
51497         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
51499 2011-02-06  Bruno Haible  <bruno@clisp.org>
51501         New module 'wcscasecmp'.
51502         * modules/wcscasecmp: New file.
51503         * lib/wchar.in.h (wcscasecmp): New declaration.
51504         * lib/wcscasecmp.c: New file.
51505         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
51506         * m4/wcscasecmp.m4: New file.
51507         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
51508         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
51509         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
51510         HAVE_WCSCASECMP.
51511         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
51512         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
51514 2011-02-05  Bruno Haible  <bruno@clisp.org>
51516         New module 'wcsncmp'.
51517         * modules/wcsncmp: New file.
51518         * lib/wchar.in.h (wcsncmp): New declaration.
51519         * lib/wcsncmp.c: New file.
51520         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
51521         * m4/wcsncmp.m4: New file.
51522         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
51523         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
51524         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
51525         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
51526         * doc/posix-functions/wcsncmp.texi: Mention the new module.
51528 2011-02-05  Bruno Haible  <bruno@clisp.org>
51530         New module 'wcscmp'.
51531         * modules/wcscmp: New file.
51532         * lib/wchar.in.h (wcscmp): New declaration.
51533         * lib/wcscmp.c: New file.
51534         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
51535         * m4/wcscmp.m4: New file.
51536         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
51537         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
51538         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
51539         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
51540         * doc/posix-functions/wcscmp.texi: Mention the new module.
51542 2011-02-05  Bruno Haible  <bruno@clisp.org>
51544         New module 'wcsncat'.
51545         * modules/wcsncat: New file.
51546         * lib/wchar.in.h (wcsncat): New declaration.
51547         * lib/wcsncat.c: New file.
51548         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
51549         * m4/wcsncat.m4: New file.
51550         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
51551         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
51552         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
51553         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
51554         * doc/posix-functions/wcsncat.texi: Mention the new module.
51556 2011-02-05  Bruno Haible  <bruno@clisp.org>
51558         New module 'wcscat'.
51559         * modules/wcscat: New file.
51560         * lib/wchar.in.h (wcscat): New declaration.
51561         * lib/wcscat.c: New file.
51562         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
51563         * m4/wcscat.m4: New file.
51564         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
51565         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
51566         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
51567         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
51568         * doc/posix-functions/wcscat.texi: Mention the new module.
51570 2011-02-05  Bruno Haible  <bruno@clisp.org>
51572         New module 'wcpncpy'.
51573         * modules/wcpncpy: New file.
51574         * lib/wchar.in.h (wcpncpy): New declaration.
51575         * lib/wcpncpy.c: New file.
51576         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
51577         * m4/wcpncpy.m4: New file.
51578         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
51579         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
51580         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
51581         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
51582         * doc/posix-functions/wcpncpy.texi: Mention the new module.
51584 2011-02-05  Bruno Haible  <bruno@clisp.org>
51586         New module 'wcsncpy'.
51587         * modules/wcsncpy: New file.
51588         * lib/wchar.in.h (wcsncpy): New declaration.
51589         * lib/wcsncpy.c: New file.
51590         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
51591         * m4/wcsncpy.m4: New file.
51592         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
51593         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
51594         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
51595         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
51596         * doc/posix-functions/wcsncpy.texi: Mention the new module.
51598 2011-02-05  Bruno Haible  <bruno@clisp.org>
51600         New module 'wcpcpy'.
51601         * modules/wcpcpy: New file.
51602         * lib/wchar.in.h (wcpcpy): New declaration.
51603         * lib/wcpcpy.c: New file.
51604         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
51605         * m4/wcpcpy.m4: New file.
51606         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
51607         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
51608         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
51609         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
51610         * doc/posix-functions/wcpcpy.texi: Mention the new module.
51612 2011-02-05  Bruno Haible  <bruno@clisp.org>
51614         New module 'wcscpy'.
51615         * modules/wcscpy: New file.
51616         * lib/wchar.in.h (wcscpy): New declaration.
51617         * lib/wcscpy.c: New file.
51618         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
51619         * m4/wcscpy.m4: New file.
51620         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
51621         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
51622         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
51623         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
51624         * doc/posix-functions/wcscpy.texi: Mention the new module.
51626 2011-02-05  Bruno Haible  <bruno@clisp.org>
51628         New module 'wcsnlen'.
51629         * modules/wcsnlen: New file.
51630         * lib/wchar.in.h (wcsnlen): New declaration.
51631         * lib/wcsnlen.c: New file.
51632         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
51633         * m4/wcsnlen.m4: New file.
51634         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
51635         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
51636         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
51637         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
51638         * doc/posix-functions/wcsnlen.texi: Mention the new module.
51640 2011-02-05  Bruno Haible  <bruno@clisp.org>
51642         New module 'wcslen'.
51643         * modules/wcslen: New file.
51644         * lib/wchar.in.h (wcslen): New declaration.
51645         * lib/wcslen.c: New file.
51646         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
51647         * m4/wcslen.m4: New file.
51648         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
51649         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
51650         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
51651         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
51652         * doc/posix-functions/wcslen.texi: Mention the new module.
51654 2011-02-05  Bruno Haible  <bruno@clisp.org>
51656         New module 'wmemset'.
51657         * modules/wmemset: New file.
51658         * lib/wchar.in.h (wmemset): New declaration.
51659         * lib/wmemset.c: New file.
51660         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
51661         * m4/wmemset.m4: New file.
51662         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
51663         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
51664         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
51665         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
51666         * doc/posix-functions/wmemset.texi: Mention the new module.
51668 2011-02-05  Bruno Haible  <bruno@clisp.org>
51670         New module 'wmemmove'.
51671         * modules/wmemmove: New file.
51672         * lib/wchar.in.h (wmemmove): New declaration.
51673         * lib/wmemmove.c: New file.
51674         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
51675         * m4/wmemmove.m4: New file.
51676         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
51677         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
51678         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
51679         HAVE_WMEMMOVE.
51680         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
51681         * doc/posix-functions/wmemmove.texi: Mention the new module.
51683 2011-02-05  Bruno Haible  <bruno@clisp.org>
51685         New module 'wmemcpy'.
51686         * modules/wmemcpy: New file.
51687         * lib/wchar.in.h (wmemcpy): New declaration.
51688         * lib/wmemcpy.c: New file.
51689         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
51690         * m4/wmemcpy.m4: New file.
51691         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
51692         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
51693         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
51694         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
51695         * doc/posix-functions/wmemcpy.texi: Mention the new module.
51697 2011-02-05  Bruno Haible  <bruno@clisp.org>
51699         New module 'wmemcmp'.
51700         * modules/wmemcmp: New file.
51701         * lib/wchar.in.h (wmemcmp): New declaration.
51702         * lib/wmemcmp.c: New file.
51703         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
51704         * m4/wmemcmp.m4: New file.
51705         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
51706         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
51707         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
51708         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
51709         * doc/posix-functions/wmemcmp.texi: Mention the new module.
51711 2011-02-07  Jim Meyering  <meyering@redhat.com>
51713         di-set, ino-map: new modules, from coreutils
51714         * lib/di-set.c: New file.
51715         * lib/di-set.h: Likewise.
51716         * lib/ino-map.c: Likewise.
51717         * lib/ino-map.h: Likewise.
51718         * modules/di-set: Likewise.
51719         * modules/di-set-tests: Likewise.
51720         * modules/ino-map: Likewise.
51721         * modules/ino-map-tests: Likewise.
51722         * tests/test-di-set.c: Likewise.
51723         * tests/test-ino-map.c: Likewise.
51725 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
51727         getloadavg: merge minor changes from Emacs
51729         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
51730         (getloadavg): Use memset, not bzero.
51732         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
51733         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
51734         clash (bug#86).
51736 2010-11-14  Bruno Haible  <bruno@clisp.org>
51738         Allow multiple gnulib generated replacements to coexist.
51739         * lib/getopt.in.h (struct option): Avoid identical redefinition.
51740         * lib/inttypes.in.h (imaxdiv_t): Likewise.
51741         * lib/langinfo.in.h (nl_item): Likewise.
51742         * lib/math.in.h (_NaN, NAN): Likewise.
51743         * lib/netdb.in.h (struct addrinfo): Likewise.
51744         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
51745         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
51746         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
51747         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
51748         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
51749         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
51750         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
51751         pthread_mutexattr_init, pthread_mutexattr_settype,
51752         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
51753         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
51754         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
51755         pthread_spin_trylock, pthread_spin_unlock): Likewise.
51756         * lib/sched.in.h (struct sched_param): Likewise.
51757         * lib/se-selinux.in.h (security_class_t, security_context_t,
51758         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
51759         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
51760         lsetfilecon, fsetfilecon, security_check_context,
51761         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
51762         Likewise.
51763         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
51764         Likewise.
51765         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
51766         _gl_function_taking_int_returning_void_t, union sigval,
51767         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
51768         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
51769         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
51770         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
51771         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
51772         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
51773         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
51774         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
51775         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
51776         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
51777         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
51778         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
51779         socklen_t, rpl_fd_isset): Likewise.
51780         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
51781         * lib/sys_time.in.h (struct timeval): Likewise.
51782         * lib/sys_times.in.h (struct tms): Likewise.
51783         * lib/sys_utsname.in.h (struct utsname):
51784         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
51785         * lib/unistd.in.h (getpagesize): Likewise.
51786         * lib/wchar.in.h (mbstate_t): Likewise.
51787         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51788         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
51789         towlower, towupper): Likewise.
51790         Reported by Sam Steingold <sds@gnu.org>.
51792 2011-02-05  Eric Blake  <eblake@redhat.com>
51794         unsetenv: work around Haiku issues
51795         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
51796         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
51798 2010-12-30  Bruce Korb  <bkorb@gnu.org>
51800         libposix: avoid calling error() within libposix
51801         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
51802         is defined.
51804 2011-02-05  Eric Blake  <eblake@redhat.com>
51806         strerror_r-posix: port to cygwin
51807         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
51808         implementation.
51809         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
51810         * tests/test-strerror_r.c (main): Fix test.
51811         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
51812         issue.
51814 2011-02-05  Bruno Haible  <bruno@clisp.org>
51816         New module 'wmemchr'.
51817         * modules/wmemchr: New file.
51818         * lib/wchar.in.h (wmemchr): New declaration.
51819         * lib/wmemchr.c: New file.
51820         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
51821         * m4/wmemchr.m4: New file.
51822         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
51823         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
51824         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
51825         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
51826         * doc/posix-functions/wmemchr.texi: Mention the new module.
51828 2011-02-04  Eric Blake  <eblake@redhat.com>
51830         fdopendir: detect FreeBSD bug
51831         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
51832         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
51834 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
51836         stdbool: do not define HAVE_STDBOOL_H
51837         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
51838         AC_HEADER_STDBOOL.  All uses changed.  Do not define
51839         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
51840         imported from the latest Autoconf git.  It was motivated by Emacs,
51841         which uses gnulib but does not need HAVE_STDBOOL_H.
51843 2011-02-04  Bruno Haible  <bruno@clisp.org>
51845         wcsnrtombs: Prepare for new module wwcsnrtombs.
51846         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
51847         * lib/wcsnrtombs.c: Include it.
51848         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
51850         wcsrtombs: Prepare for new module wwcsrtombs.
51851         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
51852         * lib/wcsrtombs.c: Include it.
51853         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
51855         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
51856         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
51857         * lib/mbsnrtowcs.c: Include it.
51858         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
51860         mbsrtowcs: Prepare for new module mbsrtowwcs.
51861         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
51862         * lib/mbsrtowcs.c: Include it.
51863         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
51865 2011-02-04  Bruno Haible  <bruno@clisp.org>
51867         vasnprintf: Reduce use of malloc for small format strings.
51868         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
51869         (arguments): Add room for the first 7 arguments.
51870         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
51871         (char_directives, u8_directives, u16_directives, u32_directives): Add
51872         room for the first 7 directives.
51873         * lib/printf-parse.c: Include <string.h>.
51874         (PRINTF_PARSE): Change memory handling code so that it uses the first
51875         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
51876         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
51877         Reported by Pádraig Brady <P@draigbrady.com>.
51879 2011-01-31  Eric Blake  <eblake@redhat.com>
51881         dup2: work around Haiku bug
51882         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
51883         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
51884         * doc/posix-functions/dup2.texi (dup2): Document the bug.
51885         * tests/test-dup2.c (main): Enhance test.
51887 2011-01-31  Simon Josefsson  <simon@josefsson.org>
51889         doc: off_t is not available in eglibc 2.11.2 stdio.h.
51890         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
51891         declared by eglibc 2.11.2.
51892         * lib/stdio.in.h: Likewise.
51894 2011-01-31  Eric Blake  <eblake@redhat.com>
51896         ignore-value: add missing test dependency
51897         * tests/test-ignore-value.c: Revert previous change; stdio.h
51898         provides off_t.
51899         * modules/ignore-value-tests (Depends-on): Add missing dependency.
51901 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
51903         mktime: clarify long_int width checking
51904         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
51905         the top level, to make it clearer that the assumption about
51906         long_int width is being checked.  See
51907         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
51909 2011-01-30  Simon Josefsson  <simon@josefsson.org>
51911         ignore-value: Fix self-test.
51912         * tests/test-ignore-value.c: Include sys/types.h for off_t.
51914 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
51916         TYPE_MAXIMUM: avoid theoretically undefined behavior
51917         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
51918         negative number, which the C Standard says has undefined behavior.
51919         In practice this is not a problem, but might as well do it by the book.
51920         Reported by Rich Felker and Eric Blake; see
51921         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
51922         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
51923         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
51924         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
51925         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
51926         * m4/stdint.m4 (gl_STDINT_H): Likewise.
51927         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
51929         mktime: #undef mktime before #defining it
51930         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
51932         mktime: systematically normalize tm_isdst comparisons
51933         * lib/mktime.c (isdst_differ): New function.
51934         (__mktime_internal): Use it systematically for all isdst comparisons.
51935         This completes the fix for libc BZ #6723, and removes the need for
51936         normalizing tm_isdst.  See
51937         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
51938         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
51940         mktime: fix some integer overflow issues and sidestep the rest
51942         This was prompted by a bug report by Benjamin Lindner for MinGW
51943         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
51944         His bug is due to signed integer overflow (0 - INT_MIN), and I
51945         I scanned through mktime.c looking for other integer overflow
51946         problems, fixing all the bugs I found.
51948         Although the C Standard says the resulting code is still not safe
51949         in the presence of integer overflow, in practice it should be good
51950         enough for all real-world two's-complement implementations, except
51951         for debugging environments that deliberately trap on integer
51952         overflow (e.g., gcc -ftrapv).
51954         * lib/mktime.c (WRAPV): New macro.
51955         (SHR): Also check that long_int and time_t shift right in the
51956         usual way, before using the fast-but-unportable method.
51957         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
51958         used.  The code already assumed two's complement, so there's
51959         no need to test for alternatives.  All uses removed.
51960         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
51961         the C standard.  Problem reported by Rich Felker in
51962         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
51963         (twos_complement_arithmetic): Also check long_int and time_t.
51964         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
51965         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
51966         (__mktime_internal): Avoid integer overflow with unary subtraction
51967         in two instances where -1 - X is an adequate replacement for -X,
51968         since the calculations are approximate.
51970 2011-01-29  Eric Blake  <eblake@redhat.com>
51972         mktime: avoid infinite loop
51973         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
51974         type; behavior is still undefined but portable to all known targets.
51975         Reported by Rich Felker.
51977 2011-01-29  Simon Josefsson  <simon@josefsson.org>
51979         rename, unlink, same-inode: Relicense.
51980         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
51981         * modules/unlink (License): Likewise.
51982         * modules/same-inode (License): Likewise.
51984 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51986         mktime: avoid problems on NetBSD 5 / i386
51987         * lib/mktime.c (long_int): New type.  This works around a problem
51988         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
51989         but time_t is 64 bits, and where I expect the existing code is
51990         wrong in some cases.
51991         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
51992         (ydhms_diff): Bring back the compile-time check for wide-enough
51993         year and yday.
51995         mktime: fix misspelling in comment
51996         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
51997         This merges all recent glibc changes of importance.
51999 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52001         move-if-change: cope with concurrent mv of identical file.
52002         * build-aux/move-if-change (CMPPROG): Accept environment
52003         variable as an override for `cmp'.
52004         (usage): Document CMPPROG.
52005         Adjust comparison to drop stdout.  Cope with failure of mv if
52006         the target file exists and is identical to the source, for
52007         parallel builds.
52008         Report from H.J. Lu against binutils in PR binutils/12283.
52010 2011-01-28  Bruce Korb  <bkorb@gnu.org>
52012         * users.txt: Mention sharutils.
52014 2011-01-28  Simon Josefsson  <simon@josefsson.org>
52016         * users.txt: Mention OATH Toolkit.
52018 2011-01-27  Bruno Haible  <bruno@clisp.org>
52020         Prepare for supporting FreeBSD 10.
52021         * build-aux/config.libpath: Remove handling of freebsd1*.
52023 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
52025         Prepare for supporting FreeBSD 10.
52026         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
52027         match FreeBSD 10.0.
52029 2011-01-27  Bruno Haible  <bruno@clisp.org>
52031         vma-iter, get-rusage-as: Add OpenBSD support.
52032         * modules/vma-iter (configure.ac): Test for mquery.
52033         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
52034         * lib/vma-iter.c: Include <sys/mman.h>.
52035         (vma_iterate): Add an implementation based on mquery().
52036         * lib/resource-ext.h (get_rusage_as): Update comments.
52037         * lib/get-rusage-as.c: Likewise.
52038         * lib/get-rusage-data.c: Likewise.
52040 2011-01-26  Karl Berry  <karl@gnu.org>
52042         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
52043         variables to make it easier to override the makeinfo program used.
52045 2011-01-26  Eric Blake  <eblake@redhat.com>
52047         fcntl: work around Haiku F_DUPFD bugs
52048         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
52049         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
52050         cloexec bit on duplication.
52051         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
52053 2011-01-26  Bruno Haible  <bruno@clisp.org>
52055         Enable memory leak tests on AIX.
52056         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
52057         * tests/test-fprintf-posix3.c (main): Likewise.
52059 2011-01-26  Bruno Haible  <bruno@clisp.org>
52061         Tests for module 'get-rusage-data'.
52062         * modules/get-rusage-data-tests: New file.
52063         * tests/test-get-rusage-data.c: New file.
52065         New module 'get-rusage-data'.
52066         * lib/resource-ext.h (get_rusage_data): New declaration.
52067         * lib/get-rusage-data.c: New file.
52068         * modules/get-rusage-data: New file.
52070 2011-01-25  Bruno Haible  <bruno@clisp.org>
52072         get-rusage-as: Allow for easier testing.
52073         * lib/resource-ext.h (get_rusage_as): Add comment.
52074         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
52075         (main): New function for interactive testing.
52077 2011-01-25  Bruno Haible  <bruno@clisp.org>
52079         vma-iter: Treat Haiku like BeOS.
52080         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
52081         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
52083 2011-01-25  Eric Blake  <eblake@redhat.com>
52085         c-stack: fix regression on cygwin when libsigsegv is present
52086         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
52088 2011-01-24  Bruno Haible  <bruno@clisp.org>
52090         vma-iter: Avoid empty intervals.
52091         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
52092         on an empty interval.
52094 2011-01-24  Jim Meyering  <meyering@redhat.com>
52096         u64: remove unnecessary #include
52097         * lib/u64.h: Don't include <stddef.h>.  It was not used.
52099 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52101         Allow the user to avoid the HAVE_RAW_DECL_* macros.
52102         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
52104 2011-01-23  Bruno Haible  <bruno@clisp.org>
52106         New module 'vma-iter'.
52107         * lib/vma-iter.h: New file.
52108         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
52109         * modules/vma-iter: New file.
52110         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
52111         for get_rusage_as_via_iterator.
52112         (vma_iterate_callback): New function.
52113         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
52114         * modules/get-rusage-as (Depends-on): Add vma-iter.
52116 2011-01-23  Bruno Haible  <bruno@clisp.org>
52118         uninorm: Tweak includes.
52119         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
52120         Reported by Jim Meyering.
52122 2011-01-23  Bruno Haible  <bruno@clisp.org>
52124         get-rusage-as: Improve on NetBSD.
52125         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
52126         /proc, like on FreeBSD.
52128 2011-01-23  Jim Meyering  <meyering@redhat.com>
52130         xreadlink.h: remove unnecessary #include
52131         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
52133         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
52134         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
52136 2011-01-23  Bruno Haible  <bruno@clisp.org>
52138         get-rusage-as: Fix bug.
52139         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
52140         original limit when aborting the first loop.
52142 2011-01-23  Bruno Haible  <bruno@clisp.org>
52144         wctype: Ensure valid C syntax.
52145         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
52146         unconditionally, instead of gl_NEXT_HEADERS conditionally.
52148 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
52150         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
52151         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
52152         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
52153         as they are needed only for configure's test case.
52154         This removes two unnecessary symbols from config.h.
52156         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
52157         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
52158         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
52159         AC_CHECK_HEADERS_ONCE on a header that we also invoke
52160         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
52161         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
52162         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
52163         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
52164         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
52165         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
52166         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
52167         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52168         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
52169         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
52170         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
52171         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
52172         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
52173         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
52175 2011-01-21  Eric Blake  <eblake@redhat.com>
52177         maintainer-makefile: work with older git for submodule check
52178         * top/maint.mk (public-submodule-commit): Rewrite to avoid
52179         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
52180         Reported by Matthias Bolte.
52182         bootstrap: minor portability fixes
52183         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
52184         (usage): Omit leading capital and trailing . on help phrases, per
52185         GNU Coding Standards.
52186         (check_versions, top level): Prefix messages with script name.
52188 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
52190         bootstrap: support --no-git option
52191         * build-aux/bootstrap: Add --no-git option, to be used when
52192         --gnulib-srcdir points to the exact desired checkout.
52194 2011-01-21  Eric Blake  <eblake@redhat.com>
52196         strerror_r-posix: work with glibc 2.13
52197         * lib/strerror_r.c (strerror_r): Fix return type.
52199 2011-01-21  Pádraig Brady  <P@draigBrady.com>
52200             Bruno Haible  <bruno@clisp.org>
52202         uN_strstr: New unit tests.
52203         * modules/unistr/u8-strstr-tests: New file.
52204         * modules/unistr/u16-strstr-tests: New file.
52205         * modules/unistr/u32-strstr-tests: New file.
52206         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
52207         * tests/unistr/test-u8-strstr.c: New file.
52208         * tests/unistr/test-u16-strstr.c: New file.
52209         * tests/unistr/test-u32-strstr.c: New file.
52211 2011-01-21  Pádraig Brady  <P@draigBrady.com>
52212             Bruno Haible  <bruno@clisp.org>
52214         Make uN_strstr functions O(n) worst-case.
52215         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
52216         16-bit and 32-bit unit cases, use the unibyte algorithm from
52217         lib/mbsstr.c.
52218         * lib/unistr/u8-strstr.c: Include <string.h>.
52219         (UNIT_IS_UINT8_T): New macro.
52220         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
52221         (U_STRLEN, U_STRNLEN): New macros.
52222         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
52223         (U_STRLEN, U_STRNLEN): New macros.
52224         * modules/unistr/u8-strstr (Depends-on): Add strstr.
52225         (configure.ac): Update required libunistring version.
52226         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
52227         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
52228         malloca.
52229         (configure.ac): Update required libunistring version.
52230         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
52231         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
52232         malloca.
52233         (configure.ac): Update required libunistring version.
52235 2011-01-21  Pádraig Brady  <P@draigBrady.com>
52236             Bruno Haible  <bruno@clisp.org>
52238         Prepare for faster uN_strstr functions.
52239         * lib/str-kmp.h: Support definable UNITs.
52240         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
52241         needle_len argument.
52242         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
52243         * lib/mbscasestr.c (mbscasestr): Likewise.
52245 2011-01-21  Pádraig Brady  <P@draigBrady.com>
52247         malloca-tests: make faster by unsetting MALLOC_PERTURB_
52248         * tests/test-malloca.c (main): Unset the environment variable
52249         to greatly speed up the test.
52250         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
52251         * modules/malloca-tests: Depend on unsetenv.
52253 2011-01-21  Pádraig Brady  <P@draigBrady.com>
52255         ignore-value: remove stdint dependency
52256         * lib/ignore-value.h: Remove <stdint.h>
52257         * modules/ignore-value: Remove stdint dependency.
52259 2011-01-21  Jim Meyering  <meyering@redhat.com>
52261         maint.mk: adjust variable name to be consistent with other gl_ vars
52262         * top/maint.mk (gl_public_submodule_commit): Rename the variable
52263         to be lower case.
52265 2011-01-20  Jim Meyering  <meyering@redhat.com>
52267         maint.mk: make "check" depend on public-submodule-commit by default
52268         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
52270 2011-01-20  Bruno Haible  <bruno@clisp.org>
52272         mbfile, mbiter: Complete change from 2008-12-21.
52273         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
52274         * m4/mbiter.m4 (gl_MBITER): Likewise.
52276 2011-01-20  Jim Meyering  <meyering@redhat.com>
52278         init.sh: insert space between each function name and "()"
52279         * tests/init.sh: Make it a little easier to see that a function's
52280         name is "warn_", and not "warn" when looking at the first part of
52281         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
52283 2011-01-20  Jim Meyering  <meyering@redhat.com>
52285         mountlist: clean up code formatting
52286         * lib/mountlist.c (read_file_system_list): Split a long line,
52287         correct bracing style, use NULL in place of "(struct statfs *)0",
52288         don't parenthesize return value, add spaces around "=" and after
52289         ";-in-for-stmt".
52291 2011-01-14  Markus Duft  <mduft@gentoo.org>
52293         mountlist: add support for Interix
52294         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
52295         Apply statvfs to all entries of /dev/fs.
52296         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
52297         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
52299 2011-01-20  Jim Meyering  <meyering@redhat.com>
52301         maint.mk: improve the public-submodule-commit rule
52302         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
52303         to suppress printing of its commands... unless V=1.
52304         Add git submodule's --quiet option to suppress printing of e.g.,
52305         "Entering gnulib" output.
52306         "cd" into $(srcdir) before running git submodule.
52308 2011-01-20  Bruno Haible  <bruno@clisp.org>
52310         include_next: Fix bug introduced on 2011-01-18.
52311         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
52312         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
52313         ac_cv_header_... variable if the second argument is not 'check'.
52314         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
52315         gl_NEXT_HEADERS_INTERNAL.
52317 2011-01-20  Bruno Haible  <bruno@clisp.org>
52319         Allow the user to avoid the GNULIB_TEST_* macros.
52320         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
52321         Suggested by Paul Eggert.
52323 2011-01-14  Jim Meyering  <meyering@redhat.com>
52325         bootstrap: avoid failure when there is no .gitmodules file
52326         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
52327         has been assigned to, even when its value is the empty string.
52328         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
52329         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
52330         Reported by John W. Eaton <jwe@gnu.org>.
52332 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
52334         assume <ctype.h>, ..., <time.h> exist
52335         For years gnulib has been assuming the existence of the headers
52336         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
52337         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
52338         them, since they don't appear to be needed.
52339         * README (Portability guidelines): Document this.
52340         * lib/flock.c: Assume <fcntl.h> exists.
52341         * lib/regex_internal.h: Assume <locale.h> exists.
52342         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
52343         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
52344         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
52345         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
52346         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
52347         * m4/regex.m4 (gl_REGEX): Likewise.
52348         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
52349         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
52350         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
52351         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
52352         * tests/test-argp.c: Likewise.
52353         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
52355         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
52356         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
52357         AA_APPLE_UNIVERSAL_BUILD.  See
52358         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
52359         * NEWS: Document this.
52361 2011-01-19  Eric Blake  <eblake@redhat.com>
52363         c-stack: assume stack overflow if SA_SIGINFO unsupported
52364         * lib/c-stack.c (SIGACTION_WORKS): Rename...
52365         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
52366         sigaction will work.
52367         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
52368         behavior match Linux.
52369         * tests/test-c-stack.c (main): Prefer NULL for pointers.
52371         stdbool-tests: accommodate Haiku
52372         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
52374         binary-io: fix O_TEXT on Haiku
52375         * modules/binary-io (Depends-on): Add fcntl-h.
52376         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
52377         than blindly undefining O_TEXT.
52378         Reported by Scott McCreary.
52380 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52382         include_next: do not check for standard headers like stddef.h
52384         I found this problem when modifying Emacs to use gnulib.
52385         I noticed that it added HAVE_STDDEF_H to config.h, even though
52386         gnulib always assumes <stddef.h> exists as per README and this
52387         symbol is unnecessary.
52388         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
52389         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
52390         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
52391         faster for headers like stddef.h that are known to exist.
52392         (gl_CHECK_NEXT_HEADERS): Use it.
52393         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
52394         rather than gl_CHECK_NEXT_HEADERS.
52395         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
52396         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
52398 2011-01-18  Eric Blake  <eblake@redhat.com>
52400         ansi-c++-opt: skip C++ dependency style if C++ is unused
52401         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
52402         tests when we know C++ compilation is not desired.
52403         Reported by Scott McCreary.
52405 2011-01-18  Bruno Haible  <bruno@clisp.org>
52407         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
52408         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
52409         (main): Perform test also when getrlimit and setrlimit don't exist or
52410         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
52411         limiting the address space size using setrlimit, compare the address
52412         space size before and after the test.
52413         * tests/test-dprintf-posix2.c: Likewise.
52414         * tests/test-fprintf-posix3.sh: Update skip messages.
52415         * tests/test-dprintf-posix2.sh: Likewise.
52416         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
52417         * modules/dprintf-posix-tests (Depends-on): Likewise.
52418         Reported by Bruce Korb <bkorb@gnu.org> and
52419         Gary V. Vaughan <gary@gnu.org>.
52421 2011-01-18  Bruno Haible  <bruno@clisp.org>
52423         get-rusage-as: Improvement for Cygwin.
52424         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
52425         areas that are merely reserved.
52427 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52429         strftime: remove dependencies on multibyte modules
52431         strftime depended on mbrlen, mbsinit, and wchar, but these modules
52432         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
52433         only if __osf__ is defined, and I suspect OSF doesn't need these
52434         other modules.  If my guess is wrong, we'll need to come up with a
52435         variant of strftime that doesn't need the multibyte modules.
52437         I discovered this problem when attempting modify Emacs to use the
52438         strftime module.  With the previous gnulib, this caused Emacs to
52439         need 31 new files, ranging from lib/config.charset to
52440         m4/wint_t.m4.  This was overkill and I expect would be offputting
52441         to the Emacs maintainers.  After this change, only 6 new files are
52442         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
52443         stdbool.m4, and tm_gmtoff.m4.
52445         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
52446         Suggested by Bruno Haible in
52447         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
52448         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
52449         and do not check for wchar.h.
52450         * modules/strftime (Files): Remove m4/mbstate_t.m4.
52451         (Depends-on): Remove mbrlen, mbsinit, wchar.
52453 2011-01-18  Bruno Haible  <bruno@clisp.org>
52455         Tests for module 'get-rusage-as'.
52456         * modules/get-rusage-as-tests: New file.
52457         * tests/test-get-rusage-as.c: New file.
52459         New module 'get-rusage-as'.
52460         * modules/get-rusage-as: New file.
52461         * lib/resource-ext.h: New file.
52462         * lib/get-rusage-as.c: New file.
52464 2011-01-17  Eric Blake  <eblake@redhat.com>
52466         sigaction: relax license from LGPLv3+ to LGPLv2+
52467         * modules/sigaction (License): Relax to LGPLv2+.
52469 2011-01-14  Bruno Haible  <bruno@clisp.org>
52471         filemode: Make function declarations usable in C++ mode.
52472         * lib/filemode.h: Enclose function declarations in extern "C" block.
52473         Reported by John W. Eaton <jwe@gnu.org>.
52475 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
52477         save-cwd: no longer include "xgetcwd.h"
52478         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
52479         This avoids a compilation failure in projects that use save-cwd
52480         without also using the xgetcwd module.
52482 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
52484         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
52485         This is so that a program like Emacs, which needs only dtoastr,
52486         does not have to bother with distributing and compiling ftoastr
52487         and ldtoastr.
52488         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
52489         * modules/dtoastr, modules/ldtoastr: New files.
52490         * modules/ftoastr: Now works just for 'float'.
52491         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
52492         (Makefile.am): Remove ftoastr.h (not needed and no effect),
52493         dtoastr.c, ldtoastr.c.
52495 2011-01-11  Jim Meyering  <meyering@redhat.com>
52497         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
52498         There is no need to work around the lack of the fchdir function,
52499         since gnulib can now provide a replacement when required.
52500         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
52501         * modules/save-cwd (Depends-on): Add fchdir.
52503 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
52505         openat, save-cwd: avoid xmalloc
52507         This removes a direct (but undocumented) dependency of openat on
52508         xalloc, along with an indirect dependency via save-cwd.  It also
52509         removes a dependency of save-cwd on xgetcwd, and thereby
52510         indirectly on xalloc.  This change causes the openat substitute
52511         to fall back on save_cwd when memory is tight, and for save_cwd to
52512         fail instead of dying when memory is tight, but that's good enough.
52513         Problem and initial idea for fix reported by Bastien Roucaries in
52514         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
52516         * lib/openat-proc.c: Include stdlib.h (for malloc), not
52517         xalloc.h (for xmalloc).
52518         (openat_proc_name): Use malloc, not xmalloc.
52519         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
52520         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
52522         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
52523         This avoids heap allocation for file names whose lengths are in
52524         the range 512..1023, with the upper bound increasing to at most
52525         4031 depending on the platform's PATH_MAX.  (We do not want
52526         pathmax.h here as it might supply a non-constant PATH_MAX.)
52527         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
52528         Perhaps they should be moved to malloca.h?
52529         (OPENAT_BUFFER_SIZE): Use them.
52531 2011-01-10  Bruno Haible  <bruno@clisp.org>
52533         doc: Update users.txt.
52534         * users.txt: Add recutils.
52536 2011-01-09  Karl Berry  <karl@gnu.org>
52538         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
52540         * doc/configmake.texi: New file.
52541         * doc/gnulib.texi: Include it.
52542         * modules/configmake: Move documentation from here.
52544 2011-01-09  Bruno Haible  <bruno@clisp.org>
52546         Update to Unicode 6.0.0.
52547         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
52548         (get_lbp): Update for Unicode 6.0.0.
52549         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
52550         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
52551         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
52552         U+11001, U+11038..U+11046. Remove U+06DE.
52553         (uc_width): Fix bounds of planes.
52554         * tests/uniwidth/test-uc_width2.sh: Same updates as in
52555         lib/uniwidth/width.c.
52556         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
52557         trailing whitespace removed.
52558         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
52559         without comments, but with the original copyright notice.
52560         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
52561         * lib/unicase/ignorable.h: Likewise.
52562         * lib/unicase/tocasefold.h: Likewise.
52563         * lib/unicase/tolower.h: Likewise.
52564         * lib/unicase/totitle.h: Likewise.
52565         * lib/unicase/toupper.h: Likewise.
52566         * lib/unictype/bidi_of.h: Likewise.
52567         * lib/unictype/blocks.h: Likewise.
52568         * lib/unictype/categ_C.h: Likewise.
52569         * lib/unictype/categ_Cn.h: Likewise.
52570         * lib/unictype/categ_L.h: Likewise.
52571         * lib/unictype/categ_Ll.h: Likewise.
52572         * lib/unictype/categ_Lm.h: Likewise.
52573         * lib/unictype/categ_Lo.h: Likewise.
52574         * lib/unictype/categ_Lu.h: Likewise.
52575         * lib/unictype/categ_M.h: Likewise.
52576         * lib/unictype/categ_Mc.h: Likewise.
52577         * lib/unictype/categ_Me.h: Likewise.
52578         * lib/unictype/categ_Mn.h: Likewise.
52579         * lib/unictype/categ_N.h: Likewise.
52580         * lib/unictype/categ_Nd.h: Likewise.
52581         * lib/unictype/categ_No.h: Likewise.
52582         * lib/unictype/categ_P.h: Likewise.
52583         * lib/unictype/categ_Po.h: Likewise.
52584         * lib/unictype/categ_S.h: Likewise.
52585         * lib/unictype/categ_Sc.h: Likewise.
52586         * lib/unictype/categ_Sk.h: Likewise.
52587         * lib/unictype/categ_Sm.h: Likewise.
52588         * lib/unictype/categ_So.h: Likewise.
52589         * lib/unictype/categ_of.h: Likewise.
52590         * lib/unictype/combining.h: Likewise.
52591         * lib/unictype/ctype_alnum.h: Likewise.
52592         * lib/unictype/ctype_alpha.h: Likewise.
52593         * lib/unictype/ctype_graph.h: Likewise.
52594         * lib/unictype/ctype_lower.h: Likewise.
52595         * lib/unictype/ctype_print.h: Likewise.
52596         * lib/unictype/ctype_punct.h: Likewise.
52597         * lib/unictype/ctype_upper.h: Likewise.
52598         * lib/unictype/decdigit.h: Likewise.
52599         * lib/unictype/digit.h: Likewise.
52600         * lib/unictype/numeric.h: Likewise.
52601         * lib/unictype/pr_alphabetic.h: Likewise.
52602         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
52603         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
52604         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
52605         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
52606         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
52607         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
52608         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
52609         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
52610         * lib/unictype/pr_case_ignorable.h: Likewise.
52611         * lib/unictype/pr_cased.h: Likewise.
52612         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
52613         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
52614         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
52615         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
52616         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
52617         * lib/unictype/pr_combining.h: Likewise.
52618         * lib/unictype/pr_composite.h: Likewise.
52619         * lib/unictype/pr_currency_symbol.h: Likewise.
52620         * lib/unictype/pr_decimal_digit.h: Likewise.
52621         * lib/unictype/pr_deprecated.h: Likewise.
52622         * lib/unictype/pr_format_control.h: Likewise.
52623         * lib/unictype/pr_grapheme_base.h: Likewise.
52624         * lib/unictype/pr_grapheme_extend.h: Likewise.
52625         * lib/unictype/pr_grapheme_link.h: Likewise.
52626         * lib/unictype/pr_id_continue.h: Likewise.
52627         * lib/unictype/pr_id_start.h: Likewise.
52628         * lib/unictype/pr_ideographic.h: Likewise.
52629         * lib/unictype/pr_lowercase.h: Likewise.
52630         * lib/unictype/pr_math.h: Likewise.
52631         * lib/unictype/pr_numeric.h: Likewise.
52632         * lib/unictype/pr_other_alphabetic.h: Likewise.
52633         * lib/unictype/pr_other_id_continue.h: Likewise.
52634         * lib/unictype/pr_other_math.h: Likewise.
52635         * lib/unictype/pr_punctuation.h: Likewise.
52636         * lib/unictype/pr_sentence_terminal.h: Likewise.
52637         * lib/unictype/pr_terminal_punctuation.h: Likewise.
52638         * lib/unictype/pr_unassigned_code_value.h: Likewise.
52639         * lib/unictype/pr_unified_ideograph.h: Likewise.
52640         * lib/unictype/pr_uppercase.h: Likewise.
52641         * lib/unictype/pr_xid_continue.h: Likewise.
52642         * lib/unictype/pr_xid_start.h: Likewise.
52643         * lib/unictype/scripts.h: Likewise.
52644         * lib/unictype/scripts_byname.gperf: Likewise.
52645         * lib/unictype/sy_java_ident.h: Likewise.
52646         * lib/unigbrk/gbrkprop.h: Likewise.
52647         * lib/unilbrk/lbrkprop1.h: Likewise.
52648         * lib/unilbrk/lbrkprop2.h: Likewise.
52649         * lib/uninorm/decomposition-table2.h: Likewise.
52650         * lib/uniwbrk/wbrkprop.h: Likewise.
52651         * tests/unicase/test-cased.c: Likewise.
52652         * tests/unicase/test-ignorable.c: Likewise.
52653         * tests/unicase/test-uc_tolower.c: Likewise.
52654         * tests/unicase/test-uc_totitle.c: Likewise.
52655         * tests/unicase/test-uc_toupper.c: Likewise.
52656         * tests/unictype/test-categ_C.c: Likewise.
52657         * tests/unictype/test-categ_Cn.c: Likewise.
52658         * tests/unictype/test-categ_L.c: Likewise.
52659         * tests/unictype/test-categ_Ll.c: Likewise.
52660         * tests/unictype/test-categ_Lm.c: Likewise.
52661         * tests/unictype/test-categ_Lo.c: Likewise.
52662         * tests/unictype/test-categ_Lu.c: Likewise.
52663         * tests/unictype/test-categ_M.c: Likewise.
52664         * tests/unictype/test-categ_Mc.c: Likewise.
52665         * tests/unictype/test-categ_Me.c: Likewise.
52666         * tests/unictype/test-categ_Mn.c: Likewise.
52667         * tests/unictype/test-categ_N.c: Likewise.
52668         * tests/unictype/test-categ_Nd.c: Likewise.
52669         * tests/unictype/test-categ_No.c: Likewise.
52670         * tests/unictype/test-categ_P.c: Likewise.
52671         * tests/unictype/test-categ_Po.c: Likewise.
52672         * tests/unictype/test-categ_S.c: Likewise.
52673         * tests/unictype/test-categ_Sc.c: Likewise.
52674         * tests/unictype/test-categ_Sk.c: Likewise.
52675         * tests/unictype/test-categ_Sm.c: Likewise.
52676         * tests/unictype/test-categ_So.c: Likewise.
52677         * tests/unictype/test-ctype_alnum.c: Likewise.
52678         * tests/unictype/test-ctype_alpha.c: Likewise.
52679         * tests/unictype/test-ctype_graph.c: Likewise.
52680         * tests/unictype/test-ctype_lower.c: Likewise.
52681         * tests/unictype/test-ctype_print.c: Likewise.
52682         * tests/unictype/test-ctype_punct.c: Likewise.
52683         * tests/unictype/test-ctype_upper.c: Likewise.
52684         * tests/unictype/test-decdigit.h: Likewise.
52685         * tests/unictype/test-digit.h: Likewise.
52686         * tests/unictype/test-numeric.h: Likewise.
52687         * tests/unictype/test-pr_alphabetic.c: Likewise.
52688         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
52689         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
52690         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
52691         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
52692         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
52693         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
52694         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
52695         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
52696         * tests/unictype/test-pr_case_ignorable.c: Likewise.
52697         * tests/unictype/test-pr_cased.c: Likewise.
52698         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
52699         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
52700         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
52701         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
52702         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
52703         * tests/unictype/test-pr_combining.c: Likewise.
52704         * tests/unictype/test-pr_composite.c: Likewise.
52705         * tests/unictype/test-pr_currency_symbol.c: Likewise.
52706         * tests/unictype/test-pr_decimal_digit.c: Likewise.
52707         * tests/unictype/test-pr_deprecated.c: Likewise.
52708         * tests/unictype/test-pr_format_control.c: Likewise.
52709         * tests/unictype/test-pr_grapheme_base.c: Likewise.
52710         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
52711         * tests/unictype/test-pr_grapheme_link.c: Likewise.
52712         * tests/unictype/test-pr_id_continue.c: Likewise.
52713         * tests/unictype/test-pr_id_start.c: Likewise.
52714         * tests/unictype/test-pr_ideographic.c: Likewise.
52715         * tests/unictype/test-pr_lowercase.c: Likewise.
52716         * tests/unictype/test-pr_math.c: Likewise.
52717         * tests/unictype/test-pr_numeric.c: Likewise.
52718         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
52719         * tests/unictype/test-pr_other_id_continue.c: Likewise.
52720         * tests/unictype/test-pr_other_math.c: Likewise.
52721         * tests/unictype/test-pr_punctuation.c: Likewise.
52722         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
52723         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
52724         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
52725         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
52726         * tests/unictype/test-pr_uppercase.c: Likewise.
52727         * tests/unictype/test-pr_xid_continue.c: Likewise.
52728         * tests/unictype/test-pr_xid_start.c: Likewise.
52729         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
52730         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
52731         changes.
52732         * lib/unictype/categ_Cc.h: Likewise.
52733         * lib/unictype/categ_Cf.h: Likewise.
52734         * lib/unictype/categ_Co.h: Likewise.
52735         * lib/unictype/categ_Cs.h: Likewise.
52736         * lib/unictype/categ_Lt.h: Likewise.
52737         * lib/unictype/categ_Nl.h: Likewise.
52738         * lib/unictype/categ_Pc.h: Likewise.
52739         * lib/unictype/categ_Pd.h: Likewise.
52740         * lib/unictype/categ_Pe.h: Likewise.
52741         * lib/unictype/categ_Pf.h: Likewise.
52742         * lib/unictype/categ_Pi.h: Likewise.
52743         * lib/unictype/categ_Ps.h: Likewise.
52744         * lib/unictype/categ_Z.h: Likewise.
52745         * lib/unictype/categ_Zl.h: Likewise.
52746         * lib/unictype/categ_Zp.h: Likewise.
52747         * lib/unictype/categ_Zs.h: Likewise.
52748         * lib/unictype/ctype_blank.h: Likewise.
52749         * lib/unictype/ctype_cntrl.h: Likewise.
52750         * lib/unictype/ctype_digit.h: Likewise.
52751         * lib/unictype/ctype_space.h: Likewise.
52752         * lib/unictype/ctype_xdigit.h: Likewise.
52753         * lib/unictype/mirror.h: Likewise.
52754         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
52755         * lib/unictype/pr_bidi_block_separator.h: Likewise.
52756         * lib/unictype/pr_bidi_common_separator.h: Likewise.
52757         * lib/unictype/pr_bidi_control.h: Likewise.
52758         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
52759         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
52760         * lib/unictype/pr_bidi_european_digit.h: Likewise.
52761         * lib/unictype/pr_bidi_pdf.h: Likewise.
52762         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
52763         * lib/unictype/pr_bidi_whitespace.h: Likewise.
52764         * lib/unictype/pr_dash.h: Likewise.
52765         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
52766         * lib/unictype/pr_diacritic.h: Likewise.
52767         * lib/unictype/pr_extender.h: Likewise.
52768         * lib/unictype/pr_hex_digit.h: Likewise.
52769         * lib/unictype/pr_hyphen.h: Likewise.
52770         * lib/unictype/pr_ids_binary_operator.h: Likewise.
52771         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
52772         * lib/unictype/pr_ignorable_control.h: Likewise.
52773         * lib/unictype/pr_iso_control.h: Likewise.
52774         * lib/unictype/pr_join_control.h: Likewise.
52775         * lib/unictype/pr_left_of_pair.h: Likewise.
52776         * lib/unictype/pr_line_separator.h: Likewise.
52777         * lib/unictype/pr_logical_order_exception.h: Likewise.
52778         * lib/unictype/pr_non_break.h: Likewise.
52779         * lib/unictype/pr_not_a_character.h: Likewise.
52780         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
52781         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
52782         * lib/unictype/pr_other_id_start.h: Likewise.
52783         * lib/unictype/pr_other_lowercase.h: Likewise.
52784         * lib/unictype/pr_other_uppercase.h: Likewise.
52785         * lib/unictype/pr_paired_punctuation.h: Likewise.
52786         * lib/unictype/pr_paragraph_separator.h: Likewise.
52787         * lib/unictype/pr_pattern_syntax.h: Likewise.
52788         * lib/unictype/pr_pattern_white_space.h: Likewise.
52789         * lib/unictype/pr_private_use.h: Likewise.
52790         * lib/unictype/pr_quotation_mark.h: Likewise.
52791         * lib/unictype/pr_radical.h: Likewise.
52792         * lib/unictype/pr_soft_dotted.h: Likewise.
52793         * lib/unictype/pr_space.h: Likewise.
52794         * lib/unictype/pr_titlecase.h: Likewise.
52795         * lib/unictype/pr_variation_selector.h: Likewise.
52796         * lib/unictype/pr_white_space.h: Likewise.
52797         * lib/unictype/pr_zero_width.h: Likewise.
52798         * lib/unictype/sy_c_ident.h: Likewise.
52799         * lib/unictype/sy_c_whitespace.h: Likewise.
52800         * lib/unictype/sy_java_whitespace.h: Likewise.
52801         * lib/uninorm/composition-table.gperf: Likewise.
52802         * lib/uninorm/decomposition-table1.h: Likewise.
52803         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
52804         LB8.
52805         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
52806         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
52807         * modules/unictype/*: Bump version number of expected libunistring
52808         version.
52810 2011-01-09  Bruno Haible  <bruno@clisp.org>
52812         Update to Unicode 5.2.0.
52813         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
52814         trailing whitespace removed.
52816 2011-01-09  Bruno Haible  <bruno@clisp.org>
52818         New Unicode character properties, from Unicode 5.2.0.
52819         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
52820         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
52821         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
52822         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
52823         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
52824         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
52825         uc_is_property_cased, uc_is_property_case_ignorable,
52826         uc_is_property_changes_when_lowercased,
52827         uc_is_property_changes_when_uppercased,
52828         uc_is_property_changes_when_titlecased,
52829         uc_is_property_changes_when_casefolded,
52830         uc_is_property_changes_when_casemapped): New declarations.
52831         * lib/unictype/pr_byname.gperf: Add the new properties.
52832         * modules/unictype/property-byname (Depends-on): Depend on the new
52833         properties modules.
52834         * modules/unictype/property-all (Depends-on): Likewise.
52835         * MODULES.html.sh (Unicode string functions): Add
52836         unictype/property-case-ignorable, unictype/property-cased,
52837         unictype/property-changes-when-casefolded,
52838         unictype/property-changes-when-casemapped,
52839         unictype/property-changes-when-lowercased,
52840         unictype/property-changes-when-titlecased,
52841         unictype/property-changes-when-uppercased.
52843         New module 'unictype/property-changes-when-casemapped'.
52844         * modules/unictype/property-changes-when-casemapped: New file.
52845         * lib/unictype/pr_changes_when_casemapped.c: New file.
52846         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
52847         generated by gen-uni-tables.
52848         * modules/unictype/property-changes-when-casemapped-tests: New file.
52849         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
52850         automatically generated by gen-uni-tables.
52852         New module 'unictype/property-changes-when-casefolded'.
52853         * modules/unictype/property-changes-when-casefolded: New file.
52854         * lib/unictype/pr_changes_when_casefolded.c: New file.
52855         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
52856         generated by gen-uni-tables.
52857         * modules/unictype/property-changes-when-casefolded-tests: New file.
52858         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
52859         automatically generated by gen-uni-tables.
52861         New module 'unictype/property-changes-when-titlecased'.
52862         * modules/unictype/property-changes-when-titlecased: New file.
52863         * lib/unictype/pr_changes_when_titlecased.c: New file.
52864         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
52865         generated by gen-uni-tables.
52866         * modules/unictype/property-changes-when-titlecased-tests: New file.
52867         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
52868         automatically generated by gen-uni-tables.
52870         New module 'unictype/property-changes-when-uppercased'.
52871         * modules/unictype/property-changes-when-uppercased: New file.
52872         * lib/unictype/pr_changes_when_uppercased.c: New file.
52873         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
52874         generated by gen-uni-tables.
52875         * modules/unictype/property-changes-when-uppercased-tests: New file.
52876         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
52877         automatically generated by gen-uni-tables.
52879         New module 'unictype/property-changes-when-lowercased'.
52880         * modules/unictype/property-changes-when-lowercased: New file.
52881         * lib/unictype/pr_changes_when_lowercased.c: New file.
52882         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
52883         generated by gen-uni-tables.
52884         * modules/unictype/property-changes-when-lowercased-tests: New file.
52885         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
52886         automatically generated by gen-uni-tables.
52888         New module 'unictype/property-case-ignorable'.
52889         * modules/unictype/property-case-ignorable: New file.
52890         * lib/unictype/pr_case_ignorable.c: New file.
52891         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
52892         by gen-uni-tables.
52893         * modules/unictype/property-case-ignorable-tests: New file.
52894         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
52895         generated by gen-uni-tables.
52897         New module 'unictype/property-cased'.
52898         * modules/unictype/property-cased: New file.
52899         * lib/unictype/pr_cased.c: New file.
52900         * lib/unictype/pr_cased.h: New file, automatically generated by
52901         gen-uni-tables.
52902         * modules/unictype/property-cased-tests: New file.
52903         * tests/unictype/test-pr_cased.c: New file, automatically generated by
52904         gen-uni-tables.
52906 2011-01-09  Bruno Haible  <bruno@clisp.org>
52908         Update to Unicode 5.2.0.
52909         * lib/gen-uni-tables.c (output_predicate, output_category,
52910         output_combclass, output_bidi_category, output_decimal_digit_test,
52911         output_decimal_digit, output_digit_test, output_digit,
52912         output_numeric_test, output_numeric, output_mirror, output_scripts,
52913         output_scripts_byname, output_blocks, output_ident_category): Fix
52914         comment header.
52915         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
52916         get_wbp.
52917         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
52918         items.
52919         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
52920         Changes_When_Lowercased, Changes_When_Uppercased,
52921         Changes_When_Titlecased, Changes_When_Casefolded,
52922         Changes_When_Casemapped.
52923         (is_property_alphabetic, is_property_default_ignorable_code_point):
52924         Update for Unicode 5.2.0.
52925         (is_property_cased, is_property_case_ignorable,
52926         is_property_changes_when_lowercased,
52927         is_property_changes_when_uppercased,
52928         is_property_changes_when_titlecased,
52929         is_property_changes_when_casefolded,
52930         is_property_changes_when_casemapped): New functions.
52931         (output_properties): Output also the properties cased, case_ignorable,
52932         changes_when_lowercased, changes_when_uppercased,
52933         changes_when_titlecased, changes_when_casefolded,
52934         changes_when_casemapped.
52935         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
52936         Unicode TR#11 revision 17 -> 19.
52937         (LBP_CP): New enumeration value.
52938         (LBP_*): Adjust values accordingly.
52939         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
52940         TR#14 revision 22 -> 24.
52941         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
52942         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
52943         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
52944         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
52945         is_WBP_MIDLETTER.
52946         (output_composition_tables): Allow for 24 bits instead of 16 bits in
52947         the code1 and code2 of each composition rule.
52948         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
52949         * lib/unicase/ignorable.h: Likewise.
52950         * lib/unicase/tocasefold.h: Likewise.
52951         * lib/unicase/tolower.h: Likewise.
52952         * lib/unicase/totitle.h: Likewise.
52953         * lib/unicase/toupper.h: Likewise.
52954         * lib/unictype/bidi_of.h: Likewise.
52955         * lib/unictype/blocks.h: Likewise.
52956         * lib/unictype/categ_C.h: Likewise.
52957         * lib/unictype/categ_Cf.h: Likewise.
52958         * lib/unictype/categ_Cn.h: Likewise.
52959         * lib/unictype/categ_L.h: Likewise.
52960         * lib/unictype/categ_Ll.h: Likewise.
52961         * lib/unictype/categ_Lm.h: Likewise.
52962         * lib/unictype/categ_Lo.h: Likewise.
52963         * lib/unictype/categ_Lu.h: Likewise.
52964         * lib/unictype/categ_M.h: Likewise.
52965         * lib/unictype/categ_Mc.h: Likewise.
52966         * lib/unictype/categ_Mn.h: Likewise.
52967         * lib/unictype/categ_N.h: Likewise.
52968         * lib/unictype/categ_Nd.h: Likewise.
52969         * lib/unictype/categ_Nl.h: Likewise.
52970         * lib/unictype/categ_No.h: Likewise.
52971         * lib/unictype/categ_P.h: Likewise.
52972         * lib/unictype/categ_Pd.h: Likewise.
52973         * lib/unictype/categ_Po.h: Likewise.
52974         * lib/unictype/categ_S.h: Likewise.
52975         * lib/unictype/categ_Sc.h: Likewise.
52976         * lib/unictype/categ_So.h: Likewise.
52977         * lib/unictype/categ_of.h: Likewise.
52978         * lib/unictype/combining.h: Likewise.
52979         * lib/unictype/ctype_alnum.h: Likewise.
52980         * lib/unictype/ctype_alpha.h: Likewise.
52981         * lib/unictype/ctype_graph.h: Likewise.
52982         * lib/unictype/ctype_lower.h: Likewise.
52983         * lib/unictype/ctype_print.h: Likewise.
52984         * lib/unictype/ctype_punct.h: Likewise.
52985         * lib/unictype/ctype_upper.h: Likewise.
52986         * lib/unictype/decdigit.h: Likewise.
52987         * lib/unictype/digit.h: Likewise.
52988         * lib/unictype/numeric.h: Likewise.
52989         * lib/unictype/pr_alphabetic.h: Likewise.
52990         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
52991         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
52992         * lib/unictype/pr_bidi_european_digit.h: Likewise.
52993         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
52994         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
52995         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
52996         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
52997         * lib/unictype/pr_combining.h: Likewise.
52998         * lib/unictype/pr_composite.h: Likewise.
52999         * lib/unictype/pr_currency_symbol.h: Likewise.
53000         * lib/unictype/pr_dash.h: Likewise.
53001         * lib/unictype/pr_decimal_digit.h: Likewise.
53002         * lib/unictype/pr_deprecated.h: Likewise.
53003         * lib/unictype/pr_diacritic.h: Likewise.
53004         * lib/unictype/pr_extender.h: Likewise.
53005         * lib/unictype/pr_grapheme_base.h: Likewise.
53006         * lib/unictype/pr_grapheme_extend.h: Likewise.
53007         * lib/unictype/pr_grapheme_link.h: Likewise.
53008         * lib/unictype/pr_id_continue.h: Likewise.
53009         * lib/unictype/pr_id_start.h: Likewise.
53010         * lib/unictype/pr_ideographic.h: Likewise.
53011         * lib/unictype/pr_ignorable_control.h: Likewise.
53012         * lib/unictype/pr_logical_order_exception.h: Likewise.
53013         * lib/unictype/pr_lowercase.h: Likewise.
53014         * lib/unictype/pr_numeric.h: Likewise.
53015         * lib/unictype/pr_other_alphabetic.h: Likewise.
53016         * lib/unictype/pr_punctuation.h: Likewise.
53017         * lib/unictype/pr_sentence_terminal.h: Likewise.
53018         * lib/unictype/pr_terminal_punctuation.h: Likewise.
53019         * lib/unictype/pr_unassigned_code_value.h: Likewise.
53020         * lib/unictype/pr_unified_ideograph.h: Likewise.
53021         * lib/unictype/pr_uppercase.h: Likewise.
53022         * lib/unictype/pr_xid_continue.h: Likewise.
53023         * lib/unictype/pr_xid_start.h: Likewise.
53024         * lib/unictype/pr_zero_width.h: Likewise.
53025         * lib/unictype/scripts.h: Likewise.
53026         * lib/unictype/scripts_byname.gperf: Likewise.
53027         * lib/unictype/sy_java_ident.h: Likewise.
53028         * lib/unigbrk/gbrkprop.h: Likewise.
53029         * lib/unilbrk/lbrkprop1.h: Likewise.
53030         * lib/unilbrk/lbrkprop2.h: Likewise.
53031         * lib/unilbrk/lbrktables.h: Likewise.
53032         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
53033         LBP_CP. Implement rule LB30.
53034         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
53035         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
53036         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
53037         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
53038         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
53039         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
53040         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
53041         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
53042         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
53043         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
53044         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
53045         bits instead of 16 bits in the code1 and code2 of each composition
53046         rule.
53047         (uc_composition): Update for Unicode 5.2.0.
53048         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
53049         * lib/uninorm/decomposition-table2.h: Likewise.
53050         * lib/uniwbrk/wbrkprop.h: Likewise.
53051         * tests/unicase/test-cased.c: Likewise.
53052         * tests/unicase/test-ignorable.c: Likewise.
53053         * tests/unicase/test-uc_tolower.c: Likewise.
53054         * tests/unicase/test-uc_totitle.c: Likewise.
53055         * tests/unicase/test-uc_toupper.c: Likewise.
53056         * tests/unictype/test-categ_C.c: Likewise.
53057         * tests/unictype/test-categ_Cf.c: Likewise.
53058         * tests/unictype/test-categ_Cn.c: Likewise.
53059         * tests/unictype/test-categ_L.c: Likewise.
53060         * tests/unictype/test-categ_Ll.c: Likewise.
53061         * tests/unictype/test-categ_Lm.c: Likewise.
53062         * tests/unictype/test-categ_Lo.c: Likewise.
53063         * tests/unictype/test-categ_Lu.c: Likewise.
53064         * tests/unictype/test-categ_M.c: Likewise.
53065         * tests/unictype/test-categ_Mc.c: Likewise.
53066         * tests/unictype/test-categ_Mn.c: Likewise.
53067         * tests/unictype/test-categ_N.c: Likewise.
53068         * tests/unictype/test-categ_Nd.c: Likewise.
53069         * tests/unictype/test-categ_Nl.c: Likewise.
53070         * tests/unictype/test-categ_No.c: Likewise.
53071         * tests/unictype/test-categ_P.c: Likewise.
53072         * tests/unictype/test-categ_Pd.c: Likewise.
53073         * tests/unictype/test-categ_Po.c: Likewise.
53074         * tests/unictype/test-categ_S.c: Likewise.
53075         * tests/unictype/test-categ_Sc.c: Likewise.
53076         * tests/unictype/test-categ_So.c: Likewise.
53077         * tests/unictype/test-ctype_alnum.c: Likewise.
53078         * tests/unictype/test-ctype_alpha.c: Likewise.
53079         * tests/unictype/test-ctype_graph.c: Likewise.
53080         * tests/unictype/test-ctype_lower.c: Likewise.
53081         * tests/unictype/test-ctype_print.c: Likewise.
53082         * tests/unictype/test-ctype_punct.c: Likewise.
53083         * tests/unictype/test-ctype_upper.c: Likewise.
53084         * tests/unictype/test-decdigit.h: Likewise.
53085         * tests/unictype/test-digit.h: Likewise.
53086         * tests/unictype/test-numeric.h: Likewise.
53087         * tests/unictype/test-pr_alphabetic.c: Likewise.
53088         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53089         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53090         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53091         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53092         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53093         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53094         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53095         * tests/unictype/test-pr_combining.c: Likewise.
53096         * tests/unictype/test-pr_composite.c: Likewise.
53097         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53098         * tests/unictype/test-pr_dash.c: Likewise.
53099         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53100         * tests/unictype/test-pr_deprecated.c: Likewise.
53101         * tests/unictype/test-pr_diacritic.c: Likewise.
53102         * tests/unictype/test-pr_extender.c: Likewise.
53103         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53104         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53105         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53106         * tests/unictype/test-pr_id_continue.c: Likewise.
53107         * tests/unictype/test-pr_id_start.c: Likewise.
53108         * tests/unictype/test-pr_ideographic.c: Likewise.
53109         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53110         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53111         * tests/unictype/test-pr_lowercase.c: Likewise.
53112         * tests/unictype/test-pr_numeric.c: Likewise.
53113         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53114         * tests/unictype/test-pr_punctuation.c: Likewise.
53115         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53116         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53117         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53118         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53119         * tests/unictype/test-pr_uppercase.c: Likewise.
53120         * tests/unictype/test-pr_xid_continue.c: Likewise.
53121         * tests/unictype/test-pr_xid_start.c: Likewise.
53122         * tests/unictype/test-pr_zero_width.c: Likewise.
53123         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
53124         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
53125         changed behaviour: line breaking is now disallowed between a letter
53126         or '=' and '('.
53127         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
53128         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
53129         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
53130         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
53131         * tests/uniwidth/test-uc_width2.sh: Same updates as in
53132         lib/uniwidth/width.c.
53133         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
53134         without comments, but with the original copyright notice.
53135         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
53136         changes.
53137         * lib/unictype/categ_Cc.h: Likewise.
53138         * lib/unictype/categ_Co.h: Likewise.
53139         * lib/unictype/categ_Cs.h: Likewise.
53140         * lib/unictype/categ_Lt.h: Likewise.
53141         * lib/unictype/categ_Me.h: Likewise.
53142         * lib/unictype/categ_Pc.h: Likewise.
53143         * lib/unictype/categ_Pe.h: Likewise.
53144         * lib/unictype/categ_Pf.h: Likewise.
53145         * lib/unictype/categ_Pi.h: Likewise.
53146         * lib/unictype/categ_Ps.h: Likewise.
53147         * lib/unictype/categ_Sk.h: Likewise.
53148         * lib/unictype/categ_Sm.h: Likewise.
53149         * lib/unictype/categ_Z.h: Likewise.
53150         * lib/unictype/categ_Zl.h: Likewise.
53151         * lib/unictype/categ_Zp.h: Likewise.
53152         * lib/unictype/categ_Zs.h: Likewise.
53153         * lib/unictype/ctype_blank.h: Likewise.
53154         * lib/unictype/ctype_cntrl.h: Likewise.
53155         * lib/unictype/ctype_digit.h: Likewise.
53156         * lib/unictype/ctype_space.h: Likewise.
53157         * lib/unictype/ctype_xdigit.h: Likewise.
53158         * lib/unictype/mirror.h: Likewise.
53159         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
53160         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
53161         * lib/unictype/pr_bidi_block_separator.h: Likewise.
53162         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
53163         * lib/unictype/pr_bidi_common_separator.h: Likewise.
53164         * lib/unictype/pr_bidi_control.h: Likewise.
53165         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
53166         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
53167         * lib/unictype/pr_bidi_pdf.h: Likewise.
53168         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
53169         * lib/unictype/pr_bidi_whitespace.h: Likewise.
53170         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
53171         * lib/unictype/pr_format_control.h: Likewise.
53172         * lib/unictype/pr_hex_digit.h: Likewise.
53173         * lib/unictype/pr_hyphen.h: Likewise.
53174         * lib/unictype/pr_ids_binary_operator.h: Likewise.
53175         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
53176         * lib/unictype/pr_iso_control.h: Likewise.
53177         * lib/unictype/pr_join_control.h: Likewise.
53178         * lib/unictype/pr_left_of_pair.h: Likewise.
53179         * lib/unictype/pr_line_separator.h: Likewise.
53180         * lib/unictype/pr_math.h: Likewise.
53181         * lib/unictype/pr_non_break.h: Likewise.
53182         * lib/unictype/pr_not_a_character.h: Likewise.
53183         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
53184         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
53185         * lib/unictype/pr_other_id_continue.h: Likewise.
53186         * lib/unictype/pr_other_id_start.h: Likewise.
53187         * lib/unictype/pr_other_lowercase.h: Likewise.
53188         * lib/unictype/pr_other_math.h: Likewise.
53189         * lib/unictype/pr_other_uppercase.h: Likewise.
53190         * lib/unictype/pr_paired_punctuation.h: Likewise.
53191         * lib/unictype/pr_paragraph_separator.h: Likewise.
53192         * lib/unictype/pr_pattern_syntax.h: Likewise.
53193         * lib/unictype/pr_pattern_white_space.h: Likewise.
53194         * lib/unictype/pr_private_use.h: Likewise.
53195         * lib/unictype/pr_quotation_mark.h: Likewise.
53196         * lib/unictype/pr_radical.h: Likewise.
53197         * lib/unictype/pr_soft_dotted.h: Likewise.
53198         * lib/unictype/pr_space.h: Likewise.
53199         * lib/unictype/pr_titlecase.h: Likewise.
53200         * lib/unictype/pr_variation_selector.h: Likewise.
53201         * lib/unictype/pr_white_space.h: Likewise.
53202         * lib/unictype/sy_c_ident.h: Likewise.
53203         * lib/unictype/sy_c_whitespace.h: Likewise.
53204         * lib/unictype/sy_java_whitespace.h: Likewise.
53205         * modules/uni*/*: Bump version number of expected libunistring version.
53206         Reported by Simon Josefsson.
53208 2011-01-09  Karl Heuer  <kwzh@gnu.org>
53210         useless-if-before-free: fix typo in --help and make the internal,
53211         automatic version date update process work once again.
53212         --help output contained a NUL character instead of the
53213         backslash-zero that was intended.  Also, the "must lie within
53214         the first 8 lines" line is on line 9, and hence not getting
53215         automatically updated.
53216         * build-aux/useless-if-before-free: Fix the former by adding a
53217         backslash, and the latter by condensing the three lines of what-it-does
53218         to a single line, leaving one line of slack for the future.
53220 2011-01-09  Bruno Haible  <bruno@clisp.org>
53222         uniwidth/width: Fix width of U+1D173..U+1D17A.
53223         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
53224         symbolic_width, output_width_property_test): New functions.
53225         (main): Invoke output_nonspacing_property, output_width_property_test.
53226         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
53227         U+1D173..U+1D17A.
53228         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
53229         1.
53230         * modules/uniwidth/*: Bump version number of expected libunistring
53231         version.
53232         * modules/unilbrk/*: Likewise.
53234 2011-01-08  Bruno Haible  <bruno@clisp.org>
53236         uninorm tests: Preserve copyright of Unicode data file.
53237         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
53238         Mention modifications.
53240 2011-01-08  Bruno Haible  <bruno@clisp.org>
53242         gen-uni-tables: Prepare for Unicode 5.2.0.
53243         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
53244         (debug_output_lbp, output_lbp): Update.
53246 2011-01-08  Bruno Haible  <bruno@clisp.org>
53248         unilbrk: Clarify gen-uni-tables.c code.
53249         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
53250         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
53251         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
53253 2011-01-07  Bruno Haible  <bruno@clisp.org>
53255         strtod: Restore errno when successfully parsing Infinity or NaN.
53256         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
53257         restore the original errno.
53259 2011-01-07  Bruno Haible  <bruno@clisp.org>
53261         remove test: Avoid failure on HP-UX 11.
53262         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
53264 2011-01-07  Bruno Haible  <bruno@clisp.org>
53266         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
53267         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
53268         error code.
53270 2011-01-07  Pádraig Brady  <P@draigBrady.com>
53272         ignore-value: fixup comments, and add Eric Blake
53273         as an author since he rewrote the macros.
53274         * lib/ignore-value.h (ignore_value):  State that
53275         we now support aggregates.  Also specify exactly
53276         when the GCC warn_unused_result feature was added.
53278 2011-01-06  Eric Blake  <eblake@redhat.com>
53280         ignore-value: support aggregate types
53281         * lib/ignore-value.h (ignore_value): Provide separate gcc
53282         definition.
53283         * modules/ignore-value-tests: New test module.
53284         * tests/test-ignore-value.c: New test.
53286         maint.mk: improve sc_prohibit_strcmp regex
53287         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
53288         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
53289         definition of STRNEQ.
53291         signal: work around Haiku issue with SIGBUS
53292         * lib/siglist.h: Add comment.
53293         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
53294         strsignal's favoring of SIGSEGV.
53295         * tests/test-signal.c (main): Avoid test failure.
53296         * doc/posix-headers/signal.texi (signal.h): Document the issue.
53297         Reported by Scott McCreary.
53299         maint.mk: add pre-release check to ensure submodule commits are public
53300         * top/maint.mk (public-submodule-commit): New rule.
53301         (submodule-checks): New variable.
53302         (alpha beta stable): Depend on the variable.
53304 2011-01-05  Pádraig Brady  <P@draigBrady.com>
53305         and Jim Meyering  <meyering@redhat.com>
53307         ignore-value: make ignore_value more generic; deprecate ignore_ptr
53308         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
53309         (ATTRIBUTE_DEPRECATED): Define.
53310         (_ignore_case): New function.
53311         (ignore_value): New macro, to replace the old function.
53312         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
53313         * modules/ignore-value (Depends-on): Add stdint.
53315 2011-01-04  Eric Blake  <eblake@redhat.com>
53317         doc: regenerate INSTALL
53318         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
53319         @firstparagraphindent support, now that autoconf dropped it.
53320         (INSTALL_PRELUDE): Reinstate old macro.
53321         * doc/install.texi: Resync from autoconf.
53322         * doc/INSTALL: Reflect recent autoconf update.
53323         * doc/INSTALL.ISO: Likewise.
53324         * doc/INSTALL.UTF-8: Likewise.
53325         Reported by Karl Berry.
53327 2011-01-04  Bruce Korb  <address@hidden>
53329         git-version-gen: avoid a sub-shell
53330         * build-aux/git-version-gen: Redirect stderr in `...` via
53331         "exec 2>...", rather than via an added sub-shell.
53333 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
53335         git-version-gen: use (...) rather than sh -c '...'
53336         * build-aux/git-version-gen: Rather than hard-coding a shell's name
53337         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
53339 2011-01-03  Jim Meyering  <meyering@redhat.com>
53341         git-version-gen: convert leading TABs to spaces
53342         * build-aux/git-version-gen: Expand leading TABs.
53344         git-version-gen: handle failed "git rev-list"
53345         * build-aux/git-version-gen: Rather than leaking a "fatal" error
53346         from git and proceeding as if it had succeeded but printed no SHA1
53347         checksums, suppress the diagnostic and handle the failure.
53348         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
53350         git-version-gen: include command name in one more diagnostic
53351         * build-aux/git-version-gen: When the required .tarball-version file
53352         was missing or unreadable, you might see the diagnostic from "cat",
53353         but no trace of the name of the invoking script.  Now, you still see
53354         the diagnostic from cat, but also get one from "git-version-gen: ".
53355         Inspired by a patch from Bruce Korb.
53357         update-copyright: adjust test to match changed code
53358         * tests/test-update-copyright.sh: Change test's expected output
53359         to match new actual output.
53361 2011-01-02  Bruno Haible  <bruno@clisp.org>
53363         getlogin_r: Avoid test failure on HP-UX 11.
53364         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
53365         ERANGE when the second argument is zero.
53366         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
53367         portability problem.
53369 2011-01-02  Bruce Korb  <bkorb@gnu.org>
53371         * build-aux/update-copyright: doc Simon's changes
53373 2011-01-02  Simon Josefsson  <simon@josefsson.org>
53375         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
53376         environment variable.
53378 2011-01-02  Bruno Haible  <bruno@clisp.org>
53380         unigbrk: Avoid gcc warnings.
53381         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
53382         unused variable.
53383         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
53384         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
53385         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
53386         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
53387         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
53388         Change type of first argument to 'const char *'.
53389         (main): Remove unused variable.
53390         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
53391         type of first argument to 'const char *'.
53392         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
53393         Likewise.
53394         (main): Change type of variable 's'.
53395         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
53396         to 'int'.
53398 2011-01-02  Bruno Haible  <bruno@clisp.org>
53400         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
53401         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
53402         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
53403         bug.
53404         * lib/pwrite.c: Undo 2010-12-31 patch.
53405         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
53407 2011-01-02  Bruno Haible  <bruno@clisp.org>
53409         pread: Fix test whether it works.
53410         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
53412 2011-01-02  Bruno Haible  <bruno@clisp.org>
53414         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
53415         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
53416         ends in "6". Don't require a specific month name. Try also the locale
53417         names found on HP-UX 11 and Solaris 7.
53419 2011-01-02  Bruno Haible  <bruno@clisp.org>
53421         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
53422         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
53423         C linkage.
53424         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
53426 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
53428         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
53429         for consistency, since the "cluster" term is not used elsewhere.
53430         * lib/unigbrk.in.h: Update name.
53431         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
53432         * lib/unigbrk/u16-grapheme-next.c: Update name.
53433         * lib/unigbrk/u16-grapheme-prev.c: Update name.
53434         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
53435         * lib/unigbrk/u32-grapheme-next.c: Update name.
53436         * lib/unigbrk/u32-grapheme-prev.c: Update name.
53437         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
53438         * lib/unigbrk/u8-grapheme-next.c: Update name.
53439         * lib/unigbrk/u8-grapheme-prev.c: Update name.
53440         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
53441         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
53442         Suggested by Bruno Haible.
53444 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
53446         Remove module 'u8-grapheme-len' as too redundant with
53447         'u8-grapheme-next'.
53448         * modules/unigbrk/u8-grapheme-len: Delete file.
53449         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
53450         * lib/unigbrk.in.h: Remove prototype for deleted function.
53451         * lib/unigbrk/u8-grapheme-len.c: Delete file.
53452         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
53454         Remove module 'u16-grapheme-len' as too redundant with
53455         'u16-grapheme-next'.
53456         * modules/unigbrk/u16-grapheme-len: Delete file.
53457         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
53458         * lib/unigbrk.in.h: Remove prototype for deleted function.
53459         * lib/unigbrk/u16-grapheme-len.c: Delete file.
53460         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
53462         Remove module 'u32-grapheme-len' as too redundant with
53463         'u32-grapheme-next'.
53464         * modules/unigbrk/u32-grapheme-len: Delete file.
53465         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
53466         * lib/unigbrk.in.h: Remove prototype for deleted function.
53467         * lib/unigbrk/u32-grapheme-len.c: Delete file.
53468         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
53470         Suggested by Bruno Haible.
53472 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
53474         * unigbrk.in.h: Fix typo: "ben" => "been".
53475         Reported by Bruno Haible.
53477 2011-01-01  Jim Meyering  <meyering@redhat.com>
53479         maint: update almost all copyright ranges to include 2011
53480         Run the new "make update-copyright" rule.
53482 2011-01-01  Jim Meyering  <meyering@redhat.com>
53484         maint: update-copyright: exempt doc/INSTALL*
53485         * Makefile (update-copyright): Also exclude doc/INSTALL*,
53486         since they are generated.  Suggested by Bruno Haible.
53488 2011-01-01  Jim Meyering  <meyering@redhat.com>
53490         maint: refine the update-copyright rule
53491         * Makefile (update-copyright): Also exclude any file that includes
53492         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
53493         code that merely generates the comment.
53495 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
53497         New module 'u8-grapheme-len'.
53498         * modules/unigbrk/u8-grapheme-len: New file.
53499         * modules/unigbrk/u8-grapheme-len-tests: New file.
53500         * lib/unigbrk.in.h: Add prototype for new function.
53501         * lib/unigbrk/u8-grapheme-len.c: New file.
53502         * tests/unigbrk/test-u8-grapheme-len.c: New file.
53504         New module 'u16-grapheme-len'.
53505         * modules/unigbrk/u16-grapheme-len: New file.
53506         * modules/unigbrk/u16-grapheme-len-tests: New file.
53507         * lib/unigbrk.in.h: Add prototype for new function.
53508         * lib/unigbrk/u16-grapheme-len.c: New file.
53509         * tests/unigbrk/test-u16-grapheme-len.c: New file.
53511         New module 'u32-grapheme-len'.
53512         * modules/unigbrk/u32-grapheme-len: New file.
53513         * modules/unigbrk/u32-grapheme-len-tests: New file.
53514         * lib/unigbrk.in.h: Add prototype for new function.
53515         * lib/unigbrk/u32-grapheme-len.c: New file.
53516         * tests/unigbrk/test-u32-grapheme-len.c: New file.
53518         New module 'u8-grapheme-next'.
53519         * modules/unigbrk/u8-grapheme-next: New file.
53520         * modules/unigbrk/u8-grapheme-next-tests: New file.
53521         * lib/unigbrk.in.h: Add prototype for new function.
53522         * lib/unigbrk/u8-grapheme-next.c: New file.
53523         * tests/unigbrk/test-u8-grapheme-next.c: New file.
53525         New module 'u16-grapheme-next'.
53526         * modules/unigbrk/u16-grapheme-next: New file.
53527         * modules/unigbrk/u16-grapheme-next-tests: New file.
53528         * lib/unigbrk.in.h: Add prototype for new function.
53529         * lib/unigbrk/u16-grapheme-next.c: New file.
53530         * tests/unigbrk/test-u16-grapheme-next.c: New file.
53532         New module 'u32-grapheme-next'.
53533         * modules/unigbrk/u32-grapheme-next: New file.
53534         * modules/unigbrk/u32-grapheme-next-tests: New file.
53535         * lib/unigbrk.in.h: Add prototype for new function.
53536         * lib/unigbrk/u32-grapheme-next.c: New file.
53537         * tests/unigbrk/test-u32-grapheme-next.c: New file.
53539         New module 'u8-grapheme-prev'.
53540         * modules/unigbrk/u8-grapheme-prev: New file.
53541         * modules/unigbrk/u8-grapheme-prev-tests: New file.
53542         * lib/unigbrk.in.h: Add prototype for new function.
53543         * lib/unigbrk/u8-grapheme-prev.c: New file.
53544         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
53546         New module 'u16-grapheme-prev'.
53547         * modules/unigbrk/u16-grapheme-prev: New file.
53548         * modules/unigbrk/u16-grapheme-prev-tests: New file.
53549         * lib/unigbrk.in.h: Add prototype for new function.
53550         * lib/unigbrk/u16-grapheme-prev.c: New file.
53551         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
53553         New module 'u32-grapheme-prev'.
53554         * modules/unigbrk/u32-grapheme-prev: New file.
53555         * modules/unigbrk/u32-grapheme-prev-tests: New file.
53556         * lib/unigbrk.in.h: Add prototype for new function.
53557         * lib/unigbrk/u32-grapheme-prev.c: New file.
53558         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
53560         New module 'u8-grapheme-breaks'.
53561         * modules/unigbrk/u8-grapheme-breaks: New file.
53562         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
53563         * lib/unigbrk.in.h: Add prototype for new function.
53564         * lib/unigbrk/u8-grapheme-breaks.c: New file.
53565         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
53567         New module 'u16-grapheme-breaks'.
53568         * modules/unigbrk/u16-grapheme-breaks: New file.
53569         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
53570         * lib/unigbrk.in.h: Add prototype for new function.
53571         * lib/unigbrk/u16-grapheme-breaks.c: New file.
53572         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
53574         New module 'u32-grapheme-breaks'.
53575         * modules/unigbrk/u32-grapheme-breaks: New file.
53576         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
53577         * lib/unigbrk.in.h: Add prototype for new function.
53578         * lib/unigbrk/u32-grapheme-breaks.c: New file.
53579         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
53581         New module 'ulc-grapheme-breaks'.
53582         * modules/unigbrk/ulc-grapheme-breaks: New file.
53583         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
53584         * m4/locale-ar.m4: New file.
53585         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
53586         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
53587         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
53589 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
53591         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
53592         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
53593         modified how this file was generated before I initially submitted
53594         the module, but failed to regenerate it.  This meant that several
53595         of the level2 entries were wrong.
53596         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
53597         Remove the division-by-2 that is folded into the table now that
53598         gbrkprop.h has been regenerated properly.  Now -1 entries are
53599         handled correctly.
53601         New module 'unigbrk/uc-gbrk-prop-tests'.
53602         * modules/unigbrk/uc-gbrk-prop-tests: New file.
53603         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
53604         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
53605         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
53607 2011-01-01  Bruno Haible  <bruno@clisp.org>
53609         Avoid use of hexadecimal escapes.
53610         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
53611         instead of hexadecimal escapes.
53613 2011-01-01  Jim Meyering  <meyering@redhat.com>
53615         maint: new rule to update copyright year ranges
53616         * Makefile (update-copyright): New rule.
53618         maint: indent with TABs in Makefile
53619         * Makefile: Expand leading sequences of spaces to TABs
53621         version-etc: update the copyright year it reports
53622         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
53624 2010-12-31  Bruno Haible  <bruno@clisp.org>
53626         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
53627         * lib/isfinite.c (zerof, zerod, zerol): New variables.
53628         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
53629         zero.
53631 2010-12-31  Bruno Haible  <bruno@clisp.org>
53633         pwrite: Work around HP-UX 11.11 bug.
53634         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
53635         works and set REPLACE_PWRITE if not.
53636         * lib/pwrite.c (pwrite): Add an implementation that uses the system
53637         function.
53638         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
53640 2010-12-31  Bruno Haible  <bruno@clisp.org>
53642         pread: Work around HP-UX 11 bugs.
53643         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
53644         and set REPLACE_PREAD if not.
53645         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
53647 2010-12-31  Eric Blake  <eblake@redhat.com>
53649         nl_langinfo: fix YESEXPR on Irix 6.5
53650         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
53651         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
53652         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
53653         it.
53655 2010-12-31  Bruno Haible  <bruno@clisp.org>
53657         iconv: Document HP-UX 11 bug.
53658         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
53660 2010-12-31  Bruno Haible  <bruno@clisp.org>
53662         ldexpl: Fix link error on HP-UX 11.
53663         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
53664         LDEXPL_LIBM, using $ISNANL_LIBM.
53666 2010-12-31  Eric Blake  <eblake@redhat.com>
53668         ftello: avoid compilation failure with SunStudio c89
53669         * lib/ftello.c (ftello): Use lseek, not llseek.
53671         tests: avoid failing coreutils tests on cygwin
53672         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
53673         (create_exe_shims_): Return 0 when skipping.
53675 2010-12-31  Bruno Haible  <bruno@clisp.org>
53677         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
53678         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
53680 2010-12-31  Bruno Haible  <bruno@clisp.org>
53682         waitpid: Fix link error in C++ mode.
53683         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
53685 2010-12-31  Bruno Haible  <bruno@clisp.org>
53687         isnan: Use GCC built-ins when possible.
53688         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
53689         __builtin_isnan.
53690         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
53691         (isnan): Define using GCC built-ins for GCC >= 4.0.
53693 2010-12-31  Bruno Haible  <bruno@clisp.org>
53695         isnand: Fix mistake.
53696         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
53697         __builtin_isnand.
53699 2010-12-31  Bruno Haible  <bruno@clisp.org>
53701         open: Avoid C++ error on HP-UX 11.
53702         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
53704 2010-12-31  Bruno Haible  <bruno@clisp.org>
53706         time_r: Add missing declarations on HP-UX 11.
53707         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
53708         instead of HAVE_LOCALTIME_R.
53709         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
53710         HAVE_LOCALTIME_R always.
53711         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
53712         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
53713         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
53714         HAVE_LOCALTIME_R.
53715         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
53716         * doc/posix-functions/localtime_r.texi: Likewise.
53718 2010-12-29  Eric Blake  <eblake@redhat.com>
53720         mountlist: tweak previous commit
53721         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
53722         Reported by Paul Eggert.
53724         mountlist: fix local drive detection on cygwin
53725         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
53726         that works for cygwin.
53728 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53730         ftoastr, snprintf: ftoastr + snprintf module
53731         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
53732         since the snprintf module now should be good enough here.
53733         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
53734         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
53735         and gl_MODULE_INDICATOR([snprintf]), but the former enables
53736         GNULIB_SNPRINTF only for the test directory, and the latter
53737         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
53738         seems to suffice by itself.
53740 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53742         alloca: one step towards thread-safety
53743         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
53744         need for a static variable.  All callers changed.  This does not
53745         make the alloca replacement thread-safe, but it's one step.
53747         tests: minor indenting change
53748         * tests/init.sh: Sync from coreutils housekeeping patch
53749         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
53750         to keep lines within 80 columns.
53752 2010-12-28  Jim Meyering  <meyering@redhat.com>
53754         regex: don't infloop on persistent failing calloc
53755         * lib/regexec.c (build_trtable): Return failure indication upon
53756         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
53757         In glibc, this was fixed for version 2.13:
53758         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
53760 2010-12-28  Bruno Haible  <bruno@clisp.org>
53761             Paul Eggert <eggert@cs.ucla.edu>
53763         linkat: Make implementation robust against system behaviour variations.
53764         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
53765         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
53766         way, and to -2 if it needs a generic runtime test.
53767         * lib/linkat.c (solaris_optimized_link_immediate,
53768         solaris_optimized_link_follow): New functions.
53769         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
53770         (check_same_link): Use it.
53772 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
53774         New module 'unigbrk/base'.
53775         * modules/unigbrk/base: New file.
53776         * lib/unigbrk.in.h: New file.
53778         New module 'unigbrk/uc-gbrk-prop'.
53779         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
53780         * modules/unigbrk/uc-gbrk-prop: New file.
53781         * lib/unigbrk/gbrkprop.h: New file.
53782         * lib/unigbrk/uc-gbrk-prop.c: New file.
53784         New module 'unigbrk/uc-is-grapheme-break'.
53785         * modules/unigbrk/uc-is-grapheme-break: New file.
53786         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
53787         * lib/unigbrk/uc-is-grapheme-break.c: New file.
53788         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
53789         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
53790         * tests/unigbrk/GraphemeBreakTest.txt: New file.
53792         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
53794 2010-12-27  Bruno Haible  <bruno@clisp.org>
53796         linkat test: Avoid failure on Solaris 11 2010-11.
53797         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
53799 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
53801         utimens: work around glibc rounding bug on more platforms
53802         * lib/utimens.c (fdutimens): Work around rounding bug even if
53803         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
53804         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
53806 2010-12-27  Bruno Haible  <bruno@clisp.org>
53808         select tests: Improve comments.
53809         * tests/test-select.c (do_select): Add comments.
53811 2010-12-27  Bruno Haible  <bruno@clisp.org>
53813         select tests: Safer way of handling timeout.
53814         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
53815         at every invocation.
53817 2010-12-27  Bruno Haible  <bruno@clisp.org>
53819         select tests: Use 'bool' where appropriate.
53820         * tests/test-select.c (connect_to_socket): Change argument type to
53821         'bool'.
53823 2010-12-27  Bruno Haible  <bruno@clisp.org>
53825         select tests: Use existing modules.
53826         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
53827         (configure.ac): Don't test for unistd.h.
53828         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
53829         declared in <unistd.h>.
53831 2010-12-27  Bruno Haible  <bruno@clisp.org>
53833         mbrtowc: Work around a Solaris 7 bug.
53834         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
53835         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
53836         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
53837         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
53838         MBRTOWC_NULL_ARG1_BUG.
53839         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
53840         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
53841         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
53842         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
53844 2010-12-27  Jim Meyering  <meyering@redhat.com>
53846         read-file.c: tweak syntax
53847         * lib/read-file.c (fread_file): Remove space after "*" in function
53848         definitions.
53850 2010-12-27  Bruno Haible  <bruno@clisp.org>
53852         times test: Avoid gcc warnings on OSF/1.
53853         * tests/test-times.c (main): Cast printf arguments from clock_t to
53854         'long int'.
53856 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
53858         utimens: work around glibc rounding bug on older Linux kernels
53859         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
53860         on Linux with a glibc whose utimes might not work, then work
53861         around a longstanding glibc bug involving rounding rather than
53862         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
53863         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
53865 2010-12-26  Bruno Haible  <bruno@clisp.org>
53867         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
53868         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
53869         _GL_CXXALIAS_SYS.
53870         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
53872 2010-12-26  Bruno Haible  <bruno@clisp.org>
53874         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
53875         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
53876         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
53877         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
53878         looking for the declaration.
53879         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
53880         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
53881         problem.
53882         * doc/posix-functions/inet_pton.texi: Likewise.
53884 2010-12-26  Bruno Haible  <bruno@clisp.org>
53886         arpa_inet: Use the common idioms with C++ support.
53887         * lib/arpa_inet.in.h: Include c++defs.h.
53888         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
53889         support.
53890         * modules/arpa_inet (Depends-on): Add c++defs.
53891         (Makefile.am): Substitute the contents of c++defs.h.
53892         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
53893         * modules/arpa_inet-c++-tests: New file.
53894         * tests/test-arpa_inet-c++.cc: New file.
53896 2010-12-25  Bruno Haible  <bruno@clisp.org>
53898         Fix more C++ link errors on Solaris 8.
53899         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
53900         $(LIB_EACCESS).
53901         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
53902         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
53903         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
53904         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
53905         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
53907 2010-12-25  Bruno Haible  <bruno@clisp.org>
53909         printf-posix: Fix link error when a non-GCC compiler is used.
53910         * lib/stdio.in.h (printf): When not using GCC, override printf
53911         correctly.
53912         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
53914 2010-12-25  Bruno Haible  <bruno@clisp.org>
53916         strerror_r-posix: Update doc.
53917         * doc/posix-functions/strerror_r.texi: Update doc about the return
53918         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
53920 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53922         utimens: simplify the logic of the previous change
53923         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
53924         This should not affect whether the test succeeds or fails.
53926         utimens: configure better on hosts with NFS clock skew
53927         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
53928         uses the clock of the local host.  It might use the clock of the
53929         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
53930         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
53932 2010-12-25  Bruno Haible  <bruno@clisp.org>
53934         ptsname test: Avoid failure on Solaris.
53935         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
53936         open a pseudo-terminal; don't use BSD-style ptys.
53937         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
53939 2010-12-25  Bruno Haible  <bruno@clisp.org>
53941         ptsname: Avoid ERANGE failure on some systems.
53942         * lib/ptsname.c (buffer): Increase size.
53944 2010-12-25  Bruno Haible  <bruno@clisp.org>
53946         rename, renameat: Avoid test failures at NFS mounted locations.
53947         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
53948         so that subsequent mkdir calls succeed.
53950 2010-12-25  Bruno Haible  <bruno@clisp.org>
53952         iswblank: Fix C++ link error on Solaris 8.
53953         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
53954         _GL_FUNCDECL_SYS.
53956 2010-12-25  Bruno Haible  <bruno@clisp.org>
53958         unistd: Fix C++ link error on Solaris 8.
53959         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
53961 2010-12-25  Bruno Haible  <bruno@clisp.org>
53963         readlink doc: Mention an old glibc bug.
53964         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
53966 2010-12-25  Bruno Haible  <bruno@clisp.org>
53968         fcntl-h: Fix for use of C++ on glibc systems.
53969         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
53970         also on glibc systems in C++ mode.
53971         Reported by Gary V. Vaughan <gary@gnu.org>.
53973 2010-12-25  Bruno Haible  <bruno@clisp.org>
53975         roundl-ieee: Make it work on OSF/1 5.1 with cc.
53976         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
53978 2010-12-25  Bruno Haible  <bruno@clisp.org>
53980         truncl-ieee: Make it work on OSF/1 5.1 with cc.
53981         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
53982         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
53983         test whether truncl works according to ISO C 99 with IEC 60559.
53984         * m4/truncl-ieee.m4: New file.
53985         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
53986         m4/signbit.m4.
53987         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
53989 2010-12-25  Bruno Haible  <bruno@clisp.org>
53991         ceill-ieee: Make it work on OSF/1 5.1 with cc.
53992         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
53993         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
53994         test whether ceill works according to ISO C 99 with IEC 60559.
53995         * m4/ceill-ieee.m4: New file.
53996         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
53997         m4/signbit.m4.
53998         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
54000 2010-12-25  Bruno Haible  <bruno@clisp.org>
54002         Ensure all prerequisites of <wchar.h> are included.
54003         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
54004         before <wchar.h>.
54005         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
54006         gl_MBRLEN_NUL_RETVAL): Likewise.
54007         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
54008         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
54009         AC_FUNC_MBRTOWC): Likewise.
54010         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
54011         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
54012         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
54013         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
54014         Likewise.
54015         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
54016         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
54017         (gl_WCHAR_H): Improve comments.
54018         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
54020 2010-12-25  Bruno Haible  <bruno@clisp.org>
54022         strtok_r: Fix C syntax error in autoconf macro.
54023         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
54024         characters in test program.
54026 2010-12-24  Bruno Haible  <bruno@clisp.org>
54028         ceil, trunc, round: Fix gcc warnings.
54029         * lib/ceil.c (MIN): Undefine before redefining.
54030         * lib/trunc.c (MIN): Likewise.
54031         * lib/round.c (MIN): Likewise.
54032         Include <math.h> first.
54034 2010-12-24  Bruno Haible  <bruno@clisp.org>
54036         select tests: Avoid failures on OSF/1 5.1.
54037         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
54038         failure of closing the last socket; it may fail with ECONNRESET.
54040 2010-12-24  Eric Blake  <eblake@redhat.com>
54042         stdint: avoid HP-UX 10.20 preprocessor bug
54043         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
54044         than #if.
54045         * tests/test-floor2.c (main): Likewise.
54046         Reported by Peter O'Gorman.
54048         pipe: make obsoletion transition easier
54049         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
54050         * modules/pipe (Files): Include revived file.
54051         (Include): Drop reference, to mirror getdate's behavior.
54053 2010-12-24  Bruno Haible  <bruno@clisp.org>
54055         sys_socket: Hide mismatch of declarations on NonStop Kernel.
54056         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
54057         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
54058         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
54060 2010-12-24  Bruno Haible  <bruno@clisp.org>
54062         gethostname: Ensure declaration on NonStop Kernel.
54063         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
54064         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
54066 2010-12-24  Bruno Haible  <bruno@clisp.org>
54068         sys_select: Ensure all necessary types on NonStop Kernel.
54069         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
54070         include <sys/time.h>.
54071         * doc/posix-headers/sys_select.texi: Mention that it's missing on
54072         NonStop Kernel.
54073         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
54075 2010-12-24  Bruno Haible  <bruno@clisp.org>
54077         sys_select: Remove unneeded include.
54078         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
54079         have <sys/select.h>.
54081 2010-12-24  Bruno Haible  <bruno@clisp.org>
54083         gethostname: Provide a fallback for HOST_NAME_MAX.
54084         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
54085         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
54086         instead.
54087         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
54089 2010-12-24  Bruno Haible  <bruno@clisp.org>
54091         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
54092         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
54093         (SA_RESTART): Likewise.
54094         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
54096 2010-12-24  Bruno Haible  <bruno@clisp.org>
54098         signal: Define NSIG.
54099         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
54100         * tests/test-signal.c (nsig): New variable.
54101         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
54103 2010-12-24  Bruno Haible  <bruno@clisp.org>
54105         rename, renameat: Avoid test failures on OSF/1 5.1.
54106         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
54107         alternative error codes.
54108         * tests/test-renameat.c (main): Likewise.
54110 2010-12-24  Bruno Haible  <bruno@clisp.org>
54112         *printf: Detect large precisions bug on Solaris 10/SPARC.
54113         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
54114         by Paul Eggert.
54115         * tests/test-snprintf-posix.h (test_function): Add this test code here
54116         too.
54117         * tests/test-sprintf-posix.h (test_function): Likewise.
54118         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54119         * tests/test-vasprintf-posix.c (test_function): Likewise.
54120         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
54121         around by gnulib.
54122         * doc/posix-functions/printf.texi: Likewise.
54123         * doc/posix-functions/snprintf.texi: Likewise.
54124         * doc/posix-functions/sprintf.texi: Likewise.
54125         * doc/posix-functions/vfprintf.texi: Likewise.
54126         * doc/posix-functions/vprintf.texi: Likewise.
54127         * doc/posix-functions/vsnprintf.texi: Likewise.
54128         * doc/posix-functions/vsprintf.texi: Likewise.
54129         * doc/posix-functions/dprintf.texi: Undo last commit.
54130         * doc/posix-functions/vdprintf.texi: Likewise.
54132 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54134         tests: port test-fdutimensat.c to Solaris 8
54135         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
54136         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
54137         On Solaris 8, it fails with errno == ENOSYS, because there is no
54138         futimens (so it can't use the fd), and there is no lutimens (so it
54139         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
54141         vsnprintf: make more consistent with snprintf; doc fixes
54143         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
54144         the byte count return problem was promoted from the snprintf-posix
54145         to the snprintf module.
54146         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
54147         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
54148         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
54149         * tests/test-snprintf.c (main): Check the byte count returned.
54150         * tests/test-vsnprintf.c (main): Likewise.
54152 2010-12-23  Eric Blake  <eblake@redhat.com>
54154         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
54155         * modules/sigpipe (License): Relax license.
54157 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
54159         doc: document Solaris printf bug with large float precisions
54160         * doc/posix-functions/dprintf.texi (dprintf):
54161         * doc/posix-functions/fprintf.texi (fprintf):
54162         * doc/posix-functions/printf.texi (printf):
54163         * doc/posix-functions/snprintf.texi (snprintf):
54164         * doc/posix-functions/sprintf.texi (sprintf):
54165         * doc/posix-functions/vdprintf.texi (vdprintf):
54166         * doc/posix-functions/vfprintf.texi (vfprintf):
54167         * doc/posix-functions/vprintf.texi (vprintf):
54168         * doc/posix-functions/vsnprintf.texi (vsnprintf):
54169         * doc/posix-functions/vsprintf.texi (vsprintf):
54170         Mention that these functions mishandle large floating point
54171         precisions on Solaris 10.  The same bug is also present in Solaris
54172         8, and I assume earlier.  This causes "cd gnulib-tests; make
54173         check" to fail on Solaris 8 (and I assume, later) when building
54174         the latest coreutils, in test-vasprintf-posix's call to
54175         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
54176         the wide flavors (e.g., wprintf) so this patch just updates the
54177         documentation for the narrow ones.
54179         test-posixtm.c: add two tests
54180         * tests/test-posixtm.c: Add two tests, to highlight the
54181         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
54182         around this bug; this is merely to document it.
54184 2010-12-22  Bruno Haible  <bruno@clisp.org>
54186         getlogin_r: Work around portability problem on OSF/1.
54187         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
54188         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
54189         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
54190         test for a truncated result.
54191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
54192         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
54193         * modules/getlogin_r (Depends-on): Add memchr.
54194         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
54196 2010-12-22  Bruno Haible  <bruno@clisp.org>
54198         ptsname: Avoid test failure on OSF/1 5.1.
54199         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
54200         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
54201         (same_slave): New function.
54202         (main): Use it to compare ptsname's result with the expected file name.
54204 2010-12-22  Bruno Haible  <bruno@clisp.org>
54206         Port extended stdio modules to HP NonStop Kernel.
54207         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
54208         macros.
54209         * lib/fbufmode.c: Update comments.
54210         * lib/fflush.c: Likewise.
54211         * lib/fpurge.c: Likewise.
54212         * lib/freadable.c: Likewise.
54213         * lib/freadahead.c: Likewise.
54214         * lib/freading.c: Likewise.
54215         * lib/freadptr.c: Likewise.
54216         * lib/freadseek.c: Likewise.
54217         * lib/fseeko.c: Likewise.
54218         * lib/fseterr.c: Likewise.
54219         * lib/fwritable.c: Likewise.
54220         * lib/fwriting.c: Likewise.
54221         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
54223 2010-12-22  Bruno Haible  <bruno@clisp.org>
54225         ttyname_r: Work around bug on OSF/1 5.1.
54226         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
54227         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
54228         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
54229         present.
54230         * lib/ttyname_r.c (ttyname_r): Update comments.
54232 2010-12-22  Bruno Haible  <bruno@clisp.org>
54234         round: Implement result sign according to IEEE 754.
54235         * lib/round.c (MIN, MINUS_ZERO): New macros.
54236         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
54237         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
54238         * tests/test-round-ieee.c (main): Likewise.
54239         * tests/test-roundl-ieee.c (main): Likewise.
54241         trunc: Implement result sign according to IEEE 754.
54242         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
54243         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
54244         * tests/test-trunc2.c: Include minus-zero.h.
54245         (MINUS_ZERO): New macro.
54246         (trunc_reference): Keep in sync with lib/trunc.c.
54247         * tests/test-truncf2.c: Include minus-zero.h.
54248         (MINUS_ZERO): New macro.
54249         (truncf_reference): Keep in sync with lib/trunc.c.
54250         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
54251         * tests/test-trunc-ieee.c (main): Likewise.
54252         * tests/test-truncl-ieee.c (main): Likewise.
54254         ceil: Implement result sign according to IEEE 754.
54255         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
54256         (FUNC): Return -0.0 for -1 < x < 0.
54257         * tests/test-ceil2.c: Include minus-zero.h.
54258         (MINUS_ZERO): New macro.
54259         (ceil_reference): Keep in sync with lib/ceil.c.
54260         * tests/test-ceilf2.c: Include minus-zero.h.
54261         (MINUS_ZERO): New macro.
54262         (ceilf_reference): Keep in sync with lib/ceil.c.
54263         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
54264         * tests/test-ceil-ieee.c (main): Likewise.
54265         * tests/test-ceill-ieee.c (main): Likewise.
54267         floor: Implement result sign according to IEEE 754.
54268         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
54269         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
54270         * tests/test-floorf2.c (floorf_reference): Likewise.
54271         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
54272         * tests/test-floor-ieee.c (main): Likewise.
54273         * tests/test-floorl-ieee.c (main): Likewise.
54275 2010-12-22  Bruno Haible  <bruno@clisp.org>
54277         getaddrinfo: Update doc.
54278         * doc/posix-functions/gai_strerror.texi: Return type is also different
54279         on AIX and HP-UX.
54281 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
54283         getaddrinfo, inet_ntop: Update doc for Solaris.
54284         * doc/posix-functions/gai_strerror.texi: Return type is also an
54285         issue on Solaris 9 and earlier.
54286         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
54287         on Solaris 10 and earlier.
54289 2010-12-21  Bruno Haible  <bruno@clisp.org>
54291         New module 'roundl-ieee'.
54292         * modules/roundl-ieee: New file.
54293         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
54294         test whether roundl works according to ISO C 99 with IEC 60559.
54295         * m4/roundl-ieee.m4: New file.
54296         * modules/roundl-ieee-tests: New file.
54297         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
54298         * tests/test-roundl.c (main): Remove signbit tests.
54299         * modules/roundl-tests (Depends-on): Remove signbit.
54300         * doc/posix-functions/roundl.texi: Mention the new module.
54302 2010-12-21  Bruno Haible  <bruno@clisp.org>
54304         New module 'truncl-ieee'.
54305         * modules/truncl-ieee: New file.
54306         * modules/truncl-ieee-tests: New file.
54307         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
54308         * tests/test-truncl.c (main): Remove signbit tests.
54309         * modules/truncl-tests (Depends-on): Remove signbit.
54310         * doc/posix-functions/truncl.texi: Mention the new module.
54312 2010-12-21  Bruno Haible  <bruno@clisp.org>
54314         New module 'ceill-ieee'.
54315         * modules/ceill-ieee: New file.
54316         * modules/ceill-ieee-tests: New file.
54317         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
54318         * tests/test-ceill.c (main): Remove signbit tests.
54319         * modules/ceill-tests (Depends-on): Remove signbit.
54320         * doc/posix-functions/ceill.texi: Mention the new module.
54322 2010-12-21  Bruno Haible  <bruno@clisp.org>
54324         New module 'floorl-ieee'.
54325         * modules/floorl-ieee: New file.
54326         * modules/floorl-ieee-tests: New file.
54327         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
54328         * tests/test-floorl.c (main): Remove signbit tests.
54329         * modules/floorl-tests (Depends-on): Remove signbit.
54330         * doc/posix-functions/floorl.texi: Mention the new module.
54332 2010-12-21  Bruno Haible  <bruno@clisp.org>
54334         New module 'round-ieee'.
54335         * modules/round-ieee: New file.
54336         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
54337         whether round works according to ISO C 99 with IEC 60559.
54338         * m4/round-ieee.m4: New file.
54339         * modules/round-ieee-tests: New file.
54340         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
54341         * tests/test-round1.c (main): Remove signbit tests.
54342         * modules/round-tests (Depends-on): Remove 'signbit'.
54343         * doc/posix-functions/round.texi: Mention the new module.
54345 2010-12-21  Bruno Haible  <bruno@clisp.org>
54347         New module 'trunc-ieee'.
54348         * modules/trunc-ieee: New file.
54349         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
54350         whether trunc works according to ISO C 99 with IEC 60559.
54351         * m4/trunc-ieee.m4: New file.
54352         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
54353         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
54354         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
54355         * modules/trunc-ieee-tests: New file.
54356         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
54357         * tests/test-trunc1.c (main): Remove signbit tests.
54358         * modules/trunc-tests (Depends-on): Remove 'signbit'.
54359         * doc/posix-functions/trunc.texi: Mention the new module.
54361 2010-12-21  Bruno Haible  <bruno@clisp.org>
54363         New module 'ceil-ieee'.
54364         * modules/ceil-ieee: New file.
54365         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
54366         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
54367         ISO C 99 with IEC 60559.
54368         * m4/ceil-ieee.m4: New file.
54369         * modules/ceil (Files): Add lib/ceil.c.
54370         (Depends-on): Add 'float'.
54371         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54372         * lib/math.in.h (ceil): New declaration.
54373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
54374         REPLACE_CEIL.
54375         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
54376         * modules/ceil-ieee-tests: New file.
54377         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
54378         * tests/test-math-c++.cc: Check the signature of 'ceil'.
54379         * doc/posix-functions/ceil.texi: Mention the new module.
54381 2010-12-21  Bruno Haible  <bruno@clisp.org>
54383         New module 'floor-ieee'.
54384         * modules/floor-ieee: New file.
54385         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
54386         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
54387         ISO C 99 with IEC 60559.
54388         * m4/floor-ieee.m4: New file.
54389         * modules/floor (Files): Add lib/floor.c.
54390         (Depends-on): Add 'float'.
54391         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54392         * lib/math.in.h (floor): New declaration.
54393         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
54394         REPLACE_FLOOR.
54395         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
54396         * modules/floor-ieee-tests: New file.
54397         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
54398         * tests/test-math-c++.cc: Check the signature of 'floor'.
54399         * doc/posix-functions/floor.texi: Mention the new module.
54401 2010-12-21  Bruno Haible  <bruno@clisp.org>
54403         New module 'roundf-ieee'.
54404         * modules/roundf-ieee: New file.
54405         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
54406         test whether roundf works according to ISO C 99 with IEC 60559.
54407         * m4/roundf-ieee.m4: New file.
54408         * modules/roundf-ieee-tests: New file.
54409         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
54410         * tests/test-roundf1.c (main): Remove signbit tests.
54411         * modules/roundf-tests (Depends-on): Remove 'signbit'.
54412         * doc/posix-functions/roundf.texi: Mention the new module.
54414 2010-12-21  Bruno Haible  <bruno@clisp.org>
54416         New module 'truncf-ieee'.
54417         * modules/truncf-ieee: New file.
54418         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
54419         test whether truncf works according to ISO C 99 with IEC 60559.
54420         * m4/truncf-ieee.m4: New file.
54421         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
54422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
54423         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
54424         * modules/truncf-ieee-tests: New file.
54425         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
54426         * tests/test-truncf1.c (main): Remove signbit tests.
54427         * modules/truncf-tests (Depends-on): Remove 'signbit'.
54428         * doc/posix-functions/truncf.texi: Mention the new module.
54430 2010-12-21  Bruno Haible  <bruno@clisp.org>
54432         New module 'ceilf-ieee'.
54433         * modules/ceilf-ieee: New file.
54434         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
54435         test whether ceilf works according to ISO C 99 with IEC 60559.
54436         * m4/ceilf-ieee.m4: New file.
54437         * modules/ceilf-ieee-tests: New file.
54438         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
54439         * tests/test-ceilf1.c (main): Remove signbit tests.
54440         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
54441         * doc/posix-functions/ceilf.texi: Mention the new module.
54443 2010-12-21  Bruno Haible  <bruno@clisp.org>
54445         New module 'floorf-ieee'.
54446         * modules/floorf-ieee: New file.
54447         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
54448         test whether floorf works according to ISO C 99 with IEC 60559.
54449         * m4/floorf-ieee.m4: New file.
54450         * modules/floorf-ieee-tests: New file.
54451         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
54452         * tests/test-floorf1.c (main): Remove signbit tests.
54453         * modules/floorf-tests (Depends-on): Remove 'signbit'.
54454         * doc/posix-functions/floorf.texi: Mention the new module.
54456 2010-12-21  Bruno Haible  <bruno@clisp.org>
54458         Support for minus zero in autoconf macros.
54459         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
54460         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
54461         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
54462         * tests/minus-zero.h: Update comments.
54464 2010-12-21  Bruno Haible  <bruno@clisp.org>
54466         Tests for module 'ceil'.
54467         * modules/ceil-tests: New file.
54468         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
54469         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
54471 2010-12-21  Bruno Haible  <bruno@clisp.org>
54473         Tests for module 'floor'.
54474         * modules/floor-tests: New file.
54475         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
54476         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
54478 2010-12-21  Bruno Haible  <bruno@clisp.org>
54480         math: Fix indentation.
54481         * lib/math.in.h (floorf): Fix indentation.
54483 2010-12-21  Bruno Haible  <bruno@clisp.org>
54485         Fix cross-compilation guesses on Solaris.
54486         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
54487         not match "solaris2.10".
54488         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
54489         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
54490         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
54492 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
54494         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
54495         This fixes a problem observed with the latest coreutils snapshot
54496         that caused a test to fail on Solaris 8.  src/csplit.c's call
54497         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
54498         earlier, instead of returning the number of bytes that would have
54499         been generated; this causes csplit to incorrectly report memory
54500         exhaustion.
54501         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
54502         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
54503         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
54504         comments to match.
54505         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
54506         Fix typo in matching older versions of Solaris: "solaris2.10"
54507         is matched by the shell pattern "solaris2.[0-9]*".  This matters
54508         only for guessing while cross-compiling.
54509         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
54511 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
54513         ftoastr: fix comment again
54514         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
54515         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
54516         Also, simplify example a bit by using flags = 0.
54518 2010-12-20  Bruno Haible  <bruno@clisp.org>
54520         round*, trunc*: Update documentation regarding glibc.
54521         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
54522         * doc/posix-functions/round.texi: Likewise.
54523         * doc/posix-functions/roundl.texi: Likewise.
54524         * doc/posix-functions/truncf.texi: Likewise.
54525         * doc/posix-functions/trunc.texi: Likewise.
54526         * doc/posix-functions/truncl.texi: Likewise.
54528 2010-12-20  Bruno Haible  <bruno@clisp.org>
54530         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
54531         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
54532         * doc/posix-functions/round.texi: Likewise.
54533         * doc/posix-functions/roundl.texi: Likewise.
54535 2010-12-20  Bruno Haible  <bruno@clisp.org>
54537         ttyname_r: Add missing declaration on HP-UX 11.
54538         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
54539         HAVE_TTYNAME_R.
54540         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
54541         declared. Set HAVE_TTYNAME_R always.
54542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54543         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
54544         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
54545         HAVE_TTYNAME_R.
54546         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
54548 2010-12-20  Bruno Haible  <bruno@clisp.org>
54550         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
54551         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
54552         * doc/posix-functions/getlogin_r.texi: Likewise.
54553         * tests/test-getlogin.c: Include <errno.h>.
54554         (main): Avoid test failure on HP-UX 11.11.
54555         * tests/test-getlogin_r.c (main): Likewise.
54557 2010-12-20  Bruno Haible  <bruno@clisp.org>
54559         getlogin_r: Add missing declaration on HP-UX 11.
54560         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
54561         declared also when it exists as a function.
54562         * doc/posix-functions/getlogin_r.texi: Document this workaround.
54564 2010-12-20  Bruno Haible  <bruno@clisp.org>
54566         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
54567         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
54568         through wcrtomb.
54570 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54572         ftoastr: fix comment
54573         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
54574         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
54576 2010-12-19  Bruno Haible  <bruno@clisp.org>
54578         isnan: Ensure it is a macro.
54579         * lib/math.in.h (isnan): Define as a macro if not already a macro.
54580         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
54581         Solaris.
54583 2010-12-19  Bruno Haible  <bruno@clisp.org>
54585         ldexpl test: Fix link error on OSF/1 5.1.
54586         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
54588 2010-12-19  Bruno Haible  <bruno@clisp.org>
54590         wctype: Make it work in C++ mode on OSF/1 5.1.
54591         * lib/wctype.in.h (iswblank): Declare but not define here.
54592         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
54593         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
54594         * modules/wctype (Files): Add lib/iswblank.c.
54596 2010-12-19  Bruno Haible  <bruno@clisp.org>
54598         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
54599         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
54600         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
54602 2010-12-19  Bruno Haible  <bruno@clisp.org>
54604         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
54605         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
54606         _POSIX_PII_SOCKET.
54607         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
54608         * doc/posix-functions/recvfrom.texi: Likewise.
54609         * doc/posix-functions/send.texi: Likewise.
54610         * doc/posix-functions/sendto.texi: Likewise.
54612 2010-12-19  Bruno Haible  <bruno@clisp.org>
54614         tcgetsid: Add missing declaration on OSF/1 5.1.
54615         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
54616         HAVE_TCGETSID.
54617         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
54618         Don't set HAVE_TCGETSID.
54619         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
54620         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
54621         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
54622         HAVE_TCGETSID.
54623         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
54625 2010-12-19  Bruno Haible  <bruno@clisp.org>
54627         stdio: Fix problem with popen() declaration on OSF/1 5.1.
54628         * lib/stdio.in.h: During the include_next statement, let recursive
54629         includes of this file include only the system header file.
54631 2010-12-19  Bruno Haible  <bruno@clisp.org>
54633         iconv_open: Fix regression from 2010-12-04.
54634         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
54635         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
54637 2010-12-19  Bruno Haible  <bruno@clisp.org>
54639         stdbool test: Avoid a gcc warning.
54640         * tests/test-stdbool.c (main): Fail if e1 is false.
54641         Reported by Jim Meyering.
54643 2010-12-19  Jim Meyering  <meyering@redhat.com>
54645         setenv: restore to working order
54646         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
54647         mistakenly removed.
54648         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
54649         HAVE_SETENV.
54650         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
54651         HAVE_SETENV.
54653 2010-12-19  Bruno Haible  <bruno@clisp.org>
54655         Document some different function declarations on OSF/1 5.1.
54656         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
54657         * doc/posix-functions/inet_ntop.texi: Likewise.
54658         * doc/posix-functions/gethostname.texi: Likewise.
54659         * lib/unistd.in.h (gethostname): Update comment.
54661 2010-12-19  Bruno Haible  <bruno@clisp.org>
54663         doc: Mention vasprintf-posix module.
54664         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
54665         the 'vasprintf-posix' module.
54666         * doc/glibc-functions/vasprintf.texi: Likewise.
54668 2010-12-19  Bruno Haible  <bruno@clisp.org>
54670         unsetenv: Add missing declaration on OSF/1 5.1.
54671         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
54672         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
54673         Don't set HAVE_UNSETENV. In the test program, set _BSD.
54674         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
54675         not HAVE_UNSETENV.
54676         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
54677         HAVE_UNSETENV.
54678         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
54680 2010-12-19  Bruno Haible  <bruno@clisp.org>
54682         setenv: Add missing declaration on OSF/1 5.1.
54683         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
54684         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
54685         declared. Don't set HAVE_SETENV.
54686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
54687         not HAVE_SETENV.
54688         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
54689         HAVE_SETENV.
54690         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
54692 2010-12-19  Bruno Haible  <bruno@clisp.org>
54694         nl_langinfo tests: Avoid gcc warning.
54695         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
54697 2010-12-19  Bruno Haible  <bruno@clisp.org>
54699         mknod: Avoid error in C++ mode on OSF/1 with GCC.
54700         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
54701         _GL_CXXALIAS_SYS.
54703 2010-12-19  Bruno Haible  <bruno@clisp.org>
54705         stdbool: Relax test.
54706         * tests/test-stdbool.c (e): Don't require that casts from a variable's
54707         address to 'bool' work in static initializer, for compilers other than
54708         GCC.
54710 2010-12-19  Bruno Haible  <bruno@clisp.org>
54712         ftello: Add missing declaration on OSF/1 5.1.
54713         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
54714         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
54715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
54716         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
54717         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
54719 2010-12-19  Bruno Haible  <bruno@clisp.org>
54721         fseeko: Add missing declaration on OSF/1 5.1.
54722         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
54723         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
54724         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
54725         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
54726         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
54728 2010-12-19  Bruno Haible  <bruno@clisp.org>
54730         fchdir: Add missing declaration on OSF/1 5.1.
54731         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
54732         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
54733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
54734         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
54735         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
54737 2010-12-19  Bruno Haible  <bruno@clisp.org>
54739         relocatable-prog-wrapper: Separate from relocatable-prog.
54740         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
54741         uninstall-relocwrapper rule here.
54742         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
54743         Reported by Ian Beckwith <ianb@erislabs.net>.
54745 2010-12-19  Bruno Haible  <bruno@clisp.org>
54747         unistr/u8-mbsnlen: Add missing dependency.
54748         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
54749         Reported by Ian Beckwith <ianb@erislabs.net>.
54751 2010-12-19  Bruno Haible  <bruno@clisp.org>
54753         iconv: Make it possible again to use this module without 'iconv-h'.
54754         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
54755         if it is not defined.
54756         Reported by Ian Beckwith <ianb@erislabs.net>.
54758 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54760         acl: port to Solaris 8 when copying from tmpfs to ufs
54761         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
54762         error number.  Problem observed on Solaris 8 with latest
54763         coreutils, with "mv A B", where A is on a tmpfs file system and B
54764         is on a ufs file system.  This caused coreutils' mv/part-symlink
54765         test to fail.
54767         tests: set fail=0 at start
54768         * tests/init.sh (setup_): Move fail=0 initialization here ...
54769         (mktempd_): ... from here, so that tests can rely on fail being
54770         set to 0 initially.  This fixes a problem in coreutils; see:
54771         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
54773 2010-12-18  Bruno Haible  <bruno@clisp.org>
54775         memmem-simple: Stylistic changes.
54776         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
54777         Fix preprocessor directive indentation.
54779 2010-12-15  Pádraig Brady  <P@draigBrady.com>
54781         memmem, memmem-simple: reorganize and expand empty needle check
54782         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
54783         functional checks to memmem-simple so that one has a fully functional
54784         memmem by using just this module.
54785         Restrict the performance only check to the memmem module.
54786         Also expand the empty needle check to ensure the correct
54787         pointer is returned, not just a non NULL pointer.
54788         * doc/glibc-functions/memmem.texi: Rearrange the portability
54789         documentation to correlate with the rearranged checks.
54790         Clarify exactly how the memmem and memmem-simple modules
54791         relate to each other.
54793 2010-12-15  Pádraig Brady  <P@draigBrady.com>
54794             Bruno Haible  <bruno@clisp.org>
54796         Improve cross-compilation guesses for uClibc.
54797         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
54798         that uClibc does not have the glibc bug.
54799         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
54800         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
54802 2010-12-14  Eric Blake  <eblake@redhat.com>
54804         configmake: provide fallbacks for oldest supported autotools
54805         * m4/configmake.m4: New file.
54806         * modules/configmake (Files): Ship it.
54807         (configure.ac): Use it to guarantee fallbacks.
54809 2010-12-13  Pádraig Brady  <P@draigBrady.com>
54811         read-file: Improve handling of large files
54812         * lib/read-file.c (fread_file): Minimize realloc()s
54813         for regular files, and better manage sizes around SIZE_MAX.
54815 2010-12-13  Eric Blake  <eblake@redhat.com>
54817         cloexec, fcntl: relax license
54818         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
54819         consent from all contributors.
54820         * modules/fcntl (License): Likewise.
54822 2010-12-10  Bruno Haible  <bruno@clisp.org>
54824         Tests for module 'pipe-posix'.
54825         * modules/pipe-posix-tests: New file.
54826         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
54828 2010-12-10  Bruno Haible  <bruno@clisp.org>
54830         pipe-posix: Make it work in C++ mode.
54831         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
54832         (pipe): Use common idiom, not a macro definition.
54833         * lib/pipe.c: New file.
54834         * m4/pipe.m4: New file.
54835         * modules/pipe-posix (Description): Enhance.
54836         (Files): Add lib/pipe.c, m4/pipe.m4.
54837         (configure.ac): Invoke gl_FUNC_PIPE.
54838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
54839         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
54840         * tests/test-unistd-c++.cc: Check the signature of pipe.
54842 2010-12-10  Bruno Haible  <bruno@clisp.org>
54844         Rename module 'pipe' to 'spawn-pipe'.
54845         * modules/spawn-pipe: New file, renamed from modules/pipe.
54846         (Files, configure.ac, Makefile.am): Update.
54847         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
54848         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
54849         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
54850         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
54851         "spawn-pipe.h" instead of "pipe.h".
54852         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
54853         to gl_SPAWN_PIPE.
54854         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
54855         (Files, Makefile.am): Update.
54856         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
54857         Update.
54858         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
54859         Include "spawn-pipe.h" instead of "pipe.h".
54860         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
54861         * lib/javacomp.c: Likewise.
54862         * lib/javaversion.c: Likewise.
54863         * lib/pipe-filter-gi.c: Likewise.
54864         * lib/pipe-filter-ii.c: Likewise.
54865         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
54866         * modules/javacomp (Depends-on): Likewise.
54867         * modules/javaversion (Depends-on): Likewise.
54868         * modules/pipe-filter-gi (Depends-on): Likewise.
54869         * modules/pipe-filter-ii (Depends-on): Likewise.
54870         * MODULES.html.sh (Executing programs): Update.
54871         * NEWS: Mention the change.
54873 2010-12-10  Eric Blake  <eblake@redhat.com>
54875         pipe-posix: new module
54876         * modules/pipe-posix: New file.
54877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
54878         (gl_UNISTD_H): Check for declaration.
54879         * modules/unistd (Makefile.am): Substitute it.
54880         * lib/unistd.in.h (pipe): Provide it for mingw.
54881         * doc/posix-functions/pipe.texi (pipe): Update documentation.
54882         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
54884 2010-12-07  Bruno Haible  <bruno@clisp.org>
54886         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
54887         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
54888         u8_strcmp_gnu.
54889         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
54891 2010-12-06  Bruno Haible  <bruno@clisp.org>
54893         Update internal documentation.
54894         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
54896 2010-12-04  Bruno Haible  <bruno@clisp.org>
54898         Put more information about failed tests into the test return codes.
54899         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
54900         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
54901         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
54902         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
54903         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
54904         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54905         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54906         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
54907         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
54908         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54909         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
54910         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
54911         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
54912         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54913         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
54914         returns a bit mask.
54915         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
54916         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
54917         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
54918         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
54919         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
54920         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
54921         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
54922         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
54923         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
54924         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
54925         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
54926         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
54927         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
54928         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
54929         * m4/link.m4 (gl_FUNC_LINK): Likewise.
54930         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
54931         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
54932         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
54933         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
54934         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
54935         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54936         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
54937         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
54938         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
54939         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
54940         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
54941         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
54942         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
54943         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
54944         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
54945         gl_PRINTF_PRECISION): Likewise.
54946         * m4/regex.m4 (gl_REGEX): Likewise.
54947         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
54948         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
54949         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
54950         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
54951         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54952         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54953         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
54954         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
54955         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54956         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
54957         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
54958         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
54959         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
54960         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
54961         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
54962         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
54963         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
54964         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
54965         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54966         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
54967         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
54968         enumerated value.
54969         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
54971 2010-12-04  Bruno Haible  <bruno@clisp.org>
54973         Update for Solaris 11 2010-11.
54974         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
54975         Express, released in November 2010.
54977 2010-12-04  Bruno Haible  <bruno@clisp.org>
54979         nproc: Relax license.
54980         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
54981         and Paul Eggert.
54982         Requested by Ludovic Courtès <ludo@gnu.org>.
54984 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
54986         utimecmp: fine-grained src to nearby coarse-grained dest
54988         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
54989         and the source is on a file system with higher-resolution time
54990         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
54991         not work, and the time stamps are close together, the algorithm to
54992         determine the exact resolution from the read-back mtime was buggy:
54993         it had a "!=" where it should have had an "==".  This bug has been
54994         in the code ever since it was introduced to gnulib.
54995         Problem reported by Dan Jacobson in
54996         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
54998 2010-11-30  Bruno Haible  <bruno@clisp.org>
55000         strerror_r-posix: Fix autoconf test.
55001         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
55003 2010-11-28  Bruno Haible  <bruno@clisp.org>
55004             Paul Eggert  <eggert@cs.ucla.edu>
55006         Tests for module 'getdomainname'.
55007         * modules/getdomainname-tests: New file.
55008         * tests/test-getdomainname.c: New file, based on
55009         tests/test-gethostname.c.
55011 2010-11-28  Bruno Haible  <bruno@clisp.org>
55012             Paul Eggert  <eggert@cs.ucla.edu>
55014         getdomainname: Use the system function when possible.
55015         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
55016         (getdomainname): Replace if needed. Provide the declaration if it is
55017         missing. Don't use _GL_CXXALIAS_SYS_CAST.
55018         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
55019         (getdomainname): When the system has getdomainname, call the system
55020         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
55021         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
55022         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
55023         found in libnsl. Look for the declaration also in <netdb.h>. Replace
55024         the function if its second argument is of type 'int' or if it is found
55025         in libnsl.
55026         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
55027         <sys/systeminfo.h> and sysinfo().
55028         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
55029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55030         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
55031         HAVE_GETDOMAINNAME.
55032         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
55033         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
55034         * doc/glibc-functions/getdomainname.texi: Document the problems with
55035         the getdomainname declaration.
55037 2010-11-28  Bruno Haible  <bruno@clisp.org>
55039         sys_socket: Ensure ss_family field on AIX.
55040         * lib/sys_socket.in.h (ss_family): New macro definition.
55041         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
55042         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
55043         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
55044         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
55045         * modules/sys_socket (Makefile.am): Substitute
55046         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
55047         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
55049 2010-11-27  Bruno Haible  <bruno@clisp.org>
55051         readline: Improve configure output.
55052         * m4/readline.m4 (gl_FUNC_READLINE): Make the
55053         "checking for readline..." result understandable.
55055 2010-11-27  Bruno Haible  <bruno@clisp.org>
55057         *printf-posix: Detect a bug on Solaris 10/x86.
55058         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
55059         for floating-point output.
55060         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
55061         directive.
55062         * tests/test-snprintf-posix.h (test_function): Likewise.
55063         * tests/test-sprintf-posix.h (test_function): Likewise.
55064         * tests/test-vasprintf-posix.c (test_function): Likewise.
55065         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
55066         * doc/posix-functions/printf.texi: Likewise.
55067         * doc/posix-functions/snprintf.texi: Likewise.
55068         * doc/posix-functions/sprintf.texi: Likewise.
55069         * doc/posix-functions/vfprintf.texi: Likewise.
55070         * doc/posix-functions/vprintf.texi: Likewise.
55071         * doc/posix-functions/vsnprintf.texi: Likewise.
55072         * doc/posix-functions/vsprintf.texi: Likewise.
55073         * doc/glibc-functions/obstack_printf.texi: Likewise.
55074         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
55076 2010-11-27  Bruno Haible  <bruno@clisp.org>
55078         Fix link error when module libunistring-optional is in use.
55079         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
55080         * modules/striconveha-tests (Makefile.am): Likewise.
55082 2010-11-27  Bruno Haible  <bruno@clisp.org>
55084         regex: Mention link dependencies.
55085         * modules/regex (Link): New section.
55086         * modules/rpmatch (Link): Likewise.
55087         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
55089 2010-11-27  Bruno Haible  <bruno@clisp.org>
55091         ftoastr: Fix compilation error on Solaris.
55092         * lib/ftoastr.c: Include <config.h>.
55094 2010-11-27  Bruno Haible  <bruno@clisp.org>
55096         getloadavg: Update documentation.
55097         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
55099 2010-11-27  Bruno Haible  <bruno@clisp.org>
55101         sys_socket: Fix test whether the functions are declared.
55102         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
55103         not <sys/select.h>.
55105 2010-11-27  Bruno Haible  <bruno@clisp.org>
55107         getpass: Make sure to get system declaration on some platforms.
55108         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
55109         gl_USE_SYSTEM_EXTENSIONS.
55110         * modules/getpass (Depends-on): Add extensions.
55112 2010-11-26  Bruno Haible  <bruno@clisp.org>
55114         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
55115         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
55116         'iconv' module is present.
55117         (ICONV_CONST): New macro.
55118         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
55119         ICONV_CONST.
55120         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
55121         set ICONV_CONST.
55122         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
55123         here.
55124         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
55125         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
55126         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
55127         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
55128         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
55129         present.
55131 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
55133         ftoastr: comment fix
55134         * lib/ftoastr.c: "little" -> "little or no" in comment
55136 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
55138         stdint: port to GCC 4.3 + OSX + Octave
55139         On this platform, stdint.h is buggy and defines int64_t to long
55140         long int.  The replacement defined it to long int, causing
55141         problems with C++ style name mangling.  Instead, trust the system
55142         definition if INT64_MAX is defined, and likewise for the unsigned
55143         variant.   Problem reported by Jarno Rajahalme in
55144         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
55145         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
55146         and don't mess with int64_t and INT64_MAX in this case.
55147         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
55149 2010-11-24  Bruno Haible  <bruno@clisp.org>
55151         doc: Corrections regarding MacOS X 10.4 and 10.5.
55152         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
55153         MacOS X.
55154         Reported by Simon Josefsson.
55156 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
55158         Uninstall ".bin" files installed by relocwrapper.
55159         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
55160         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
55161         unless it is already there.
55163 2010-11-21  Bruno Haible  <bruno@clisp.org>
55165         Update for NetBSD 5.0.
55166         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
55167         NetBSD; the test fails on NetBSD 5.0.
55168         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
55169         about NetBSD.
55171 2010-11-21  Bruno Haible  <bruno@clisp.org>
55173         Update for HP-UX 11.23 and HP-UX 11.31.
55174         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
55175         HP-UX.
55177 2010-11-21  Bruno Haible  <bruno@clisp.org>
55179         Update for MacOS X 10.5.
55180         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
55181         MacOS X; the test fails on MacOS X 10.5.8.
55182         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
55183         about MacOS X.
55185 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
55187         bootstrap: add bootstrap_sync option.
55188         See discussion at
55189         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
55190         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
55191         * build-aux/bootstrap: Accept --bootstrap-sync to update
55192         bootstrap if it is not identical to the local gnulib's
55193         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
55194         enable this by default.  Accept --no-bootstrap-sync to disable
55195         it.
55197 2010-11-20  Bruno Haible  <bruno@clisp.org>
55199         Ensure that <features.h> is included before __GLIBC__ is tested.
55200         * lib/printf-parse.h: Include <features.h>.
55201         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
55202         Reported by Mike Frysinger <vapier@gentoo.org>.
55204         Ensure that <features.h> is included before __GLIBC__ is tested.
55205         * lib/wchar.in.h: Include <features.h>.
55206         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
55207         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
55208         Reported by Mike Frysinger <vapier@gentoo.org>.
55210         Ensure that <features.h> is included before __GLIBC__ is tested.
55211         * lib/arpa_inet.in.h: Include <features.h>.
55212         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
55213         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
55214         Reported by Mike Frysinger <vapier@gentoo.org>.
55216         Ensure that <features.h> is included before __GLIBC__ is tested.
55217         * build-aux/link-warning.h: Include <features.h>.
55218         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
55219         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
55220         Reported by Mike Frysinger <vapier@gentoo.org>.
55222         Ensure that <features.h> is included before __GLIBC__ is tested.
55223         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
55224         Reported by Mike Frysinger <vapier@gentoo.org>.
55226 2010-11-20  Bruno Haible  <bruno@clisp.org>
55228         memmem: Fix autoconf test.
55229         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
55231 2010-11-20  Bruno Haible  <bruno@clisp.org>
55233         Port to uClibc.
55234         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
55235         * lib/fcntl.in.h: Likewise.
55236         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
55237         * lib/mbrtowc.c (mbrtowc): Likewise.
55238         * lib/relocatable.c (find_shared_library_fullname): Likewise.
55239         * lib/strerror_r.c: Likewise.
55240         * lib/unistr/u8-strnlen.c: Likewise.
55241         * lib/vasnprintf.c (decimal_point_char): Likewise.
55242         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
55243         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
55244         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
55245         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
55246         * tests/test-sigaction.c (handler, main): Likewise.
55247         * lib/freading.h: Treat uClibc like a non-glibc platform.
55248         * lib/freading.c: Likewise.
55249         * lib/gettext.h: Likewise.
55250         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
55251         Likewise.
55252         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
55253         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
55254         * lib/propername.c (proper_name_utf8): Likewise.
55255         * lib/spawn.in.h: Likewise.
55256         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
55257         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
55258         mem_cd_iconveh_internal): Likewise.
55259         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
55260         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
55261         strstr, strcasestr): Likewise.
55262         * lib/unicodeio.c (unicode_to_mb): Likewise.
55263         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
55264         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
55265         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
55266         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
55267         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
55268         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
55269         * lib/unistr/u8-stpncpy.c: Likewise.
55270         * lib/vasnprintf.c (VASNPRINTF): Likewise.
55271         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
55272         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55273         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55274         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
55275         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
55276         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
55277         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
55278         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
55279         Likewise.
55280         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
55281         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
55282         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
55283         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55284         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55285         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
55286         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
55287         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
55288         * tests/test-getopt.h (OPTIND_MIN): Likewise.
55289         * tests/test-striconveha.c (main): Likewise.
55290         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55291         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
55292         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
55293         * doc/posix-functions/getline.texi: Likewise.
55294         Reported by Mike Frysinger <vapier@gentoo.org>.
55296 2010-11-20  Bruno Haible  <bruno@clisp.org>
55298         nproc: Fix condition.
55299         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
55300         HAVE_PTHREAD_AFFINITY_NP.
55302 2010-11-20  Bruno Haible  <bruno@clisp.org>
55304         Fix a comment.
55305         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
55307 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
55309         ftoastr: don't assume snprintf
55310         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
55311         Implement a subset of snprintf here, by using sprintf safely.
55312         * modules/ftoastr (Depends-on): Remove snprintf.
55314 2010-11-19  Jim Meyering  <meyering@redhat.com>
55316         test-rename.h: fix compilation failure
55317         * tests/test-rename.h (test_rename): Add omitted "}".
55319 2010-11-17  Jim Meyering  <meyering@redhat.com>
55321         maint.mk: add a URL discussing the no-@acronym policy
55322         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
55324 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
55326         ftoastr: depend on snprintf, improve comments
55327         * lib/ftoastr.c: Also mention Loitsch's draft.
55328         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
55329         needed in the current implementation, but it might simplify
55330         speeding up the code later.
55331         * modules/ftoastr: Depend on snprintf; this improves portability.
55332         Suggested by Bruno Haible in the same email.
55334         ftoastr: port to hosts lacking strtof and strtold
55335         Problem reported by Bruno Haible in
55336         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
55337         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
55338         environment and strtold (and presumably strtof) are not available.
55339         * modules/ftoastr (Files): Add m4/c-strtod.m4.
55340         (configure.ac): Require gl_C99_STRTOLD.
55342 2010-11-18  Bruno Haible  <bruno@clisp.org>
55344         c-strtold: Avoid link error on AIX 7.
55345         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
55346         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
55347         (gl_C_STRTOLD): Test whether strtold_l exists.
55348         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55350 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
55352         intprops: new macro INT_BITS_STRLEN_BOUND
55353         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
55354         ftoastr.h.  This exposes an internal of intprops.h that was formerly
55355         not exposed.  Also, it uses a slightly tighter bound than before;
55356         though this makes no practical difference, we might as well be as
55357         tight as we easily can.
55359         ftoastr: new module, for lossless conversion of floats to short strings
55360         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
55361         * modules/ftoastr: New files.
55363 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55365         bootstrap: port to Solaris sed
55366         * build-aux/bootstrap (get_version): Port to Solaris sed.
55367         See Ralf Wildenhues's note in
55368         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
55370 2010-11-14  Jim Meyering  <meyering@redhat.com>
55372         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
55373         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
55374         and move definition closer to sole use.
55376 2010-11-13  Jim Meyering  <meyering@redhat.com>
55378         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
55379         Now we require at least autoconf-2.59, which means the work-around
55380         is no longer needed.
55381         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
55382         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
55383         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
55384         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
55385         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
55387 2010-11-13  Bruno Haible  <bruno@clisp.org>
55389         rename, renameat: Avoid test failures at NFS mounted locations.
55390         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
55391         functions.
55392         (test_rename): Use assert_nonexistent.
55393         * tests/test-rename.c: Include <dirent.h>.
55394         * tests/test-renameat.c: Likewise.
55395         Reported by Gary V. Vaughan <gary@gnu.org>.
55397         rename, renameat: Document Linux bug with NFS
55398         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
55399         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
55400         * doc/posix-functions/renameat.texi: Likewise.
55401         Suggested by Eric Blake.
55403 2010-11-13  Bruno Haible  <bruno@clisp.org>
55405         rename test: Add comments.
55406         * tests/test-rename.h (test_rename): Add structure and comments.
55408 2010-11-13  Eric Blake  <eblake@redhat.com>
55410         maintainer-makefile: cover a few more files
55411         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
55412         scripts generated within C files, for libvirt.
55414 2010-11-13  Bruno Haible  <bruno@clisp.org>
55416         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
55417         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
55418         character, return the number of bytes that belong together, not always
55419         1.
55420         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
55421         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
55422         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
55423         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
55424         number of bytes of an invalid character.
55425         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
55426         (main): Invoke it.
55427         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
55428         results.
55429         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
55430         malformed byte sequences.
55431         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
55432         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
55433         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
55434         Reported by Ben Pfaff and Paolo Bonzini.
55436 2010-11-13  Bruno Haible  <bruno@clisp.org>
55438         openat: Work around glibc bug with fchownat() and empty file names.
55439         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
55440         (gl_FUNC_FCHOWNAT): Invoke it.
55441         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
55442         * doc/posix-functions/fchownat.texi: Document the glibc bug.
55443         Reported by Gary V. Vaughan <gary@gnu.org>.
55445 2010-11-13  Bruno Haible  <bruno@clisp.org>
55447         openat: Ensure autoconf macro ordering.
55448         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
55449         gl_USE_SYSTEM_EXTENSIONS.
55450         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
55452 2010-11-13  Bruno Haible  <bruno@clisp.org>
55454         Update comments.
55455         * lib/unistr/u8-check.c: Update file name in comments.
55456         * lib/unistr/u8-mblen.c: Likewise.
55457         * lib/unistr/u8-prev.c: Likewise.
55458         * lib/unistr/u8-strmblen.c: Likewise.
55459         * lib/unistr/u8-strmbtouc.c: Likewise.
55461 2010-11-13  Jim Meyering  <meyering@redhat.com>
55463         tests: avoid test failure on Solaris 10 due to lack of PATH export
55464         * tests/test-update-copyright.sh: Don't forget to export PATH.
55466         init.sh: ensure that IFS is defined, just in case...
55467         * tests/init.sh (setup_): Ensure that IFS is defined,
55468         so that saving and restoring it works as expected.  This
55469         appears to be useful at least for an old version of dash
55470         from a long time ago (RH 6).  See here for details:
55471         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
55473         maint.mk: tighten "test a == b" check
55474         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
55475         test to files that contain something like #!/bin/sh.
55476         Without this, coreutils would get two false positives in
55477         the comments of C source files.
55479 2010-11-12  Eric Blake  <eblake@redhat.com>
55481         bootstrap: fix typo in previous attempt
55482         * build-aux/bootstrap (buildreq): Correct the grouping.
55483         Reported by Paul Eggert.
55485         maintainer-makefile: prohibit test x == x
55486         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
55487         Based on a report by Matthias Bolte.
55489         bootstrap: allow FreeBSD gzip
55490         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
55491         which has no '.' and goes to stderr.
55492         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
55493         Reported by Matthias Bolte.
55495         maintainer-makefile: check for i18n setup
55496         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
55497         will likely work.
55499 2010-11-12  Bruno Haible  <bruno@clisp.org>
55501         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
55502         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
55503         * lib/nanosleep.c (nanosleep): Likewise.
55505 2010-11-11  Bruno Haible  <bruno@clisp.org>
55507         fcntl-h: Fix for use of C++ on glibc systems.
55508         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
55509         also on glibc systems in C++ mode.
55510         Reported by Gary V. Vaughan <gary@gnu.org>.
55512 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
55514         mknod: avoid false failure with dash
55515         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
55517 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
55519         unlink: Fix "is it should" typo in diagnostic.
55520         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
55521         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
55523 2010-11-11  Bruno Haible  <bruno@clisp.org>
55525         Tests for module 'strerror_r-posix'.
55526         * modules/strerror_r-posix-tests: New file.
55527         * tests/test-strerror_r.c: New file.
55528         * tests/test-string-c++.cc: Check the signature of strerror_r.
55530         New module 'strerror_r-posix'.
55531         * lib/string.in.h (strerror_r): New declaration.
55532         * lib/strerror_r.c: New file.
55533         * m4/strerror_r.m4: New file.
55534         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
55535         of strerror_r.
55536         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
55537         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
55538         * modules/strerror_r-posix: New file.
55539         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
55540         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
55541         * doc/posix-functions/strerror_r.texi: Mention the new module and the
55542         portability problems.
55544 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
55546         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
55547         line is also considered for output. Quoted function name in shell
55548         command, so temporary files for functions like MyClass::operator()
55549         are removed correctly without errors.
55551 2010-11-09  Bruno Haible  <bruno@clisp.org>
55553         * doc/posix-functions/strerror.texi: List more failing platforms.
55555         * doc/posix-functions/strerror.texi: Add a comment.
55557 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55559         fdopendir: fix bug on MacOS X when low on file descriptors
55561         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
55562         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
55563         All callers changed.
55564         (fdopendir): Invoke save_cwd at the top level, not after using
55565         multiple dup() calls to use up file descriptors.  Then retry
55566         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
55567         less than the maximum number of open file descriptors, because
55568         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
55569         on Mac OS X 10.6.4 for tar 1.24
55570         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
55571         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
55572         and for tar 1.25
55573         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
55575 2010-11-07  Bruno Haible  <bruno@clisp.org>
55577         vasnprintf: Support I flag on glibc systems.
55578         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
55579         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
55580         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
55581         snprintf function.
55582         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
55583         glibc systems.
55584         * tests/test-vasnprintf-posix3.c: New file.
55585         * modules/vasnprintf-posix-tests (Files): Add it.
55586         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
55588 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55590         [html] Fix copy/paste bug: Use unique name for compiler warnings.
55591         * MODULES.html.sh: For compiler warnings, use name
55592         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
55594 2010-11-05  Eric Blake  <eblake@redhat.com>
55596         ceil, floor: avoid spurious failure with icc
55597         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
55598         [denormals-as-zero] when optimizing without -mieee-fp option.
55599         * tests/test-floorf2.c (floorf_reference): Likewise.
55600         * tests/test-ceilf1.c (dummy): New function.
55601         (main): Use it to outsmart icc's optimization.
55602         * tests/test-floorf1.c (dummy, main): Likewise.
55604         tests: require working signbit
55605         * modules/ceilf-tests (Depends-on): Add signbit.
55606         * modules/ceill-tests (Depends-on): Likewise.
55607         * modules/floorf-tests (Depends-on): Likewise.
55608         * modules/floorl-tests (Depends-on): Likewise.
55609         * modules/round-tests (Depends-on): Likewise.
55610         * modules/roundf-tests (Depends-on): Likewise.
55611         * modules/roundl-tests (Depends-on): Likewise.
55612         * modules/trunc-tests (Depends-on): Likewise.
55613         * modules/truncf-tests (Depends-on): Likewise.
55614         * modules/truncl-tests (Depends-on): Likewise.
55616         strtod: work around icc bug
55617         * lib/strtod.c (minus_zero): Define to working value.
55618         (strtod): Use it to avoid icc bug.
55620         copysign: enhance tests
55621         * modules/copysign-tests (Files): Add minus-zero.h.
55622         * tests/test-copysign.c (main): Also test zeros.
55624 2010-11-04  Eric Blake  <eblake@redhat.com>
55626         ceil, floor, round, trunc: enhance tests of -0
55627         * tests/test-ceilf1.c (main): Ensure correct sign of result.
55628         * tests/test-ceill.c (main): Likewise.
55629         * tests/test-floorf1.c (main): Likewise.
55630         * tests/test-floorl.c (main): Likewise.
55631         * tests/test-round1.c (main): Likewise.
55632         * tests/test-roundf1.c (main): Likewise.
55633         * tests/test-roundl.c (main): Likewise.
55634         * tests/test-trunc1.c (main): Likewise.
55635         * tests/test-truncf1.c (main): Likewise.
55636         * tests/test-truncl.c (main): Likewise.
55638 2010-11-04  Eric Blake  <eblake@redhat.com>
55640         frexp, tests: work around ICC bug with -zero
55641         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
55642         works with more compilers.
55643         * tests/minus-zero.h: New file.
55644         * modules/ceilf-tests (Files): Include it.
55645         * modules/ceill-tests (Files): Likewise.
55646         * modules/floorf-tests (Files): Likewise.
55647         * modules/floorl-tests (Files): Likewise.
55648         * modules/frexp-nolibm-tests (Files): Likewise.
55649         * modules/frexp-tests (Files): Likewise.
55650         * modules/frexpl-nolibm-tests (Files): Likewise.
55651         * modules/frexpl-tests (Files): Likewise.
55652         * modules/isnan-tests (Files): Likewise.
55653         * modules/isnand-nolibm-tests (Files): Likewise.
55654         * modules/isnand-tests (Files): Likewise.
55655         * modules/isnanf-nolibm-tests (Files): Likewise.
55656         * modules/isnanf-tests (Files): Likewise.
55657         * modules/isnanl-nolibm-tests (Files): Likewise.
55658         * modules/isnanl-tests (Files): Likewise.
55659         * modules/round-tests (Files): Likewise.
55660         * modules/roundf-tests (Files): Likewise.
55661         * modules/roundl-tests (Files): Likewise.
55662         * modules/ldexpl-tests (Files): Likewise.
55663         * modules/signbit-tests (Files): Likewise.
55664         * modules/snprintf-posix-tests (Files): Likewise.
55665         * modules/sprintf-posix-tests (Files): Likewise.
55666         * modules/strtod-tests (Files): Likewise.
55667         * modules/trunc-tests (Files): Likewise.
55668         * modules/truncf-tests (Files): Likewise.
55669         * modules/truncl-tests (Files): Likewise.
55670         * modules/vsnprintf-posix-tests (Files): Likewise.
55671         * modules/vsprintf-posix-tests (Files): Likewise.
55672         * modules/vasnprintf-posix-tests (Files): Likewise.
55673         * modules/vasprintf-posix-tests (Files): Likewise.
55674         * tests/test-ceilf1.c (main): Use it.
55675         * tests/test-ceill.c (main): Likewise.
55676         * tests/test-floorf1.c (main): Likewise.
55677         * tests/test-floorl.c (main): Likewise.
55678         * tests/test-frexp.c (main): Likewise.
55679         * tests/test-frexpl.c (main): Likewise.
55680         * tests/test-isnan.c (main): Likewise.
55681         * tests/test-isnand.h (main): Likewise.
55682         * tests/test-isnanf.h (main): Likewise.
55683         * tests/test-isnanl.h (main): Likewise.
55684         * tests/test-ldexpl.c (main): Likewise.
55685         * tests/test-round.c (main): Likewise.
55686         * tests/test-roundf.c (main): Likewise.
55687         * tests/test-roundl.c (main): Likewise.
55688         * tests/test-signbit.c (test_signbitf, test_signbitd)
55689         (test_signbitl): Likewise.
55690         * tests/test-snprintf-posix.h (test_function): Likewise.
55691         * tests/test-sprintf-posix.h (test_function): Likewise.
55692         * tests/test-strtod.c (main): Likewise.
55693         * tests/test-trunc1.c (main): Likewise.
55694         * tests/test-truncf1.c (main): Likewise.
55695         * tests/test-truncl.c (main): Likewise.
55697         isnanl: work around icc bug
55698         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
55700 2010-11-03  Eric Blake  <eblake@redhat.com>
55702         tests: fix compiler warnings
55703         * tests/test-getopt.h (test_getopt): Fix condition.
55704         * tests/test-getopt_long.h (test_getopt_long): Likewise.
55705         * tests/test-pipe2.c (main): Likewise.
55706         * tests/test-quotearg-simple.c (main): Avoid icc warning.
55708         utimens: fix broken m4 test
55709         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
55711 2010-10-28  Bruno Haible  <bruno@clisp.org>
55713         posix_spawn*, getdtablesize: Relax license.
55714         * modules/posix_spawn (License): Change to LGPLv2+.
55715         * modules/posix_spawnp (License): Likewise.
55716         * modules/posix_spawn-internal (License): Likewise.
55717         * modules/posix_spawnattr_init (License): Likewise.
55718         * modules/posix_spawnattr_getflags (License): Likewise.
55719         * modules/posix_spawnattr_setflags (License): Likewise.
55720         * modules/posix_spawnattr_getpgroup (License): Likewise.
55721         * modules/posix_spawnattr_setpgroup (License): Likewise.
55722         * modules/posix_spawnattr_getschedparam (License): Likewise.
55723         * modules/posix_spawnattr_setschedparam (License): Likewise.
55724         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
55725         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
55726         * modules/posix_spawnattr_getsigdefault (License): Likewise.
55727         * modules/posix_spawnattr_setsigdefault (License): Likewise.
55728         * modules/posix_spawnattr_getsigmask (License): Likewise.
55729         * modules/posix_spawnattr_setsigmask (License): Likewise.
55730         * modules/posix_spawnattr_destroy (License): Likewise.
55731         * modules/posix_spawn_file_actions_init (License): Likewise.
55732         * modules/posix_spawn_file_actions_addclose (License): Likewise.
55733         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
55734         * modules/posix_spawn_file_actions_addopen (License): Likewise.
55735         * modules/posix_spawn_file_actions_destroy (License): Likewise.
55736         * modules/getdtablesize (License): Likewise.
55737         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
55739 2010-10-26  Bruno Haible  <bruno@clisp.org>
55741         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
55742         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
55743         Cygwin and mingw.
55744         Suggested by Eric Blake.
55746 2010-10-26  Bruno Haible  <bruno@clisp.org>
55748         stdio: Work around compilation error due to renameat() on Solaris 10.
55749         * lib/stdio.in.h: Include <unistd.h> on Solaris.
55750         * lib/renameat.c: Don't include <unistd.h> here.
55751         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
55752         Reported by Paul Eggert and Eric Blake.
55754 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
55756         renameat: port to Solaris 10, which declares renameat in unistd.h
55758         * lib/renameat.c: Include unistd.h before stdio.h, because
55759         Solaris 10 declares renameat in unistd.h.  Problem encountered
55760         when building GNU tar 1.24 on Solaris 10.
55762 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
55764         fdopendir: fix C89 compilation
55765         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
55766         compilers.
55768 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
55770         inttostr: simplify by removing unnecessary redundancy
55771         * lib/anytostr.c: Don't include verify.h.
55772         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
55773         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
55774         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
55775         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
55776         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
55777         Likewise.
55778         * modules/inttostr (Depends-on): Remove 'verify'.
55780 2010-10-23  Bruno Haible  <bruno@clisp.org>
55782         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
55783         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
55784         Reported by Eric Blake.
55786 2010-10-23  Bruno Haible  <bruno@clisp.org>
55788         Tests: Fix LOCALE_JA on MirBSD 10.
55789         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
55790         to an UTF-8 locale.
55791         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
55792         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55793         Reported by Eric Blake.
55795 2010-10-21  Bruno Haible  <bruno@clisp.org>
55797         nl_langinfo test: Avoid test failure on NetBSD 5.
55798         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
55799         Reported by Eric Blake.
55801 2010-10-21  Eric Blake  <eblake@redhat.com>
55803         c-stack: work around libsigsegv 2.8 bug
55804         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
55805         overflow on at least PowerPC64.
55807 2010-10-17  Bruno Haible  <bruno@clisp.org>
55809         userspec: Drop redundant file.
55810         * modules/userspec (Files): Remove lib/inttostr.h.
55812 2010-10-17  Bruno Haible  <bruno@clisp.org>
55814         nl_langinfo tests: Silence some warnings.
55815         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
55816         Reported by Jim Meyering.
55818 2010-10-17  Bruno Haible  <bruno@clisp.org>
55820         Make use of GCC's attribute __alloc_size__.
55821         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
55822         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
55823         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
55824         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
55825         __alloc_size__.
55826         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55827         Suggested by Jim Meyering.
55829 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
55831         bootstrap: anchor .gitignore entries.
55832         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
55833         with...
55834         (insert_vc_ignore): ... this new function, which prepends `/' to
55835         all .gitignore entries before passing them to
55836         insert_sorted_if_absent.
55838 2010-10-16  Bruno Haible  <bruno@clisp.org>
55840         nextafter: Fix configure check.
55841         * modules/nextafter (configure.ac): Correct expected prototype.
55843 2010-10-16  Bruno Haible  <bruno@clisp.org>
55845         termios: Update documentation.
55846         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
55848 2010-10-16  Bruno Haible  <bruno@clisp.org>
55850         tests: Make them compile with TinyCC.
55851         * tests/test-strstr.c (main): Remove parentheses around array
55852         initializer.
55854 2010-10-15  Eric Blake  <eblake@redhat.com>
55856         ignore-value: make header idempotent
55857         * lib/ignore-value.h: Add double-inclusion guards.
55858         Reported by Stefan Berger.
55860 2010-10-15  Jim Meyering  <meyering@redhat.com>
55862         GNUmakefile: handle "stable" target, not "major"
55863         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
55864         lists in maint.mk and announce-gen.  Without this, "make stable"
55865         would fail to ensure that $(VERSION) is up to date.
55867 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
55869         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
55870         & co.
55872 2010-10-14  Bruno Haible  <bruno@clisp.org>
55874         vasnprintf: Don't set errno to 0.
55875         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
55876         block that sets it to 0.
55877         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
55879 2010-10-14  Bruno Haible  <bruno@clisp.org>
55881         socketlib: Fix.
55882         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
55883         gl_PREREQ_SYS_H_WINSOCK2.
55884         Reported by Ian Beckwith <ianb@erislabs.net>.
55886 2010-10-13  Jim Meyering  <meyering@redhat.com>
55888         test-select-stdin.c: avoid warn_unused_result warnings
55889         * tests/test-select-stdin.c: Include "macros.h".
55890         ASSERT that read and fflush succeed.
55892 2010-10-13  Jim Meyering  <meyering@redhat.com>
55894         git-version-gen: do require git-VC'd files in cwd
55895         * build-aux/git-version-gen: Reject a git version string
55896         if there are no commits associated with the current directory.
55897         This avoids an unlikely false-positive (unrelated dir whose parent
55898         repository also contains a tag matching v*), as pointed out
55899         by Giuseppe Scrivano in
55900         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
55902 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
55904         argv-iter: omit nonconforming declaration
55905         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
55906         enum arg_iter_err declaration, which doesn't conform to C99.
55907         Solaris 10 cc warns about this.
55909 2010-10-13  Eric Blake  <eblake@redhat.com>
55911         termios: fix compilation on mingw
55912         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
55913         (gl_TERMIOS_H): Adjust it on mingw.
55914         * modules/termios (Makefile.am): Substitute new key.
55915         * lib/termios.in.h (includes): Make include_next conditional.
55916         * doc/posix-headers/termios.texi (termios.h): Update
55917         documentation.
55918         Reported by Daniel P. Berrange.
55920 2010-10-13  Jim Meyering  <meyering@redhat.com>
55922         git-version-gen: don't require that .git/ be in the current dir
55923         * build-aux/git-version-gen: Adjust this script so that it works
55924         when run from any working directory beneath the top-level .git/-
55925         containing directory.  Inspired by a patch from Giuseppe Scrivano,
55926         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
55928         test-select: avoid warn_unused_result warnings
55929         * tests/test-select.c: Include "macros.h".
55930         ASSERT that each call to read, write, and pipe succeeds.
55931         While not technically required, also check each "close".
55932         * modules/select-tests (Files): Add tests/macros.h.
55934         test-symlinkat: remove declaration of unused local
55935         * tests/test-symlinkat.c (main): Remove unused local, "buf".
55937         test-inttostr: avoid shadowing warnings
55938         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
55939         and use malloc rather than the stack for the same reason as
55940         mentioned in the comment justifying the other allocation.
55942 2010-10-11  Bruno Haible  <bruno@clisp.org>
55944         stdlib: Allow multiple gnulib generated replacements to coexist.
55945         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
55946         Reported by Sam Steingold <sds@gnu.org>.
55948 2010-10-11  Jim Meyering  <meyering@redhat.com>
55950         fix a documentation typo
55951         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
55953 2010-10-11  Eric Blake  <eblake@redhat.com>
55955         futimens: work around Solaris 11 bug
55956         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
55957         * tests/test-futimens.h (test_futimens): Enhance, rather than
55958         weaken test.
55959         * doc/posix-functions/futimens.texi (futimens): Document the bug.
55961 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55963         Indentation.
55964         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
55965         higher-level operators more to the left.
55967 2010-10-11  Jim Meyering  <meyering@redhat.com>
55969         test-futimens: avoid unwarranted test failure on Solaris 5.11
55970         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
55971         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
55972         because it tries to dereference the NULL name argument.
55974 2010-10-11  Bruno Haible  <bruno@clisp.org>
55976         Indentation.
55977         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
55978         indentation.
55980 2010-10-11  Jim Meyering  <meyering@redhat.com>
55982         spawn.in.h: make indentation consistent with parentheses
55983         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
55984         Make indentation consistent with parentheses.
55986 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
55988         Fix mismatched parens in previous commit
55989         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
55990         parens.
55992 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55994         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
55996         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
55997         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
55998         * lib/malloca.c: Include "verify.h".
55999         (verify1): Remove, replacing with a verify call.
56000         * lib/relocwrapper.c (verify1): Likewise.
56001         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
56002         Likewise.
56003         * modules/malloca (Depends-on): Add 'verify'.
56004         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
56005         * modules/vasnprintf (Depends-on): Add 'verify'.
56006         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56007         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56008         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56009         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56010         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56011         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56012         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56014         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
56016         Formerly the style was sometimes 2*X - 1, because the C standard
56017         was wrongly thought to disallow ?: in integral constant expressions.
56018         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
56019         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
56020         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
56021         * lib/stdint.in.h (_verify_intmax_size): Likewise.
56022         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
56023         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
56024         verify that time_t cannot be floating.
56026 2010-10-08  Eric Blake  <eblake@redhat.com>
56028         time: enforce recent POSIX ruling that time_t is integral
56029         * lib/time.in.h (__time_t_must_be_integral): Detect any
56030         problematic systems, allowing the rest of gnulib to assume POSIX.
56032 2010-10-08  Jim Meyering  <meyering@redhat.com>
56034         fdopendir: fix a bug on systems lacking openat and /proc support
56035         OpenBSD 4.7 is one such system.  The most noticeable effect was
56036         failure of any application making nontrivial use of fts: rm, du,
56037         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
56038           ./rm: traversal failed: `a': Bad file descriptor
56039         Debugging that, you see that even though FD 6 was closed just
56040         prior to the opendir call in fd_clone_opendir, its resulting
56041         dir->dd_fd was 8, rather than the expected value of 6:
56043         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
56044         93                close (fd);
56045         (gdb) n
56046         94                dir = fd_clone_opendir (dupfd);
56047         (gdb) n
56048         95                saved_errno = errno;
56049         (gdb) p dir->dd_fd
56050         $11 = 8
56052         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
56053         The problem is that on OpenBSD, fd_clone_opendir has to resort
56054         to using the old-style save/restore CWD mechanism, due to its
56055         lack of openat/proc support, and *that* would steal the FD (6)
56056         that opendir was supposed to use.
56058         The fix is to squirrel away the desired FD so that save_cwd uses a
56059         different one, and then free the dest FD right before calling opendir.
56060         That guarantees opendir will use the required file descriptor.
56062         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
56064 2010-10-08  Bruno Haible  <bruno@clisp.org>
56066         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
56067         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
56069 2010-10-08  Bruno Haible  <bruno@clisp.org>
56071         nanosleep: Make replacement POSIX compliant.
56072         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
56073         is out of range.
56074         Reported by Jim Meyering.
56076 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56078         bootstrap: add hook for altering gnulib.mk, for Bison
56079         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
56080         the Bison bootstrapping process can rewrite file names and variables
56081         in this file before later parts of 'bootstrap' use the file.
56082         Bison wants to include lib/gnulib.mk from the top-level makefile,
56083         so it needs the file names in this file to be relative to the top
56084         level, not relative to lib; plus it needs variable names to be
56085         rewritten.
56086         (slurp): Use the new function.
56088         bootstrap: reformat for readability
56089         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
56091 2010-10-08  Eric Blake  <eblake@redhat.com>
56093         docs: update cygwin progress
56094         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
56095         1.7.7.
56096         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
56097         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
56098         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
56099         * doc/posix-functions/carg.texi (carg): Likewise.
56100         * doc/posix-functions/cargf.texi (cargf): Likewise.
56101         * doc/posix-functions/casin.texi (casin): Likewise.
56102         * doc/posix-functions/casinf.texi (casinf): Likewise.
56103         * doc/posix-functions/casinh.texi (casinh): Likewise.
56104         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
56105         * doc/posix-functions/catan.texi (catan): Likewise.
56106         * doc/posix-functions/catanf.texi (catanf): Likewise.
56107         * doc/posix-functions/catanh.texi (catanh): Likewise.
56108         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
56109         * doc/posix-functions/ccos.texi (ccos): Likewise.
56110         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
56111         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
56112         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
56113         * doc/posix-functions/cexp.texi (cexp): Likewise.
56114         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
56115         * doc/posix-functions/cimag.texi (cimag): Likewise.
56116         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
56117         * doc/posix-functions/clog.texi (clog): Likewise.
56118         * doc/posix-functions/clogf.texi (clogf): Likewise.
56119         * doc/posix-functions/conj.texi (conj): Likewise.
56120         * doc/posix-functions/conjf.texi (conjf): Likewise.
56121         * doc/posix-functions/cpow.texi (cpow): Likewise.
56122         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
56123         * doc/posix-functions/cproj.texi (cproj): Likewise.
56124         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
56125         * doc/posix-functions/creal.texi (creal): Likewise.
56126         * doc/posix-functions/crealf.texi (crealf): Likewise.
56127         * doc/posix-functions/csin.texi (csin): Likewise.
56128         * doc/posix-functions/csinf.texi (csinf): Likewise.
56129         * doc/posix-functions/csinh.texi (csinh): Likewise.
56130         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
56131         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
56132         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
56133         * doc/posix-functions/ctan.texi (ctan): Likewise.
56134         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
56135         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
56136         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
56137         * doc/posix-headers/complex.texi (complex.h): Likewise.
56139 2010-10-07  Jim Meyering  <meyering@redhat.com>
56141         parse-datetime: avoid compilation failure on OpenBSD 4.7
56142         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
56143         This works around a compilation failure on OpenBSD 4.7:
56144         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
56146 2010-10-07  Eric Blake  <eblake@redhat.com>
56148         docs: update cygwin progress
56149         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
56150         1.7.6.
56151         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
56152         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
56153         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
56154         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
56155         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
56156         Likewise.
56157         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
56158         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
56159         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
56160         Likewise.
56161         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
56162         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
56163         Likewise.
56164         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
56165         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
56166         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
56167         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
56168         Likewise.
56169         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
56170         Likewise.
56171         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
56173         docs: update parse-datetime history
56174         * doc/parse-datetime.texi (Authors of parse_datetime): Better
56175         documentation of this function's history and alternatives.
56177         cygwin: use more robust version check
56178         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
56179         exclude an eventual cygwin 1.9.1.
56180         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
56181         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
56182         (gl_FUNC_STRCASESTR): Likewise.
56183         Reported by Bruno Haible.
56185 2010-10-06  Bruno Haible  <bruno@clisp.org>
56187         string, sys_select: Avoid #including large headers unless necessary.
56188         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
56189         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
56190         OSF/1, BeOS, Haiku.
56191         Reported by Jim Meyering.
56193 2010-10-05  Eric Blake  <eblake@redhat.com>
56195         memmem, strstr, strcasestr: fix bug with long periodic needle
56196         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
56197         periodic needle having false positive.
56198         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
56199         and cygwin 1.7.7.
56200         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
56201         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
56202         (gl_FUNC_STRCASESTR): Likewise.
56203         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
56204         * tests/test-memmem.c (main): Expose the bug.
56205         * tests/test-strcasestr.c (main): Likewise.
56206         * tests/test-strstr.c (main): Likewise.
56207         * tests/test-c-strcasestr.c (main): Likewise.
56208         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
56209         * doc/posix-functions/strstr.texi (strstr): Likewise.
56210         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
56211         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
56213 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
56215         parse-datetime: do some more renaming
56216         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
56217         parse_datetime, not get_date.  Mention the renaming.
56218         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
56219         in comments.
56220         * m4/bison.m4: Likewise.
56222 2010-10-05  Eric Blake  <eblake@redhat.com>
56224         parse-datetime: better name than get_date
56225         * NEWS: Reword the deprecation notice.
56226         * modules/get_date: Rename to modules/parse-datetime.
56227         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
56228         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
56229         * lib/get_date.y: Rename to lib/parse-datetime.y.
56230         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
56231         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
56232         * doc/getdate.texi: Provide fallback wrapper.
56233         * lib/getdate.h: Move guts, and wrap...
56234         * lib/parse-datetime.h: ...new file.
56235         * lib/parse-datetime.y (get_date): Rename...
56236         (parse_datetime): ...to this.
56237         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
56238         (gl_PARSE_DATETIME): ...to this.
56239         * doc/posix-functions/getdate.texi (get_date): Provide fallback
56240         documentation.
56241         * modules/getdate (Files): Provide fallback docs and header.
56242         (Notice, Depends-on): Update references.
56243         * tests/test-parse-datetime.c: Likewise.
56244         * DEPENDENCIES: Likewise.
56245         * MODULES.html.sh (Date and time <time.h>): Likewise.
56246         * doc/parse-datetime.texi (Date input formats)
56247         (Authors of parse_datetime): Likewise.
56248         * modules/parse-datetime (Files, configure.ac, Makefile.am)
56249         (Include): Likewise.
56250         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
56251         * gnulib-tool: Likewise.
56252         * m4/bison.m4 (gl_BISON): Likewise.
56253         Suggested by Bruno Haible.
56255 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
56257         more ports to Solaris tr, which needs [] around ranges
56258         * gnulib-tool: Solaris tr needs [] around ranges.
56259         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
56260         * tests/test-pipe-filter-gi1.c (main): Likewise.
56261         * tests/test-pipe-filter-ii1.c (main): Likewise.
56263 2010-10-05  Eric Blake  <eblake@redhat.com>
56265         bootstrap: fix Solaris regression
56266         * build-aux/bootstrap (check_versions): Solaris tr still needs []
56267         around ranges.
56268         Reported by Pádraig Brady.
56270         bootstrap: work with pkg-config
56271         * build-aux/bootstrap (check_versions): Also transliterate - in
56272         prerequisite name.
56273         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
56274         prerequisites that were already found, to avoid confusion.
56275         Reported by Justin Clift.
56277         faccessat: remove unused wrappers
56278         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
56279         presence of these wrappers dragged in -lgen on Solaris.
56280         Reported by Clemens Brogi; fix suggested by Paul Eggert.
56282 2010-10-05  Jim Meyering  <meyering@redhat.com>
56284         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
56285         * Makefile (sc_pragma_columns): New syntax-check rule.
56287 2010-10-04  Bruno Haible  <bruno@clisp.org>
56289         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
56290         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
56291         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
56292         Reported by Bruce Korb and Eric Blake.
56294 2010-10-04  Bruno Haible  <bruno@clisp.org>
56296         threadlib: Make option --with-libpth-prefix work.
56297         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
56298         use $LIBPTH, not just -lpth.
56300 2010-10-04  Bruno Haible  <bruno@clisp.org>
56302         Avoid line length limitation from HP NonStop system header files.
56303         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
56304         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
56305         * lib/ctype.in.h: Likewise.
56306         * lib/dirent.in.h: Likewise.
56307         * lib/errno.in.h: Likewise.
56308         * lib/fcntl.in.h: Likewise.
56309         * lib/float.in.h: Likewise.
56310         * lib/getopt.in.h: Likewise.
56311         * lib/iconv.in.h: Likewise.
56312         * lib/inttypes.in.h: Likewise.
56313         * lib/langinfo.in.h: Likewise.
56314         * lib/locale.in.h: Likewise.
56315         * lib/math.in.h: Likewise.
56316         * lib/netdb.in.h: Likewise.
56317         * lib/netinet_in.in.h: Likewise.
56318         * lib/poll.in.h: Likewise.
56319         * lib/pthread.in.h: Likewise.
56320         * lib/pty.in.h: Likewise.
56321         * lib/sched.in.h: Likewise.
56322         * lib/se-selinux.in.h: Likewise.
56323         * lib/search.in.h: Likewise.
56324         * lib/signal.in.h: Likewise.
56325         * lib/spawn.in.h: Likewise.
56326         * lib/stdarg.in.h: Likewise.
56327         * lib/stddef.in.h: Likewise.
56328         * lib/stdint.in.h: Likewise.
56329         * lib/stdio.in.h: Likewise.
56330         * lib/stdlib.in.h: Likewise.
56331         * lib/string.in.h: Likewise.
56332         * lib/strings.in.h: Likewise.
56333         * lib/sys_file.in.h: Likewise.
56334         * lib/sys_ioctl.in.h: Likewise.
56335         * lib/sys_select.in.h: Likewise.
56336         * lib/sys_socket.in.h: Likewise.
56337         * lib/sys_stat.in.h: Likewise.
56338         * lib/sys_time.in.h: Likewise.
56339         * lib/sys_times.in.h: Likewise.
56340         * lib/sys_utsname.in.h: Likewise.
56341         * lib/sys_wait.in.h: Likewise.
56342         * lib/sysexits.in.h: Likewise.
56343         * lib/termios.in.h: Likewise.
56344         * lib/time.in.h: Likewise.
56345         * lib/unistd.in.h: Likewise.
56346         * lib/wchar.in.h: Likewise.
56347         * lib/wctype.in.h: Likewise.
56348         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
56349         * modules/ctype (Makefile.am): Likewise.
56350         * modules/dirent (Makefile.am): Likewise.
56351         * modules/errno (Makefile.am): Likewise.
56352         * modules/fcntl-h (Makefile.am): Likewise.
56353         * modules/float (Makefile.am): Likewise.
56354         * modules/getopt-posix (Makefile.am): Likewise.
56355         * modules/iconv-h (Makefile.am): Likewise.
56356         * modules/inttypes (Makefile.am): Likewise.
56357         * modules/langinfo (Makefile.am): Likewise.
56358         * modules/locale (Makefile.am): Likewise.
56359         * modules/math (Makefile.am): Likewise.
56360         * modules/netdb (Makefile.am): Likewise.
56361         * modules/netinet_in (Makefile.am): Likewise.
56362         * modules/poll-h (Makefile.am): Likewise.
56363         * modules/pthread (Makefile.am): Likewise.
56364         * modules/pty (Makefile.am): Likewise.
56365         * modules/sched (Makefile.am): Likewise.
56366         * modules/search (Makefile.am): Likewise.
56367         * modules/selinux-h (Makefile.am): Likewise.
56368         * modules/signal (Makefile.am): Likewise.
56369         * modules/spawn (Makefile.am): Likewise.
56370         * modules/stdarg (Makefile.am): Likewise.
56371         * modules/stddef (Makefile.am): Likewise.
56372         * modules/stdint (Makefile.am): Likewise.
56373         * modules/stdio (Makefile.am): Likewise.
56374         * modules/stdlib (Makefile.am): Likewise.
56375         * modules/string (Makefile.am): Likewise.
56376         * modules/strings (Makefile.am): Likewise.
56377         * modules/sys_file (Makefile.am): Likewise.
56378         * modules/sys_ioctl (Makefile.am): Likewise.
56379         * modules/sys_select (Makefile.am): Likewise.
56380         * modules/sys_socket (Makefile.am): Likewise.
56381         * modules/sys_stat (Makefile.am): Likewise.
56382         * modules/sys_time (Makefile.am): Likewise.
56383         * modules/sys_times (Makefile.am): Likewise.
56384         * modules/sys_utsname (Makefile.am): Likewise.
56385         * modules/sys_wait (Makefile.am): Likewise.
56386         * modules/sysexits (Makefile.am): Likewise.
56387         * modules/termios (Makefile.am): Likewise.
56388         * modules/time (Makefile.am): Likewise.
56389         * modules/unistd (Makefile.am): Likewise.
56390         * modules/wchar (Makefile.am): Likewise.
56391         * modules/wctype (Makefile.am): Likewise.
56393 2010-10-04  Bruno Haible  <bruno@clisp.org>
56395         read-file tests: Avoid a test failure on NonStop Kernel.
56396         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
56397         a regular file.
56398         Reported by Joachim Schmitz <schmitz@hp.com>.
56400 2010-10-03  Bruno Haible  <bruno@clisp.org>
56402         gnulib-tool: Fixes for --create-testdir with --libtool.
56403         * gnulib-tool (func_get_automake_snippet): Don't augment
56404         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
56405         an executable.
56406         (func_create_testdir): Handle module 'alloca' like func_import.
56407         Reported by Bruce Korb <bruce.korb@gmail.com>.
56409 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
56411         Avoid some lines longer than 80 characters.
56412         * lib/stdint.in.h: Break long comment lines.
56413         * lib/math.in.h: Likewise.
56414         (_GL_NUM_UINT_WORDS): New macro, for readability.
56415         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
56416         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
56417         * lib/stdlib.in.h: Likewise.
56418         * lib/spawn.in.h: Likewise.
56419         * lib/sys_socket.in.h: Update an URL.
56420         * lib/sys_stat.in.h: Break long line.
56422 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
56424         Improve pmccabe2html.
56425         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
56426         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
56427         when the sources change. Remove the line in the HTML about "Used
56428         ranges" (which implied that there might be other unused ranges),
56429         rename "Resume" to "Summary" (easier to understand for more users).
56430         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
56431         styles, and some unnecessary blank lines.
56433 2010-10-03  Bruno Haible  <bruno@clisp.org>
56434             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
56436         acl: Add support for ACLs on NonStop Kernel.
56437         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
56438         Check whether the function aclsort() exists.
56439         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
56440         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
56441         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
56442         (acl_nontrivial [HAVE_ACLSORT]: New function.
56443         (file_has_acl): Implement for NonStop Kernel.
56444         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
56445         (qset_acl): Implement for NonStop Kernel.
56446         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
56447         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
56448         (main): Implement for NonStop Kernel.
56449         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
56450         Kernel. Handle this flavor.
56451         * tests/test-set-mode-acl.sh: Likewise.
56452         * tests/test-copy-acl.sh: Likewise.
56453         * tests/test-copy-file.sh: Likewise.
56455 2010-10-03  Bruno Haible  <bruno@clisp.org>
56457         Info about ACLs on NonStop Kernel.
56458         * doc/acl-resources.txt: Add info about NonStop Kernel.
56459         References by Joachim Schmitz <schmitz@hp.com>.
56461 2010-10-02  Bruno Haible  <bruno@clisp.org>
56463         Define missing EDQUOT on NonStop Kernel.
56464         * lib/errno.in.h (EDQUOT): Assign a value if missing.
56465         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
56466         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
56467         missing.
56468         * doc/posix-headers/errno.texi: Mention the NSK bug.
56469         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
56470         Reported by Joachim Schmitz <schmitz@hp.com>.
56472 2010-10-02  Bruno Haible  <bruno@clisp.org>
56474         Update doc for POSIX:2008.
56475         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
56476         Update URL of POSIX specification.
56478 2010-10-02  Bruno Haible  <bruno@clisp.org>
56480         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
56481         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
56482         from gnulib, not from Automake.
56484 2010-10-02  Bruno Haible  <bruno@clisp.org>
56486         New module 'system-posix'.
56487         * modules/system-posix: New file.
56488         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
56489         module is present.
56490         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56491         GNULIB_SYSTEM_POSIX.
56492         * modules/stdlib (Depends-on): Remove sys_wait.
56493         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
56494         * doc/posix-functions/system.texi: Mention the new module.
56495         * doc/posix-headers/stdlib.texi: Likewise.
56496         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
56497         define test_sys_wait_macros to a no-op.
56498         Reported by Sam Steingold <sds@gnu.org>.
56500 2010-09-30  Bruno Haible  <bruno@clisp.org>
56502         More renaming from 'getdate' to 'get_date'.
56503         * doc/get_date.texi: Renamed from doc/getdate.texi.
56504         * modules/get_date (Files): Update.
56505         * MODULES.html.sh (Date and time <time.h>): Update.
56506         * DEPENDENCIES: Update.
56507         * gnulib-tool: Update comment.
56508         * m4/bison.m4 (gl_BISON): Likewise.
56509         * m4/get_date.m4 (gl_GET_DATE): Likewise.
56511 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
56513         bootstrap: support ACLOCAL_FLAGS during aclocal
56514         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
56515         can add additional -I dir for third-party .m4 files.
56517 2010-09-30  Eric Blake  <eblake@redhat.com>
56519         bootstrap: use glibtoolize on MacOS
56520         * build-aux/bootstrap (check_versions): Convert libtool into
56521         libtoolize.
56522         (tool search): Move libtool check earlier, and look for
56523         glibtoolize for MacOS.
56524         (gnulib_tool_options): Auto-add --libtool when appropriate.
56525         Reported by Justin Clift.
56527         poll: fix typo that broke test on MacOS
56528         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
56529         Reported by Justin Clift.
56531         getdate: rename to get_date
56532         Note: getdate.h is not renamed, to minimize client impact.
56533         * modules/getdate: Mark obsolete.  Move old contents...
56534         * modules/get_date: ...to new module name.
56535         * modules/getdate-tests: Move...
56536         * modules/get_date-tests: ...here.
56537         * m4/getdate.m4: Move...
56538         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
56539         * lib/getdate.y: Move...
56540         * lib/get_date.y: ...here.
56541         * tests/test-getdate.c: Move...
56542         * tests/test-get_date.c: ...here.
56543         * doc/posix-functions/getdate.texi (getdate): Update name.
56544         * NEWS: Mention the change.
56546 2010-09-29  Bruno Haible  <bruno@clisp.org>
56548         Separate the module 'waitpid' from the module 'sys_wait'.
56549         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
56550         present.
56551         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
56552         gl_MODULE_INDICATOR_FOR_TESTS.
56553         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
56554         * modules/sys_wait (Depends-on): Remove waitpid.
56555         (Makefile.am): Substitute GNULIB_WAITPID.
56556         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
56557         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
56558         signature only if the 'waitpid' module is present.
56559         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
56560         * NEWS: Mention the change.
56561         * modules/grantpt (Depends-on): Add waitpid.
56562         * modules/wait-process (Depends-on): Likewise.
56564 2010-09-29  Bruno Haible  <bruno@clisp.org>
56566         More tests for module 'sys_wait'.
56567         * modules/sys_wait-c++-tests: New file.
56568         * tests/test-sys_wait-c++.cc: New file.
56569         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
56570         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
56572 2010-09-29  Bruno Haible  <bruno@clisp.org>
56574         New module 'waitpid'.
56575         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
56576         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
56577         Don't include <process.h>.
56578         (waitpid): Declare only, using modern idiom.
56579         * m4/waitpid.m4: New file.
56580         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
56581         * modules/waitpid: New file.
56582         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
56583         (Makefile.am): Update.
56584         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
56586 2010-09-28  Bruno Haible  <bruno@clisp.org>
56588         poll: Assume ANSI C.
56589         * lib/poll.c (poll): Use an ANSI C declaration.
56591 2010-09-28  Bruno Haible  <bruno@clisp.org>
56593         poll-h: Create poll.h on all platforms.
56594         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
56595         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
56596         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
56597         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
56598         (gl_REPLACE_POLL_H): Don't set POLL_H.
56599         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
56600         * modules/poll-h (Depends-on): Add include_next.
56601         (Makefile.am): Create poll.h unconditionally. Substitute also
56602         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
56604 2010-09-28  Bruno Haible  <bruno@clisp.org>
56606         Tests for module 'poll-h'.
56607         * modules/poll-h-c++-tests: New file.
56608         * tests/test-poll-h-c++.cc: New file.
56610         Tests for module 'poll-h'.
56611         * modules/poll-h-tests: New file.
56612         * tests/test-poll-h.c: New file.
56614 2010-09-28  Bruno Haible  <bruno@clisp.org>
56616         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
56617         * modules/poll-h (Depends-on): Add 'extensions'.
56619 2010-09-28  Bruno Haible  <bruno@clisp.org>
56621         New module 'poll-h'.
56622         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
56623         (poll): Use modern idiom.
56624         * modules/poll-h: New file.
56625         * modules/poll (Files): Remove lib/poll.in.h.
56626         (Depends-on): Add poll-h.
56627         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
56628         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
56629         * m4/poll_h.m4: New file.
56630         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
56631         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
56632         and invoke gl_REPLACE_POLL_H.
56633         * lib/poll.c: Use common idiom.
56634         * tests/test-poll.c: Likewise.
56635         * doc/posix-headers/poll.texi: Mention the poll-h module.
56636         Suggested by Eric Blake.
56638 2010-09-26  Bruno Haible  <bruno@clisp.org>
56640         sys_wait: Implement WSTOPSIG.
56641         * lib/sys_wait.in.h (WSTOPSIG): New macro.
56642         Reported by Simon Josefsson.
56644 2010-09-26  Simon Josefsson  <simon@josefsson.org>
56646         stdlib, sys_wait: Avoid compilation error on mingw.
56647         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
56649 2010-09-26  Bruno Haible  <bruno@clisp.org>
56651         stdlib tests: Avoid code duplication.
56652         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
56653         * modules/sys_wait-tests (Files): Likewise.
56654         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
56655         * tests/test-stdlib.c: Include test-sys_wait.h.
56656         (main): Invoke test_sys_wait_macros.
56657         * tests/test-sys_wait.c: Include test-sys_wait.h.
56658         (main): Invoke test_sys_wait_macros.
56660 2010-09-25  Simon Josefsson  <simon@josefsson.org>
56662         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
56663         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
56664         sure Windows sockets are working before calling getaddrinfo.
56665         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
56666         * doc/gnulib.texi (Windows sockets): Fix typo.
56668 2010-09-25  Bruno Haible  <bruno@clisp.org>
56670         Tests for module 'regex-quote'.
56671         * modules/regex-quote-tests: New file.
56672         * tests/test-regex-quote.c: New file.
56674         New module 'regex-quote'.
56675         * lib/regex-quote.h: New file.
56676         * lib/regex-quote.c: New file.
56677         * modules/regex-quote: New file.
56678         Suggested by Reuben Thomas <rrt@sc3d.org>.
56680 2010-09-24  Bruno Haible  <bruno@clisp.org>
56682         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
56683         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
56685 2010-09-23  Bruno Haible  <bruno@clisp.org>
56687         setenv: Relax license.
56688         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
56689         Blake.
56690         Requested by Eric Blake.
56692 2010-09-22  Bruno Haible  <bruno@clisp.org>
56694         termios: Relax license.
56695         * modules/termios (License): Change to LGPLv2+.
56696         Requested by Eric Blake.
56698 2010-09-22  Bruno Haible  <bruno@clisp.org>
56700         threadlib: Allow the package to change the default to 'no'.
56701         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
56702         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
56703         Reported by Paul Eggert.
56705 2010-09-22  Pádraig Brady  <P@draigbrady.com>
56706             Bruno Haible  <bruno@clisp.org>
56708         Fix endless loop in mbmemcasecoll.
56709         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
56710         byte.
56711         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
56713 2010-09-22  Bruno Haible  <bruno@clisp.org>
56715         Tests for module 'memcoll'.
56716         * modules/memcoll-tests: New file.
56717         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
56719         memcoll, xmemcoll: Clarify size vs. length.
56720         * modules/memcoll.c (memcoll0): Clarify specification.
56721         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
56722         passed to collate_error.
56724 2010-09-22  Bruno Haible  <bruno@clisp.org>
56726         Tests for module 'memcasecmp'.
56727         * modules/memcasecmp-tests: New file.
56728         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
56730 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56732         * lib/pthread.in.h: Add split double-inclusion guard, and include
56733         system <pthread.h> if there is one.  Use @@-style as in other
56734         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
56735         pthread.h doesn't.
56736         (pthread_mutexattr_destroy, pthread_mutexattr_init):
56737         (pthread_mutexattr_settype, pthread_mutex_trylock):
56738         New static inline functions, if there's no system <pthread.h>.
56739         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
56740         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
56741         Approximate with mutexes if the system lacks spinlocks, as in
56742         MacOS.
56743         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
56744         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
56745         @@-style.  Check for spinlocks separately.
56746         (gl_PTHREAD_DEFAULTS): New macro.
56747         * modules/pthread: Redo to use a more typical style for in.h files.
56749 2010-09-21  Eric Blake  <eblake@redhat.com>
56751         net_if: enhance tests
56752         * tests/test-net_if.c (main): Move signature checks earlier.
56753         Print failures to stderr.
56754         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
56755         Document the bug that we do not yet fix.
56757 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
56759         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
56760         about gnulib, not GSS.
56762 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
56764         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
56765         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
56766         for Emacs.
56767         * build-aux/pmccabe2html: Make Makefile.am example code more
56768         cut-and-paste friendly.
56770 2010-09-21  Simon Josefsson  <simon@josefsson.org>
56772         * tests/test-net_if.c: New file.
56773         * modules/net_if-tests: New file.
56775 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
56777         pthread: add pthread_spin_destroy
56778         * lib/pthread.in.h (pthread_spin_destroy): New function.
56780 2010-09-19  Bruno Haible  <bruno@clisp.org>
56782         gnulib-tool: Fix --help output.
56783         * gnulib-tool (func_usage): Fix help message.
56784         Reported by Reuben Thomas <rrt@sc3d.org>.
56786 2010-09-18  Jim Meyering  <meyering@redhat.com>
56788         maint.mk: avoid unexpanded \n in two diagnostics
56789         * top/maint.mk (sc_prohibit_always_true_header_tests):
56790         Don't use a literal \n in a halt=... assignment.  It would not be
56791         expanded, and the two \n bytes would appear in the diagnostic output
56792         rather than the desired newline.  Use halt=$$(printf ... instead.
56793         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
56795 2010-09-18  Bruno Haible  <bruno@clisp.org>
56797         netinet_in: Doc tweak.
56798         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
56799         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
56801 2010-09-18  Jim Meyering  <meyering@redhat.com>
56803         init.sh: correct an outdated comment
56804         * tests/init.sh (create_exe_shims_):  s/function/alias/
56806         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
56807         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
56808         a file named "*.exe" is removed between the glob expansion and the
56809         processing of that oddly named file.
56811 2010-09-17  Eric Blake  <eblake@redhat.com>
56813         mirbsd: add some more support
56814         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
56815         in BSD family.
56816         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
56817         devices as OpenBSD.
56818         * m4/host-os.m4 (mirbsd): Add MirBSD.
56820         tests: fix unportable assumption on sys/wait.h
56821         * tests/test-sys_wait.c (main): Relax test.
56822         * tests/test-stdlib.c (main): Likewise.
56824         init.sh: accommodate directory with no .exes
56825         * tests/init.sh: Accomodate directory containing only scripts.
56827         tests: avoid compiler warning
56828         * tests/test-stdlib.c (main): Use the variable.
56830         fdutimens, fdutimensat: update signature, again
56831         * lib/utimens.h (gl_futimens): Delete, and move signature...
56832         (fdutimens): ...here.
56833         (fdutimensat): Rearrange signature.
56834         (lutimensat): Rename variable for clarity.
56835         * lib/fdutimensat.c (fdutimensat): Update signature.
56836         * lib/utimens.c (fdutimens): Likewise.
56837         (gl_futimens): Delete.
56838         (utimens, lutimens): Update callers.
56839         * lib/futimens.c (futimens): Likewise.
56840         * tests/test-fdutimensat.c: Likewise.
56841         * tests/test-utimens.c: Likewise.
56842         * tests/test-futimens.h: Update comment.
56843         * NEWS: Mention this.
56844         Suggested by Paul Eggert.
56846 2010-09-17  Bruno Haible  <bruno@clisp.org>
56848         Take over the maintenance of some older macros from Autoconf.
56849         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
56850         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
56851         GNU Autoconf.
56852         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
56853         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
56855 2010-09-17  Eric Blake  <eblake@redhat.com>
56857         fdutimensat: drop atflag validation
56858         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
56859         with valid fd, to close a race scenario where futimens is
56860         unsupported and FILE was replaced by a symlink.
56861         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
56862         accordingly.
56863         Suggested by Paul Eggert.
56865 2010-09-16  Bruno Haible  <bruno@clisp.org>
56867         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
56868         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
56870 2010-09-16  Bruno Haible  <bruno@clisp.org>
56872         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
56873         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
56874         login_tty exists.
56875         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
56877 2010-09-16  Bruno Haible  <bruno@clisp.org>
56879         login_tty: Make the replacement code work on BSD systems.
56880         * lib/login_tty.c: Include <sys/ioctl.h>.
56881         (login_tty): Use ioctl TIOCSCTTY when available.
56882         * modules/login_tty (Depends-on): Add sys_ioctl.
56883         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
56885 2010-09-16  Bruno Haible  <bruno@clisp.org>
56887         login_tty: Stricter unit test.
56888         * modules/login_tty-tests (Depends-on): Add tcgetsid.
56889         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
56890         and tcgetsid() after login_tty.
56891         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
56893 2010-09-16  Bruno Haible  <bruno@clisp.org>
56895         New module 'tcgetsid'.
56896         * lib/tcgetsid.c: New file.
56897         * m4/tcgetsid.m4: New file.
56898         * modules/tcgetsid: New file.
56899         * modules/termios (Depends-on): Add c++defs, warn-on-use.
56900         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
56901         GNULIB_TCGETSID, HAVE_TCGETSID.
56902         * lib/termios.in.h: Include <sys/types.h>.
56903         (tcgetsid): New declaration.
56904         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
56905         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
56906         * doc/posix-functions/tcgetsid.texi: Mention the new module.
56907         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
56909 2010-09-16  Bruno Haible  <bruno@clisp.org>
56911         Tests for module 'termios'.
56912         * modules/termios-c++-tests: New file.
56913         * modules/termios-tests: New file.
56914         * tests/test-termios-c++.cc: New file.
56915         * tests/test-termios.c: New file.
56917         New module 'termios'.
56918         * modules/termios: New file.
56919         * lib/termios.in.h: New file.
56920         * m4/termios_h.m4: New file.
56921         * doc/posix-headers/termios.texi: Mention the new module.
56923 2010-09-16  Eric Blake  <eblake@redhat.com>
56925         fdutimensat: add an atflag parameter
56926         * lib/fdutimensat.c (fdutimensat): Add new parameter.
56927         * lib/utimens.h (fdutimensat): Update prototype.
56928         * tests/test-fdutimensat.c: Adjust test to match.
56929         * NEWS: Document the change.
56930         Suggested by Paul Eggert.
56932 2010-09-16  Bruno Haible  <bruno@clisp.org>
56934         Fix typos in comments.
56935         * lib/striconveh.h: Fix typo in comment.
56936         * lib/login_tty.c (login_tty): Likewise.
56938 2010-09-15  Bruno Haible  <bruno@clisp.org>
56940         stdlib: clarify MirBSD WEXITSTATUS bug
56941         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
56942         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
56944 2010-09-15  Eric Blake  <eblake@redhat.com>
56946         stdlib: work around MirBSD WEXITSTATUS bug
56947         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
56948         * modules/stdlib (Depends-on): Add sys_wait.
56949         * tests/test-sys_wait.c (main): Enhance test.
56950         * tests/test-stdlib.c (main): Likewise.
56951         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
56953         docs: mention MacOS issue with WEXITSTATUS(constant)
56954         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
56955         issue.
56956         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
56958         strnlen: add tests
56959         * modules/strnlen-tests: New file.
56960         * tests/test-strnlen.c: Likewise.
56962 2010-09-14  Bruno Haible  <bruno@clisp.org>
56964         unistr/base: Avoid link errors when module 'libunistring' is also used.
56965         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
56966         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
56967         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
56968         Declare also when HAVE_LIBUNISTRING is set.
56969         Reported by Pádraig Brady <P@draigbrady.com>.
56971 2010-09-14  Eric Blake  <eblake@redhat.com>
56973         test-rawmemchr: make more robust
56974         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
56975         (Depends-on, configure.ac): Add needed prerequisites to use it.
56976         * modules/memchr-tests (Files, Depends-on, configure.ac):
56977         Likewise, to avoid implicit reliance on memchr module prereqs.
56978         * tests/test-memchr.c (main): Ensure proper masking.
56979         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
56980         reads.
56982         memchr: detect glibc Alpha bug
56983         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
56984         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
56985         Alpha.
56986         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
56987         * tests/test-memchr.c (main): Enhance test.
56988         Reported by Nelson H. F. Beebe.
56990 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
56992         fts, getcwd, glob: audit for dirfd returning -1
56993         * lib/fts.c (opendir): Remove #define; no longer used.
56994         (opendirat): New arg PDIR_FD.  All callers changed.
56995         (fts_build, _opendir2): Use new opendirat to avoid the need for
56996         dirfd, or for checking whether dirfd returns a negative value.
56997         Don't use opendir; always use openat followed by fdopendir.
56998         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
56999         it.
57000         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
57001         returns -1 here.
57002         * modules/fts (Depends-on): Remove dirfd.
57003         * modules/getcwd (Depends-on): Likewise.
57005 2010-09-13  Eric Blake  <eblake@redhat.com>
57007         float: fix broken MirBSD header
57008         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
57009         * doc/posix-headers/float.texi (float.h): Document it.
57011 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
57013         fts: use O_NOFOLLOW to avoid race condition when opening a directory
57014         * lib/fts.c (opendirat): New arg extra_flags.
57015         (__opendir2): Use it to avoid following symlinks when opening
57016         a directory, if symlinks are not supposed to be followed.  See
57017         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
57019         fdopendir: preserve argument fd before returning
57020         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
57021         (fdopendir_with_dup, fd_clone_opendir): New static functions.
57022         (fdopendir): Use them, arranging for FD to be open to the same
57023         directory that it was when it started.  (It might be temporarily
57024         closed while fdopendir is running, so this not thread- or
57025         signal-safe.)  Be careful to do the right thing even when file
57026         descriptors are scarce and dup fails with errno == EMFILE.  See
57027         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
57029 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
57031         regex: Pass the system regex if its only problem is 32-bit regoff_t.
57032         * NEWS: Document change.
57033         * m4/regex.m4: Disable test for regoff_t size.
57035 2010-09-13  Jim Meyering  <meyering@redhat.com>
57037         fts: don't operate on an invalid file descriptor after failed dup
57038         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
57039         negative file descriptor.
57041 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
57043         savedir: add streamsavedir, deprecate fdsavedir
57044         * NEWS: Mention deprecation of fdsavedir.
57045         * lib/savedir.c (streamsavedir): New extern function, whose name
57046         ends in "savedir" to be consistent with the others.  This differs
57047         from savedirstream in that it doesn't close its argument.  The
57048         next version of GNU tar will use this instead of fdsavedir, to
57049         avoid some race conditions and conserve file descriptors.
57050         (savedirstream): Reimplement as a wrapper around streamsavedir.
57051         (fdsavedir): Add a comment deprecating this function.  As far as
57052         I know, only GNU tar used it, and GNU tar doesn't need it any more.
57053         * lib/savedir.h (streamsavedir): New decl.
57054         (fdsavedir): Add a comment deprecating this.
57056 2010-09-10  Bruno Haible  <bruno@clisp.org>
57058         langinfo: Fix last commit.
57059         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
57060         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
57061         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57063 2010-09-10  Bruno Haible  <bruno@clisp.org>
57065         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
57066         * lib/progreloc.c (O_EXEC): Define fallback.
57068 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
57070         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
57071         * NEWS: Document recent changes to fcntl-h.
57072         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
57073         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
57074         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
57075         Similarly for O_SEARCH; this last was already true, but not documented.
57076         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
57077         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
57078         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
57079         Likewise.
57080         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
57081         is zero, not whether it is defined.
57082         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
57083         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
57084         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
57086 2010-09-10  Bruno Haible  <bruno@clisp.org>
57088         langinfo, nl_langinfo: Fix for IRIX 5.3.
57089         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
57090         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
57091         HAVE_LANGINFO_YESEXPR.
57092         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
57093         HAVE_LANGINFO_YESEXPR.
57094         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
57095         HAVE_LANGINFO_T_FMT_AMPM is 0.
57096         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
57097         HAVE_LANGINFO_YESEXPR is 0.
57098         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
57099         NOEXPR.
57100         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
57101         * doc/posix-functions/nl_langinfo.texi: Likewise.
57102         Reported by Eric Blake.
57104 2010-09-10  Bruno Haible  <bruno@clisp.org>
57106         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
57107         * doc/glibc-functions/login_tty.texi: Mention the include file problem
57108         on FreeBSD 8.0 and OpenBSD 4.6.
57109         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
57110         * m4/pty_h.m4 (gl_PTY_H): Likewise.
57111         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
57112         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
57113         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
57114         ac_includes_default.
57115         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
57117 2010-09-09  Eric Blake  <eblake@redhat.com>
57119         strsignal: work around NetBSD bug
57120         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
57121         * lib/string.in.h (includes): Likewise.
57122         * doc/posix-functions/strsignal.texi (strsignal): Document the
57123         bug.
57124         Reported by Nelson H. F. Beebe.
57126         gnulib-tool: work with NetBSD /bin/sh
57127         * gnulib-tool (func_cache_var, func_cache_lookup_module)
57128         (func_get_description, func_get_comment, func_get_status)
57129         (func_get_notice, func_get_applicability, func_get_filelist)
57130         (func_get_dependencies, func_get_autoconf_early_snippet)
57131         (func_get_autoconf_snippet, func_get_automake_snippet)
57132         (func_get_include_directive, func_get_link_directive)
57133         (func_get_license, func_get_maintainer, func_import): Avoid
57134         shell syntax errors from parsing syntax extensions.
57136 2010-09-09  Bruno Haible  <bruno@clisp.org>
57138         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
57139         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
57140         a reliable way to determine whether the 'alias' command works.
57142 2010-09-08  Jim Meyering  <meyering@redhat.com>
57144         init.sh: penalize a set-x-impaired shell; don't disqualify it
57145         * tests/init.sh: Too many shells corrupt application stderr when
57146         you set -x, so we can't afford to disqualify them, since at least
57147         on Irix-6.5, that would disqualify all bourne shells.
57148         Instead, use a two-pass approach.
57149         On the first pass, try to find a shell that meets the stricter
57150         condition that set -x does not corrupt stderr.
57151         If no shell meets the stricter condition, retest each candidate
57152         shell, but without that extra condition.  Finally, when
57153         VERBOSE=yes is requested and set -x might cause trouble, simply
57154         issue a warning and refrain from enabling debug output.
57156 2010-09-08  Eric Blake  <eblake@redhat.com>
57158         unsetenv: fix OpenBSD bug
57159         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
57160         * doc/posix-functions/unsetenv.texi (unsetenv): Update
57161         documentation.
57162         Reported by Jim Meyering.
57164         strtod: work around IRIX 6.5 bug
57165         * lib/strtod.c (strtod): Reparse number on shorter string if
57166         exponent parse was invalid.
57167         * tests/test-strtod.c (main): Add check for "0x1p 2".
57168         Reported by Tom G. Christensen.
57170         getopt: optimize previous patch
57171         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
57172         empty variable.  Speed up awk script.
57173         Reported by Paolo Bonzini.
57175 2010-09-08  Jim Meyering  <meyering@redhat.com>
57177         test.sh: disqualify shells for which set -x corrupts stderr
57178         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
57179         and OpenBSD 4.7.  They make it so with "set -x", environment settings
57180         appear in stderr output.  For example, this command:
57181             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
57182         prints "P=1" on those two systems:
57184 2010-09-08  Bruno Haible  <bruno@clisp.org>
57186         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
57187         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
57188         commands, because some shells ignore redirections when there is an
57189         error in the command lookup.
57190         Reported by Eric Blake.
57192 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
57194         * lib/regex.h: Fix a mention of `regex_compile' (should be
57195         `re_compile_pattern').
57196         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
57197         (re_set_registers): Correct name of parameter in comment.
57199         * doc/regex.texi: Add documentation for missing syntax flags.
57200         Remove commented-out documentation of defunct syntax option
57201         RE_NO_EMPTY_ALTS.
57202         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
57203         Add documentation of re_set_registers.
57204         Document trick to re-use a pattern buffer by setting fastmap manually.
57205         Update documentation of struct re_pattern_buffer per public members.
57206         Uncomment documentation of equivalence class operators and
57207         collating symbol operators, since they are now implemented,
57208         Explain leftmost-longest matching in relation to alternatives.
57209         Tidy documentation of substring matching.
57210         Remove POSIX documentation, which is done better in
57211         glibc, and refer the reader there. Keep BSD API documentation, as
57212         that is not readily available elsewhere.
57214 2010-09-07  Eric Blake  <eblake@redhat.com>
57216         getopt: handle POSIXLY_CORRECT set but not exported
57217         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
57218         export state of POSIXLY_CORRECT, due to bash set -o posix.
57219         Reported by Dustin J. Mitchell.
57221 2010-09-05  Bruno Haible  <bruno@clisp.org>
57223         gnulib-tool: Highlight the changed options.
57224         * gnulib-tool (func_usage): Display the --import, --add-import,
57225         --remove-import explanations in bold font.
57227 2010-09-06  Karl Berry  <karl@gnu.org>
57229         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
57231 2010-09-05  Bruno Haible  <bruno@clisp.org>
57233         uniwidth/width: Update comment.
57234         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
57235         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
57237 2010-09-05  Bruno Haible  <bruno@clisp.org>
57239         isinf, isnan: Relax license.
57240         * modules/isinf (License): Change from GPL to LGPL, with consent from
57241         Ben Pfaff.
57242         * modules/isnan (License): Likewise.
57243         Requested by Ludovic Courtès.
57245 2010-09-04  Bruno Haible  <bruno@clisp.org>
57247         gnulib-tool: Help migration from --import to --add-import or --update.
57248         * gnulib-tool: Emit a verbose error message when --import is used
57249         without any module name.
57251 2010-09-04  Bruno Haible  <bruno@clisp.org>
57253         Update doc about gnulib-tool.
57254         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
57255         'gnulib-tool --update' in more detail.
57256         Reported by Eric Blake.
57258 2010-09-04  Bruno Haible  <bruno@clisp.org>
57260         gnulib-tool: Change --import. New options --add/remove-import.
57261         * gnulib-tool: New options --add-import, --remove-import.
57262         (func_usage): Document them.
57263         (have_associative): Define always.
57264         (func_import): In import mode, don't merge the specified settings with
57265         the cached settings. Implement remove-import mode.
57266         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
57267         Explain when to use them versus --import.
57268         (Simple update): Use --add-import instead of --import.
57269         * NEWS: Mention the change.
57271 2010-09-04  Bruno Haible  <bruno@clisp.org>
57273         * doc/gnulib-tool.texi (Initial import): Update paragraph about
57274         separate gnulib.mk.
57276 2010-09-04  Bruno Haible  <bruno@clisp.org>
57278         gnulib-tool: Don't talk about CVS any more.
57279         * gnulib-tool (func_usage, func_import): Write "version control"
57280         instead of CVS.
57282 2010-09-04  Jim Meyering  <meyering@redhat.com>
57284         maint.mk: avoid obscure sc_copyright_check failure in coreutils
57285         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
57286         false positives (whose names may be ill-chosen) when searching
57287         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
57288         would cause a false-positive.
57290         avoid coreutils "make distcheck" failure
57291         Coreutils tests with an absolute build directory name that contains
57292         a space.  Not quoting this directory name caused a failure.
57293         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
57294         * tests/test-vc-list-files-cvs.sh: Likewise.
57296 2010-09-04  Bruno Haible  <bruno@clisp.org>
57298         gnulib-tool: Avoid error when run in a package without Makefile.am.
57299         * gnulib-tool: When collecting the m4dirs in a package that does not
57300         have a Makefile.am, eliminate those directories that contain no
57301         gnulib-cache.m4. Fix expression that counts these directories.
57303 2010-09-04  Bruno Haible  <bruno@clisp.org>
57305         update-copyright test: Improve output when perl is missing or too old.
57306         * tests/test-update-copyright.sh: Move test of Perl version down after
57307         the test whether Perl exists. Provide an explanation relating Perl's
57308         error message to Automake's SKIP: message.
57310 2010-09-04  Bruno Haible  <bruno@clisp.org>
57312         Don't augment PATH in TESTS_ENVIRONMENT.
57313         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
57314         set abs_aux_dir instead of augmenting PATH.
57315         * modules/vc-list-files-tests (Makefile.am): Likewise.
57316         * tests/test-update-copyright.sh: Augment PATH here.
57317         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
57318         path_prepend_.
57319         * tests/test-vc-list-files-git.sh: Likewise.
57321 2010-09-04  Jim Meyering  <meyering@redhat.com>
57323         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
57324         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
57326 2010-09-04  Bruno Haible  <bruno@clisp.org>
57328         strdup: Fix compilation error in C++ mode.
57329         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
57330         the macro.
57332 2010-09-04  Bruno Haible  <bruno@clisp.org>
57334         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
57335         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
57336         macro into a function.
57337         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
57339 2010-09-04  Bruno Haible  <bruno@clisp.org>
57341         Set PATH_SEPARATOR the same way autoconf does.
57342         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
57343         the value of PATH_SEPARATOR the same way autoconf-generated configure
57344         scripts do.
57345         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
57346         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
57348 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
57350         Set PATH_SEPARATOR the same way autoconf does.
57351         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
57352         the same way autoconf-generated configure scripts do.
57353         * posix-modules: Likewise.
57355 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
57357         hash: fix safe_hasher const typo
57358         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
57359         const; otherwise, there is a type error later.
57361 2010-09-02  Jim Meyering  <meyering@redhat.com>
57363         test-update-copyright.sh: require perl 5.8.0
57364         * tests/test-update-copyright.sh: Require 5.8.0,
57365         which Tom G. Christensen has confirmed is adequate,
57366         while 5.6.1 is not.
57368 2010-09-02  Eric Blake  <eblake@redhat.com>
57370         tests: init.sh improvements for re-exec'ing with zsh
57371         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
57372         -vx through shell re-exec.
57373         Reported by Tom G. Christensen.
57375         wctype: fix typo in previous commit
57376         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
57377         Reported by Ludovic Courtès.
57379 2010-09-02  Jim Meyering  <meyering@redhat.com>
57381         test-update-copyright.sh: skip test if Perl is too old
57382         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
57383         Reported by Tom G. Christensen.
57385 2010-09-02  Bruno Haible  <bruno@clisp.org>
57387         wctype: Avoid compilation error on IRIX 6.5.30.
57388         * lib/wctype.in.h (iswblank): Declare with a replacement if
57389         REPLACE_ISWBLANK is set.
57390         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
57391         declared. Set REPLACE_ISWBLANK.
57392         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
57393         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
57394         * doc/posix-headers/wctype.texi: Likewise.
57395         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57397 2010-09-01  Bruno Haible  <bruno@clisp.org>
57399         New module 'socketlib'.
57400         * modules/socketlib: New file.
57401         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
57402         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
57403         * modules/sockets (Depends-on): Add socketlib.
57404         Suggested by Sam Steingold <sds@gnu.org>.
57406 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57408         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
57410         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
57411         when one needs search access to a directory but not read access.
57412         On systems where it is available, it works in some cases where
57413         O_RDONLY does not, namely on directories that are searchable but
57414         not readable, and which need only to be searchable.  If O_SEARCH
57415         is not available, fall back to the traditional method of using
57416         O_RDONLY.
57418         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
57419         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
57420         when opening a directory that needs only to be searchable.
57421         * lib/chdir-safer.c (chdir_no_follow): Likewise.
57422         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
57423         * lib/openat-proc.c (openat_proc_name): Likewise.
57424         * lib/openat.c (openat_needs_fchdir): Likewise.
57425         * lib/save-cwd.c (save_cwd): Likewise.
57426         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
57428 2010-08-28  Bruno Haible  <bruno@clisp.org>
57430         New module 'host-cpu-c-abi'.
57431         * modules/host-cpu-c-abi: New file.
57432         * m4/host-cpu-c-abi.m4: New file, based on part of
57433         clisp/src/m4/general.m4.
57434         Requested by Sam Steingold <sds@gnu.org>.
57436 2010-08-31  Eric Blake  <eblake@redhat.com>
57437         and Jim Meyering  <meyering@redhat.com>
57439         hash: factor, and guard against misbehaving hasher function
57440         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
57441         of table->hasher's return value.  Also protect against a hash value
57442         so large that adding it to table->bucket results in a NULL pointer.
57443         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
57444         Use it in place of open-coded check-and-abort.
57446 2010-08-30  Bruno Haible  <bruno@clisp.org>
57448         hash: silence spurious clang warning
57449         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
57450         Reported by Eric Blake.
57452 2010-08-30  Eric Blake  <eblake@redhat.com>
57454         strstr, memmem, strcasestr: avoid leaked shell message
57455         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
57456         FreeBSD.
57457         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57458         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57460         tests: silence clang warning
57461         * tests/test-malloca.c (do_allocation): Avoid dead store.
57463 2010-08-29  Bruno Haible  <bruno@clisp.org>
57465         gettext: Fix recent mistake.
57466         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
57468 2010-08-29  Bruno Haible  <bruno@clisp.org>
57470         selinux-h: Offer a --without-selinux option.
57471         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
57472         --without-selinux was specified, skip all tests and define
57473         HAVE_SELINUX_SELINUX_H to 0.
57474         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
57475         set LIB_SELINUX to empty.
57476         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
57477         gl_LIBSELINUX. If --without-selinux was specified, replace
57478         selinux/context.h.
57479         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
57481 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57482             Bruno Haible  <bruno@clisp.org>
57484         Make the module 'realloc-gnu' work again on AIX and OSF/1.
57485         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
57486         of HAVE_REALLOC.
57487         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
57488         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
57489         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
57490         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
57492 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57493             Bruno Haible  <bruno@clisp.org>
57495         Make the module 'calloc-gnu' work again on AIX and OSF/1.
57496         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
57497         HAVE_CALLOC.
57498         * lib/xmalloc.c: Update accordingly.
57499         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
57500         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
57501         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
57503 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57504             Bruno Haible  <bruno@clisp.org>
57506         Make the module 'malloc-gnu' work again on AIX and OSF/1.
57507         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
57508         HAVE_MALLOC.
57509         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
57510         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
57511         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
57513 2010-08-29  Bruno Haible  <bruno@clisp.org>
57515         Update modules list.
57516         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
57517         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
57518         (String handling <string.h>): Add astrxfrm.
57519         (File system functions): Add readlinkat.
57521 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57523         Tests for module 'realloc-gnu'.
57524         * modules/realloc-gnu-tests: New file.
57525         * tests/test-realloc-gnu.c: New file.
57527         Tests for module 'calloc-gnu'.
57528         * modules/calloc-gnu-tests: New file.
57529         * tests/test-calloc-gnu.c: New file.
57531         Tests for module 'malloc-gnu'.
57532         * modules/malloc-gnu-tests: New file.
57533         * tests/test-malloc-gnu.c: New file.
57535 2010-08-28  Bruno Haible  <bruno@clisp.org>
57537         Rename module 'realloc' -> 'realloc-gnu'.
57538         * modules/realloc-gnu: New file, copied from modules/realloc.
57539         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
57540         obsolete.
57541         * modules/mgetgroups (Depends-on): Update.
57542         * doc/posix-functions/realloc.texi: Update.
57543         * NEWS: Mention the change.
57545         Rename module 'calloc' -> 'calloc-gnu'.
57546         * modules/calloc-gnu: New file, copied from modules/calloc.
57547         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
57548         obsolete.
57549         * doc/posix-functions/calloc.texi: Update.
57550         * NEWS: Mention the change.
57552         Rename module 'malloc' -> 'malloc-gnu'.
57553         * modules/malloc-gnu: New file, copied from modules/malloc.
57554         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
57555         obsolete.
57556         * modules/argp (Depends-on): Update.
57557         * modules/regex (Depends-on): Update.
57558         * doc/posix-functions/malloc.texi: Update.
57559         * NEWS: Mention the change.
57561 2010-08-28  Eric Blake  <eblake@redhat.com>
57563         pread, pwrite: add missing dependency
57564         * modules/pread (Depends-on): Add extensions.
57565         * modules/pwrite (Depends-on): Likewise.
57567 2010-08-28  Bruno Haible  <bruno@clisp.org>
57569         unistr/u*-strchr: Fix tests dependencies.
57570         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
57571         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
57572         Reported by Ian Beckwith <ianb@erislabs.net>.
57574 2010-08-28  Bruno Haible  <bruno@clisp.org>
57576         read-file: Don't occupy too much unused memory.
57577         * lib/read-file.c (fread_file): Shrink the buffer at the end.
57579 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
57580             Eric Blake  <eblake@redhat.com>
57581             Bruno Haible  <bruno@clisp.org>
57583         read-file: Avoid memory reallocations with regular files.
57584         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
57585         (fread_file): With regular files, use the remaining length as the
57586         initial buffer size.  Check against overflow.
57587         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
57588         sys_stat.
57590 2010-08-28  Bruno Haible  <bruno@clisp.org>
57592         ftello: Relax license.
57593         * modules/ftello (License): Relax to LGPLv2+.
57594         Reported by Eric Blake.
57596 2010-08-28  Bruno Haible  <bruno@clisp.org>
57598         Avoid relocwrapper link errors due to gnulib replacement functions.
57599         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
57600         function.
57601         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57603 2010-08-28  Bruno Haible  <bruno@clisp.org>
57605         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
57606         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
57607         defined.
57608         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
57609         Suggested by Eric Blake.
57611 2010-08-28  Bruno Haible  <bruno@clisp.org>
57613         sys_socket, netdb: Ensure socklen_t gets defined.
57614         * modules/sys_socket (Depends-on): Add socklen.
57615         * modules/netdb (Depends-on): Likewise.
57616         * modules/getaddrinfo (Depends-on): Remove socklen.
57617         * modules/getsockopt (Depends-on): Likewise.
57618         * modules/setsockopt (Depends-on): Likewise.
57619         * tests/test-sys_socket.c: Check that socklen_t is defined.
57620         * tests/test-netdb.c: Likewise.
57621         * m4/socklen.m4: Update comments.
57622         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57624 2010-08-27  Eric Blake  <eblake@redhat.com>
57626         login_tty: add missing dependency
57627         * modules/login_tty (Depends-on): Add pty.
57629 2010-08-26  Eric Blake  <eblake@redhat.com>
57631         lib-symbol-versions: fix m4 quoting
57632         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
57633         format for AC_LINK_IFELSE.
57635         glob: fix compile test
57636         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
57638         btowc: fix missing file
57639         * modules/btowc (Files): Also ship locale-fr.m4.
57641         lseek: fix link test
57642         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
57643         AC_LINK_IFELSE.
57645         include_next: silence autoconf 2.68 warning
57646         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
57647         AC_COMPILE_IFELSE as special.
57648         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
57649         autoconf < 2.68.
57651         acl: fix compilation test
57652         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
57653         AC_COMPILE_IFELSE.
57655 2010-08-26  Bruno Haible  <bruno@clisp.org>
57657         Modernize AC_TRY_RUN invocations.
57658         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
57659         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
57660         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
57661         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
57662         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
57663         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
57664         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
57665         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
57666         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
57667         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
57668         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
57669         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
57670         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
57671         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
57672         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
57673         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
57674         gl_MBRLEN_NUL_RETVAL): Likewise.
57675         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
57676         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
57677         Likewise.
57678         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
57679         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
57680         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
57681         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
57682         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
57683         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
57684         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
57685         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
57686         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
57687         Likewise.
57688         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
57689         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
57690         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57691         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
57692         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
57693         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
57694         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
57695         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
57696         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
57697         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57699 2010-08-26  Bruno Haible  <bruno@clisp.org>
57701         Modernize AC_TRY_LINK invocations.
57702         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
57703         AC_TRY_LINK.
57704         * m4/argp.m4 (gl_ARGP): Likewise.
57705         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
57706         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
57707         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
57708         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
57709         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
57710         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
57711         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
57712         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
57713         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
57714         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
57715         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
57716         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
57717         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
57718         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
57719         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
57720         * m4/hostent.m4 (gl_HOSTENT): Likewise.
57721         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
57722         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
57723         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
57724         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
57725         Likewise.
57726         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
57727         Likewise.
57728         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
57729         Likewise.
57730         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
57731         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
57732         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
57733         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
57734         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
57735         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
57736         * m4/servent.m4 (gl_SERVENT): Likewise.
57737         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
57738         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
57739         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
57740         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
57741         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
57742         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
57743         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
57744         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
57745         * modules/tsearch-tests (configure.ac): Likewise.
57747 2010-08-26  Bruno Haible  <bruno@clisp.org>
57749         Modernize AC_TRY_COMPILE invocations.
57750         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
57751         AC_TRY_COMPILE.
57752         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
57753         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
57754         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
57755         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
57756         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
57757         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
57758         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
57759         * m4/lock.m4 (gl_LOCK): Likewise.
57760         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
57761         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57762         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
57763         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
57764         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
57765         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
57766         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
57767         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
57768         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
57769         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
57770         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
57771         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
57772         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
57773         extraneous semicolon.
57775 2010-08-26  Jim Meyering  <meyering@redhat.com>
57777         stat-time: relax license LGPL
57778         * modules/stat-time (License): Change from GPL to LGPL,
57779         with consent from all contributors, for use in libguile.
57780         Requested by Ludovic Courtès.
57782 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
57784         poll: return immediately on POLLHUP.
57785         * lib/poll.c (poll): Always set timeout before wait_timeout is
57786         computed.
57788 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57790         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
57791         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
57792         rmdir ("dir/.//"), unlinkat.
57794 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57796         stdbool: avoid spurious failure with modern xlc
57797         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
57799 2010-08-24  Bruno Haible  <bruno@clisp.org>
57801         getloadavg: simplify code
57802         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
57803         gl_have_func. Update comments.
57805 2010-08-24  Eric Blake  <eblake@redhat.com>
57807         getloadavg: don't define SVR4 on cygwin
57808         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
57809         only define SVR4 when -lkvm is required.
57810         Reported by Yaakov Selkowitz.
57812 2010-08-24  Bruno Haible  <bruno@clisp.org>
57814         priv-set: fix comment
57815         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
57817 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57819         priv-set: fix comments
57820         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
57821         to match code, as suggested by David Bartley in:
57822         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
57824 2010-08-23  Eric Blake  <eblake@redhat.com>
57826         stdbool: avoid rejecting clang
57827         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
57828         * tests/test-stdbool.c: Enable more tests if using the system
57829         <stdbool.h> instead of the gnulib replacement.
57830         (main): Move xlc bug test to a runtime test for all compilers.
57831         Reported by Anders Kaseorg.
57833         argz: fix shell quoting issue
57834         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
57835         Reported by Charles Wilson.
57837 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
57838             Erik Faye-Lund <kusmabite@gmail.com>
57840         poll, select: handle ERROR_BROKEN_PIPE.
57841         * lib/poll.c (win32_compute_revents): Return POLLHUP when
57842         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
57843         * lib/select.c (win32_compute_revents): Do not mark a pipe
57844         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
57846 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
57848         fts: allow compilation with C++
57849         * lib/fts_.h: Specify extern "C" linkage with C++.
57851 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57853         Fix gnulib-tool sed script de-commentation for AIX sed.
57854         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
57855         sed.
57857 2010-08-17  Eric Blake  <eblake@redhat.com>
57859         test-stddef: test for (some) offsetof bugs
57860         * tests/test-stddef.c: Enhance test to ensure correct type of
57861         offsetof.
57862         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
57863         that we are not fixing at this time.
57865 2010-08-15  Bruno Haible  <bruno@clisp.org>
57867         stpncpy: Allow stpncpy to be defined as a macro.
57868         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
57869         if it's already correctly declared.
57870         * lib/string.in.h (stpncpy): Undefine before redefining.
57871         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
57873 2010-08-14  Bruno Haible  <bruno@clisp.org>
57875         Rename module 'memxfrm' to 'amemxfrm'.
57876         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
57877         (amemxfrm): Renamed from memxfrm.
57878         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
57879         (amemxfrm): Renamed from memxfrm.
57880         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
57881         * NEWS: Mention the change.
57882         * MODULES.html.sh (String handling <string.h>): Update.
57883         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
57884         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
57885         * lib/unicase/u16-casexfrm.c: Likewise.
57886         * lib/unicase/u32-casexfrm.c: Likewise.
57887         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
57888         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
57889         * lib/uninorm/u16-normxfrm.c: Likewise.
57890         * lib/uninorm/u32-normxfrm.c: Likewise.
57891         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
57892         memxfrm.
57893         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
57894         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
57895         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
57896         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
57897         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
57898         Suggested by Paul Eggert.
57900 2010-08-14  Bruno Haible  <bruno@clisp.org>
57902         Tests for module 'astrxfrm'.
57903         * modules/astrxfrm-tests: New file.
57904         * tests/test-astrxfrm.c: New file.
57906         New module 'astrxfrm'.
57907         * lib/astrxfrm.h: New file.
57908         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
57909         * modules/astrxfrm: New file.
57911 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
57913         regex: Tweak doc.
57914         * doc/regex.texi (Overview): Don't mention regex.c.
57915         (GNU Regular Expression Compiling): Likewise.
57916         (Match-end-of-line Operator): Mention 'not_eol'.
57918 2010-08-14  Brian Gough  <bjg@gnu.org>
57919             Bruno Haible  <bruno@clisp.org>
57921         git-merge-changelog: add doc relating to use with bzr and hg.
57922         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
57924 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
57926         pthread: fix pthread.h creation for srcdir != builddir
57927         * modules/pthread (Makefile.am): Fix the rule to work also in a
57928         non-srcdir build.
57930 2010-08-13  Karl Berry  <karl@gnu.org>
57932         * doc/regex.texi (Predefined Syntaxes): @smallexample.
57933         * doc/posix-*/*: force line break before @url of POSIX
57934         specifications.
57935         Suggested by Werner Lemberg.
57937 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57939         strtod: fix const diagnostic
57940         * lib/strtod.c (strtod): Don't assign const char * to char *,
57941         as this elicits a warning from GCC when warnings are enabled.
57943 2010-08-10  Pádraig Brady  <P@draigbrady.com>
57944         and Eric Blake  <eblake@redhat.com>
57946         copy-acl: ignore ENOTSUP on HP-UX
57947         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
57948         so that it is available for HP-UX.
57949         * lib/copy-acl.c (qcopy_acl): Use it.
57950         Reported by Patrick M. Callahan.
57952 2010-08-10  Eric Blake  <eblake@redhat.com>
57954         open, chown: relax license
57955         * modules/open (License): Change to LGPLv2+, with consent by all
57956         authors, for use in augeas.
57957         * modules/chown (License): Likewise.
57958         * modules/lchown (Likewise): Likewise.
57959         Requested by Adam Stokes.
57961 2010-08-09  Karl Berry  <karl@gnu.org>
57963         * build-aux/ar-lib: new file, import from Automake.
57964         * config/srclist.txt: autocheck for updates.
57966 2010-08-09  Eric Blake  <eblake@redhat.com>
57968         readlinkat: adjust client modules
57969         * modules/areadlinkat (Depends-on): Use readlinkat, not
57970         symlinkat.
57971         * modules/areadlinkat-with-size (Depends-on): Likewise.
57973         mknod: be more vocal about danger of running tests as root
57974         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
57975         root, since that is just asking for problems.
57976         Suggested by Bruno Haible, based on a report by Rainer Tammer.
57978         readlinkat: split into its own module
57979         * modules/symlinkat: Split readlinkat...
57980         * modules/readlinkat: ...into separate module.
57981         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
57982         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
57983         * lib/symlinkat.c (readlinkat): Move...
57984         * lib/readlinkat.c: ...into new file.
57985         * modules/symlinkat-tests: Split readlinkat test...
57986         * modules/readlinkat-tests: ...into separate module.
57987         * tests/test-symlinkat.c: Split...
57988         * tests/test-readlinkat.c: ...into new file.
57989         * NEWS: Document the split.
57990         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
57991         * lib/unistd.in.h (readlinkat): Likewise.
57992         Suggested by Bruno Haible.
57994 2010-08-08  Bruno Haible  <bruno@clisp.org>
57996         memxfrm: Speed up.
57997         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
57998         that usually only one call to strxfrm is necessary for each string
57999         part.
58000         Reported by Paul Eggert <eggert@cs.ucla.edu>.
58002 2010-08-07  Karl Berry  <karl@gnu.org>
58004         * doc/posix-headers/limits.texi,
58005         * doc/posix-functions/malloc.texi,
58006         * doc/posix-functions/strsignal.texi: missing @item.
58007         * doc/ld-version-script.texi: spurious leading i.
58008         * doc/regex.texi (Interval Operators): no commas inside @var.
58010 2010-08-01  Bruno Haible  <bruno@clisp.org>
58012         Integrate the regex documentation.
58013         * doc/gnulib.texi: Define 'cn' index.
58014         (Regular expressions): New a chapter that includes regex.texi and
58015         regexprops-generic.texi.
58016         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
58017         syntax.
58019         Whitespace cleanup.
58020         * doc/regex.texi: Remove trailing spaces.
58022         Add regex documentation.
58023         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
58024         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
58025         Written by Kathy A. Hargreaves and Karl Berry.
58027 2010-08-01  Bruno Haible  <bruno@clisp.org>
58029         link: Update documentation.
58030         * doc/posix-functions/link.texi: Update regarding Solaris.
58032 2010-07-31  Bruno Haible  <bruno@clisp.org>
58034         Update modules list.
58035         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
58036         (String handling <string.h>): Add memcmp2, memxfrm.
58037         (Container data structures): Add xlist, xsublist, xoset.
58038         (Core language properties): Add alignof, unused-parameter.
58039         (Process control, Numeric conversion functions <stdlib.h>): Renamed
58040         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
58041         (Unibyte characters <ctype.h>): New section.
58042         (String handling <string.h>): New section.
58043         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
58044         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
58045         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
58046         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
58047         tan, tanh, tanl, y0, y1, yn.
58048         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
58049         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
58050         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
58051         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
58052         unlockpt, vdprintf, vdprintf-posix.
58053         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
58054         (File system functions): Add concat-filename, sys_file, sys_ioctl,
58055         xconcat-filename.
58056         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
58057         getdtablesize, pipe2, pipe2-safer.
58058         (Security): New section.
58059         (Networking functions): Add accept4.
58060         (Signal handling): Add sigpipe.
58061         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
58062         mbmemcasecoll.
58063         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
58064         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
58065         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
58066         pipe-filter-ii.
58067         (Misc): Add argp-version-etc, login_tty, parse-duration.
58069 2010-07-31  Bruno Haible  <bruno@clisp.org>
58071         Improve doc in MODULES.html.
58072         * modules/linkat (Description): Add the word "function".
58073         * modules/mkfifo (Description): Likewise.
58074         * modules/mknod (Description): Likewise.
58075         * modules/remove (Description): Likewise.
58076         * modules/renameat (Description): Likewise.
58077         * modules/stat (Description): Likewise.
58078         * modules/symlink (Description): Likewise.
58079         * modules/unlink (Description): Likewise.
58081 2010-07-31  Bruno Haible  <bruno@clisp.org>
58083         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
58084         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
58085         option --enable/disable-c++ instead of --enable/disable-cxx.
58086         * NEWS: Mention the change.
58088 2010-07-31  Bruno Haible  <bruno@clisp.org>
58090         readlink, areadlink: Relax test a bit.
58091         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
58092         alternative to ENOTDIR.
58093         * tests/test-areadlink.h (test_areadlink): Likewise.
58094         Reported by Rainer Tammer.
58096 2010-07-31  Bruno Haible  <bruno@clisp.org>
58098         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
58099         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
58100         character, perform the search using U_STRCHR.
58101         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
58102         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
58103         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
58104         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
58105         Suggested by Paolo Bonzini.
58107 2010-07-31  Bruno Haible  <bruno@clisp.org>
58109         unistr/u*-strstr: Fix dependencies.
58110         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
58111         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
58112         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
58114 2010-07-31  Bruno Haible  <bruno@clisp.org>
58116         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
58117         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
58118         the beginning of the loop.
58119         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
58120         cases in 'switch' statement.
58122         unistr/u8-strchr: Fix several bugs.
58123         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
58124         the string. When not found, return NULL, not a pointer near the end.
58126         More tests for unistr/u8-strchr.
58127         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
58128         that the function does not read past the first occurrence of the byte
58129         being searched.
58130         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
58131         * tests/unistr/test-u16-strchr.c (main): New function.
58132         * tests/unistr/test-u32-strchr.c (main): New function.
58134 2010-07-31  Bruno Haible  <bruno@clisp.org>
58136         posix-modules: Ignore backup files of documentation files.
58137         * posix-modules: grep only through files named *.texi.
58139 2010-07-31  Bruno Haible  <bruno@clisp.org>
58141         symlinkat: Fix documentation.
58142         * doc/posix-functions/readlinkat.texi: Fix module name.
58144 2010-07-31  Bruno Haible  <bruno@clisp.org>
58146         fchownat: Replace also when chown has the trailing slash bug.
58147         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
58148         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
58149         introduced on 2010-04-10.
58150         Reported by Rainer Tammer.
58152 2010-07-31  Bruno Haible  <bruno@clisp.org>
58154         linkat: Work around AIX 7.1 bug.
58155         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
58156         whether linkat handles trailing slash correctly. If not, replace linkat
58157         and define LINKAT_TRAILING_SLASH_BUG.
58158         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
58159         check whether (fd1,file1) points to a directory if file1 or file2 ends
58160         in a slash. Code taken from lib/link.c.
58161         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
58162         Reported by Rainer Tammer.
58164 2010-07-31  Bruno Haible  <bruno@clisp.org>
58166         Correctly determine whether pow is available in libc on AIX 7 with xlc.
58167         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
58168         This disables an xlc optimization that was causing wrong test results.
58169         Reported by Rainer Tammer.
58171 2010-07-31  Bruno Haible  <bruno@clisp.org>
58173         iconv: Work around AIX 6.1..7.1 bug.
58174         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
58175         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
58176         cross-compiling, guess no on all versions of AIX.
58177         Reported by Rainer Tammer.
58179 2010-07-31  Bruno Haible  <bruno@clisp.org>
58181         readlink: Relax test a bit.
58182         * tests/test-readlink.h (test_readlink): Allow different errno value
58183         when readlink is called with a file name that ends in / and refers to
58184         a file.
58185         Suggested by Eric Blake.
58186         Reported by Rainer Tammer.
58188 2010-07-31  Bruno Haible  <bruno@clisp.org>
58190         copysign: Does not require -lm on glibc systems.
58191         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
58192         gl_COMMON_DOUBLE_MATHFUNC.
58193         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
58195 2010-07-31  Bruno Haible  <bruno@clisp.org>
58197         duplocale: Work around AIX 7.1 bug.
58198         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
58199         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
58200         * lib/duplocale.c (rpl_duplocale): Update comment.
58201         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
58202         Reported by Rainer Tammer.
58204 2010-07-30  Bruno Haible  <bruno@clisp.org>
58206         dirfd: Avoid link error on AIX 7.1.
58207         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
58208         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
58209         exist, set REPLACE_DIRFD.
58210         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
58211         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
58212         * doc/posix-functions/dirfd.texi: Update.
58213         Reported by Rainer Tammer.
58215 2010-07-30  Eric Blake  <eblake@redhat.com>
58217         strtod: next round of AIX fixes
58218         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
58219         exponent.
58220         * tests/test-strtod.c (main): Enhance tests.
58221         * doc/posix-functions/strtod.texi (strtod): Document next bug.
58222         Reported by Rainer Tammer.
58224         futimens: fix configure check
58225         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
58226         Reported by Bruno Haible.
58228 2010-07-30  Bruno Haible  <bruno@clisp.org>
58230         getline: Update regarding AIX.
58231         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
58232         Reported by Rainer Tammer.
58234 2010-07-30  Bruno Haible  <bruno@clisp.org>
58236         wcwidth: Drop replacement on AIX 7.
58237         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
58238         AIX 7.
58239         Reported by Rainer Tammer.
58241 2010-07-30  Bruno Haible  <bruno@clisp.org>
58243         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
58244         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
58245         a 'char *'.
58246         Reported by Rainer Tammer.
58248 2010-07-30  Bruno Haible  <bruno@clisp.org>
58250         unlink: Update regarding AIX.
58251         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
58252         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
58253         Reported by Rainer Tammer.
58255 2010-07-30  Bruno Haible  <bruno@clisp.org>
58257         symlink: Update regarding AIX.
58258         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
58259         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
58260         Reported by Rainer Tammer.
58262 2010-07-30  Bruno Haible  <bruno@clisp.org>
58264         strndup: Update regarding AIX.
58265         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
58266         AIX 7.
58267         Reported by Rainer Tammer.
58269 2010-07-30  Bruno Haible  <bruno@clisp.org>
58271         stat: Update regarding AIX.
58272         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
58273         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
58274         Reported by Rainer Tammer.
58276 2010-07-30  Bruno Haible  <bruno@clisp.org>
58278         truncl: Fix autoconf test.
58279         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
58280         whether truncl works.
58281         Reported by Rainer Tammer.
58283 2010-07-30  Bruno Haible  <bruno@clisp.org>
58285         round: Update regarding AIX.
58286         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
58287         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
58288         Reported by Rainer Tammer.
58290 2010-07-30  Bruno Haible  <bruno@clisp.org>
58292         rename: Update regarding AIX.
58293         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
58294         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
58295         Reported by Rainer Tammer.
58297 2010-07-30  Bruno Haible  <bruno@clisp.org>
58299         printf.m4: Update regarding AIX.
58300         * m4/printf.m4: Update comments regarding AIX.
58301         Reported by Rainer Tammer.
58303 2010-07-30  Bruno Haible  <bruno@clisp.org>
58305         iconv: Update regarding AIX.
58306         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
58307         AIX 7.
58308         Reported by Rainer Tammer.
58310 2010-07-30  Bruno Haible  <bruno@clisp.org>
58312         getopt: Update regarding AIX.
58313         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
58314         no on AIX.
58315         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
58316         Reported by Rainer Tammer.
58318 2010-07-30  Bruno Haible  <bruno@clisp.org>
58320         ldexpl; Update regarding AIX.
58321         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
58322         on AIX 7.
58323         Reported by Rainer Tammer.
58325 2010-07-30  Bruno Haible  <bruno@clisp.org>
58327         frexpl: Update regarding AIX.
58328         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
58329         on AIX 7.
58330         Reported by Rainer Tammer.
58332 2010-07-30  Bruno Haible  <bruno@clisp.org>
58334         open, fopen: Update regarding AIX.
58335         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
58336         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
58337         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
58338         * doc/posix-functions/fopen.texi: Likewise.
58339         Reported by Rainer Tammer.
58341 2010-07-30  Bruno Haible  <bruno@clisp.org>
58343         chown: Update doc regarding AIX.
58344         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
58345         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
58346         Reported by Rainer Tammer.
58348 2010-07-30  Eric Blake  <eblake@redhat.com>
58350         strtod: fix bug in replacement function on AIX
58351         * lib/strtod.c (strtod): Special case broken "0x" parse in
58352         underlying strtod.
58353         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
58354         * doc/posix-functions/strtod.texi (strtod): Likewise.
58355         Reported by Rainer Tammer.
58357 2010-07-30  Bruno Haible  <bruno@clisp.org>
58359         mbrlen: Fix cross-compilation guess for AIX.
58360         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
58361         guess. Leftover from 2008-12-22.
58363 2010-07-30  Bruno Haible  <bruno@clisp.org>
58365         mbrtowc: Fix cross-compilation guess for AIX.
58366         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
58367         guess. Leftover from 2008-12-21.
58369 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
58371         init.sh: work around trap limitation of some shells
58372         * tests/init.sh (setup_): Move exit trap outside of shell function.
58374 2010-07-29  Eric Blake  <eblake@redhat.com>
58376         strtod: aid debugging
58377         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
58378         understanding why strtod is rejected.
58380 2010-07-28  Bruno Haible  <bruno@clisp.org>
58382         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
58383         * lib/unistr/u8-chr.c: Include <string.h>.
58384         * tests/unistr/test-u8-chr.c: Likewise.
58385         * tests/unistr/test-u16-chr.c: Likewise.
58386         * tests/unistr/test-u32-chr.c: Likewise.
58387         * tests/unistr/test-u8-strchr.c: Likewise.
58388         * tests/unistr/test-u16-strchr.c: Likewise.
58389         * tests/unistr/test-u32-strchr.c: Likewise.
58390         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
58391         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
58392         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
58393         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
58395 2010-07-28  Bruno Haible  <bruno@clisp.org>
58397         Use spaces for indentation, not tabs.
58398         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
58400 2010-07-27  Bruno Haible  <bruno@clisp.org>
58402         mbspcasecmp: Fix function specification.
58403         * lib/string.in.h (mbspcasecmp): Fix specification comment.
58404         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
58405         Reported by Eric Blake <eblake@redhat.com>.
58407 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
58409         timespec: use cast and not conditional, as truncation isn't possible
58410         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
58411         instead of a conditional.  Comment about the situation in more detail.
58412         This undoes most of the 2009-10-29 patch.
58414 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
58416         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
58417         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
58418         * lib/unistr/u8-strchr.c: Likewise.
58419         * modules/unistr/u8-chr: Depend on memchr.
58421         unistr/u*-strchr: add tests
58422         * modules/unistr/u8-strchr-tests: New file.
58423         * modules/unistr/u16-strchr-tests: New file.
58424         * modules/unistr/u32-strchr-tests: New file.
58425         * tests/unistr/test-strchr.h: New file.
58426         * tests/unistr/test-u8-strchr.c: New file.
58427         * tests/unistr/test-u16-strchr.c: New file.
58428         * tests/unistr/test-u32-strchr.c: New file.
58430         unistr/u*-chr: test multibyte sequences more
58431         * tests/unistr/test-chr.h: Do complete testing of the characters in the
58432         test vector.
58433         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
58434         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
58435         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
58437         unistr/u*-chr: test multibyte sequences
58438         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
58440         unistr/u*-chr: prepare for multibyte tests
58441         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
58442         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
58443         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
58444         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
58445         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
58446         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
58448 2010-07-18  Bruno Haible  <bruno@clisp.org>
58450         unistr/u8-strchr: Optimize non-ASCII argument case.
58451         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
58452         because the first byte often matches anyway.
58453         Reported by Pádraig Brady <P@draigbrady.com>.
58455 2010-07-15  Karl Berry  <karl@gnu.org>
58457         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
58459 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
58461         getcwd: on Solaris, work better if ancestors are inaccessible
58462         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
58463         buffer and size, try again with a large buffer.  This works better
58464         on Solaris, since its getcwd succeeds even if the path to the root
58465         is inaccessible, and this is helpful in common cases such as .zfs
58466         hidden directories.  Problem reported by J Chapman Flack in
58467         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
58468         Use system getcwd if it's declared, not merely if it's partly
58469         working; use the partly-working test only to avoid needless effort
58470         if the system getcwd fails.
58471         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
58472         comment that was already obsolete and is now even more obsolete.
58473         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
58474         now might call strdup.
58476 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
58478         pthread: Add enough so that coreutils/src/sort.c compiles.
58479         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
58480         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
58481         gnulib. Include <sched.h> and <time.h>, as per POSIX.
58482         Include <sys/types.h>, in case it defines pthread_t.
58483         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
58484         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
58485         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
58486         (pthread_rwlockattr_t, pthread_spinlock_t):
58487         New typedefs, if HAVE_PTHREAD_T is not defined.
58488         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
58489         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
58490         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
58491         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
58492         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
58493         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
58494         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
58495         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
58496         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
58497         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
58498         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
58499         New macros.
58500         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
58501         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
58502         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
58503         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
58504         (pthread_spin_unlock): New dummy functions.
58505         (pthread_create): Return EAGAIN; don't set errno.
58506         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
58507         require AC_C_INLINE.
58508         * modules/pthread (Depends-on): Add sched, time.
58509         (pthread.h): Use AM_V_GEN.
58511 2010-07-13  Bruno Haible  <bruno@clisp.org>
58513         striconveh: Don't malloc memory if the result buffer is sufficient.
58514         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
58515         buffer if its size is sufficient.
58516         Reported by Ludovic Courtès <ludo@gnu.org>.
58518 2010-07-13  Bruno Haible  <bruno@clisp.org>
58520         strtod: Add safety check.
58521         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
58523 2010-07-12  Bruno Haible  <bruno@clisp.org>
58525         Unify tests that set gl_cv_func_ldexpl_no_libm.
58526         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
58527         gl_FUNC_LDEXPL.
58528         (gl_FUNC_LDEXPL): Invoke it.
58529         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
58531 2010-07-12  Bruno Haible  <bruno@clisp.org>
58533         Unify tests that set gl_cv_func_ldexp_no_libm.
58534         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
58535         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
58536         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
58537         (configure.ac): Simply invoke gl_FUNC_LDEXP.
58538         * modules/strtod (Files): Add m4/ldexp.m4.
58540 2010-07-12  Bruno Haible  <bruno@clisp.org>
58542         Unify tests that set gl_cv_func_frexpl_no_libm.
58543         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
58544         gl_FUNC_FREXPL_NO_LIBM.
58545         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
58546         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
58548 2010-07-12  Bruno Haible  <bruno@clisp.org>
58550         Unify tests that set gl_cv_func_frexp_no_libm.
58551         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
58552         gl_FUNC_FREXP_NO_LIBM.
58553         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
58554         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
58556 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
58558         memcoll: clarify sizes versus lengths, document better, and tweak perf
58559         * lib/memcoll.c (strcoll_loop, memcoll0):
58560         Improve quality of descriptive comments.  Name variables
58561         consistently as to whether they are lengths (which do not include
58562         terminating null) versus sizes (which do).
58563         * lib/xmemcoll.c (xmemcoll0): Likewise.
58564         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
58565         returned when s1size == 0; this is easier to compile and saves
58566         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
58568 2010-07-12  Bruno Haible  <bruno@clisp.org>
58570         Tests for module '_Exit'.
58571         * modules/_Exit-tests: New file.
58572         * tests/test-_Exit.sh: New file.
58573         * tests/test-_Exit.c: New file.
58575         New module '_Exit'.
58576         * lib/stdlib.in.h (__attribute__): New macro.
58577         (_Exit): New declaration.
58578         * lib/_Exit.c: New file.
58579         * m4/_Exit.m4: New file.
58580         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
58581         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
58582         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
58583         * modules/_Exit: New file.
58584         * tests/test-stdlib-c++.cc (_Exit): Check signature.
58585         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
58587 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
58589         strtod: make it more-accurate typically, and don't require libm
58590         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
58591         Include limits.h.  Don't include string.h.
58592         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
58593         (locale_isspace): New function, so that no casts are needed to
58594         check whether *s is a space.
58595         (ldexp): Provide an unused dummy if not available.
58596         (scale_radix_exp, parse_number, underlying_strtod): New functions.
58597         (strtod): Use them.  This implementation prefers to use the
58598         underlying strtod if available, falling back on our own code
58599         only to fix known bugs.  This is more likely to produce an
58600         accurate result.  Also, it avoids the use of libm functions.
58601         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
58602         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
58603         was absent, but it caused a test failure with coreutils.
58604         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
58605         with libm.
58606         * modules/strtod (Makefile.am, Link): libm is no longer needed.
58607         * modules/strtod-tests (Makefile.am): Likewise.
58609 2010-07-11  Pádraig Brady  <P@draigBrady.com>
58610             Bruno Haible  <bruno@clisp.org>
58612         unistr/u8-strchr: Optimize ASCII argument case.
58613         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
58615 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
58617         (x)memcoll: minor tweaks
58618         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
58619         is after the type that it qualifies.
58620         (memcoll0): Likewise.
58621         * lib/memcoll.h (memcoll0): Likewise.
58622         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
58623         * lib/xmemcoll.h (xmemcoll0): Likewise.
58624         * lib/memcoll.c (memcoll0): Correct the comment.  This function
58625         differs from memcoll in that the NUL byte is part of the argument.
58626         Omit the abort-checks, as performance is a real issue here.  Plus,
58627         the checks were wrong anyway (an off-by-one error).  Omit local
58628         variable 'diff', as it's a bit clearer that way.
58629         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
58630         no longer needed.
58632 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
58634         (x)memcoll: speedup when input is known to be NUL delimited
58635         * lib/memcoll.c: Include stdlib.
58636         (memcoll0): New function.
58637         (strcoll_loop): New function, refactored for use in both memcoll
58638         and memcoll0.
58639         * lib/memcoll.h (memcoll0): Add prototype.
58640         * lib/xmemcoll.c (xmemcoll0): New function.
58641         (collate_error): New function, refactored for use in both xmemcoll
58642         and xmemcoll0.
58643         * lib/xmemcoll.h (xmemcoll0): Add prototype.
58644         * m4/memcoll.m4: add inline invocation.
58646 2010-07-06  Pádraig Brady  <P@draigBrady.com>
58648         * build-aux/bootstrap: Remove any local translations
58649         from the translation project synchronization directory,
58650         so that local only translations are not distributed.
58652 2010-07-04  Bruno Haible  <bruno@clisp.org>
58654         fsusage: Clarify which code applies to which platforms.
58655         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
58656         platform.
58657         * lib/fsusage.c (get_fs_usage): Likewise.
58659 2010-07-04  Bruno Haible  <bruno@clisp.org>
58661         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
58662         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
58663         Reported by Martin Lambers <marlam@marlam.de>.
58665 2010-07-04  Jim Meyering  <meyering@redhat.com>
58667         hash: once again explicitly disallow insertion of NULL
58668         * lib/hash.c (hash_insert0): Reinstate just-removed test:
58669         inserting a NULL pointer cannot work with these functions.
58670         Add a comment with details.
58671         This reverts part of the 2010-07-01 commit, 5bef1a35
58672         "hash: extend module to deal with non-pointer keys".
58674 2010-07-01  Bruno Haible  <bruno@clisp.org>
58676         stdbool: Update doc.
58677         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
58678         Info from Christian Weisgerber <naddy@mips.inka.de>.
58680 2010-07-01  Jim Meyering  <meyering@redhat.com>
58682         hash: extend module to deal with non-pointer keys
58683         * lib/hash.c (hash_insert0): New interface, much like hash_insert
58684         but that allows insertion of non-pointer entries.
58685         Do not disallow an ENTRY value of NULL.
58686         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
58687         * lib/hash.h (hash_insert0): Declare.
58689 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
58691         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
58692         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
58693         not present (i.e. with autoconf 2.59 and when using gettextize, not
58694         gnulib), require AC_GNU_SOURCE instead.
58696 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
58698         idpriv-drop: Fix tests.
58699         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
58700         not to the test-idpriv-droptemp program.
58702 2010-06-29  Bruno Haible  <bruno@clisp.org>
58704         string: Fix syntax error with g++ 2.96.
58705         * lib/string.in.h (__pure__): Remove definition.
58706         (_GL_ATTRIBUTE_PURE): New macro.
58707         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
58708         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
58709         Reported by Christian Weisgerber <naddy@mips.inka.de>.
58711 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
58713         unitypes: Fix bug introduced on 2010-05-18.
58714         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
58716 2010-06-22  Eric Blake  <eblake@redhat.com>
58718         memmem: slight optimization
58719         * lib/str-two-way.h (critical_factorization): Update comments.
58720         Reduce work during factorization phase.
58721         Reported by Carlos Bueno <carlos@bueno.org>.
58723 2010-06-21  Bruno Haible  <bruno@clisp.org>
58725         Fix HAVE_CALLOC_POSIX misnomer.
58726         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
58727         !HAVE_CALLOC_POSIX.
58728         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
58729         HAVE_CALLOC_POSIX.
58730         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
58731         instead of HAVE_CALLOC_POSIX.
58732         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
58733         HAVE_CALLOC_POSIX.
58735         Use modern idiom for calloc() replacement.
58736         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
58737         AC_FUNC_CALLOC.
58738         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
58739         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
58740         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
58741         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
58742         (gl_REPLACE_CALLOC): New macro.
58744 2010-06-21  Bruno Haible  <bruno@clisp.org>
58746         Fix HAVE_REALLOC_POSIX misnomer.
58747         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
58748         !HAVE_REALLOC_POSIX.
58749         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
58750         HAVE_REALLOC_POSIX.
58751         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
58752         instead of HAVE_REALLOC_POSIX.
58753         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
58754         HAVE_REALLOC_POSIX.
58756         Use modern idiom for realloc() replacement.
58757         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
58758         AC_FUNC_REALLOC.
58759         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
58760         Autoconf's AC_FUNC_REALLOC.
58761         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
58762         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
58763         (gl_REPLACE_REALLOC): New macro.
58764         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
58766 2010-06-21  Bruno Haible  <bruno@clisp.org>
58768         Fix HAVE_MALLOC_POSIX misnomer.
58769         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
58770         !HAVE_MALLOC_POSIX.
58771         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
58772         HAVE_MALLOC_POSIX.
58773         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
58774         instead of HAVE_MALLOC_POSIX.
58775         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
58776         HAVE_MALLOC_POSIX.
58778         Use modern idiom for malloc() replacement.
58779         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
58780         AC_FUNC_MALLOC.
58781         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
58782         Autoconf's AC_FUNC_MALLOC.
58783         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
58784         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
58785         (gl_REPLACE_MALLOC): New macro.
58786         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
58788 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
58790         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
58791         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
58792         This macro takes 3 arguments, not 4.
58794 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
58796         ipv6: fix detection under mingw
58797         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
58798         in6_addr.
58800 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
58802         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
58803         that strtod() works when cross-compiling to a glibc version known
58804         to work.
58806 2010-06-15  Bruno Haible  <bruno@clisp.org>
58808         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
58810 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
58812         select: Correct timeout.
58813         * lib/select.c (rpl_select): Compute wait_timeout correctly.
58815 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58817         git-version-gen: init shell var to avoid env var influence
58818         * build-aux/git-version-gen (v): Init shell var to empty.
58820 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
58822         priv-set: Don't assume that priv.h exists merely because getppriv does.
58823         See Jan Andersen's bug report about AIX 5L in
58824         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
58825         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
58826         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
58827         * lib/priv-set.h: Likewise.
58828         * tests/test-priv-set.c: Likewise.
58830 2010-06-13  Bruno Haible  <bruno@clisp.org>
58832         relocatable: Make it easier to test whether to install wrappers.
58833         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
58834         RELOCATABLE_VIA_WRAPPER.
58836 2010-06-13  Bruno Haible  <bruno@clisp.org>
58838         gnulib-tool: Display specified modules and dependencies differently.
58839         * gnulib-tool (func_show_module_list): New function.
58840         (func_import, func_create_testdir): Invoke it.
58841         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58843 2010-06-13  Bruno Haible  <bruno@clisp.org>
58845         gnulib-tool: Align code of func_import and func_create_testdir.
58846         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
58847         specified_modules.
58849 2010-06-12  Jim Meyering  <meyering@redhat.com>
58851         test-inttostr: avoid spurious failure on Solaris 9
58852         * tests/test-inttostr.c (main): Skip the test when snprintf fails
58853         to accept "%ju".  Reported by Bruno Haible.
58855 2010-06-11  Jim Meyering  <meyering@redhat.com>
58857         test-sys_socket: mark variables as used more readably
58858         * tests/test-sys_socket.c (main): Mark otherwise unused variables
58859         as "used" explicitly via (void) statement casts.  This is more
58860         readable than using them in an artificial return expression.
58861         Suggestion from Bruno Haible.
58863 2010-06-11  Bruno Haible  <bruno@clisp.org>
58865         Avoid some more warnings from "gcc -Wwrite-strings".
58866         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
58867         to 'const char *'.
58868         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
58869         * tests/test-c-strcasestr.c (main): Likewise.
58870         * tests/test-mbscasestr1.c (main): Likewise.
58871         * tests/test-mbscasestr2.c (main): Likewise.
58872         * tests/test-memmem.c (main): Likewise.
58873         * tests/test-strstr.c (main): Likewise.
58874         * tests/test-strcasestr.c (main): Likewise.
58876 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58878         init.sh: change framework_failure_ to fail with status 99, not 1
58879         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
58880         automake's parallel-tests rule that this is an unexpected failure,
58881         even if the test is listed in XFAIL_TESTS.
58883 2010-06-11  Jim Meyering  <meyering@redhat.com>
58885         test-inttostr: avoid warnings about 4-6KB literal strings
58886         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
58887         Include "macros.h", for its definition of ASSERT.
58888         (CK): s/assert/ASSERT/
58889         * modules/inttostr-tests (Files): Add macros.h.
58891         init.sh: don't use $ME_ or skip_ before they are defined
58892         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
58893         their first uses.  Also hoist their companions: warn_, fail_,
58894         framework_failure_, $stderr_fileno.  Prompted by a patch from
58895         Stefano Lattarini.
58897         test-sys_socket: avoid set-but-not-used warnings from gcc
58898         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
58899         avoid warning about set-but-not-used variables.
58901         test-xvasprintf: avoid 'const' discard warnings
58902         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
58903         "const" when assigning from literal strings.
58904         (test_xasprintf): Add "void" in function argument list to placate
58905         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
58907         tests: avoid compilation warnings in argmatch and exclude tests...
58908         in packages that define ARGMATCH_DIE_DECL, like coreutils.
58909         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
58910         Since it always exits, declare with the "noreturn" attribute.
58911         * tests/test-argmatch.c: Likewise.
58913         tests: avoid 'const' discard warnings in mbsstr tests
58914         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
58915         * tests/test-mbsstr2.c (main): Likewise.
58917         test-verify: avoid warning from gcc's -Wmissing-declarations
58918         * tests/test-verify.c (function): Declare to be static.
58920         test-inttostr.c: include <string.h> for use of strcmp
58921         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
58923         test-linkat: avoid failed assertion on "other" architectures
58924         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
58925         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
58926         sparc: https://bugs.launchpad.net/bugs/591968
58928 2010-06-11  Jim Meyering  <meyering@redhat.com>
58930         printf.m4: avoid autoconf's "Expanded Before Required" warning
58931         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
58932         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
58933         autoconf warning.
58935 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
58937         Replacement header templates are now named with ".in", not "_".
58938         * doc/gnulib-intro.texi: Correct.
58940 2010-06-10  Jim Meyering  <meyering@redhat.com>
58942         inttostr-tests: depend on snprintf, not snprintf-posix
58943         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
58944         snprintf-posix, to avoid this aclocal failure:
58945           missing file gnulib-tests/vasnprintf.c
58946           configure.ac:45: error: expected source file, required through \
58947           AC_LIBSOURCES, not found
58949 2010-06-10  Jim Meyering  <meyering@redhat.com>
58951         inttostr: add a new function, inttostr, and tests
58952         The namesake function was not available.  The existence of the
58953         template file, inttostr.c makes its addition nontrivial.
58954         * lib/anytostr.c: Rename from inttostr.c.
58955         (anytostr): Rename from inttostr.
58956         * lib/inttostr.c: New file.
58957         * modules/inttostr (Files): Add anytostr.c.
58958         (Makefile.am): Set lib_SOURCES instead of ...
58959         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
58960         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
58961         * lib/offtostr.c: Likewise.
58962         * lib/uinttostr.c: Likewise.
58963         * lib/umaxtostr.c: Likewise.
58964         * modules/inttostr-tests: New file.
58965         * tests/test-inttostr.c: New file.  Test these functions.
58967 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
58968             Bruno Haible  <bruno@clisp.org>
58970         Add "Extending Gnulib" chapter to manual.
58971         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
58972         chapter.
58973         (Extending Gnulib): New chapter.
58974         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
58975         chapter.
58977 2010-06-09  Bruno Haible  <bruno@clisp.org>
58979         Avoid relocwrapper link errors due to gnulib replacement functions.
58980         * lib/areadlink.c: Use the system's malloc, realloc functions.
58981         (areadlink): Set errno to ENOMEM explicitly.
58982         * modules/areadlink (Depends-on): Remove malloc-posix.
58983         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58985 2010-06-09  Bruno Haible  <bruno@clisp.org>
58987         Avoid relocwrapper link errors due to gnulib replacement functions.
58988         * lib/canonicalize-lgpl.c: Use the system's malloc function.
58989         * lib/malloca.c: Likewise.
58990         * lib/relocatable.c: Likewise.
58991         * lib/progreloc.c: Use the system's malloc, sprintf functions.
58992         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
58993         * lib/setenv.c: Use the system's malloc, realloc functions.
58994         * lib/strerror.c: Use the system's sprintf function.
58995         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58997 2010-06-04  Bruno Haible  <bruno@clisp.org>
58999         Prefer documented low-level autoconf macro names.
59000         * m4/lib-link.m4: Use m4_translit instead of translit.
59001         * m4/environ.m4: Likewise.
59002         * m4/mathfunc.m4: Likewise.
59003         * m4/onceonly.m4: Likewise.
59004         * m4/stdint.m4: Likewise.
59005         Suggested by Eric Blake.
59007 2010-06-04  Martin Lambers  <marlam@marlam.de>
59008             Bruno Haible  <bruno@clisp.org>
59010         havelib: Allow library names with '+' characters.
59011         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
59012         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
59014 2010-06-09  Bruno Haible  <bruno@clisp.org>
59016         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
59017         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
59018         realloc failed.
59020 2010-06-08  Peter Simons  <simons@cryp.to>
59022         maint.mk: make the news-check rule more configurable
59023         * top/maint.mk (news-check-lines-spec): New variable.
59024         (news-check): Use "sed -n 1,10p" in place of "head".
59026 2010-06-07  Jim Meyering  <meyering@redhat.com>
59028         do-release-commit-and-tag: fix typo in --help
59029         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
59031         regex: avoid new dead-code warning with gcc-4.6.0
59032         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
59033         if-block containing a while-loop.  It's been unused for at least
59034         5 years.
59036 2010-06-05  Bruno Haible  <bruno@clisp.org>
59038         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
59039         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
59041 2010-06-04  Bruno Haible  <bruno@clisp.org>
59043         Update to GNU gettext 0.18.1.
59044         * modules/gettext (configure.ac): Require gettext infrastructure from
59045         version 0.18.1.
59047 2010-06-03  Bruno Haible  <bruno@clisp.org>
59049         Don't use AC_LIBOBJ with file names in subdirectories.
59050         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
59051         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
59052         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
59053         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
59054         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
59055         gl_LIBUNISTRING_LIBSOURCE.
59056         (Makefile.am): Augment lib_SOURCES here, conditionally.
59057         * NEWS: Drop requirement for Automake option 'subdir-objects'.
59059 2010-06-03  Bruno Haible  <bruno@clisp.org>
59061         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
59062         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
59063         expansion does not end with a newline.
59064         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
59065         unnecessary newline.
59067 2010-06-03  Bruno Haible  <bruno@clisp.org>
59069         Reduce dependencies.
59070         * tests/test-quotearg.h: New file, extracted from
59071         tests/test-quotearg.c.
59072         * tests/test-quotearg-simple.c: New file, extracted from
59073         tests/test-quotearg.c.
59074         * tests/test-quotearg.c: Don't include <ctype.h>.
59075         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
59076         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
59077         use_quote_double_quotes, use_quotearg_colon): Moved to
59078         tests/test-quotearg.h.
59079         (results_g, flag_results, custom_quotes, custom_results): Moved
59080         to tests/test-quotearg-simple.c.
59081         (main): Moved the part that does not depend on gettext to
59082         tests/test-quotearg-simple.c. Return 77 if the test cannot be
59083         performed.
59084         * modules/quotearg-simple: New file.
59085         * modules/quotearg-simple-tests: New file.
59086         * modules/quotearg (Depends-on): Add quotearg-simple.
59087         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
59088         (Files): Add tests/test-quotearg.h.
59089         Reported by Paolo Bonzini.
59091 2010-06-03  Bruno Haible  <bruno@clisp.org>
59093         Reduce dependencies.
59094         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
59096 2010-06-03  Bruno Haible  <bruno@clisp.org>
59098         time: Undefine more broken macros.
59099         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
59100         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
59101         Reported by Eric Blake.
59103 2010-06-03  Bruno Haible  <bruno@clisp.org>
59105         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
59106         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
59107         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
59108         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
59109         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
59110         Reported by Ludovic Courtès <ludo@gnu.org>.
59112 2010-06-02  Eric Blake  <eblake@redhat.com>
59114         time: work with mingw + pthreads-win32 library
59115         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
59116         if timespec is defined only in pthread.h.
59117         * modules/time (Makefile.am): Substitute it.
59118         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
59119         <pthread.h>, when needed.
59120         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
59121         from the library.
59123 2010-05-31  Bruno Haible  <bruno@clisp.org>
59125         Avoid expanding two macros in the wrong order.
59126         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
59127         gl_LIBUNISTRING if it is defined.
59128         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
59129         autoconf >= 2.64.
59130         Reported by Ludovic Courtès <ludo@gnu.org>.
59132 2010-05-27  Jim Meyering  <meyering@redhat.com>
59134         maint.mk: also prohibit "#undef" of always-defined symbols
59135         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
59136         Allow more than one space before the symbol name.
59137         (sc_prohibit_always-defined_macros): Use grep's -E, now that
59138         the regexp uses alternation.
59140 2010-05-26  Eric Blake  <eblake@redhat.com>
59142         maint.mk: avoid echo -e
59143         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
59144         Convert all uses of echo -* to printf.
59145         Reported by Matthias Bolte.
59147 2010-05-25  Bruno Haible  <bruno@clisp.org>
59149         Update to GNU gettext 0.18, part 2.
59150         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
59151         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
59153 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59155         Add missing include in test-pwrite.c.
59156         * tests/test-pwrite.c: Include string.h, for strcmp.
59158 2010-05-24  Bruno Haible  <bruno@clisp.org>
59160         * NEWS: Mention requirement for Automake option 'subdir-objects'.
59162 2010-05-24  Bruno Haible  <bruno@clisp.org>
59164         Don't use conversion with transliteration in u{8,16,32}_strcoll.
59165         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
59166         iconveh_error argument.
59167         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
59168         U_STRCONV_TO_LOCALE.
59169         * lib/unistr/u16-strcoll.c: Likewise.
59170         * lib/unistr/u32-strcoll.c: Likewise.
59171         * modules/unistr/u8-strcoll (Depends-on): Add
59172         uniconv/u8-strconv-to-enc, localcharset. Remove
59173         uniconv/u8-strconv-to-locale.
59174         (configure.ac): Bump version number.
59175         * modules/unistr/u16-strcoll (Depends-on): Add
59176         uniconv/u16-strconv-to-enc, localcharset. Remove
59177         uniconv/u16-strconv-to-locale.
59178         (configure.ac): Bump version number.
59179         * modules/unistr/u32-strcoll (Depends-on): Add
59180         uniconv/u32-strconv-to-enc, localcharset. Remove
59181         uniconv/u32-strconv-to-locale.
59182         (configure.ac): Bump version number.
59184 2010-05-24  Bruno Haible  <bruno@clisp.org>
59186         Avoid a test failure on NetBSD 5.0.
59187         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
59188         an iconv() bug.
59190 2010-05-24  Bruno Haible  <bruno@clisp.org>
59192         Adjust #include directive style.
59193         * modules/regex (Includes): Recommend to write <regex.h>.
59195 2010-05-24  Bruno Haible  <bruno@clisp.org>
59197         regex: Don't require alloca.
59198         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
59199         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
59200         only inside if (0).
59202 2010-05-23  Jim Meyering  <meyering@redhat.com>
59204         test-renameat.c: include <sys/stat.h>
59205         * tests/test-renameat.c: Include <sys/stat.h>; required for
59206         definition of S_IS* macros.
59208 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
59210         Update maintainer documentation for 'relocatable-prog' module.
59211         * doc/relocatable-maint.texi: Update.
59212         Comments by Bruno Haible.
59214 2010-05-23  Bruno Haible  <bruno@clisp.org>
59216         git-merge-changelog: Enable --split-merged-entry by default.
59217         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
59218         (usage): Don't mention this option any more.
59219         Reported by Ralf Wildenhues.
59221 2010-05-23  Jim Meyering  <meyering@redhat.com>
59223         test-pwrite: do not leave behind a test file named "out"
59224         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
59225         The trivial-looking use of init.sh is really necessary.
59226         It ensures that the temporary file, "out", is created in
59227         a temporary directory, and removed upon termination.
59228         * tests/test-pwrite.sh: Re-add file.
59229         * modules/pwrite-tests: Reference it.
59231 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59233         Fix output redirection buglet in init.sh.
59234         * tests/init.sh: Fix redirection of stderr.
59236 2010-05-20  Simon Josefsson  <simon@josefsson.org>
59238         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
59240 2010-05-17  Simon Josefsson  <simon@josefsson.org>
59242         * modules/valgrind-tests: New file.
59243         * m4/valgrind-tests.m4: New file.
59244         * doc/valgrind-tests.texi: New file.
59245         * doc/gnulib.texi (Running self-tests under valgrind): New
59246         section.
59248 2010-05-19  Bruno Haible  <bruno@clisp.org>
59250         Clean up dead code in recent commit.
59251         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
59252         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
59253         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
59254         Suggested by Paolo Bonzini.
59256 2010-05-19  Bruno Haible  <bruno@clisp.org>
59258         Avoid valgrind error reports from libunistring.
59259         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
59260         * modules/libunistring (Files): Add it.
59261         * modules/libunistring-optional (Files): Likewise.
59263 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
59264             Bruno Haible  <bruno@clisp.org>
59266         New module 'libunistring-optional'.
59267         * modules/libunistring-optional: New file.
59268         * m4/libunistring-base.m4: New file.
59269         * m4/libunistring-optional.m4: New file.
59270         * lib/unicase.in.h: Renamed from lib/unicase.h.
59271         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
59272         * lib/unictype.in.h: Renamed from lib/unictype.h.
59273         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
59274         * lib/uniname.in.h: Renamed from lib/uniname.h.
59275         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
59276         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
59277         * lib/unistr.in.h: Renamed from lib/unistr.h.
59278         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
59279         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
59280         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
59281         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
59282         gl_LIBUNISTRING. If the library was found, determine the installed
59283         version and set LIBUNISTRING_VERSION.
59284         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
59285         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
59286         handle a configuration option --with-included-libunistring.
59287         * modules/libunistring (Files): Add m4/absolute-header.m4.
59288         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
59289         Add m4/libunistring-base.m4.
59290         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
59291         (Makefile.am): Build unicase.h from unicase.in.h.
59292         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
59293         Add m4/libunistring-base.m4.
59294         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
59295         (Makefile.am): Build uniconv.h from uniconv.in.h.
59296         * modules/unictype/base (Files): Use unictype.in.h instead of
59297         unictype.h. Add m4/libunistring-base.m4.
59298         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
59299         (Makefile.am): Build unictype.h from unictype.in.h.
59300         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
59301         Add m4/libunistring-base.m4.
59302         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
59303         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
59304         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
59305         Add m4/libunistring-base.m4.
59306         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
59307         (Makefile.am): Build uniname.h from uniname.in.h.
59308         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
59309         Add m4/libunistring-base.m4.
59310         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
59311         (Makefile.am): Build uninorm.h from uninorm.in.h.
59312         * modules/unistdio/base (Files): Use unistdio.in.h instead of
59313         unistdio.h. Add m4/libunistring-base.m4.
59314         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
59315         (Makefile.am): Build unistdio.h from unistdio.in.h.
59316         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
59317         Add m4/libunistring-base.m4.
59318         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
59319         (Makefile.am): Build unistr.h from unistr.in.h.
59320         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
59321         Add m4/libunistring-base.m4.
59322         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
59323         (Makefile.am): Build unitypes.h from unitypes.in.h.
59324         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
59325         Add m4/libunistring-base.m4.
59326         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
59327         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
59328         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
59329         uniwidth.h. Add m4/libunistring-base.m4.
59330         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
59331         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
59332         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
59333         instead of augmenting lib_SOURCES.
59334         * modules/unicase/empty-suffix-context: Likewise.
59335         * modules/unicase/locale-language: Likewise.
59336         * modules/unicase/tolower: Likewise.
59337         * modules/unicase/totitle: Likewise.
59338         * modules/unicase/toupper: Likewise.
59339         * modules/unicase/u8-casecmp: Likewise.
59340         * modules/unicase/u8-casecoll: Likewise.
59341         * modules/unicase/u8-casefold: Likewise.
59342         * modules/unicase/u8-casexfrm: Likewise.
59343         * modules/unicase/u8-ct-casefold: Likewise.
59344         * modules/unicase/u8-ct-tolower: Likewise.
59345         * modules/unicase/u8-ct-totitle: Likewise.
59346         * modules/unicase/u8-ct-toupper: Likewise.
59347         * modules/unicase/u8-is-cased: Likewise.
59348         * modules/unicase/u8-is-casefolded: Likewise.
59349         * modules/unicase/u8-is-lowercase: Likewise.
59350         * modules/unicase/u8-is-titlecase: Likewise.
59351         * modules/unicase/u8-is-uppercase: Likewise.
59352         * modules/unicase/u8-prefix-context: Likewise.
59353         * modules/unicase/u8-suffix-context: Likewise.
59354         * modules/unicase/u8-tolower: Likewise.
59355         * modules/unicase/u8-totitle: Likewise.
59356         * modules/unicase/u8-toupper: Likewise.
59357         * modules/unicase/u16-casecmp: Likewise.
59358         * modules/unicase/u16-casecoll: Likewise.
59359         * modules/unicase/u16-casefold: Likewise.
59360         * modules/unicase/u16-casexfrm: Likewise.
59361         * modules/unicase/u16-ct-casefold: Likewise.
59362         * modules/unicase/u16-ct-tolower: Likewise.
59363         * modules/unicase/u16-ct-totitle: Likewise.
59364         * modules/unicase/u16-ct-toupper: Likewise.
59365         * modules/unicase/u16-is-cased: Likewise.
59366         * modules/unicase/u16-is-casefolded: Likewise.
59367         * modules/unicase/u16-is-lowercase: Likewise.
59368         * modules/unicase/u16-is-titlecase: Likewise.
59369         * modules/unicase/u16-is-uppercase: Likewise.
59370         * modules/unicase/u16-prefix-context: Likewise.
59371         * modules/unicase/u16-suffix-context: Likewise.
59372         * modules/unicase/u16-tolower: Likewise.
59373         * modules/unicase/u16-totitle: Likewise.
59374         * modules/unicase/u16-toupper: Likewise.
59375         * modules/unicase/u32-casecmp: Likewise.
59376         * modules/unicase/u32-casecoll: Likewise.
59377         * modules/unicase/u32-casefold: Likewise.
59378         * modules/unicase/u32-casexfrm: Likewise.
59379         * modules/unicase/u32-ct-casefold: Likewise.
59380         * modules/unicase/u32-ct-tolower: Likewise.
59381         * modules/unicase/u32-ct-totitle: Likewise.
59382         * modules/unicase/u32-ct-toupper: Likewise.
59383         * modules/unicase/u32-is-cased: Likewise.
59384         * modules/unicase/u32-is-casefolded: Likewise.
59385         * modules/unicase/u32-is-lowercase: Likewise.
59386         * modules/unicase/u32-is-titlecase: Likewise.
59387         * modules/unicase/u32-is-uppercase: Likewise.
59388         * modules/unicase/u32-prefix-context: Likewise.
59389         * modules/unicase/u32-suffix-context: Likewise.
59390         * modules/unicase/u32-tolower: Likewise.
59391         * modules/unicase/u32-totitle: Likewise.
59392         * modules/unicase/u32-toupper: Likewise.
59393         * modules/unicase/ulc-casecmp: Likewise.
59394         * modules/unicase/ulc-casecoll: Likewise.
59395         * modules/unicase/ulc-casexfrm: Likewise.
59396         * modules/uniconv/u8-conv-from-enc: Likewise.
59397         * modules/uniconv/u8-conv-to-enc: Likewise.
59398         * modules/uniconv/u8-strconv-from-enc: Likewise.
59399         * modules/uniconv/u8-strconv-from-locale: Likewise.
59400         * modules/uniconv/u8-strconv-to-enc: Likewise.
59401         * modules/uniconv/u8-strconv-to-locale: Likewise.
59402         * modules/uniconv/u16-conv-from-enc: Likewise.
59403         * modules/uniconv/u16-conv-to-enc: Likewise.
59404         * modules/uniconv/u16-strconv-from-enc: Likewise.
59405         * modules/uniconv/u16-strconv-from-locale: Likewise.
59406         * modules/uniconv/u16-strconv-to-enc: Likewise.
59407         * modules/uniconv/u16-strconv-to-locale: Likewise.
59408         * modules/uniconv/u32-conv-from-enc: Likewise.
59409         * modules/uniconv/u32-conv-to-enc: Likewise.
59410         * modules/uniconv/u32-strconv-from-enc: Likewise.
59411         * modules/uniconv/u32-strconv-from-locale: Likewise.
59412         * modules/uniconv/u32-strconv-to-enc: Likewise.
59413         * modules/uniconv/u32-strconv-to-locale: Likewise.
59414         * modules/unictype/bidicategory-byname: Likewise.
59415         * modules/unictype/bidicategory-name: Likewise.
59416         * modules/unictype/bidicategory-of: Likewise.
59417         * modules/unictype/bidicategory-test: Likewise.
59418         * modules/unictype/block-list: Likewise.
59419         * modules/unictype/block-test: Likewise.
59420         * modules/unictype/category-C: Likewise.
59421         * modules/unictype/category-Cc: Likewise.
59422         * modules/unictype/category-Cf: Likewise.
59423         * modules/unictype/category-Cn: Likewise.
59424         * modules/unictype/category-Co: Likewise.
59425         * modules/unictype/category-Cs: Likewise.
59426         * modules/unictype/category-L: Likewise.
59427         * modules/unictype/category-Ll: Likewise.
59428         * modules/unictype/category-Lm: Likewise.
59429         * modules/unictype/category-Lo: Likewise.
59430         * modules/unictype/category-Lt: Likewise.
59431         * modules/unictype/category-Lu: Likewise.
59432         * modules/unictype/category-M: Likewise.
59433         * modules/unictype/category-Mc: Likewise.
59434         * modules/unictype/category-Me: Likewise.
59435         * modules/unictype/category-Mn: Likewise.
59436         * modules/unictype/category-N: Likewise.
59437         * modules/unictype/category-Nd: Likewise.
59438         * modules/unictype/category-Nl: Likewise.
59439         * modules/unictype/category-No: Likewise.
59440         * modules/unictype/category-P: Likewise.
59441         * modules/unictype/category-Pc: Likewise.
59442         * modules/unictype/category-Pd: Likewise.
59443         * modules/unictype/category-Pe: Likewise.
59444         * modules/unictype/category-Pf: Likewise.
59445         * modules/unictype/category-Pi: Likewise.
59446         * modules/unictype/category-Po: Likewise.
59447         * modules/unictype/category-Ps: Likewise.
59448         * modules/unictype/category-S: Likewise.
59449         * modules/unictype/category-Sc: Likewise.
59450         * modules/unictype/category-Sk: Likewise.
59451         * modules/unictype/category-Sm: Likewise.
59452         * modules/unictype/category-So: Likewise.
59453         * modules/unictype/category-Z: Likewise.
59454         * modules/unictype/category-Zl: Likewise.
59455         * modules/unictype/category-Zp: Likewise.
59456         * modules/unictype/category-Zs: Likewise.
59457         * modules/unictype/category-and: Likewise.
59458         * modules/unictype/category-and-not: Likewise.
59459         * modules/unictype/category-byname: Likewise.
59460         * modules/unictype/category-name: Likewise.
59461         * modules/unictype/category-none: Likewise.
59462         * modules/unictype/category-of: Likewise.
59463         * modules/unictype/category-or: Likewise.
59464         * modules/unictype/category-test: Likewise.
59465         * modules/unictype/combining-class: Likewise.
59466         * modules/unictype/ctype-alnum: Likewise.
59467         * modules/unictype/ctype-alpha: Likewise.
59468         * modules/unictype/ctype-blank: Likewise.
59469         * modules/unictype/ctype-cntrl: Likewise.
59470         * modules/unictype/ctype-digit: Likewise.
59471         * modules/unictype/ctype-graph: Likewise.
59472         * modules/unictype/ctype-lower: Likewise.
59473         * modules/unictype/ctype-print: Likewise.
59474         * modules/unictype/ctype-punct: Likewise.
59475         * modules/unictype/ctype-space: Likewise.
59476         * modules/unictype/ctype-upper: Likewise.
59477         * modules/unictype/ctype-xdigit: Likewise.
59478         * modules/unictype/decimal-digit: Likewise.
59479         * modules/unictype/digit: Likewise.
59480         * modules/unictype/mirror: Likewise.
59481         * modules/unictype/numeric: Likewise.
59482         * modules/unictype/property-alphabetic: Likewise.
59483         * modules/unictype/property-ascii-hex-digit: Likewise.
59484         * modules/unictype/property-bidi-arabic-digit: Likewise.
59485         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
59486         * modules/unictype/property-bidi-block-separator: Likewise.
59487         * modules/unictype/property-bidi-boundary-neutral: Likewise.
59488         * modules/unictype/property-bidi-common-separator: Likewise.
59489         * modules/unictype/property-bidi-control: Likewise.
59490         * modules/unictype/property-bidi-embedding-or-override: Likewise.
59491         * modules/unictype/property-bidi-eur-num-separator: Likewise.
59492         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
59493         * modules/unictype/property-bidi-european-digit: Likewise.
59494         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
59495         * modules/unictype/property-bidi-left-to-right: Likewise.
59496         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
59497         * modules/unictype/property-bidi-other-neutral: Likewise.
59498         * modules/unictype/property-bidi-pdf: Likewise.
59499         * modules/unictype/property-bidi-segment-separator: Likewise.
59500         * modules/unictype/property-bidi-whitespace: Likewise.
59501         * modules/unictype/property-byname: Likewise.
59502         * modules/unictype/property-combining: Likewise.
59503         * modules/unictype/property-composite: Likewise.
59504         * modules/unictype/property-currency-symbol: Likewise.
59505         * modules/unictype/property-dash: Likewise.
59506         * modules/unictype/property-decimal-digit: Likewise.
59507         * modules/unictype/property-default-ignorable-code-point: Likewise.
59508         * modules/unictype/property-deprecated: Likewise.
59509         * modules/unictype/property-diacritic: Likewise.
59510         * modules/unictype/property-extender: Likewise.
59511         * modules/unictype/property-format-control: Likewise.
59512         * modules/unictype/property-grapheme-base: Likewise.
59513         * modules/unictype/property-grapheme-extend: Likewise.
59514         * modules/unictype/property-grapheme-link: Likewise.
59515         * modules/unictype/property-hex-digit: Likewise.
59516         * modules/unictype/property-hyphen: Likewise.
59517         * modules/unictype/property-id-continue: Likewise.
59518         * modules/unictype/property-id-start: Likewise.
59519         * modules/unictype/property-ideographic: Likewise.
59520         * modules/unictype/property-ids-binary-operator: Likewise.
59521         * modules/unictype/property-ids-trinary-operator: Likewise.
59522         * modules/unictype/property-ignorable-control: Likewise.
59523         * modules/unictype/property-iso-control: Likewise.
59524         * modules/unictype/property-join-control: Likewise.
59525         * modules/unictype/property-left-of-pair: Likewise.
59526         * modules/unictype/property-line-separator: Likewise.
59527         * modules/unictype/property-logical-order-exception: Likewise.
59528         * modules/unictype/property-lowercase: Likewise.
59529         * modules/unictype/property-math: Likewise.
59530         * modules/unictype/property-non-break: Likewise.
59531         * modules/unictype/property-not-a-character: Likewise.
59532         * modules/unictype/property-numeric: Likewise.
59533         * modules/unictype/property-other-alphabetic: Likewise.
59534         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
59535         * modules/unictype/property-other-grapheme-extend: Likewise.
59536         * modules/unictype/property-other-id-continue: Likewise.
59537         * modules/unictype/property-other-id-start: Likewise.
59538         * modules/unictype/property-other-lowercase: Likewise.
59539         * modules/unictype/property-other-math: Likewise.
59540         * modules/unictype/property-other-uppercase: Likewise.
59541         * modules/unictype/property-paired-punctuation: Likewise.
59542         * modules/unictype/property-paragraph-separator: Likewise.
59543         * modules/unictype/property-pattern-syntax: Likewise.
59544         * modules/unictype/property-pattern-white-space: Likewise.
59545         * modules/unictype/property-private-use: Likewise.
59546         * modules/unictype/property-punctuation: Likewise.
59547         * modules/unictype/property-quotation-mark: Likewise.
59548         * modules/unictype/property-radical: Likewise.
59549         * modules/unictype/property-sentence-terminal: Likewise.
59550         * modules/unictype/property-soft-dotted: Likewise.
59551         * modules/unictype/property-space: Likewise.
59552         * modules/unictype/property-terminal-punctuation: Likewise.
59553         * modules/unictype/property-test: Likewise.
59554         * modules/unictype/property-titlecase: Likewise.
59555         * modules/unictype/property-unassigned-code-value: Likewise.
59556         * modules/unictype/property-unified-ideograph: Likewise.
59557         * modules/unictype/property-uppercase: Likewise.
59558         * modules/unictype/property-variation-selector: Likewise.
59559         * modules/unictype/property-white-space: Likewise.
59560         * modules/unictype/property-xid-continue: Likewise.
59561         * modules/unictype/property-xid-start: Likewise.
59562         * modules/unictype/property-zero-width: Likewise.
59563         * modules/unictype/scripts: Likewise.
59564         * modules/unictype/syntax-c-ident: Likewise.
59565         * modules/unictype/syntax-c-whitespace: Likewise.
59566         * modules/unictype/syntax-java-ident: Likewise.
59567         * modules/unictype/syntax-java-whitespace: Likewise.
59568         * modules/unilbrk/u8-possible-linebreaks: Likewise.
59569         * modules/unilbrk/u8-width-linebreaks: Likewise.
59570         * modules/unilbrk/u16-possible-linebreaks: Likewise.
59571         * modules/unilbrk/u16-width-linebreaks: Likewise.
59572         * modules/unilbrk/u32-possible-linebreaks: Likewise.
59573         * modules/unilbrk/u32-width-linebreaks: Likewise.
59574         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
59575         * modules/unilbrk/ulc-width-linebreaks: Likewise.
59576         * modules/uniname/uniname: Likewise.
59577         * modules/uninorm/canonical-decomposition: Likewise.
59578         * modules/uninorm/composition: Likewise.
59579         * modules/uninorm/decomposing-form: Likewise.
59580         * modules/uninorm/decomposition: Likewise.
59581         * modules/uninorm/filter: Likewise.
59582         * modules/uninorm/nfc: Likewise.
59583         * modules/uninorm/nfd: Likewise.
59584         * modules/uninorm/nfkc: Likewise.
59585         * modules/uninorm/nfkd: Likewise.
59586         * modules/uninorm/u8-normalize: Likewise.
59587         * modules/uninorm/u8-normcmp: Likewise.
59588         * modules/uninorm/u8-normcoll: Likewise.
59589         * modules/uninorm/u8-normxfrm: Likewise.
59590         * modules/uninorm/u16-normalize: Likewise.
59591         * modules/uninorm/u16-normcmp: Likewise.
59592         * modules/uninorm/u16-normcoll: Likewise.
59593         * modules/uninorm/u16-normxfrm: Likewise.
59594         * modules/uninorm/u32-normalize: Likewise.
59595         * modules/uninorm/u32-normcmp: Likewise.
59596         * modules/uninorm/u32-normcoll: Likewise.
59597         * modules/uninorm/u32-normxfrm: Likewise.
59598         * modules/unistdio/u8-asnprintf: Likewise.
59599         * modules/unistdio/u8-asprintf: Likewise.
59600         * modules/unistdio/u8-snprintf: Likewise.
59601         * modules/unistdio/u8-sprintf: Likewise.
59602         * modules/unistdio/u8-u8-asnprintf: Likewise.
59603         * modules/unistdio/u8-u8-asprintf: Likewise.
59604         * modules/unistdio/u8-u8-snprintf: Likewise.
59605         * modules/unistdio/u8-u8-sprintf: Likewise.
59606         * modules/unistdio/u8-u8-vasnprintf: Likewise.
59607         * modules/unistdio/u8-u8-vasprintf: Likewise.
59608         * modules/unistdio/u8-u8-vsnprintf: Likewise.
59609         * modules/unistdio/u8-u8-vsprintf: Likewise.
59610         * modules/unistdio/u8-vasnprintf: Likewise.
59611         * modules/unistdio/u8-vasprintf: Likewise.
59612         * modules/unistdio/u8-vsnprintf: Likewise.
59613         * modules/unistdio/u8-vsprintf: Likewise.
59614         * modules/unistdio/u16-asnprintf: Likewise.
59615         * modules/unistdio/u16-asprintf: Likewise.
59616         * modules/unistdio/u16-snprintf: Likewise.
59617         * modules/unistdio/u16-sprintf: Likewise.
59618         * modules/unistdio/u16-u16-asnprintf: Likewise.
59619         * modules/unistdio/u16-u16-asprintf: Likewise.
59620         * modules/unistdio/u16-u16-snprintf: Likewise.
59621         * modules/unistdio/u16-u16-sprintf: Likewise.
59622         * modules/unistdio/u16-u16-vasnprintf: Likewise.
59623         * modules/unistdio/u16-u16-vasprintf: Likewise.
59624         * modules/unistdio/u16-u16-vsnprintf: Likewise.
59625         * modules/unistdio/u16-u16-vsprintf: Likewise.
59626         * modules/unistdio/u16-vasnprintf: Likewise.
59627         * modules/unistdio/u16-vasprintf: Likewise.
59628         * modules/unistdio/u16-vsnprintf: Likewise.
59629         * modules/unistdio/u16-vsprintf: Likewise.
59630         * modules/unistdio/u32-asnprintf: Likewise.
59631         * modules/unistdio/u32-asprintf: Likewise.
59632         * modules/unistdio/u32-snprintf: Likewise.
59633         * modules/unistdio/u32-sprintf: Likewise.
59634         * modules/unistdio/u32-u32-asnprintf: Likewise.
59635         * modules/unistdio/u32-u32-asprintf: Likewise.
59636         * modules/unistdio/u32-u32-snprintf: Likewise.
59637         * modules/unistdio/u32-u32-sprintf: Likewise.
59638         * modules/unistdio/u32-u32-vasnprintf: Likewise.
59639         * modules/unistdio/u32-u32-vasprintf: Likewise.
59640         * modules/unistdio/u32-u32-vsnprintf: Likewise.
59641         * modules/unistdio/u32-u32-vsprintf: Likewise.
59642         * modules/unistdio/u32-vasnprintf: Likewise.
59643         * modules/unistdio/u32-vasprintf: Likewise.
59644         * modules/unistdio/u32-vsnprintf: Likewise.
59645         * modules/unistdio/u32-vsprintf: Likewise.
59646         * modules/unistdio/ulc-asnprintf: Likewise.
59647         * modules/unistdio/ulc-asprintf: Likewise.
59648         * modules/unistdio/ulc-fprintf: Likewise.
59649         * modules/unistdio/ulc-snprintf: Likewise.
59650         * modules/unistdio/ulc-sprintf: Likewise.
59651         * modules/unistdio/ulc-vasnprintf: Likewise.
59652         * modules/unistdio/ulc-vasprintf: Likewise.
59653         * modules/unistdio/ulc-vfprintf: Likewise.
59654         * modules/unistdio/ulc-vsnprintf: Likewise.
59655         * modules/unistdio/ulc-vsprintf: Likewise.
59656         * modules/unistr/u8-check: Likewise.
59657         * modules/unistr/u8-chr: Likewise.
59658         * modules/unistr/u8-cmp: Likewise.
59659         * modules/unistr/u8-cmp2: Likewise.
59660         * modules/unistr/u8-cpy: Likewise.
59661         * modules/unistr/u8-cpy-alloc: Likewise.
59662         * modules/unistr/u8-endswith: Likewise.
59663         * modules/unistr/u8-mblen: Likewise.
59664         * modules/unistr/u8-mbsnlen: Likewise.
59665         * modules/unistr/u8-mbtouc: Likewise.
59666         * modules/unistr/u8-mbtouc-unsafe: Likewise.
59667         * modules/unistr/u8-mbtoucr: Likewise.
59668         * modules/unistr/u8-move: Likewise.
59669         * modules/unistr/u8-next: Likewise.
59670         * modules/unistr/u8-prev: Likewise.
59671         * modules/unistr/u8-set: Likewise.
59672         * modules/unistr/u8-startswith: Likewise.
59673         * modules/unistr/u8-stpcpy: Likewise.
59674         * modules/unistr/u8-stpncpy: Likewise.
59675         * modules/unistr/u8-strcat: Likewise.
59676         * modules/unistr/u8-strchr: Likewise.
59677         * modules/unistr/u8-strcmp: Likewise.
59678         * modules/unistr/u8-strcoll: Likewise.
59679         * modules/unistr/u8-strcpy: Likewise.
59680         * modules/unistr/u8-strcspn: Likewise.
59681         * modules/unistr/u8-strdup: Likewise.
59682         * modules/unistr/u8-strlen: Likewise.
59683         * modules/unistr/u8-strmblen: Likewise.
59684         * modules/unistr/u8-strmbtouc: Likewise.
59685         * modules/unistr/u8-strncat: Likewise.
59686         * modules/unistr/u8-strncmp: Likewise.
59687         * modules/unistr/u8-strncpy: Likewise.
59688         * modules/unistr/u8-strnlen: Likewise.
59689         * modules/unistr/u8-strpbrk: Likewise.
59690         * modules/unistr/u8-strrchr: Likewise.
59691         * modules/unistr/u8-strspn: Likewise.
59692         * modules/unistr/u8-strstr: Likewise.
59693         * modules/unistr/u8-strtok: Likewise.
59694         * modules/unistr/u8-to-u16: Likewise.
59695         * modules/unistr/u8-to-u32: Likewise.
59696         * modules/unistr/u8-uctomb: Likewise.
59697         * modules/unistr/u16-check: Likewise.
59698         * modules/unistr/u16-chr: Likewise.
59699         * modules/unistr/u16-cmp: Likewise.
59700         * modules/unistr/u16-cmp2: Likewise.
59701         * modules/unistr/u16-cpy: Likewise.
59702         * modules/unistr/u16-cpy-alloc: Likewise.
59703         * modules/unistr/u16-endswith: Likewise.
59704         * modules/unistr/u16-mblen: Likewise.
59705         * modules/unistr/u16-mbsnlen: Likewise.
59706         * modules/unistr/u16-mbtouc: Likewise.
59707         * modules/unistr/u16-mbtouc-unsafe: Likewise.
59708         * modules/unistr/u16-mbtoucr: Likewise.
59709         * modules/unistr/u16-move: Likewise.
59710         * modules/unistr/u16-next: Likewise.
59711         * modules/unistr/u16-prev: Likewise.
59712         * modules/unistr/u16-set: Likewise.
59713         * modules/unistr/u16-startswith: Likewise.
59714         * modules/unistr/u16-stpcpy: Likewise.
59715         * modules/unistr/u16-stpncpy: Likewise.
59716         * modules/unistr/u16-strcat: Likewise.
59717         * modules/unistr/u16-strchr: Likewise.
59718         * modules/unistr/u16-strcmp: Likewise.
59719         * modules/unistr/u16-strcoll: Likewise.
59720         * modules/unistr/u16-strcpy: Likewise.
59721         * modules/unistr/u16-strcspn: Likewise.
59722         * modules/unistr/u16-strdup: Likewise.
59723         * modules/unistr/u16-strlen: Likewise.
59724         * modules/unistr/u16-strmblen: Likewise.
59725         * modules/unistr/u16-strmbtouc: Likewise.
59726         * modules/unistr/u16-strncat: Likewise.
59727         * modules/unistr/u16-strncmp: Likewise.
59728         * modules/unistr/u16-strncpy: Likewise.
59729         * modules/unistr/u16-strnlen: Likewise.
59730         * modules/unistr/u16-strpbrk: Likewise.
59731         * modules/unistr/u16-strrchr: Likewise.
59732         * modules/unistr/u16-strspn: Likewise.
59733         * modules/unistr/u16-strstr: Likewise.
59734         * modules/unistr/u16-strtok: Likewise.
59735         * modules/unistr/u16-to-u32: Likewise.
59736         * modules/unistr/u16-to-u8: Likewise.
59737         * modules/unistr/u16-uctomb: Likewise.
59738         * modules/unistr/u32-check: Likewise.
59739         * modules/unistr/u32-chr: Likewise.
59740         * modules/unistr/u32-cmp: Likewise.
59741         * modules/unistr/u32-cmp2: Likewise.
59742         * modules/unistr/u32-cpy: Likewise.
59743         * modules/unistr/u32-cpy-alloc: Likewise.
59744         * modules/unistr/u32-endswith: Likewise.
59745         * modules/unistr/u32-mblen: Likewise.
59746         * modules/unistr/u32-mbsnlen: Likewise.
59747         * modules/unistr/u32-mbtouc: Likewise.
59748         * modules/unistr/u32-mbtouc-unsafe: Likewise.
59749         * modules/unistr/u32-mbtoucr: Likewise.
59750         * modules/unistr/u32-move: Likewise.
59751         * modules/unistr/u32-next: Likewise.
59752         * modules/unistr/u32-prev: Likewise.
59753         * modules/unistr/u32-set: Likewise.
59754         * modules/unistr/u32-startswith: Likewise.
59755         * modules/unistr/u32-stpcpy: Likewise.
59756         * modules/unistr/u32-stpncpy: Likewise.
59757         * modules/unistr/u32-strcat: Likewise.
59758         * modules/unistr/u32-strchr: Likewise.
59759         * modules/unistr/u32-strcmp: Likewise.
59760         * modules/unistr/u32-strcoll: Likewise.
59761         * modules/unistr/u32-strcpy: Likewise.
59762         * modules/unistr/u32-strcspn: Likewise.
59763         * modules/unistr/u32-strdup: Likewise.
59764         * modules/unistr/u32-strlen: Likewise.
59765         * modules/unistr/u32-strmblen: Likewise.
59766         * modules/unistr/u32-strmbtouc: Likewise.
59767         * modules/unistr/u32-strncat: Likewise.
59768         * modules/unistr/u32-strncmp: Likewise.
59769         * modules/unistr/u32-strncpy: Likewise.
59770         * modules/unistr/u32-strnlen: Likewise.
59771         * modules/unistr/u32-strpbrk: Likewise.
59772         * modules/unistr/u32-strrchr: Likewise.
59773         * modules/unistr/u32-strspn: Likewise.
59774         * modules/unistr/u32-strstr: Likewise.
59775         * modules/unistr/u32-strtok: Likewise.
59776         * modules/unistr/u32-to-u16: Likewise.
59777         * modules/unistr/u32-to-u8: Likewise.
59778         * modules/unistr/u32-uctomb: Likewise.
59779         * modules/uniwbrk/u8-wordbreaks: Likewise.
59780         * modules/uniwbrk/u16-wordbreaks: Likewise.
59781         * modules/uniwbrk/u32-wordbreaks: Likewise.
59782         * modules/uniwbrk/ulc-wordbreaks: Likewise.
59783         * modules/uniwbrk/wordbreak-property: Likewise.
59784         * modules/uniwidth/u8-strwidth: Likewise.
59785         * modules/uniwidth/u8-width: Likewise.
59786         * modules/uniwidth/u16-strwidth: Likewise.
59787         * modules/uniwidth/u16-width: Likewise.
59788         * modules/uniwidth/u32-strwidth: Likewise.
59789         * modules/uniwidth/u32-width: Likewise.
59790         * modules/uniwidth/width: Likewise.
59791         * modules/unicase/cased-tests (Makefile.am): Link all test programs
59792         with $(LIBUNISTRING).
59793         * modules/unicase/ignorable-tests: Likewise.
59794         * modules/unicase/locale-language-tests: Likewise.
59795         * modules/unicase/tolower-tests: Likewise.
59796         * modules/unicase/totitle-tests: Likewise.
59797         * modules/unicase/toupper-tests: Likewise.
59798         * modules/unicase/u8-casecmp-tests: Likewise.
59799         * modules/unicase/u8-casecoll-tests: Likewise.
59800         * modules/unicase/u8-casefold-tests: Likewise.
59801         * modules/unicase/u8-is-cased-tests: Likewise.
59802         * modules/unicase/u8-is-casefolded-tests: Likewise.
59803         * modules/unicase/u8-is-lowercase-tests: Likewise.
59804         * modules/unicase/u8-is-titlecase-tests: Likewise.
59805         * modules/unicase/u8-is-uppercase-tests: Likewise.
59806         * modules/unicase/u8-tolower-tests: Likewise.
59807         * modules/unicase/u8-totitle-tests: Likewise.
59808         * modules/unicase/u8-toupper-tests: Likewise.
59809         * modules/unicase/u16-casecmp-tests: Likewise.
59810         * modules/unicase/u16-casecoll-tests: Likewise.
59811         * modules/unicase/u16-casefold-tests: Likewise.
59812         * modules/unicase/u16-is-cased-tests: Likewise.
59813         * modules/unicase/u16-is-casefolded-tests: Likewise.
59814         * modules/unicase/u16-is-lowercase-tests: Likewise.
59815         * modules/unicase/u16-is-titlecase-tests: Likewise.
59816         * modules/unicase/u16-is-uppercase-tests: Likewise.
59817         * modules/unicase/u16-tolower-tests: Likewise.
59818         * modules/unicase/u16-totitle-tests: Likewise.
59819         * modules/unicase/u16-toupper-tests: Likewise.
59820         * modules/unicase/u32-casecmp-tests: Likewise.
59821         * modules/unicase/u32-casecoll-tests: Likewise.
59822         * modules/unicase/u32-casefold-tests: Likewise.
59823         * modules/unicase/u32-is-cased-tests: Likewise.
59824         * modules/unicase/u32-is-casefolded-tests: Likewise.
59825         * modules/unicase/u32-is-lowercase-tests: Likewise.
59826         * modules/unicase/u32-is-titlecase-tests: Likewise.
59827         * modules/unicase/u32-is-uppercase-tests: Likewise.
59828         * modules/unicase/u32-tolower-tests: Likewise.
59829         * modules/unicase/u32-totitle-tests: Likewise.
59830         * modules/unicase/u32-toupper-tests: Likewise.
59831         * modules/unicase/ulc-casecmp-tests: Likewise.
59832         * modules/unicase/ulc-casecoll-tests: Likewise.
59833         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
59834         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
59835         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
59836         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
59837         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
59838         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
59839         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
59840         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
59841         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
59842         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
59843         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
59844         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
59845         * modules/unictype/bidicategory-byname-tests: Likewise.
59846         * modules/unictype/bidicategory-name-tests: Likewise.
59847         * modules/unictype/bidicategory-of-tests: Likewise.
59848         * modules/unictype/bidicategory-test-tests: Likewise.
59849         * modules/unictype/block-list-tests: Likewise.
59850         * modules/unictype/block-of-tests: Likewise.
59851         * modules/unictype/block-test-tests: Likewise.
59852         * modules/unictype/category-C-tests: Likewise.
59853         * modules/unictype/category-Cc-tests: Likewise.
59854         * modules/unictype/category-Cf-tests: Likewise.
59855         * modules/unictype/category-Cn-tests: Likewise.
59856         * modules/unictype/category-Co-tests: Likewise.
59857         * modules/unictype/category-Cs-tests: Likewise.
59858         * modules/unictype/category-L-tests: Likewise.
59859         * modules/unictype/category-Ll-tests: Likewise.
59860         * modules/unictype/category-Lm-tests: Likewise.
59861         * modules/unictype/category-Lo-tests: Likewise.
59862         * modules/unictype/category-Lt-tests: Likewise.
59863         * modules/unictype/category-Lu-tests: Likewise.
59864         * modules/unictype/category-M-tests: Likewise.
59865         * modules/unictype/category-Mc-tests: Likewise.
59866         * modules/unictype/category-Me-tests: Likewise.
59867         * modules/unictype/category-Mn-tests: Likewise.
59868         * modules/unictype/category-N-tests: Likewise.
59869         * modules/unictype/category-Nd-tests: Likewise.
59870         * modules/unictype/category-Nl-tests: Likewise.
59871         * modules/unictype/category-No-tests: Likewise.
59872         * modules/unictype/category-P-tests: Likewise.
59873         * modules/unictype/category-Pc-tests: Likewise.
59874         * modules/unictype/category-Pd-tests: Likewise.
59875         * modules/unictype/category-Pe-tests: Likewise.
59876         * modules/unictype/category-Pf-tests: Likewise.
59877         * modules/unictype/category-Pi-tests: Likewise.
59878         * modules/unictype/category-Po-tests: Likewise.
59879         * modules/unictype/category-Ps-tests: Likewise.
59880         * modules/unictype/category-S-tests: Likewise.
59881         * modules/unictype/category-Sc-tests: Likewise.
59882         * modules/unictype/category-Sk-tests: Likewise.
59883         * modules/unictype/category-Sm-tests: Likewise.
59884         * modules/unictype/category-So-tests: Likewise.
59885         * modules/unictype/category-Z-tests: Likewise.
59886         * modules/unictype/category-Zl-tests: Likewise.
59887         * modules/unictype/category-Zp-tests: Likewise.
59888         * modules/unictype/category-Zs-tests: Likewise.
59889         * modules/unictype/category-and-not-tests: Likewise.
59890         * modules/unictype/category-and-tests: Likewise.
59891         * modules/unictype/category-byname-tests: Likewise.
59892         * modules/unictype/category-name-tests: Likewise.
59893         * modules/unictype/category-none-tests: Likewise.
59894         * modules/unictype/category-of-tests: Likewise.
59895         * modules/unictype/category-or-tests: Likewise.
59896         * modules/unictype/category-test-withtable-tests: Likewise.
59897         * modules/unictype/combining-class-tests: Likewise.
59898         * modules/unictype/ctype-alnum-tests: Likewise.
59899         * modules/unictype/ctype-alpha-tests: Likewise.
59900         * modules/unictype/ctype-blank-tests: Likewise.
59901         * modules/unictype/ctype-cntrl-tests: Likewise.
59902         * modules/unictype/ctype-digit-tests: Likewise.
59903         * modules/unictype/ctype-graph-tests: Likewise.
59904         * modules/unictype/ctype-lower-tests: Likewise.
59905         * modules/unictype/ctype-print-tests: Likewise.
59906         * modules/unictype/ctype-punct-tests: Likewise.
59907         * modules/unictype/ctype-space-tests: Likewise.
59908         * modules/unictype/ctype-upper-tests: Likewise.
59909         * modules/unictype/ctype-xdigit-tests: Likewise.
59910         * modules/unictype/decimal-digit-tests: Likewise.
59911         * modules/unictype/digit-tests: Likewise.
59912         * modules/unictype/mirror-tests: Likewise.
59913         * modules/unictype/numeric-tests: Likewise.
59914         * modules/unictype/property-alphabetic-tests: Likewise.
59915         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
59916         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
59917         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
59918         * modules/unictype/property-bidi-block-separator-tests: Likewise.
59919         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
59920         * modules/unictype/property-bidi-common-separator-tests: Likewise.
59921         * modules/unictype/property-bidi-control-tests: Likewise.
59922         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
59923         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
59924         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
59925         * modules/unictype/property-bidi-european-digit-tests: Likewise.
59926         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
59927         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
59928         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
59929         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
59930         * modules/unictype/property-bidi-pdf-tests: Likewise.
59931         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
59932         * modules/unictype/property-bidi-whitespace-tests: Likewise.
59933         * modules/unictype/property-byname-tests: Likewise.
59934         * modules/unictype/property-combining-tests: Likewise.
59935         * modules/unictype/property-composite-tests: Likewise.
59936         * modules/unictype/property-currency-symbol-tests: Likewise.
59937         * modules/unictype/property-dash-tests: Likewise.
59938         * modules/unictype/property-decimal-digit-tests: Likewise.
59939         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
59940         * modules/unictype/property-deprecated-tests: Likewise.
59941         * modules/unictype/property-diacritic-tests: Likewise.
59942         * modules/unictype/property-extender-tests: Likewise.
59943         * modules/unictype/property-format-control-tests: Likewise.
59944         * modules/unictype/property-grapheme-base-tests: Likewise.
59945         * modules/unictype/property-grapheme-extend-tests: Likewise.
59946         * modules/unictype/property-grapheme-link-tests: Likewise.
59947         * modules/unictype/property-hex-digit-tests: Likewise.
59948         * modules/unictype/property-hyphen-tests: Likewise.
59949         * modules/unictype/property-id-continue-tests: Likewise.
59950         * modules/unictype/property-id-start-tests: Likewise.
59951         * modules/unictype/property-ideographic-tests: Likewise.
59952         * modules/unictype/property-ids-binary-operator-tests: Likewise.
59953         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
59954         * modules/unictype/property-ignorable-control-tests: Likewise.
59955         * modules/unictype/property-iso-control-tests: Likewise.
59956         * modules/unictype/property-join-control-tests: Likewise.
59957         * modules/unictype/property-left-of-pair-tests: Likewise.
59958         * modules/unictype/property-line-separator-tests: Likewise.
59959         * modules/unictype/property-logical-order-exception-tests: Likewise.
59960         * modules/unictype/property-lowercase-tests: Likewise.
59961         * modules/unictype/property-math-tests: Likewise.
59962         * modules/unictype/property-non-break-tests: Likewise.
59963         * modules/unictype/property-not-a-character-tests: Likewise.
59964         * modules/unictype/property-numeric-tests: Likewise.
59965         * modules/unictype/property-other-alphabetic-tests: Likewise.
59966         * modules/unictype/property-other-default-ignorable-code-point-tests:
59967         Likewise.
59968         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
59969         * modules/unictype/property-other-id-continue-tests: Likewise.
59970         * modules/unictype/property-other-id-start-tests: Likewise.
59971         * modules/unictype/property-other-lowercase-tests: Likewise.
59972         * modules/unictype/property-other-math-tests: Likewise.
59973         * modules/unictype/property-other-uppercase-tests: Likewise.
59974         * modules/unictype/property-paired-punctuation-tests: Likewise.
59975         * modules/unictype/property-paragraph-separator-tests: Likewise.
59976         * modules/unictype/property-pattern-syntax-tests: Likewise.
59977         * modules/unictype/property-pattern-white-space-tests: Likewise.
59978         * modules/unictype/property-private-use-tests: Likewise.
59979         * modules/unictype/property-punctuation-tests: Likewise.
59980         * modules/unictype/property-quotation-mark-tests: Likewise.
59981         * modules/unictype/property-radical-tests: Likewise.
59982         * modules/unictype/property-sentence-terminal-tests: Likewise.
59983         * modules/unictype/property-soft-dotted-tests: Likewise.
59984         * modules/unictype/property-space-tests: Likewise.
59985         * modules/unictype/property-terminal-punctuation-tests: Likewise.
59986         * modules/unictype/property-test-tests: Likewise.
59987         * modules/unictype/property-titlecase-tests: Likewise.
59988         * modules/unictype/property-unassigned-code-value-tests: Likewise.
59989         * modules/unictype/property-unified-ideograph-tests: Likewise.
59990         * modules/unictype/property-uppercase-tests: Likewise.
59991         * modules/unictype/property-variation-selector-tests: Likewise.
59992         * modules/unictype/property-white-space-tests: Likewise.
59993         * modules/unictype/property-xid-continue-tests: Likewise.
59994         * modules/unictype/property-xid-start-tests: Likewise.
59995         * modules/unictype/property-zero-width-tests: Likewise.
59996         * modules/unictype/scripts-tests: Likewise.
59997         * modules/unictype/syntax-c-ident-tests: Likewise.
59998         * modules/unictype/syntax-c-whitespace-tests: Likewise.
59999         * modules/unictype/syntax-java-ident-tests: Likewise.
60000         * modules/unictype/syntax-java-whitespace-tests: Likewise.
60001         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
60002         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
60003         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
60004         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
60005         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
60006         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
60007         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
60008         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
60009         * modules/uniname/uniname-tests: Likewise.
60010         * modules/uninorm/canonical-decomposition-tests: Likewise.
60011         * modules/uninorm/compat-decomposition-tests: Likewise.
60012         * modules/uninorm/composition-tests: Likewise.
60013         * modules/uninorm/decomposing-form-tests: Likewise.
60014         * modules/uninorm/decomposition-tests: Likewise.
60015         * modules/uninorm/filter-tests: Likewise.
60016         * modules/uninorm/nfc-tests: Likewise.
60017         * modules/uninorm/nfd-tests: Likewise.
60018         * modules/uninorm/nfkc-tests: Likewise.
60019         * modules/uninorm/nfkd-tests: Likewise.
60020         * modules/uninorm/u8-normcmp-tests: Likewise.
60021         * modules/uninorm/u8-normcoll-tests: Likewise.
60022         * modules/uninorm/u16-normcmp-tests: Likewise.
60023         * modules/uninorm/u16-normcoll-tests: Likewise.
60024         * modules/uninorm/u32-normcmp-tests: Likewise.
60025         * modules/uninorm/u32-normcoll-tests: Likewise.
60026         * modules/unistdio/u8-asnprintf-tests: Likewise.
60027         * modules/unistdio/u8-vasnprintf-tests: Likewise.
60028         * modules/unistdio/u8-vasprintf-tests: Likewise.
60029         * modules/unistdio/u8-vsnprintf-tests: Likewise.
60030         * modules/unistdio/u8-vsprintf-tests: Likewise.
60031         * modules/unistdio/u16-asnprintf-tests: Likewise.
60032         * modules/unistdio/u16-vasnprintf-tests: Likewise.
60033         * modules/unistdio/u16-vasprintf-tests: Likewise.
60034         * modules/unistdio/u16-vsnprintf-tests: Likewise.
60035         * modules/unistdio/u16-vsprintf-tests: Likewise.
60036         * modules/unistdio/u32-asnprintf-tests: Likewise.
60037         * modules/unistdio/u32-vasnprintf-tests: Likewise.
60038         * modules/unistdio/u32-vasprintf-tests: Likewise.
60039         * modules/unistdio/u32-vsnprintf-tests: Likewise.
60040         * modules/unistdio/u32-vsprintf-tests: Likewise.
60041         * modules/unistdio/ulc-asnprintf-tests: Likewise.
60042         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
60043         * modules/unistdio/ulc-vasprintf-tests: Likewise.
60044         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
60045         * modules/unistdio/ulc-vsprintf-tests: Likewise.
60046         * modules/unistr/u8-check-tests: Likewise.
60047         * modules/unistr/u8-chr-tests: Likewise.
60048         * modules/unistr/u8-cmp-tests: Likewise.
60049         * modules/unistr/u8-cmp2-tests: Likewise.
60050         * modules/unistr/u8-cpy-alloc-tests: Likewise.
60051         * modules/unistr/u8-cpy-tests: Likewise.
60052         * modules/unistr/u8-mblen-tests: Likewise.
60053         * modules/unistr/u8-mbsnlen-tests: Likewise.
60054         * modules/unistr/u8-mbtouc-tests: Likewise.
60055         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
60056         * modules/unistr/u8-mbtoucr-tests: Likewise.
60057         * modules/unistr/u8-move-tests: Likewise.
60058         * modules/unistr/u8-next-tests: Likewise.
60059         * modules/unistr/u8-prev-tests: Likewise.
60060         * modules/unistr/u8-set-tests: Likewise.
60061         * modules/unistr/u8-stpcpy-tests: Likewise.
60062         * modules/unistr/u8-stpncpy-tests: Likewise.
60063         * modules/unistr/u8-strcat-tests: Likewise.
60064         * modules/unistr/u8-strcmp-tests: Likewise.
60065         * modules/unistr/u8-strcoll-tests: Likewise.
60066         * modules/unistr/u8-strcpy-tests: Likewise.
60067         * modules/unistr/u8-strdup-tests: Likewise.
60068         * modules/unistr/u8-strlen-tests: Likewise.
60069         * modules/unistr/u8-strmblen-tests: Likewise.
60070         * modules/unistr/u8-strmbtouc-tests: Likewise.
60071         * modules/unistr/u8-strncat-tests: Likewise.
60072         * modules/unistr/u8-strncmp-tests: Likewise.
60073         * modules/unistr/u8-strncpy-tests: Likewise.
60074         * modules/unistr/u8-strnlen-tests: Likewise.
60075         * modules/unistr/u8-to-u16-tests: Likewise.
60076         * modules/unistr/u8-to-u32-tests: Likewise.
60077         * modules/unistr/u8-uctomb-tests: Likewise.
60078         * modules/unistr/u16-check-tests: Likewise.
60079         * modules/unistr/u16-chr-tests: Likewise.
60080         * modules/unistr/u16-cmp-tests: Likewise.
60081         * modules/unistr/u16-cmp2-tests: Likewise.
60082         * modules/unistr/u16-cpy-alloc-tests: Likewise.
60083         * modules/unistr/u16-cpy-tests: Likewise.
60084         * modules/unistr/u16-mblen-tests: Likewise.
60085         * modules/unistr/u16-mbsnlen-tests: Likewise.
60086         * modules/unistr/u16-mbtouc-tests: Likewise.
60087         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
60088         * modules/unistr/u16-mbtoucr-tests: Likewise.
60089         * modules/unistr/u16-move-tests: Likewise.
60090         * modules/unistr/u16-next-tests: Likewise.
60091         * modules/unistr/u16-prev-tests: Likewise.
60092         * modules/unistr/u16-set-tests: Likewise.
60093         * modules/unistr/u16-stpcpy-tests: Likewise.
60094         * modules/unistr/u16-stpncpy-tests: Likewise.
60095         * modules/unistr/u16-strcat-tests: Likewise.
60096         * modules/unistr/u16-strcmp-tests: Likewise.
60097         * modules/unistr/u16-strcoll-tests: Likewise.
60098         * modules/unistr/u16-strcpy-tests: Likewise.
60099         * modules/unistr/u16-strdup-tests: Likewise.
60100         * modules/unistr/u16-strlen-tests: Likewise.
60101         * modules/unistr/u16-strmblen-tests: Likewise.
60102         * modules/unistr/u16-strmbtouc-tests: Likewise.
60103         * modules/unistr/u16-strncat-tests: Likewise.
60104         * modules/unistr/u16-strncmp-tests: Likewise.
60105         * modules/unistr/u16-strncpy-tests: Likewise.
60106         * modules/unistr/u16-strnlen-tests: Likewise.
60107         * modules/unistr/u16-to-u32-tests: Likewise.
60108         * modules/unistr/u16-to-u8-tests: Likewise.
60109         * modules/unistr/u16-uctomb-tests: Likewise.
60110         * modules/unistr/u32-check-tests: Likewise.
60111         * modules/unistr/u32-chr-tests: Likewise.
60112         * modules/unistr/u32-cmp-tests: Likewise.
60113         * modules/unistr/u32-cmp2-tests: Likewise.
60114         * modules/unistr/u32-cpy-alloc-tests: Likewise.
60115         * modules/unistr/u32-cpy-tests: Likewise.
60116         * modules/unistr/u32-mblen-tests: Likewise.
60117         * modules/unistr/u32-mbsnlen-tests: Likewise.
60118         * modules/unistr/u32-mbtouc-tests: Likewise.
60119         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
60120         * modules/unistr/u32-mbtoucr-tests: Likewise.
60121         * modules/unistr/u32-move-tests: Likewise.
60122         * modules/unistr/u32-next-tests: Likewise.
60123         * modules/unistr/u32-prev-tests: Likewise.
60124         * modules/unistr/u32-set-tests: Likewise.
60125         * modules/unistr/u32-stpcpy-tests: Likewise.
60126         * modules/unistr/u32-stpncpy-tests: Likewise.
60127         * modules/unistr/u32-strcat-tests: Likewise.
60128         * modules/unistr/u32-strcmp-tests: Likewise.
60129         * modules/unistr/u32-strcoll-tests: Likewise.
60130         * modules/unistr/u32-strcpy-tests: Likewise.
60131         * modules/unistr/u32-strdup-tests: Likewise.
60132         * modules/unistr/u32-strlen-tests: Likewise.
60133         * modules/unistr/u32-strmblen-tests: Likewise.
60134         * modules/unistr/u32-strmbtouc-tests: Likewise.
60135         * modules/unistr/u32-strncat-tests: Likewise.
60136         * modules/unistr/u32-strncmp-tests: Likewise.
60137         * modules/unistr/u32-strncpy-tests: Likewise.
60138         * modules/unistr/u32-strnlen-tests: Likewise.
60139         * modules/unistr/u32-to-u16-tests: Likewise.
60140         * modules/unistr/u32-to-u8-tests: Likewise.
60141         * modules/unistr/u32-uctomb-tests: Likewise.
60142         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
60143         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
60144         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
60145         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
60146         * modules/uniwidth/u8-strwidth-tests: Likewise.
60147         * modules/uniwidth/u8-width-tests: Likewise.
60148         * modules/uniwidth/u16-strwidth-tests: Likewise.
60149         * modules/uniwidth/u16-width-tests: Likewise.
60150         * modules/uniwidth/u32-strwidth-tests: Likewise.
60151         * modules/uniwidth/u32-width-tests: Likewise.
60152         * modules/uniwidth/width-tests: Likewise.
60154 2010-05-18  Richard Jones  <rjones@redhat.com>
60156         doc: users.txt: list hivex
60157         * users.txt: Add hivex.
60159 2010-05-18  Richard Jones  <rjones@redhat.com>
60161         doc: users.txt: list febootstrap
60162         * users.txt: Add febootstrap.
60164 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
60166         bootstrap: fix an error when gnulib is not used as a git submodule
60167         * build-aux/bootstrap (gnulib_path): If its length is zero then
60168         assign "gnulib" to it.
60169         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
60171 2010-05-16  Bruno Haible  <bruno@clisp.org>
60173         Avoid autoconf warnings about AM_ICONV.
60174         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
60175         2.64.
60177 2010-05-16  Bruno Haible  <bruno@clisp.org>
60179         absolute-header: Make the macro usable in more situations.
60180         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
60181         from gl_ABSOLUTE_HEADER.
60182         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
60184 2010-05-16  James Youngman  <jay@gnu.org>
60186         doc: update users.txt
60187         * users.txt: Add CSSC.
60189 2010-05-16  Jim Meyering  <meyering@redhat.com>
60191         init.sh: fix an error in the previous change; add more comments
60192         * tests/init.sh: Compare exit code in loop against 9, not 2.
60193         Patch by Bruno Haible.
60194         Make the two tests more similar by adding an empty "then" clause.
60195         Add comments.
60197         init.sh: avoid unnecessary shell re-exec
60198         * tests/init.sh: Improve the re-exec-required check to first test the
60199         current shell.  If it passes the test, do not search for a shell that
60200         does pass, and do not re-exec.  This test is particularly contorted to
60201         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
60202         of $(...) evokes a syntax error and causes immediate shell exit with
60203         status 2.  Bruno Haible reported that the re-exec made it impossible
60204         to single-step through any init.sh-using script.
60206 2010-05-16  Bruno Haible  <bruno@clisp.org>
60208         Fix collision between gnulib's and libintl's printf replacements.
60209         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
60210         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
60211         (printf): When using GNU C, map the __printf__ function to rpl_printf
60212         via __asm__. When not using GNU C, define rpl_printf instead of
60213         __printf__.
60214         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
60215         commit.
60216         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
60217         commit.
60218         * m4/asm-underscore.m4: New file.
60219         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
60220         * modules/stdio (Files): Add m4/asm-underscore.m4.
60221         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
60222         Reported by Ben Pfaff.
60224 2010-05-16  Bruno Haible  <bruno@clisp.org>
60226         verify: Avoid skipping the test on openSUSE 11.0.
60227         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
60229 2010-05-13  Bruno Haible  <bruno@clisp.org>
60231         Avoid useless warnings from G++.
60232         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
60233         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
60234         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
60236 2010-05-11  Jim Meyering  <meyering@redhat.com>
60238         maint.mk: tweak preceding change
60239         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
60240         regexps tighter by anchoring at EOL, and make the new group "shy"
60241         for slightly decreased overhead.
60243 2010-05-11  Eric Blake  <eblake@redhat.com>
60245         maint.mk: gnulib doesn't guarantee NSIG
60246         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
60248 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
60250         test-pwrite.c: Remove unused variable declaration.
60251         * tests/test-pwrite.c (main): Remove read_buf declaration.
60253         Remove useless test-pwrite.sh file.
60254         * tests/test-pwrite.sh: Delete file.
60255         * modules/pwrite-tests: Remove references.
60256         Reported by Bruno Haible.
60258 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
60260         init.sh: fix a typo
60261         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
60263 2010-05-10  Jim Meyering  <meyering@redhat.com>
60265         maint.mk: avoid using a temporary file in the always-defined-macros check
60266         * top/maint.mk (.re-defmac): Remove rule.
60267         (gl_trap_): Remove definition.
60268         (sc_prohibit_always-defined_macros): Rewrite not to create and
60269         depend on a temporary file.  Instead, depend on GNU grep's ability
60270         to read a list of regular expressions from stdin when given "-f -".
60272 2010-05-09  Bruno Haible  <bruno@clisp.org>
60274         Update to GNU gettext 0.18, part 1.
60275         * m4/gettext.m4: Update to GNU gettext 0.18.
60276         * m4/intl.m4: Likewise.
60277         * m4/po.m4: Likewise.
60278         * modules/gettext (Files): Add m4/fcntl-o.m4.
60279         (configure.ac): Require gettext infrastructure from version 0.18.
60281 2010-05-09  Jim Meyering  <meyering@redhat.com>
60283         init.sh: enable MALLOC_PERTURB_
60284         * tests/init.sh: Enable glibc's malloc-perturbing option.
60286         maint.mk: improve sc_cross_check_PATH_usage_in_tests
60287         With my recent change in init.sh from the two-line form:
60288             -#   : ${srcdir=.}
60289             -#   . "$srcdir/init.sh"; path_prepend_ .
60290             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
60291         I noticed that using the one-line form would cause this test
60292         to fail with a false-positive, or to stop working altogether,
60293         depending on whether help-version changed or all the tests did.
60294         * top/maint.mk (_hv_regex): Remove this definition.
60295         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
60296         (_hv_regex_strong): Use a stronger regex to check for conformance.
60297         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
60298         Give a separate diagnostic for lack of conforming use.
60300         maint.mk: prohibit definition of symbols defined by gnulib
60301         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
60302         definition of symbols defined by gnulib.
60304 2010-05-09  Bruno Haible  <bruno@clisp.org>
60306         acl: Avoid test failure on Cygwin-hosted mingw.
60307         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
60309 2010-05-09  Bruno Haible  <bruno@clisp.org>
60311         error: Use system's fcntl function.
60312         * lib/error.c (fcntl): Undefine.
60314 2010-05-09  Jim Meyering  <meyering@redhat.com>
60316         verify: adjust formatting to be more consistent
60317         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
60318         argument-list '('s, and after one comma.
60320 2010-05-09  Bruno Haible  <bruno@clisp.org>
60322         error: More reliable output on mingw.
60323         * lib/error.c: Include <windows.h>.
60324         (is_open): New function.
60325         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
60326         defined.
60328 2010-05-09  Bruno Haible  <bruno@clisp.org>
60330         vasnprintf: Fix syntax errors in libintl build on mingw.
60331         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
60332         pad_ourselves and prec_ourselves after use.
60334 2010-05-08  Bruno Haible  <bruno@clisp.org>
60336         * lib/config.charset: Update comments for Cygwin 1.7.
60337         * lib/localcharset.c: Likewise.
60339 2010-05-07  Jim Meyering  <meyering@redhat.com>
60341         init.sh: improve comments
60342         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
60343         . "${srcdir=.}/init.sh"; path_prepend_ .
60344         Add a note about path_prepend_ and the alternative of using
60345         TESTS_ENVIRONMENT.
60347 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
60349         exclude: Unescape hashed patterns in wildcard mode.
60350         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
60351         to the hash list.
60352         * tests/test-exclude8.sh: New test case.
60353         * modules/exclude-tests: Add new test.
60355 2010-05-05  Eric Blake  <eblake@redhat.com>
60357         verify: automate tests
60358         * modules/verify-tests: New module.
60359         * tests/test-verify.sh: New file.
60360         * tests/test-verify.c: Guard each negative test with a unique id.
60361         Also avoid warning about unused left hand of comma expressions.
60363 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
60365         Further improvements to verify.h, suggested by Eric Blake.
60366         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
60367         the GL_* versions, to avoid collision with OpenGL.
60368         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
60369         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
60370         than testing merely whether it's defined.
60372         Modify verify.h to pacify gcc -Wredundant_decls.
60373         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
60374         These use the prefix "GL_" since they're likely to be useful elsewhere.
60375         We may need to break them out into a different .h file.
60376         (__COUNTER__): Define to 0 if the compiler doesn't support it.
60377         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
60378         of verify_function__.
60380 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
60382         Tests for module pwrite.
60383         * modules/pwrite-tests: New file.
60384         * tests/test-pwrite.sh: New file.
60385         * tests/test-pwrite.c: New file.
60387         New module pwrite.
60388         * lib/unistd.in.h (pwrite): New declaration.
60389         * lib/pwrite.c: New file, from glibc with modifications.
60390         * m4/pwrite.m4: New file.
60391         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
60392         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
60393         REPLACE_PWRITE.
60394         * modules/pwrite: New file.
60395         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
60396         REPLACE_PWRITE.
60397         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
60398         * doc/posix-functions/pwrite.texi: Mention the new module.
60400 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
60402         pread: Update documentation.
60403         * doc/posix-functions/pread.texi: Mention the 'pread' module.
60405 2010-05-04  Eric Blake  <eblake@redhat.com>
60407         docs: update cygwin progress
60408         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
60409         this bug.
60410         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
60411         Added in cygwin 1.7.2.
60412         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
60413         Likewise.
60414         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
60415         Likewise.
60416         * doc/glibc-functions/dup3.texi (dup3): Likewise.
60417         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
60418         * doc/glibc-functions/accept4.texi (accept4): Likewise.
60419         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
60420         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
60421         Mention nproc module.
60422         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
60423         bug in cygwin 1.7.5 addition.
60424         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
60425         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
60426         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
60427         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
60428         1.7.5.
60429         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
60430         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
60431         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
60432         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
60433         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
60434         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
60435         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
60436         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
60437         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
60438         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
60439         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
60440         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
60441         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
60442         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
60443         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
60444         Likewise.
60445         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
60446         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
60447         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
60448         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
60449         Likewise.
60450         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
60451         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
60452         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
60453         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
60454         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
60455         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
60456         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
60457         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
60458         Likewise.
60459         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
60460         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
60461         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
60462         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
60463         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
60464         Likewise.
60465         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
60466         Likewise.
60467         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
60468         Likewise.
60469         * doc/glibc-functions/xdrrec_endofrecord.texi
60470         (xdrrec_endofrecord): Likewise.
60471         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
60472         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
60473         Likewise.
60474         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
60475         Likewise.
60477 2010-05-04  Jim Meyering  <meyering@redhat.com>
60479         gendocs.sh: make its "-s FILE" option more useful
60480         * build-aux/gendocs.sh: When honoring the -s FILE option, update
60481         $PACKAGE to reflect the probably-different basename of "FILE".
60483 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
60485         bootstrap: don't ignore download_po_files failure
60486         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
60487         failure.
60489 2010-05-03  Jim Meyering  <meyering@redhat.com>
60491         maint.mk: allow to pass options to gendocs.sh
60492         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
60493         (gendocs_options_): New overridable variable.
60495         gnu-web-doc-update: don't ignore configure or build failure
60496         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
60498         announce-gen: backslash-escape '@'s in --help output
60499         * build-aux/announce-gen: Fix syntax errors.
60501         maint.mk, announce-gen: allow project-specific announcement mail headers
60502         * top/maint.mk (translation_project_): Define default.
60503         (announcement_Cc_, announcement_mail_headers_): Likewise.
60504         (announcement): Invoke announce-gen with new --mail-headers option.
60505         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
60507         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
60508         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
60509         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
60510         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
60511         line in the "err2" output file when running "make check" in verbose
60512         mode (i.e., with set -x enabled).
60514 2010-05-03  Bruno Haible  <bruno@clisp.org>
60516         wctob: Fix for weird platforms.
60517         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
60518         argument value.
60520 2010-05-03  Jim Meyering  <meyering@redhat.com>
60522         maint.mk: prohibit unwarranted use of <strings.h>
60523         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
60524         strings.h in a file that does not also use strcasecmp, strncasecmp,
60525         ffs or ffsll.
60527         maint.mk: remove obsolete comments
60528         * top/maint.mk: Remove stale, commented-out rules.
60530 2010-05-02  Bruno Haible  <bruno@clisp.org>
60532         wcwidth: Declare also when it's aliased.
60533         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
60534         macro.
60536 2010-05-02  Bruno Haible  <bruno@clisp.org>
60538         Fix regression from 2010-04-25.
60539         * gnulib-tool (func_modules_transitive_closure): Check the status of
60540         all modules, not only of the tests that are of the form foo-tests where
60541         foo is a module.
60543 2010-05-02  Bruno Haible  <bruno@clisp.org>
60545         wctob: Work around nasty Cygwin 1.7.2 bug.
60546         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
60547         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
60549 2010-05-01  Bruno Haible  <bruno@clisp.org>
60551         fpurge: Sharper test.
60552         * tests/test-fpurge.c (main): Add one more ftell check.
60553         * modules/fpurge-tests (Depends-on): Add ftell.
60554         Suggested by Eric Blake.
60556 2010-05-01  Bruno Haible  <bruno@clisp.org>
60558         ftello: Another test.
60559         * tests/test-ftello3.c: New file.
60560         * modules/ftello-tests (Files): Add it.
60561         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
60562         MOSTLYCLEANFILES.
60564         ftell: Another test.
60565         * tests/test-ftell3.c: New file.
60566         * modules/ftell-tests (Files): Add it.
60567         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
60568         MOSTLYCLEANFILES.
60570 2010-05-01  Bruno Haible  <bruno@clisp.org>
60572         ftell, ftello: Work around Solaris bug.
60573         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
60574         * lib/ftello.c: Include stdio-impl.h.
60575         (ftello): On Solaris, when _IOWRT is set, compute the result without
60576         looking at _IOREAD.
60577         * modules/ftello (Files): Add lib/stdio-impl.h.
60578         * doc/posix-functions/ftell.texi: Mention Solaris bug.
60579         * doc/posix-functions/ftello.texi: Likewise.
60580         Reported by Eric Blake.
60582 2010-05-01  Bruno Haible  <bruno@clisp.org>
60584         freading: Adapt to special meaning of _IOREAD flag on Solaris.
60585         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
60586         the _IOWRT flag is also set.
60588 2010-05-01  Bruno Haible  <bruno@clisp.org>
60590         Fix doc about a HP-UX stdio bug.
60591         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
60592         * doc/posix-functions/ftello.texi: Likewise.
60594 2010-05-01  Bruno Haible  <bruno@clisp.org>
60596         lseek test: Fix failure on Solaris.
60597         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
60598         output.
60600 2010-04-30  Jim Meyering  <meyering@redhat.com>
60602         bootstrap: don't ignore failure to generate po*/Makevars
60603         * build-aux/bootstrap (with_gettext): Don't ignore failure
60604         to create po/Makevars or runtime-po/Makevars.
60606 2010-04-29  Eric Blake  <eblake@redhat.com>
60608         headers: relax license to LGPLv2+
60609         * modules/fcntl-h (License): Relax license.
60610         * modules/getopt-posix (License): Likewise.
60611         * modules/locale (License): Likewise.
60612         * modules/math (License): Likewise.
60613         * modules/pty (License): Likewise.
60614         * modules/sched (License): Likewise.
60615         * modules/search (License): Likewise.
60616         * modules/spawn (License): Likewise.
60617         * modules/stdarg (License): Likewise.
60618         * modules/sysexits (License): Likewise.
60620 2010-04-29  Jim Meyering  <meyering@redhat.com>
60622         inttypes: relax license to LGPLv2+
60623         * modules/inttypes (License): Relax license.
60625 2010-04-29  Simon Josefsson  <simon@josefsson.org>
60627         * top/maint.mk (indent): Run twice to produce idempotent results.
60629 2010-04-28  Bruno Haible  <bruno@clisp.org>
60631         getdate: Generate getdate.c in the source directory.
60632         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
60633         MOSTLYCLEANFILES.
60634         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
60636 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
60638         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
60639         is not declared as a const *; avoid warnings in that case.
60641 2010-04-28  Eric Blake  <eblake@redhat.com>
60643         canonicalize-lgpl: avoid compiler warning
60644         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
60645         declaration' / 'extraneous semicolon' warning with some compilers.
60646         Reported by Andreas Gruenbacher.
60648 2010-04-28  Jim Meyering  <meyering@redhat.com>
60650         init.sh: ensure a more reliable exit status when exiting via trap
60651         * tests/init.sh (setup_): Don't rely on $? in signal handler.
60652         Inspired by patches from Dmitry V. Levin.
60653         Also trap on signal 3 (SIGQUIT).
60655 2010-04-27  Bruno Haible  <bruno@clisp.org>
60657         Update doc about utimes().
60658         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
60659         'utimens' module.
60660         Reported by Andreas Gruenbacher <agruen@suse.de>.
60662 2010-04-27  Eric Blake  <eblake@redhat.com>
60664         full-read, full-write: relax license
60665         * modules/full-read (License): Drop to LGPLv2+.
60666         * modules/full-write (License): Likewise.
60667         * modules/safe-read (License): Likewise.
60668         * modules/safe-write (License): Likewise.
60670         pthread: mention library for linking
60671         * modules/pthread (Link): Mention $(LIB_PTHREAD).
60673 2010-04-27  Jim Meyering  <meyering@redhat.com>
60675         maint.mk: fix a bug introduced in last change
60676         * top/maint.mk (gl_assured_headers_): Now that all names are on
60677         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
60678         is not anchored to end of word, it should be adequate.
60680         maint.mk: avoid side-effect in latest syntax-check
60681         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
60682         to run commands via $(shell...), and hence to incur cost only when
60683         the new rule is actually run.
60685         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
60686         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
60687         and use that to create a regexp used to detect all #if HAVE_..._H uses.
60688         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
60689         (gl_assured_headers_, az_, AZ_): Define.
60690         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
60692 2010-04-26  Jim Meyering  <jim@meyering.net>
60693             Bruno Haible  <bruno@clisp.org>
60695         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
60696         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
60697         Prompted by an exchange with Gilles Espinasse.
60699 2010-04-26  Jim Meyering  <meyering@redhat.com>
60701         git-version-gen: aesthetic tweak
60702         * build-aux/git-version-gen: Use "$nl" rather than a literal,
60703         so that the command remains on a single line.
60705 2010-04-26  Eric Blake  <eblake@redhat.com>
60707         git-version-gen: allow use on EBCDIC hosts
60708         * build-aux/git-version-gen (dirty): Use literal rather than tying
60709         ourselves to ascii.
60710         Reported by Steve Goetze.
60712 2010-04-25  Bruno Haible  <bruno@clisp.org>
60714         netdb: Add support for GNULIB_POSIXCHECK.
60715         * lib/netdb.in.h: Include warn-on-use.h.
60716         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
60717         functions are used when GNULIB_POSIXCHECK is defined and the
60718         getaddrinfo module is not in use.
60719         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
60720         freeaddrinfo, gai_strerror, getnameinfo are declared.
60721         * modules/netdb (Depends-on): Add warn-on-use.
60722         (Makefile.am): Include warn-on-use.h in netdb.h.
60724 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
60726         build: avoid "make check" failure without .git/ directory
60727         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
60728         there is no .git/ directory.
60730 2010-04-25  Bruno Haible  <bruno@clisp.org>
60732         ptsname: Fix misuse of ttyname_r.
60733         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
60734         of errno.
60736 2010-04-25  Bruno Haible  <bruno@clisp.org>
60738         ttyname_r: Make it work on Solaris 10.
60739         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
60740         if the system function has the POSIX declaration. Test whether the
60741         function fails if the buffer is less than 128 bytes large.
60742         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
60743         system's ttyname_r function. Provide a reasonably large buffer.
60744         * modules/ttyname_r (Depends-on): Add extensions.
60745         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
60747 2010-04-25  Bruno Haible  <bruno@clisp.org>
60749         Use the 'extensions' module for some more functions on Solaris.
60750         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
60751         module.
60752         * doc/posix-functions/ctime_r.texi: Likewise.
60753         * doc/posix-functions/getgrgid_r.texi: Likewise.
60754         * doc/posix-functions/getgrnam_r.texi: Likewise.
60755         * doc/posix-functions/getpwnam_r.texi: Likewise.
60756         * doc/posix-functions/getpwuid_r.texi: Likewise.
60757         * doc/posix-functions/readdir_r.texi: Likewise.
60758         * doc/posix-functions/sigwait.texi: Likewise.
60759         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
60760         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
60762 2010-04-25  Bruno Haible  <bruno@clisp.org>
60764         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
60765         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
60766         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
60767         * lib/ttyname_r.c: Include <limits.h>.
60768         (ttyname_r): Define using the system's ttyname_r function, if it exists
60769         and not on Solaris.
60770         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
60771         set.
60772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
60773         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
60774         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
60775         Reported by Simon Josefsson.
60777 2010-04-25  Bruno Haible  <bruno@clisp.org>
60779         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
60780         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
60781         * doc/posix-functions/ctime_r.texi: Likewise.
60782         * doc/posix-functions/getgrgid_r.texi: Likewise.
60783         * doc/posix-functions/getgrnam_r.texi: Likewise.
60784         * doc/posix-functions/getlogin_r.texi: Likewise.
60785         * doc/posix-functions/getpwnam_r.texi: Likewise.
60786         * doc/posix-functions/getpwuid_r.texi: Likewise.
60787         * doc/posix-functions/readdir_r.texi: Likewise.
60788         * doc/posix-functions/sigwait.texi: Likewise.
60789         * doc/posix-functions/ttyname_r.texi: Likewise.
60790         Reported by Simon Josefsson.
60792 2010-04-25  Bruno Haible  <bruno@clisp.org>
60794         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
60795         * gnulib-tool (func_usage): Document that --with-*-tests options apply
60796         also to --create-testdir.
60797         (func_acceptable): Don't consider the status of *-tests modules here.
60798         (func_modules_transitive_closure): Consider it here, before including a
60799         test module.
60800         (func_import, func_create_testdir): Set inc_all_direct_tests,
60801         inc_all_indirect_tests.
60802         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
60803         --create-testdir and --create-megatestdir.
60805 2010-04-25  Bruno Haible  <bruno@clisp.org>
60807         gnulib-tool: Add --without-*-tests options.
60808         * gnulib-tool (func_usage): Document the --without-*-tests options.
60809         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
60810         excl_unportable_tests): New variables.
60811         Fail if they are specified with --import or --update.
60812         (func_acceptable): Respect the excl_*_tests variables.
60813         (func_import): Set the excl_*_tests variables to empty.
60815 2010-04-25  Simon Josefsson  <simon@josefsson.org>
60816             Bruno Haible  <bruno@clisp.org>
60818         Work around a MacOS X 10.4 bug with openpty.
60819         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
60820         * tests/test-openpty.c (main): Close the master side explicitly.
60822 2010-04-25  Bruno Haible  <bruno@clisp.org>
60824         strnlen: Fix a C++ test error on MacOS X and Solaris.
60825         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
60826         the function is not declared.
60827         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
60828         Simon Josefsson.
60830 2010-04-24  Bruno Haible  <bruno@clisp.org>
60832         Avoid a gcc warning.
60833         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
60834         of correct type for %08lx directive.
60835         Reported by Eric Blake.
60837 2010-04-24  Bruno Haible  <bruno@clisp.org>
60839         vasnprintf: Correct errno value in case of out-of-memory.
60840         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
60841         or sprintf. Use the errno value from SNPRINTF or sprintf.
60842         Reported by Ian Beckwith <ianb@erislabs.net>.
60844 2010-04-24  Bruno Haible  <bruno@clisp.org>
60846         ansi-c++-opt: Find correct compiler when cross-compiling.
60847         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
60848         AC_CHECK_PROGS.
60849         Reported by Simon Josefsson.
60851 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
60853         vc-list-files: Add support for subversion
60854         * build-aux/vc-list-files: Use "svn list" to generate the list of
60855         files controlled by subversion.
60857 2010-04-23  Jim Meyering  <meyering@redhat.com>
60859         vc-list-files tests: convert to use init.sh
60860         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
60861         path_prepend_.
60862         Use Exit, not exit.
60863         Use skip_ rather than open coding it.
60864         Remove trap set-up and compare definitions.
60865         * tests/test-vc-list-files-git.sh: Likewise.
60866         * modules/vc-list-files-tests (Files): Add tests/init.sh.
60868 2010-04-22  Simon Josefsson  <simon@josefsson.org>
60870         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
60871         backup files.
60873 2010-04-21  Simon Josefsson  <simon@josefsson.org>
60875         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
60877 2010-04-20  Eric Blake  <eblake@redhat.com>
60879         tests: be robust to ignored SIGPIPE
60880         * tests/test-select-in.sh: Consume all output.
60881         * tests/test-lseek.sh: Check correct exit status, while avoiding
60882         EPIPE.
60884 2010-04-20  Simon Josefsson  <simon@josefsson.org>
60885             Bruno Haible  <bruno@clisp.org>
60887         visibility: Don't use -fvisibility if it leads to a warning.
60888         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
60889         yes, don't pretend that visibility works if it leads to a warning.
60890         Reported by Mike Gran <spk121@yahoo.com>.
60892 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
60894         * build-aux/bootstrap: Use "git -h" for testing for supported options
60895         instead of "git --help".  The short-form option only shows a summary,
60896         and doesn't layout the full man page.  Grep for the full option name
60897         in the summary, too.
60899 2010-04-19  Bruno Haible  <bruno@clisp.org>
60901         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
60902         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
60903         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
60904         mention of RELOCATABLE_STRIP.
60905         Reported by Sylvain Beucler <beuc@beuc.net>.
60907 2010-04-19  Bruno Haible  <bruno@clisp.org>
60909         * lib/diffseq.h: Fix typo in comment.
60910         Reported by Eric Blake.
60912 2010-04-19  Bruno Haible  <bruno@clisp.org>
60914         ioctl: Move autoconf macro to a .m4 file.
60915         * m4/ioctl.m4: New file, extracted from modules/ioctl.
60916         * modules/ioctl (Files): Add it.
60917         (configure.ac): Simply invoke gl_FUNC_IOCTL.
60918         Reported by Ian Beckwith <ianb@erislabs.net>.
60920 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
60921             Bruno Haible  <bruno@clisp.org>
60923         diffseq: Accommodate use-case with abstract arrays.
60924         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
60925         is not defined.
60926         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
60927         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
60929 2010-04-18  Bruno Haible  <bruno@clisp.org>
60931         * doc/posix-headers/stdbool.texi: More precise wording.
60933 2010-04-17  Jim Meyering  <meyering@redhat.com>
60935         maint.mk: use gnu-style indentation in an embedded perl script
60936         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
60937         Rename variable: s/two/last_two_bytes/
60939 2010-04-16  Eric Blake  <eblake@redhat.com>
60941         test-stdbool: skip test that fails with Solaris CC
60942         * tests/test-stdbool.c (f): Skip test that causes compilation
60943         error under buggy C++ compiler.
60944         * lib/stdbool.in.h: Document the limitation.
60945         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
60947         setenv: allow compilation with C++
60948         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
60949         register keyword.
60951         stdint: allow test to pass with C++
60952         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
60954         getopt: allow compilation with C++
60955         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
60956         struct.
60957         * lib/getopt.c (_getopt_internal_r): Use correct type.
60958         Reported by Dagobert Michelson, via Joel E. Denny.
60960 2010-04-16  Bruno Haible  <bruno@clisp.org>
60962         Override netdb.h always.
60963         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
60964         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
60965         Reported by Ludovic Courtès <ludo@gnu.org>.
60967 2010-04-15  Bruno Haible  <bruno@clisp.org>
60969         openpty: Fix mistake from 2010-03-21.
60970         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
60971         Reported by Simon Josefsson.
60973 2010-04-15  Eric Blake  <eblake@redhat.com>
60975         test-forkpty: fix expected signature
60976         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
60977         Reported by Simon Josefsson.
60979 2010-04-15  Jim Meyering  <meyering@redhat.com>
60981         maint.mk: texinfo_suffix_re_: correct the default regexp
60982         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
60984         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
60985         make it configurable via texinfo_suffix_re_.
60987 2010-04-14  Eric Blake  <eblake@redhat.com>
60989         strtok_r: relax license to LGPLv2+
60990         * modules/strtok_r (License): Relax license.
60991         Reported by Matthias Bolte.
60993 2010-04-14  Simon Josefsson  <simon@josefsson.org>
60995         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
60996         version 1.4.4 by default instead of requiring the libgcrypt
60997         version used during build.  This makes it possible to use the
60998         application with older but still binary compatible libgcrypt
60999         versions.
61001 2010-04-13  Eric Blake  <eblake@redhat.com>
61003         getopt-gnu: match recent glibc fixes and posix ruling
61004         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
61005         '+' handling, when requesting extensions.
61006         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
61007         'W;' handling.
61008         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
61009         * doc/posix-functions/getopt.texi (getopt): Document this.
61010         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
61011         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
61012         Likewise.
61014         getopt: merge bug fixes from glibc
61015         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
61016         diagnostics.  Honor '+:' correctly.  Reject ';'.
61018         getopt-posix: detect MacOS bug
61019         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
61020         optind when missing a required argument.
61021         * doc/posix-functions/getopt.texi (getopt): Document the bug.
61022         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
61023         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
61024         Likewise.
61026         getopt-posix: avoid spurious failure on Solaris
61027         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
61028         an indicator that setting optind=1 is sufficient for reset.
61030         getopt-posix: avoid spurious failure on FreeBSD
61031         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
61032         in POSIX mode, since the m4 test uses it.
61034         gnulib-tool: silence warning on BSD sh
61035         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
61037 2010-04-13  Jim Meyering  <meyering@redhat.com>
61039         doc: users.txt: GNU patch now uses gnulib
61040         * users.txt: Add patch.
61042 2010-04-12  Jim Meyering  <meyering@redhat.com>
61044         maint.mk: generate more concise timing data for syntax-check rules
61045         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
61046         " done" from each line that reports a syntax-check test duration.
61048 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
61050         git-version-gen: use "git update-index..." rather than "git status"
61051         * build-aux/git-version-gen: Use git update-index --refresh, not
61052         "git status".  With some versions of git, "git status" would fail
61053         to update the index and result in an unwarranted "-dirty" suffix.
61055 2010-04-11  Jim Meyering  <meyering@redhat.com>
61057         openat: correct formatting (no semantic change)
61058         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
61059         Suggested by Bruno Haible.
61061 2010-04-11  Bruno Haible  <bruno@clisp.org>
61063         Stricter declaration checking in testdirs.
61064         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61065         If for_tests is true, augment AM_CPPFLAGS to define
61066         GNULIB_STRICT_CHECKING.
61067         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
61068         GNULIB_STRICT_CHECKING is defined, verify that the function is
61069         declared.
61071 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
61072             Bruno Haible  <bruno@clisp.org>
61074         libunistring: Improve configure output.
61075         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
61076         Don't say "consider installing GNU libunistring" when checking again
61077         with libiconv.
61079 2010-04-11  Bruno Haible  <bruno@clisp.org>
61081         libunistring: Correct value of $LTLIBUNISTRING.
61082         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
61083         correct the value of $LTLIBUNISTRING.
61085 2010-04-11  Bruno Haible  <bruno@clisp.org>
61087         havelib: Add static libraries to LIBS in the right order.
61088         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
61089         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
61091 2010-04-11  Bruno Haible  <bruno@clisp.org>
61093         libunistring: Detect libunistring also when it depends on libiconv.
61094         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
61095         the second AC_LIB_HAVE_LINKFLAGS invocation.
61097 2010-04-11  James Youngman  <jay@gnu.org>
61099         close-stream: declare local scalars to be "const"
61100         * lib/close-stream.c (close_stream): Make boolean variables const
61101         to document the fact that we set but do not change them.
61103 2010-04-11  Bruno Haible  <bruno@clisp.org>
61105         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
61107 2010-04-11  Jim Meyering  <meyering@redhat.com>
61109         maint.mk: don't include dist-check.mk
61110         * top/maint.mk: Remove bogus include directive.
61112         maint.mk: improve empty-line-at-EOF check
61113         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
61114         solution, rather than tail+Perl-based one.  The latter would read
61115         a few kilobytes from the end of each file, and did not handle empty
61116         files properly.
61118         maint.mk: print the elapsed time for each syntax-check rule
61119         * top/maint.mk (sc_m_rules_): Save start time in a file.
61120         (sc_z_rules_): New rules: remove temp file and print elapsed time.
61121         (local-check): Interpose the .z rules
61123 2010-04-11  Jim Meyering  <meyering@redhat.com>
61125         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
61126         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
61127         empty file with one that ends in an empty line.
61129 2010-04-10  Bruno Haible  <bruno@clisp.org>
61131         mkdir: Make it work on mingw64.
61132         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
61133         * lib/mkdir.c: Update comment.
61134         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
61136 2010-04-10  Bruno Haible  <bruno@clisp.org>
61138         Don't override improved macro from newer autoconf.
61139         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
61140         autoconf >= 2.62.
61141         Reported by Joel E. Denny <jdenny@clemson.edu>.
61143 2010-04-10  Jim Meyering  <meyering@redhat.com>
61145         maint.mk: new syntax-check rule: prohibit empty lines at end of file
61146         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
61148         maint.mk: correct a diagnostic
61149         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
61150         in diagnostic; now use $prohibit.
61152 2010-04-10  Bruno Haible  <address@hidden>
61154         fchownat: Fix a C++ test error on Solaris 8.
61155         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
61156         the function does not exist.
61158 2010-04-10  Bruno Haible  <bruno@clisp.org>
61160         vasnprintf: Add more tests.
61161         * tests/test-vasnprintf-posix.c: Include <errno.h>.
61162         (test_function): Test converting an invalid wide string.
61164         vasnprintf: Correct handling of unconvertible wide string arguments.
61165         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
61166         VASNPRINTF.
61167         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
61168         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
61169         smaller than the expected maximum need for the directive. Set errno to
61170         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
61171         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
61172         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
61173         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
61174         * modules/vasnprintf (Files): Add m4/printf.m4.
61175         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
61177 2010-04-10  Bruno Haible  <bruno@clisp.org>
61179         vasnprintf: Fix crash in %ls directive.
61180         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
61181         string is passed as argument to %ls, with no precision and no width.
61182         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
61184 2010-04-10  Bruno Haible  <bruno@clisp.org>
61186         vasnprintf: Fix multiple test failures on mingw.
61187         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
61188         _snprintf, or snwprintf, not _snwprintf.
61190 2010-04-10  Bruno Haible  <bruno@clisp.org>
61192         write: Fix a C++ test error on mingw.
61193         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
61195 2010-04-10  Bruno Haible  <bruno@clisp.org>
61197         vasnprintf test: Reduce code duplication.
61198         * tests/test-vasnprintf.c (test_function): New function, extracted from
61199         test_vasnprintf.
61200         (test_vasnprintf, test_asnprintf): Invoke it.
61202 2010-04-10  Bruno Haible  <bruno@clisp.org>
61204         strnlen: Fix warning in C++ mode on MacOS X.
61205         * lib/string.in.h (strnlen): Use the modern idiom.
61206         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
61207         defining strnlen as a macro already in <config.h>.
61208         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61209         REPLACE_STRNLEN.
61210         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
61211         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
61213 2010-04-08  James Youngman  <jay@gnu.org>
61215         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
61216         the example.
61218 2010-04-09  Jim Meyering  <meyering@redhat.com>
61220         maint.mk: print better diagnostic when there is no $(_hv_file)
61221         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
61222         announce that when $(_hv_file) (aka help-version) does not exist.
61224         init.sh: run tr in the "C" locale to avoid multibyte interpretation
61225         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
61226         not try to interpret its random input bytes.  Jarno Rajahalme reported
61227         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
61228         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
61229         (mktempd_): Likewise, just in case.
61231         ftruncate: add two years to projected module removal date: 2012
61232         * m4/ftruncate.m4: Adjust comments.
61234         ftruncate: mark module as obsolete; even MinGW provides it, now
61235         * modules/ftruncate (Status): Obsolete.
61236         (Notice): Say that.
61237         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
61238         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
61240 2010-04-08  Bruno Haible  <bruno@clisp.org>
61242         Fix side effects from tests-related modules.
61243         * modules/dprintf-posix (Comment): New section.
61244         * modules/fprintf-posix (Comment): Likewise.
61245         * modules/obstack-printf-posix (Comment): Likewise.
61246         * modules/printf-posix (Comment): Likewise.
61247         * modules/snprintf-posix (Comment): Likewise.
61248         * modules/sprintf-posix (Comment): Likewise.
61249         * modules/vasnprintf-posix (Comment): Likewise.
61250         * modules/vasprintf-posix (Comment): Likewise.
61251         * modules/vdprintf-posix (Comment): Likewise.
61252         * modules/vfprintf-posix (Comment): Likewise.
61253         * modules/vprintf-posix (Comment): Likewise.
61254         * modules/vsnprintf-posix (Comment): Likewise.
61255         * modules/vsprintf-posix (Comment): Likewise.
61256         * modules/xprintf-posix (Comment): Likewise.
61257         * modules/xvasprintf-posix (Comment): Likewise.
61258         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
61259         * modules/floorf-tests (Depends-on): Likewise.
61260         * modules/round-tests (Depends-on): Likewise.
61261         * modules/roundf-tests (Depends-on): Likewise.
61262         * modules/trunc-tests (Depends-on): Likewise.
61263         * modules/truncf-tests (Depends-on): Likewise.
61264         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
61265         'fprintf-posix' module is not present.
61266         * tests/test-floorf2.c (check): Likewise.
61267         * tests/test-trunc2.c (check): Likewise.
61268         * tests/test-truncf2.c (check): Likewise.
61269         * tests/test-round2.c (equal): Likewise.
61270         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
61272 2010-04-07  Karl Berry  <karl@gnu.org>
61274         * config/srclist.txt,
61275         * config/srclistvars.sh,
61276         * config/srclist-update: doc fixes.
61278 2010-04-07  Jim Meyering  <meyering@redhat.com>
61280         maint.mk: add a PATH crosschecking syntax-check rule
61281         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
61282         Useful if you use a test like the one in help-version (coreutils,
61283         diffutils, grep, gzip) that ensures $(VERSION) matches what is
61284         printed by prog --version.
61286 2010-04-06  Bruno Haible  <bruno@clisp.org>
61288         Fix link error on mingw.
61289         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
61290         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
61292 2010-04-06  Bruno Haible  <bruno@clisp.org>
61294         Assume rmdir exists.
61295         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
61297 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
61299         doc: update users.txt
61300         * users.txt: Add gcal.
61302 2010-04-06  Jim Meyering  <meyering@redhat.com>
61304         init.sh: simply unset TMPDIR rather than risking env -i
61305         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
61306         although it probably works fine on all Unix-based systems, some
61307         systems (Cygwin?) cannot tolerate a totally cleared environment.
61308         Suggestion from Eric Blake.
61310 2010-04-06  Jim Meyering  <meyering@redhat.com>
61312         init.sh: portability fix: use env's POSIX-specified -i option not -u
61313         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
61314         than unportable env -u.  Solaris 5.11's env lacks support for -u.
61316 2010-04-05  Bruno Haible  <bruno@clisp.org>
61318         btowc: Work around Cygwin 1.7.2 bug.
61319         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
61320         does not map NUL to 0.
61321         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
61323 2010-04-05  Bruno Haible  <bruno@clisp.org>
61325         Make the multithread modules work on Cygwin 1.7.2.
61326         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
61327         imported symbols can be declared weak, so that it returns "no" on
61328         Cygwin 1.7.2.
61330 2010-04-05  Bruno Haible  <bruno@clisp.org>
61332         Use the module 'strncat'.
61333         * modules/unistr/u8-strncat (Depends-on): Add strncat.
61335         Tests for module 'strncat'.
61336         * modules/strncat-tests: New file.
61337         * tests/test-strncat.c: New file.
61339         New module 'strncat'.
61340         * lib/string.in.h (strncat): New declaration.
61341         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
61342         * m4/strncat.m4: New file, based on m4/memchr.m4.
61343         * modules/strncat: New file.
61344         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
61345         is declared.
61346         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
61347         REPLACE_STRNCAT.
61348         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
61349         REPLACE_STRNCAT.
61350         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
61351         module.
61352         * tests/test-string-c++.cc: Check signature of strncat.
61354 2010-04-05  Jim Meyering  <meyering@redhat.com>
61356         xstrtoumax-tests: convert to use init.sh
61357         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
61358         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
61359         Use Exit, not exit.
61360         Remove uses of $EXEEXT and "./" to run a program in the current dir.
61362         xstrtoimax-tests: convert to use init.sh
61363         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
61364         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
61365         Use Exit, not exit.
61366         Remove uses of $EXEEXT and "./" to run a program in the current dir.
61368 2010-04-05  Bruno Haible  <bruno@clisp.org>
61370         sys_socket: Avoid #define replacements in C++ mode.
61371         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
61372         warning to the function if possible, rather than #defining the symbol
61373         to a dysfunctional alias.
61375 2010-04-05  Bruno Haible  <bruno@clisp.org>
61377         fseeko: Fix C++ test error on mingw.
61378         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
61379         gl_FUNC_FSEEKO.
61380         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
61381         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
61382         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
61383         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
61385 2010-04-05  Bruno Haible  <bruno@clisp.org>
61387         duplocale: Improve test output.
61388         * tests/test-duplocale.c (main): Print reason for skipped test.
61390 2010-04-05  Bruno Haible  <bruno@clisp.org>
61392         Assume rmdir exists.
61393         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
61394         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
61396 2010-04-05  Bruno Haible  <bruno@clisp.org>
61398         Fix link error on Solaris 8 with cc.
61399         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
61401 2010-04-05  Bruno Haible  <bruno@clisp.org>
61403         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
61404         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
61406 2010-04-05  Bruno Haible  <bruno@clisp.org>
61408         vasprintf: Update documentation.
61409         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
61411 2010-04-05  Bruno Haible  <bruno@clisp.org>
61413         ptsname: Improve test.
61414         * tests/test-ptsname.c (main): Also try the various master names of BSD
61415         systems.
61417 2010-04-05  Bruno Haible  <bruno@clisp.org>
61419         memchr: Avoid a possible C++ test error.
61420         * lib/string.in.h (memchr): Provide declaration if function is missing.
61421         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
61422         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
61423         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
61424         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
61426 2010-04-05  Bruno Haible  <bruno@clisp.org>
61428         strtok_r: Improve idiom.
61429         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
61430         AC_LIBOBJ is used.
61432 2010-04-05  Bruno Haible  <bruno@clisp.org>
61434         strdup: Improve idiom.
61435         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
61436         AC_LIBOBJ is used.
61437         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
61438         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
61439         when AC_LIBOBJ is used.
61441 2010-04-05  Bruno Haible  <bruno@clisp.org>
61443         mbsinit, mbrtowc, wcrtomb: Improve idioms.
61444         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
61445         don't set REPLACE_MBSINIT to 1.
61446         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
61447         don't set REPLACE_MBRTOWC to 1.
61448         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
61449         exist, don't set REPLACE_MBSRTOWCS to 1.
61450         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
61451         exist, don't set REPLACE_MBSNRTOWCS to 1.
61452         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
61453         don't set REPLACE_WCRTOMB to 1.
61454         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
61455         exist, don't set REPLACE_WCSRTOMBS to 1.
61456         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
61457         exist, don't set REPLACE_WCSNRTOMBS to 1.
61459 2010-04-05  Bruno Haible  <bruno@clisp.org>
61461         ldexpl: Improve idiom.
61462         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
61463         make sure to set HAVE_DECL_LDEXPL to 0.
61465 2010-04-05  Jim Meyering  <meyering@redhat.com>
61467         xstrtol-tests: convert to use init.sh
61468         * modules/xstrtol-tests (Files): Add tests/init.sh.
61469         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
61470         Use Exit, not exit.
61471         Remove uses of $EXEEXT and "./" to run a program in the current dir.
61473         atexit-tests: convert to use init.sh
61474         * modules/atexit-tests (Files): Add tests/init.sh.
61475         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
61476         Use Exit, not exit.
61477         Remove uses of $EXEEXT and "./" to run a program in the current dir.
61479         init.sh: fix typo
61480         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
61482         init.sh: make it easier for a test script to write to the tty, ...
61483         when using automake's parallel-tests mode.
61484         * tests/init.sh (stderr_fileno_): Define overridable variable.
61485         (warn_): New function, to use it.
61486         (fail_, skip_, framework_failure_): Use warn_.
61488 2010-04-04  Bruno Haible  <bruno@clisp.org>
61490         btowc: Avoid warning.
61491         * lib/btowc.c: Include <stdlib.h>.
61492         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
61494 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
61495             Bruno Haible  <bruno@clisp.org>
61497         wchar: Port to NetBSD 1.5.
61498         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
61499         * lib/wctype.in.h (WEOF): Likewise.
61501 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
61502             Bruno Haible  <bruno@clisp.org>
61504         Port extended stdio to NetBSD 1.5.
61505         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
61506         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
61507         older.
61509 2010-04-04  Bruno Haible  <bruno@clisp.org>
61511         string: Remove unused substitution.
61512         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
61513         HAVE_DECL_STRERROR.
61514         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
61516 2010-04-04  Bruno Haible  <bruno@clisp.org>
61518         strtod: Avoid a possible C++ test error.
61519         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
61520         set REPLACE_STRTOD.
61522 2010-04-04  Bruno Haible  <bruno@clisp.org>
61524         strerror: Update documentation.
61525         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
61527 2010-04-04  Bruno Haible  <bruno@clisp.org>
61529         stdio: Fix some C++ test errors on Solaris 8 with GCC.
61530         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
61531         _GL_CXXALIAS_SYS_CAST.
61533 2010-04-04  Bruno Haible  <bruno@clisp.org>
61535         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
61536         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
61537         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
61538         REPLACE_FREXPL to 1.
61539         * doc/posix-functions/frexpl.texi: Update documentation.
61541 2010-04-04  Bruno Haible  <bruno@clisp.org>
61543         math: Fix some C++ test errors on Solaris 8 and Cygwin.
61544         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
61546 2010-04-04  Bruno Haible  <bruno@clisp.org>
61548         Implement nanosleep for native Windows.
61549         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
61551 2010-04-04  Bruno Haible  <bruno@clisp.org>
61553         math: Fix some C++ test errors on Solaris 8.
61554         * lib/math.in.h (truncf, trunc): Use simpler idiom.
61556 2010-04-04  Bruno Haible  <bruno@clisp.org>
61558         math: Fix some C++ test errors on Cygwin.
61559         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
61560         truncl): Provide declaration if the system does not have it.
61561         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
61562         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
61563         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
61564         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
61565         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
61566         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
61567         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
61568         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
61569         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
61570         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
61571         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
61572         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
61573         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
61574         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
61575         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
61576         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
61577         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
61578         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
61579         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
61580         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
61581         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
61582         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
61584 2010-04-04  Bruno Haible  <bruno@clisp.org>
61586         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
61587         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
61588         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
61589         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
61590         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
61591         * m4/isinf.m4 (gl_ISINF): Likewise.
61592         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
61594 2010-04-04  Bruno Haible  <bruno@clisp.org>
61596         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
61597         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
61599 2010-04-04  Bruno Haible  <bruno@clisp.org>
61601         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
61602         * modules/tmpfile (configure.ac): Update.
61604         tmpfile: Fix C++ test error on mingw.
61605         * lib/stdio.in.h (tmpfile): New declaration.
61606         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
61607         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
61608         * modules/tmpfile (Depends-on): Add stdio.
61609         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61610         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
61611         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
61612         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
61613         REPLACE_TMPFILE.
61614         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
61616 2010-04-04  Bruno Haible  <bruno@clisp.org>
61618         ioctl: Fix C++ test error on mingw.
61619         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
61620         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
61621         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
61623 2010-04-03  Bruno Haible  <bruno@clisp.org>
61625         wcwidth: Fix C++ test error on mingw.
61626         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
61627         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
61628         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
61630 2010-04-03  Bruno Haible  <bruno@clisp.org>
61632         nanosleep: Fix C++ test error on mingw.
61633         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
61634         * lib/time.in.h (nanosleep): Use modern idiom.
61635         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
61636         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
61637         REPLACE_NANOSLEEP to 1.
61638         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
61639         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
61641 2010-04-03  Bruno Haible  <bruno@clisp.org>
61643         strptime: Fix C++ test error on mingw.
61644         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
61645         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
61646         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
61647         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
61648         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
61649         not REPLACE_STRPTIME.
61650         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
61651         REPLACE_STRPTIME.
61653 2010-04-03  Bruno Haible  <bruno@clisp.org>
61655         timegm: Fix C++ test error on mingw.
61656         * lib/time.in.h (timegm): Use modern idiom.
61657         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
61658         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
61659         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
61660         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
61662 2010-04-03  Bruno Haible  <bruno@clisp.org>
61664         timegm: Assume declaration if function exists.
61665         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
61666         if it exists. Don't clobber ac_cv_func_timegm.
61668 2010-04-03  Bruno Haible  <bruno@clisp.org>
61670         time_r: Fix C++ test error on mingw.
61671         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
61672         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
61673         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
61674         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
61675         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
61677 2010-04-03  Bruno Haible  <bruno@clisp.org>
61679         time_r: Minor updates.
61680         * modules/time_r (Description): Mention the provided functions.
61681         * lib/time_r.c: Don't include <string.h>.
61682         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
61683         * doc/posix-functions/localtime_r.texi: Likewise.
61685 2010-04-03  Bruno Haible  <bruno@clisp.org>
61687         time: Fix regression introduced on 2010-03-08.
61688         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
61689         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
61691 2010-04-03  Jim Meyering  <meyering@redhat.com>
61693         maint.mk: don't silently disable project-specific syntax-check rules
61694         * top/maint.mk (_prohibit_regexp): Define, to help people realize
61695         that they need to convert their project-specific syntax-check rules
61696         to use the new _sc_search_regexp.
61698 2010-04-03  Bruno Haible  <bruno@clisp.org>
61700         fchdir: Fix regression introduced on 2010-03-08.
61701         * lib/unistd.in.h (fchdir): Fix declaration.
61702         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
61703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
61704         REPLACE_FCHDIR.
61705         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
61706         REPLACE_FCHDIR.
61708 2010-04-03  Bruno Haible  <bruno@clisp.org>
61710         getpagesize: Fix C++ test error on mingw.
61711         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
61712         system does not declare the function.
61713         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
61714         declared.
61715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61716         HAVE_DECL_GETPAGESIZE.
61717         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
61719 2010-04-03  Bruno Haible  <bruno@clisp.org>
61721         stdio: Make C++ tests work on mingw.
61722         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
61723         does not declare the function.
61725 2010-04-03  Bruno Haible  <bruno@clisp.org>
61727         ftello: Fix C++ test error on mingw.
61728         * lib/stdio.in.h (ftello): Use modern idiom.
61729         * lib/ftello.c (ftello): Renamed from rpl_ftello.
61730         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
61731         is missing and that it needs to be replaced.
61732         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
61733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
61734         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
61736 2010-04-03  Bruno Haible  <bruno@clisp.org>
61738         fseeko: Fix C++ test error on mingw.
61739         * lib/stdio.in.h (fseeko): Use modern idiom.
61740         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
61741         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
61742         is missing and that it needs to be replaced.
61743         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
61744         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
61745         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
61747 2010-04-03  Bruno Haible  <bruno@clisp.org>
61749         mkstemp: Fix C++ test error on mingw.
61750         * lib/stdlib.in.h (mkstemp): Use modern idiom.
61751         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
61752         function is missing and that it needs to be replaced.
61753         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
61754         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
61756 2010-04-03  Bruno Haible  <bruno@clisp.org>
61758         stpncpy: Fix C++ test error on mingw.
61759         * lib/string.in.h (stpncpy): Use modern idiom.
61760         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
61761         function is missing and that it needs to be replaced.
61762         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61763         REPLACE_STPNCPY.
61764         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
61766 2010-04-03  Bruno Haible  <bruno@clisp.org>
61768         sys_stat: Fix C++ test error on mingw.
61769         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
61770         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
61772 2010-04-03  Bruno Haible  <bruno@clisp.org>
61774         pty: Update doc.
61775         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
61777 2010-04-03  Bruno Haible  <bruno@clisp.org>
61779         unistd: Fix C++ test error on mingw.
61780         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
61782 2010-04-03  Bruno Haible  <bruno@clisp.org>
61784         Update doc regarding mingw.
61785         * doc/glibc-functions/openpty.texi: Update regarding mingw.
61786         * doc/glibc-functions/login_tty.texi: Likewise.
61787         * doc/glibc-functions/forkpty.texi: Likewise.
61789 2010-04-03  Bruno Haible  <bruno@clisp.org>
61791         stdlib: Avoid compilation failure of c-strtold on mingw.
61792         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
61794 2010-04-03  Bruno Haible  <bruno@clisp.org>
61796         locale: Make C++ tests work on Cygwin and mingw.
61797         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
61798         cannot provide the function.
61799         Reported by Simon Josefsson.
61801 2010-04-03  Bruno Haible  <bruno@clisp.org>
61803         localename: Port to MacOS X 10.6.
61804         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
61805         memory layout of the locales in MacOS X 10.6 as well.
61806         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
61808 2010-04-02  Bruno Haible  <bruno@clisp.org>
61810         gnulib-tool: Ensure that long-running tests are executed last.
61811         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
61812         running tests after the one for the other tests.
61814 2010-04-02  Bruno Haible  <bruno@clisp.org>
61816         gnulib-tool: Ensure the tests in the main directory are executed first.
61817         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
61818         start with the current directory.
61820 2010-04-02  Bruno Haible  <bruno@clisp.org>
61822         Tests for module 'havelib', moved here from GNU gettext.
61823         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
61824         modifications.
61825         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
61826         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
61827         with modifications.
61828         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
61829         modifications.
61830         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
61831         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
61832         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
61833         with modifications.
61834         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
61835         with modifications.
61836         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
61837         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
61838         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
61839         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
61840         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
61841         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
61842         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
61843         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
61844         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
61845         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
61846         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
61847         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
61848         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
61849         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
61850         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
61851         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
61852         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
61853         with modifications.
61854         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
61855         with modifications.
61856         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
61857         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
61858         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
61859         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
61860         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
61861         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
61862         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
61863         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
61864         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
61865         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
61866         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
61867         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
61868         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
61869         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
61870         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
61871         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
61872         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
61873         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
61874         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
61875         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
61876         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
61877         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
61878         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
61879         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
61880         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
61881         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
61882         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
61883         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
61884         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
61885         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
61886         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
61887         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
61888         * tests/havelib/rpathx/rpathx.c: New file, from
61889         gettext/autoconf-lib-link.
61890         * tests/havelib/rpathx/Makefile.am: New file, from
61891         gettext/autoconf-lib-link.
61892         * tests/havelib/rpathx/configure.ac: New file, from
61893         gettext/autoconf-lib-link with modifications.
61894         * tests/havelib/rpathy/rpathy.c: New file, from
61895         gettext/autoconf-lib-link.
61896         * tests/havelib/rpathy/Makefile.am: New file, from
61897         gettext/autoconf-lib-link.
61898         * tests/havelib/rpathy/configure.ac: New file, from
61899         gettext/autoconf-lib-link with modifications.
61900         * tests/havelib/rpathz/rpathz.c: New file, from
61901         gettext/autoconf-lib-link.
61902         * tests/havelib/rpathz/Makefile.am: New file, from
61903         gettext/autoconf-lib-link.
61904         * tests/havelib/rpathz/configure.ac: New file, from
61905         gettext/autoconf-lib-link with modifications.
61906         * tests/havelib/rpathlx/usex.c: New file, from
61907         gettext/autoconf-lib-link.
61908         * tests/havelib/rpathlx/Makefile.am: New file, from
61909         gettext/autoconf-lib-link.
61910         * tests/havelib/rpathlx/configure.ac: New file, from
61911         gettext/autoconf-lib-link with modifications.
61912         * tests/havelib/rpathly/usey.c: New file, from
61913         gettext/autoconf-lib-link.
61914         * tests/havelib/rpathly/Makefile.am: New file, from
61915         gettext/autoconf-lib-link.
61916         * tests/havelib/rpathly/configure.ac: New file, from
61917         gettext/autoconf-lib-link with modifications.
61918         * tests/havelib/rpathlz/usez.c: New file, from
61919         gettext/autoconf-lib-link.
61920         * tests/havelib/rpathlz/Makefile.am: New file, from
61921         gettext/autoconf-lib-link.
61922         * tests/havelib/rpathlz/configure.ac: New file, from
61923         gettext/autoconf-lib-link with modifications.
61924         * tests/havelib/rpathlyx/usey.c: New file, from
61925         gettext/autoconf-lib-link.
61926         * tests/havelib/rpathlyx/Makefile.am: New file, from
61927         gettext/autoconf-lib-link.
61928         * tests/havelib/rpathlyx/configure.ac: New file, from
61929         gettext/autoconf-lib-link with modifications.
61930         * tests/havelib/rpathlzyx/usez.c: New file, from
61931         gettext/autoconf-lib-link.
61932         * tests/havelib/rpathlzyx/Makefile.am: New file, from
61933         gettext/autoconf-lib-link.
61934         * tests/havelib/rpathlzyx/configure.ac: New file, from
61935         gettext/autoconf-lib-link with modifications.
61936         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
61937         with modifications.
61939 2010-04-02  Bruno Haible  <bruno@clisp.org>
61941         gnulib-tool: Create distributed built sources also for the tests.
61942         * gnulib-tool (func_create_testdir): Also generate distributed built
61943         sources in the tests directory.
61945 2010-04-02  Bruno Haible  <bruno@clisp.org>
61947         gnulib-tool: Obey user's environment variables.
61948         * gnulib-tool (func_create_testdir): When creating built sources,
61949         respect the environment variables for autoconf, automake, etc. given by
61950         the user.
61952 2010-04-02  Bruno Haible  <bruno@clisp.org>
61954         gnulib-tool: Provide the value of --m4-base to modules.
61955         * gnulib-tool (func_import, func_create_testdir): Emit a definition
61956         of gl_m4_base.
61958 2010-04-02  Eric Blake  <eblake@redhat.com>
61960         maint.mk: fix some fallout
61961         * NEWS: Document the incompatible change, and its effect on cfg.mk.
61962         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
61964 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
61966         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
61967         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
61968         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
61969         (sc_cast_of_x_alloc_return_value): Likewise.
61970         (sc_cast_of_alloca_return_value): Likewise.
61971         (sc_space_tab): Likewise.
61972         (sc_prohibit_atoi_atof): Likewise.
61973         (sc_prohibit_magic_number_exit): Likewise.
61974         (sc_error_exit_success): Likewise.
61975         (sc_file_system): Likewise.
61976         (sc_prohibit_have_config_h): Likewise.
61977         (sc_require_config_h): Likewise.
61978         (sc_prohibit_HAVE_MBRTOWC): Likewise.
61979         (sc_obsolete_symbols): Likewise.
61980         (sc_changelog): Likewise.
61981         (sc_program_name): Likewise.
61982         (sc_the_the): Likewise.
61983         (sc_trailing_blank): Likewise.
61984         (sc_two_space_separator_in_usage): Likewise.
61985         (sc_useless_cpp_parens): Likewise.
61986         (sc_GPL_version): Likewise.
61987         (sc_GFDL_version): Likewise.
61988         (sc_texinfo_acronym): Likewise.
61989         (sc_prohibit_cvs_keyword): Likewise.
61990         (sc_prohibit_stat_st_blocks): Likewise.
61991         (sc_prohibit_S_IS_definition): Likewise.
61992         (sc_redundant_const): Likewise.
61993         (sc_makefile_TAB_only_indentation): Likewise.
61994         (sc_m4_quote_check): Likewise.
61995         (sc_makefile_path_separator_check): Likewise.
61996         (sc_copyright_check): Likewise.
61997         (sc_Wundef_boolean): Likewise.
61998         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
62000         maint.mk: match 0 or more whitespace-before-function-call '('
62001         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
62002         that have zero or two-and-more spaces between the function name
62003         and the open parenthesis.
62004         (sc_error_message_warn_fatal): Likewise.
62005         (sc_error_message_uppercase): Likewise.
62006         (sc_error_message_period): Likewise.
62008 2010-03-31  Eric Blake  <eblake@redhat.com>
62010         maint.mk: check for [ as well as test
62011         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
62012         Based on a libvirt report by Matthias Bolte.
62014         gnumakefile: don't squelch _version output
62015         * top/GNUmakefile (_version): Create one-shot dependency rather
62016         than using $(shell) when version must be regenerated.
62017         (_autoreconf): Run verbosely, by default.
62019         sys_time: avoid compiler warnings
62020         * lib/sys_time.in.h (includes): Ensure gcc pragma is
62021         unconditional, fixing regression from 2010-03-29.
62022         Reported by Simon Josefsson.
62024 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
62026         maint.mk: s/_header_without_use/_sc_header_without_use/
62027         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
62028         (sc_prohibit_assert_without_use): Use the new name.
62029         (sc_prohibit_close_stream_without_use): Likewise.
62030         (sc_prohibit_getopt_without_use): Likewise.
62031         (sc_prohibit_quotearg_without_use): Likewise.
62032         (sc_prohibit_quote_without_use): Likewise.
62033         (sc_prohibit_long_options_without_use): Likewise.
62034         (sc_prohibit_inttostr_without_use): Likewise.
62035         (sc_prohibit_ignore_value_without_use): Likewise.
62036         (sc_prohibit_error_without_use): Likewise.
62037         (sc_prohibit_xalloc_without_use): Likewise.
62038         (sc_prohibit_hash_without_use): Likewise.
62039         (sc_prohibit_hash_pjw_without_use): Likewise.
62040         (sc_prohibit_safe_read_without_use): Likewise.
62041         (sc_prohibit_argmatch_without_use): Likewise.
62042         (sc_prohibit_canonicalize_without_use): Likewise.
62043         (sc_prohibit_root_dev_ino_without_use): Likewise.
62044         (sc_prohibit_openat_without_use): Likewise.
62045         (sc_prohibit_c_ctype_without_use): Likewise.
62046         (sc_prohibit_signal_without_use): Likewise.
62047         (sc_prohibit_intprops_without_use): Likewise.
62049 2010-03-30  Eric Blake  <eblake@redhat.com>
62051         maint: improve module indicators
62052         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
62053         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
62054         columns, and avoid extra macro expansion.
62056         fdopendir: work around FreeBSD bug
62057         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
62058         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
62059         * modules/dirent (Makefile.am): Substitute it.
62060         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
62061         declaration.
62062         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
62063         fix.
62064         Reported by Christian Weisgerber <naddy@mips.inka.de>.
62066 2010-03-29  Bruno Haible  <bruno@clisp.org>
62068         Emit #pragma system_header after the inclusion guard, not before.
62069         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
62070         guard that spans the entire file, not before. This enables an
62071         optimization in GCC's preprocessor.
62072         * lib/ctype.in.h: Likewise.
62073         * lib/dirent.in.h: Likewise.
62074         * lib/errno.in.h: Likewise.
62075         * lib/float.in.h: Likewise.
62076         * lib/getopt.in.h: Likewise.
62077         * lib/iconv.in.h: Likewise.
62078         * lib/langinfo.in.h: Likewise.
62079         * lib/locale.in.h: Likewise.
62080         * lib/math.in.h: Likewise.
62081         * lib/netdb.in.h: Likewise.
62082         * lib/netinet_in.in.h: Likewise.
62083         * lib/pty.in.h: Likewise.
62084         * lib/sched.in.h: Likewise.
62085         * lib/se-selinux.in.h: Likewise.
62086         * lib/search.in.h: Likewise.
62087         * lib/spawn.in.h: Likewise.
62088         * lib/stdarg.in.h: Likewise.
62089         * lib/stdint.in.h: Likewise.
62090         * lib/string.in.h: Likewise.
62091         * lib/strings.in.h: Likewise.
62092         * lib/sys_file.in.h: Likewise.
62093         * lib/sys_ioctl.in.h: Likewise.
62094         * lib/sys_time.in.h: Likewise.
62095         * lib/sys_times.in.h: Likewise.
62096         * lib/sys_utsname.in.h: Likewise.
62097         * lib/sys_wait.in.h: Likewise.
62098         * lib/sysexits.in.h: Likewise.
62099         * lib/wctype.in.h: Likewise.
62101 2010-03-28  James Youngman  <jay@gnu.org>
62103         save-cwd: don't leak a file descriptor when the caller execs.
62104         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
62105         saved file descriptor.
62106         * modules/save-cwd (Depends-on): Depend on cloexec.
62108 2010-03-29  Bruno Haible  <bruno@clisp.org>
62110         Remove vestiges of fts-lgpl module.
62111         * lib/fts_.h: Assume GNULIB_FTS is 1.
62112         * lib/fts.c: Likewise.
62113         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
62115 2010-03-28  Bruno Haible  <bruno@clisp.org>
62117         Fix definition of tests witness macro.
62118         * gnulib-tool (func_import): Fix definition of witness macro.
62120 2010-03-28  Bruno Haible  <bruno@clisp.org>
62122         Fix ioctl's protoype on glibc systems.
62123         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
62124         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
62125         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
62126         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
62127         signature. If not, arrange to replace the ioctl function.
62128         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
62129         REPLACE_IOCTL.
62130         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
62131         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
62132         Reported by Ludovic Courtès <ludo@gnu.org>.
62134 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
62136         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
62137         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
62138         made it so grep -r --include=GLOB* ... did not work.
62140 2010-03-26  Jim Meyering  <meyering@redhat.com>
62141             Eric Blake  <eblake@redhat.com>
62143         maint.mk: prohibit use of test's -o and -a operators
62144         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
62146 2010-03-28  Bruno Haible  <bruno@clisp.org>
62148         Remove unused GNULIB_XYZ macro definitions.
62149         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
62150         invocation.
62152 2010-03-28  Bruno Haible  <bruno@clisp.org>
62154         Mark privileged tests modules.
62155         * modules/idpriv-drop-tests (Status): New section.
62156         * modules/idpriv-droptemp-tests (Status): New section.
62158 2010-03-28  Bruno Haible  <bruno@clisp.org>
62160         Split C++ tests into separate tests modules.
62161         * modules/dirent-c++-tests: New file, extracted from
62162         modules/dirent-tests.
62163         * modules/dirent-tests: Depend on it.
62164         * modules/fcntl-h-c++-tests: New file, extracted from
62165         modules/fcntl-h-tests.
62166         * modules/fcntl-h-tests: Depend on it.
62167         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
62168         * modules/glob-tests: Depend on it.
62169         * modules/iconv-h-c++-tests: New file, extracted from
62170         modules/iconv-h-tests.
62171         * modules/iconv-h-tests: Depend on it.
62172         * modules/langinfo-c++-tests: New file, extracted from
62173         modules/langinfo-tests.
62174         * modules/langinfo-tests: Depend on it.
62175         * modules/locale-c++-tests: New file, extracted from
62176         modules/locale-tests.
62177         * modules/locale-tests: Depend on it.
62178         * modules/math-c++-tests: New file, extracted from modules/math-tests.
62179         * modules/math-tests: Depend on it.
62180         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
62181         * modules/pty-tests: Depend on it.
62182         * modules/search-c++-tests: New file, extracted from
62183         modules/search-tests.
62184         * modules/search-tests: Depend on it.
62185         * modules/signal-c++-tests: New file, extracted from
62186         modules/signal-tests.
62187         * modules/signal-tests: Depend on it.
62188         * modules/spawn-c++-tests: New file, extracted from
62189         modules/spawn-tests.
62190         * modules/spawn-tests: Depend on it.
62191         * modules/stdio-c++-tests: New file, extracted from
62192         modules/stdio-tests.
62193         * modules/stdio-tests: Depend on it.
62194         * modules/stdlib-c++-tests: New file, extracted from
62195         modules/stdlib-tests.
62196         * modules/stdlib-tests: Depend on it.
62197         * modules/string-c++-tests: New file, extracted from
62198         modules/string-tests.
62199         * modules/string-tests: Depend on it.
62200         * modules/sys_ioctl-c++-tests: New file, extracted from
62201         modules/sys_ioctl-tests.
62202         * modules/sys_ioctl-tests: Depend on it.
62203         * modules/sys_select-c++-tests: New file, extracted from
62204         modules/sys_select-tests.
62205         * modules/sys_select-tests: Depend on it.
62206         * modules/sys_socket-c++-tests: New file, extracted from
62207         modules/sys_socket-tests.
62208         * modules/sys_socket-tests: Depend on it.
62209         * modules/sys_stat-c++-tests: New file, extracted from
62210         modules/sys_stat-tests.
62211         * modules/sys_stat-tests: Depend on it.
62212         * modules/sys_time-c++-tests: New file, extracted from
62213         modules/sys_time-tests.
62214         * modules/sys_time-tests: Depend on it.
62215         * modules/time-c++-tests: New file, extracted from modules/time-tests.
62216         * modules/time-tests: Depend on it.
62217         * modules/unistd-c++-tests: New file, extracted from
62218         modules/unistd-tests.
62219         * modules/unistd-tests: Depend on it.
62220         * modules/wchar-c++-tests: New file, extracted from
62221         modules/wchar-tests.
62222         * modules/wchar-tests: Depend on it.
62223         * modules/wctype-c++-tests: New file, extracted from
62224         modules/wctype-tests.
62225         * modules/wctype-tests: Depend on it.
62226         Reported by Simon Josefsson.
62228 2010-03-28  Bruno Haible  <bruno@clisp.org>
62230         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
62231         * gnulib-tool (func_exists_module): New function, extracted from
62232         func_verify_module.
62233         (func_verify_module): Use it.
62234         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
62235         'foo' only if 'foo' exists.
62236         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
62237         module.
62239 2010-03-28  Bruno Haible  <bruno@clisp.org>
62241         gnulib-tool: Add support for special categories of tests.
62242         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
62243         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
62244         (func_usage): Document them.
62245         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
62246         inc_unportable_tests, inc_all_tests): New variables.
62247         (func_acceptable): Consider these variables.
62248         (func_modules_transitive_closure): Make it work when the 'Status' field
62249         consists of multiple words.
62250         (func_import): Store and restore the values of inc_cxx_tests,
62251         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
62252         inc_all_tests in gnulib-comp.m4.
62253         (func_create_testdir): Set inc_all_tests to true.
62254         * doc/gnulib.texi (Extra tests modules): New section.
62255         Suggested by Jim Meyering.
62257 2010-03-28  Bruno Haible  <bruno@clisp.org>
62259         ansi-c++-opt: Allow turning off the C++ build by default.
62260         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
62261         gl_CXX_CHOICE_DEFAULT_NO is defined.
62262         Requested by Eric Blake.
62264 2010-03-28  Bruno Haible  <bruno@clisp.org>
62266         unistd: Avoid #define replacements in C++ mode.
62267         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
62268         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
62269         setsockopt, shutdown, select): In C++, attach a warning to the function
62270         if possible, rather than #defining the symbol to a dysfunctional alias.
62271         Reported by John W. Eaton <jwe@gnu.org>.
62273 2010-03-28  Bruno Haible  <bruno@clisp.org>
62275         Fix link errors on mingw.
62276         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
62277         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
62278         $(LIBSOCKET).
62279         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
62280         $(LIBSOCKET).
62282 2010-03-28  Bruno Haible  <bruno@clisp.org>
62283             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62285         lib-ignore: Determine different options for different compilers.
62286         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
62287         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
62288         Add comments.
62289         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
62290         * NEWS: Mention the change.
62292 2010-03-27  Bruno Haible  <bruno@clisp.org>
62294         Remove unused GNULIB_XYZ macro definitions.
62295         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
62296         * modules/fseek (configure.ac): Likewise.
62297         * modules/ioctl (configure.ac): Likewise.
62298         * modules/open (configure.ac): Likewise.
62299         * modules/stdlib-safer (configure.ac): Likewise.
62301 2010-03-27  Bruno Haible  <bruno@clisp.org>
62303         Add a remark about certain modules.
62304         * modules/malloc (Comment): New section.
62305         * modules/realloc (Comment): Likewise.
62306         * modules/sigpipe (Comment): Likewise.
62308 2010-03-27  Bruno Haible  <bruno@clisp.org>
62310         Resolve conflict between the two kinds of module indicators.
62311         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
62312         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
62313         * modules/canonicalize (configure.ac): Invoke
62314         gl_MODULE_INDICATOR_FOR_TESTS.
62315         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
62316         GNULIB_XYZ.
62317         * tests/test-dirent-c++.cc: Likewise.
62318         * tests/test-dirent-safer.c: Likewise.
62319         * tests/test-dup2.c: Likewise.
62320         * tests/test-fchdir.c: Likewise.
62321         * tests/test-fcntl-h-c++.cc: Likewise.
62322         * tests/test-getopt.c: Likewise.
62323         * tests/test-getopt.h: Likewise.
62324         * tests/test-langinfo-c++.cc: Likewise.
62325         * tests/test-locale-c++.cc: Likewise.
62326         * tests/test-math-c++.cc: Likewise.
62327         * tests/test-pty-c++.cc: Likewise.
62328         * tests/test-search-c++.cc: Likewise.
62329         * tests/test-signal-c++.cc: Likewise.
62330         * tests/test-spawn-c++.cc: Likewise.
62331         * tests/test-stdio-c++.cc: Likewise.
62332         * tests/test-stdlib-c++.cc: Likewise.
62333         * tests/test-string-c++.cc: Likewise.
62334         * tests/test-sys_ioctl-c++.cc: Likewise.
62335         * tests/test-sys_select-c++.cc: Likewise.
62336         * tests/test-sys_socket-c++.cc: Likewise.
62337         * tests/test-sys_stat-c++.cc: Likewise.
62338         * tests/test-sys_time-c++.cc: Likewise.
62339         * tests/test-time-c++.cc: Likewise.
62340         * tests/test-unistd-c++.cc: Likewise.
62341         * tests/test-wchar-c++.cc: Likewise.
62342         * tests/uninorm/test-u8-nfc.c: Likewise.
62343         * tests/uninorm/test-u8-nfd.c: Likewise.
62344         * tests/uninorm/test-u8-nfkc.c: Likewise.
62345         * tests/uninorm/test-u8-nfkd.c: Likewise.
62346         * tests/uninorm/test-u16-nfc.c: Likewise.
62347         * tests/uninorm/test-u16-nfd.c: Likewise.
62348         * tests/uninorm/test-u16-nfkc.c: Likewise.
62349         * tests/uninorm/test-u16-nfkd.c: Likewise.
62350         * tests/uninorm/test-u32-nfc.c: Likewise.
62351         * tests/uninorm/test-u32-nfc-big.c: Likewise.
62352         * tests/uninorm/test-u32-nfd.c: Likewise.
62353         * tests/uninorm/test-u32-nfd-big.c: Likewise.
62354         * tests/uninorm/test-u32-nfkc.c: Likewise.
62355         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
62356         * tests/uninorm/test-u32-nfkd.c: Likewise.
62357         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
62358         * tests/uninorm/test-u32-normalize-big.c: Likewise.
62360 2010-03-27  Bruno Haible  <bruno@clisp.org>
62362         Distinguish two kinds of module indicators.
62363         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
62364         gl_MODULE_INDICATOR.
62365         (gl_MODULE_INDICATOR): New macro.
62366         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
62367         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
62368         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
62369         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
62370         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
62371         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
62372         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
62373         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
62374         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
62375         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
62376         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
62377         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
62378         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
62379         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
62380         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
62381         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
62382         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
62383         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
62384         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
62385         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
62386         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
62387         * modules/cloexec (configure.ac): Likewise.
62388         * modules/getopt-gnu (configure.ac): Likewise.
62389         * modules/uninorm/u8-normalize (configure.ac): Likewise.
62390         * modules/uninorm/u16-normalize (configure.ac): Likewise.
62391         * modules/uninorm/u32-normalize (configure.ac): Likewise.
62392         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
62394 2010-03-27  Bruno Haible  <bruno@clisp.org>
62396         New module description field 'Comment'.
62397         * gnulib-tool: New option --extract-comment.
62398         (func_usage): Document it.
62399         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
62400         (func_get_comment): New function.
62401         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
62403 2010-03-27  Bruno Haible  <bruno@clisp.org>
62405         Addendum to 2010-02-07 commit.
62406         * gnulib-tool (func_usage): Document --extract-applicability option.
62408 2010-03-27  Bruno Haible  <bruno@clisp.org>
62410         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
62411         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
62412         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
62413         rather than link errors.
62415 2010-03-27  Bruno Haible  <bruno@clisp.org>
62417         Avoid side effects from tests-related modules on the compilation of lib.
62418         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
62419         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
62420         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
62421         parameter. Emit into AM_CPPFLAGS a definition of the designated C
62422         macro.
62423         (func_import): Define a witness macro. Assign it a value that depends
62424         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
62425         tests-related modules.
62426         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
62427         Reported by Jim Meyering.
62429 2010-03-27  Bruno Haible  <bruno@clisp.org>
62431         Factorize common .m4 code.
62432         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
62433         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
62434         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
62435         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
62436         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
62437         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
62438         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
62439         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
62440         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
62441         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
62442         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
62443         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
62444         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
62445         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
62446         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
62447         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
62448         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
62449         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
62450         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
62451         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
62452         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
62453         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
62454         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
62455         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
62456         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
62457         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
62458         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
62459         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
62460         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
62461         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
62462         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
62463         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
62465 2010-03-27  Bruno Haible  <bruno@clisp.org>
62467         Fix a compilation error on Cygwin with g++ >= 4.3.
62468         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
62469         if it is undefined or if we alias it to chmod.
62470         (lstat): Don't warn about the use of this function if it is undefined
62471         or if we alias it to stat.
62472         Reported by Simon Josefsson.
62474 2010-03-27  Bruno Haible  <bruno@clisp.org>
62476         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
62477         * modules/getlogin (configure.ac): Update.
62479         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
62480         * modules/getlogin_r (configure.ac): Update.
62482         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
62483         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
62484         * modules/inet_ntop (configure.ac): Update.
62486         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
62487         * modules/inet_pton (configure.ac): Update.
62489         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
62490         * modules/mbslen (configure.ac): Update.
62492         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
62493         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
62494         * modules/forkpty (configure.ac): Update.
62495         * modules/openpty (configure.ac): Update.
62497 2010-03-26  Simon Josefsson  <simon@josefsson.org>
62499         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
62500         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
62502 2010-03-25  Eric Blake  <eblake@redhat.com>
62504         maint: use pragma consistently across replacement headers
62505         * lib/ctype.in.h (system_header): Hoist for consistent placement.
62506         * lib/dirent.in.h (system_header): Likewise.
62507         * lib/errno.in.h (system_header): Likewise.
62508         * lib/float.in.h (system_header): Likewise.
62509         * lib/getopt.in.h (system_header): Likewise.
62510         * lib/iconv.in.h (system_header): Likewise.
62511         * lib/inttypes.in.h (system_header): Likewise.
62512         * lib/langinfo.in.h (system_header): Likewise.
62513         * lib/locale.in.h (system_header): Likewise.
62514         * lib/math.in.h (system_header): Likewise.
62515         * lib/netdb.in.h (system_header): Likewise.
62516         * lib/netinet_in.in.h (system_header): Likewise.
62517         * lib/pty.in.h (system_header): Likewise.
62518         * lib/sched.in.h (system_header): Likewise.
62519         * lib/se-selinux.in.h (system_header): Likewise.
62520         * lib/search.in.h (system_header): Likewise.
62521         * lib/spawn.in.h (system_header): Likewise.
62522         * lib/stdarg.in.h (system_header): Likewise.
62523         * lib/stdint.in.h (system_header): Likewise.
62524         * lib/string.in.h (system_header): Likewise.
62525         * lib/strings.in.h (system_header): Likewise.
62526         * lib/sys_file.in.h (system_header): Likewise.
62527         * lib/sys_ioctl.in.h (system_header): Likewise.
62528         * lib/sys_socket.in.h (system_header): Likewise.
62529         * lib/sys_times.in.h (system_header): Likewise.
62530         * lib/sys_utsname.in.h (system_header): Likewise.
62531         * lib/sys_wait.in.h (system_header): Likewise.
62532         * lib/sysexits.in.h (system_header): Likewise.
62533         * lib/unistd.in.h (system_header): Likewise.
62534         * lib/wctype.in.h (system_header): Likewise.
62536         arpa/inet: fix mingw compilation warning
62537         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
62538         Reported by Matthew Bolte.
62540 2010-03-25  Bruno Haible  <bruno@clisp.org>
62542         Avoid collision between gnulib wrapper and libintl wrapper.
62543         * lib/printf.c (printf): Don't define if a printf wrapper is already
62544         defined in intl/printf.c.
62545         Reported by Michel Boaventura <michel@michelboaventura.com>.
62547 2010-03-25  Bruno Haible  <bruno@clisp.org>
62549         Use ANSI C.
62550         * lib/readutmp.h (getutent): Provide ANSI C prototype.
62552 2010-03-25  Bruno Haible  <bruno@clisp.org>
62554         Minor formatting changes.
62555         * lib/acosl.c: Insert space before function argument list.
62556         * lib/argz.c: Likewise.
62557         * lib/asinl.c: Likewise.
62558         * lib/expl.c: Likewise.
62559         * lib/gen-uni-tables.c: Likewise.
62560         * lib/gettext.h: Likewise.
62561         * lib/glthread/lock.h: Likewise.
62562         * lib/tanl.c: Likewise.
62563         * lib/uniname/uniname.c: Likewise.
62564         * tests/test-idpriv-drop.c: Likewise.
62565         * tests/test-idpriv-droptemp.c: Likewise.
62566         * tests/test-lock.c: Likewise.
62567         * tests/test-tls.c: Likewise.
62568         * lib/argp-help.c: Insert space before function-like macro argument
62569         list.
62570         * lib/memcmp.c: Likewise.
62571         * tests/test-base64.c: Likewise.
62572         * lib/localename.c: Insert space before sizeof's argument list.
62573         * lib/safe-alloc.h: Likewise.
62574         * lib/file-set.h: Insert space before macro argument list.
62575         * tests/test-argp.c: Likewise.
62576         * lib/argp-namefrob.h: Insert space before function parameter list.
62577         * lib/getaddrinfo.c: Likewise.
62578         * lib/netdb.in.h: Likewise.
62579         * lib/parse-duration.h: Likewise.
62580         * lib/parse-duration.c: Likewise.
62581         * lib/poll.c: Likewise.
62582         * lib/select.c: Likewise.
62583         * lib/trim.h: Likewise.
62584         * tests/test-usleep.c: Likewise.
62585         * lib/ldexpl.c: Insert space before function parameter list and before
62586         function argument list.
62587         * lib/logl.c: Likewise.
62588         * lib/sqrtl.c: Likewise.
62589         * lib/trim.c: Likewise.
62590         * lib/cosl.c: Use GNU style indentation. Insert space before function
62591         argument list.
62592         * lib/sinl.c: Likewise.
62593         * lib/tsearch.c: Insert space after 'for'.
62594         Reported by Jim Meyering.
62596 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
62598         * maint.mk (sc_Wundef_boolean): Check for the presence of the
62599         config header before grepping, as it's not present before
62600         autoreconf/configure are run.  Reported by Simon Josefsson.
62602 2010-03-23  Bruno Haible  <bruno@clisp.org>
62604         pt_chown: Make it work with automake < 1.11.
62605         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
62606         Reported by Simon Josefsson.
62608 2010-03-23  Bruno Haible  <bruno@clisp.org>
62610         pt_chown: Don't depend on GPLed modules.
62611         * lib/pt_chown.c: Don't include idpriv.h.
62612         (main): Don't drop privileges.
62613         * modules/pt_chown (Depends-on): Remove idpriv-drop.
62614         Reported by Simon Josefsson.
62616 2010-03-24  Simon Josefsson  <simon@josefsson.org>
62618         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
62619         suggestions from karl@freefriends.org (Karl Berry).
62621 2010-03-22  Eric Blake  <eblake@redhat.com>
62623         gethostname: further tweaks
62624         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
62625         are overriding gethostname.
62626         Suggested by Bruno Haible.
62628 2010-03-21  Bruno Haible  <bruno@clisp.org>
62630         Fix comments.
62631         * lib/forkpty.c (rpl_forkpty): Fix comment.
62632         * lib/openpty.c (rpl_openpty): Likewise.
62633         Reported by Eric Blake.
62635 2010-03-22  Eric Blake  <eblake@redhat.com>
62637         gethostname: fix build on mingw
62638         * lib/unistd.in.h (includes): Work around fact that mingw
62639         <winsock2.h> re-includes <unistd.h>, by avoiding any
62640         redeclarations if we are being included by <winsock2.h>.
62641         Reported by Matthias Bolte.
62643 2010-03-21  Bruno Haible  <bruno@clisp.org>
62645         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
62646         * lib/forkpty.c (forkpty): New replacement function, from glibc with
62647         modifications.
62648         * lib/pty.in.h (forkpty): Update declaration. Add comments.
62649         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
62650         provide the replacement.
62651         * modules/forkpty (Depends-on): Add openpty, login_tty.
62652         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
62653         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
62654         * doc/glibc-functions/forkpty.texi: More supported platforms.
62655         * config/srclist.txt: Add forkpty.c (commented).
62657 2010-03-21  Bruno Haible  <bruno@clisp.org>
62659         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
62660         (Makefile.am): Verify that PTY_LIB is defined.
62662         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
62664 2010-03-21  Bruno Haible  <bruno@clisp.org>
62666         Tests for module 'login_tty'.
62667         * modules/login_tty-tests: New file.
62668         * tests/test-login_tty.c: New file.
62670         New module 'login_tty'.
62671         * lib/login_tty.c: New file.
62672         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
62673         * modules/login_tty: New file.
62674         * doc/glibc-functions/login_tty.texi: Mention the new module.
62676 2010-03-21  Bruno Haible  <bruno@clisp.org>
62678         login_tty: Documentation.
62679         * doc/glibc-functions/login_tty.texi: New file.
62680         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
62682 2010-03-21  Bruno Haible  <bruno@clisp.org>
62684         pty: Consistent macro naming.
62685         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
62686         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
62687         * modules/pty (configure.ac): Update.
62689 2010-03-21  Bruno Haible  <bruno@clisp.org>
62691         Tests for openpty: Make stricter.
62692         * tests/test-openpty.c (main): Add test of canonical processing and
62693         erase.
62694         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
62696         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
62697         * lib/openpty.c (openpty): New replacement function.
62698         * lib/pty.in.h: Include <termios.h>.
62699         (openpty): Update declaration. Add comments.
62700         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
62701         is not declared, arrange to provide the replacement. Check for _getpty
62702         and posix_openpt.
62703         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
62704         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
62705         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
62706         * modules/pty-tests (test_pty_c___LDADD): New variable.
62707         * doc/glibc-functions/openpty.texi: More supported platforms.
62709 2010-03-21  Bruno Haible  <bruno@clisp.org>
62711         setenv: Tweaks.
62712         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
62713         the test program.
62714         * doc/posix-functions/setenv.texi: Update platforms list.
62716 2010-03-21  Bruno Haible  <bruno@clisp.org>
62718         New module 'unlockpt'.
62719         * lib/unlockpt.c: New file, from glibc with modifications.
62720         * m4/unlockpt.m4: New file.
62721         * modules/unlockpt: New file.
62722         * lib/stdlib.in.h (unlockpt): New declaration.
62723         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
62724         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
62725         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
62726         HAVE_UNLOCKPT.
62727         * doc/posix-functions/unlockpt.texi: Mention the new module.
62728         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
62729         * config/srclist.txt: Add unlockpt.c (commented).
62731 2010-03-21  Jim Meyering  <meyering@redhat.com>
62733         maint.mk: prohibit inclusion of "intprops.h" without use
62734         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
62736 2010-03-21  Bruno Haible  <bruno@clisp.org>
62738         New module 'grantpt'.
62739         * lib/grantpt.c: New file, from glibc with modifications.
62740         * m4/grantpt.m4: New file.
62741         * modules/grantpt: New file.
62742         * lib/stdlib.in.h (grantpt): New declaration.
62743         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
62744         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
62745         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
62746         HAVE_GRANTPT.
62747         * doc/posix-functions/grantpt.texi: Mention the new module.
62748         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
62749         * config/srclist.txt: Add grantpt.c (commented).
62751 2010-03-21  Bruno Haible  <bruno@clisp.org>
62753         New module 'pt_chown'.
62754         * lib/pt_chown.c: New file, from glibc with modifications.
62755         * lib/pty-private.h: New file, from glibc with modifications.
62756         * modules/pt_chown: New file.
62757         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
62759 2010-03-21  Bruno Haible  <bruno@clisp.org>
62761         Tests for module 'ptsname'.
62762         * modules/ptsname-tests: New file.
62763         * tests/test-ptsname.c: New file.
62765         New module 'ptsname'.
62766         * lib/ptsname.c: New file, from glibc with modifications.
62767         * m4/ptsname.m4: New file.
62768         * modules/ptsname: New file.
62769         * lib/stdlib.in.h (ptsname): New declaration.
62770         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
62771         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
62772         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
62773         HAVE_PTSNAME.
62774         * doc/posix-functions/ptsname.texi: Mention the new module.
62775         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
62776         * config/srclist.txt: Add ptsname.c (commented).
62778 2010-03-21  Bruno Haible  <bruno@clisp.org>
62780         Tests for module 'ttyname_r'.
62781         * modules/ttyname_r-tests: New file.
62782         * tests/test-ttyname_r.c: New file.
62784         New module 'ttyname_r'.
62785         * lib/ttyname_r.c: New file.
62786         * m4/ttyname_r.m4: New file.
62787         * modules/ttyname_r: New file.
62788         * lib/unistd.in.h (ttyname_r): New declaration.
62789         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
62790         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
62791         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
62792         HAVE_TTYNAME_R.
62793         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
62794         * doc/posix-functions/ttyname_r.texi: Mention the new module.
62796 2010-03-20  Bruno Haible  <bruno@clisp.org>
62798         signal: Undefine macro definitions in C++ mode.
62799         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
62800         sigfillset): Undefine macro definitions from the system header in C++
62801         mode.
62802         Reported by John W. Eaton <jwe@gnu.org>.
62804 2010-03-20  Bruno Haible  <bruno@clisp.org>
62806         Ensure no #include statements inside extern "C" { ... }.
62807         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
62808         contain #include statements.
62809         * lib/time.in.h: Likewise.
62811 2010-03-20  Bruno Haible  <bruno@clisp.org>
62813         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
62814         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
62815         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
62816         Reported by John W. Eaton <jwe@gnu.org>.
62818 2010-03-20  Bruno Haible  <bruno@clisp.org>
62820         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
62821         Reported by Jim Meyering.
62823 2010-03-20  Bruno Haible  <bruno@clisp.org>
62825         pipe: Set errno upon failure.
62826         * lib/pipe.h: Specify that when -1 is returned, errno is set.
62827         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
62828         errno value in error message.
62830 2010-03-20  Bruno Haible  <bruno@clisp.org>
62831             Jim Meyering  <meyering@redhat.com>
62833         lchown: Avoid "unused variable" warning.
62834         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
62836 2010-03-20  Bruno Haible  <bruno@clisp.org>
62838         Work around unlink() bug on MacOS X 10.5.6.
62839         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
62840         attempting to unlink a parent directory.
62841         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
62842         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
62843         activate for the replacement function.
62844         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
62846 2010-03-20  Bruno Haible  <bruno@clisp.org>
62848         Fix link errors on Solaris 8.
62849         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
62850         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
62852 2010-03-19  Jim Meyering  <meyering@redhat.com>
62854         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
62855         The _LIBC implementation of build_range_exp correctly honors the
62856         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
62857         However, the non-_LIBC implementation would ignore that syntax-bit
62858         flag and return REG_ERANGE unconditionally.
62859         This change makes it honor that flag.
62860         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
62861         Make two pointer parameters "const".
62862         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
62863         (parse_bracket_exp): Update caller.
62865         regex.m4: correct the reversed range endpoint ([b-a]) test
62866         * m4/regex.m4: When requiring that [b-a] evoke failure,
62867         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
62868         test pass once again for x86-based systems.
62870 2010-03-19  Bruno Haible  <bruno@clisp.org>
62872         scandir: Fix link error on Solaris 8.
62873         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
62874         macros.
62876 2010-03-19  Bruno Haible  <bruno@clisp.org>
62878         getusershell: Fix documentation.
62879         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
62880         module.
62881         * doc/glibc-functions/setusershell.texi: Likewise.
62883         getusershell: Provide declaration, missing on Solaris 9.
62884         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
62885         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
62886         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
62887         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
62888         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62889         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
62890         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
62891         HAVE_GETUSERSHELL.
62892         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
62894 2010-03-19  Bruno Haible  <bruno@clisp.org>
62896         wctype: Provide iswblank function.
62897         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
62898         exists and is fine.
62899         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
62900         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
62901         * tests/test-wctype.c (main): Re-enable the iswblank tests.
62902         * doc/posix-functions/iswblank.texi: Update.
62904 2010-03-19  Bruno Haible  <bruno@clisp.org>
62906         Tests of module 'pty' in C++ mode.
62907         * modules/pty-tests: New file.
62908         * tests/test-pty-c++.cc: New file.
62909         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
62911 2010-03-19  Eric Blake  <eblake@redhat.com>
62913         logb: fix documentation
62914         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
62915         1.5 declaration bug.
62917         forkpty, openpty: prefer glibc's const-safe prototype
62918         * lib/forkpty.c (rpl_forkpty): New file.
62919         * lib/openpty.c (rpl_openpty): Likewise.
62920         * modules/forkpty (Files): Distribute it.
62921         * modules/openpty (Files): Likewise.
62922         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
62923         check...
62924         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
62925         replacement for non-const BSD signature.
62926         * modules/pty (Makefile.am): Substitute witnesses.
62927         * lib/pty.in.h (forkpty, openpty): Declare replacements.
62928         * tests/test-forkpty.c: Update signature check.
62929         * tests/test-openpty.c: Likewise.
62930         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
62931         * doc/glibc-functions/openpty.texi (openpty): Likewise.
62933         forkpty, openpty: split functions into new modules
62934         * modules/pty (Makefile.am): Substitute new witnesses.
62935         (Libraries): Move library detection...
62936         * modules/forkpty: ...into new module.
62937         * modules/openpty: Another new module.
62938         * modules/pty-tests: Rename and split...
62939         * modules/forkpty-tests: ...to this...
62940         * modules/openpty-tests: ...and this.
62941         * tests/test-pty.c: Rename and split...
62942         * tests/test-forkpty.c: ...to this...
62943         * tests/test-openpty.c: ...and this.
62944         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
62945         (gl_PTY): Split library searching...
62946         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
62947         (gl_FORKPTY, gl_OPENPTY): New macros.
62948         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
62949         * NEWS: Mention the split.
62950         * MODULES.html.sh (Misc): Document the modules.
62951         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
62952         * doc/glibc-functions/openpty.texi (openpty): Likewise.
62954         pty: improve replacement header
62955         * lib/pty.in.h: New file.
62956         * modules/pty (Files): Ship it.
62957         (Makefile.am): Always build replacement.
62958         * m4/pty.m4: Rename...
62959         * m4/pty_h.m4: ...to this.
62960         (gl_PTY): Modernize setting of witness macros; update check of
62961         forkpty to take proper advantage of cache.
62962         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
62964         getopt: avoid compiler warning
62965         * lib/getopt.c (attribute_hidden): Remove unused macro.
62967 2010-03-18  Bruno Haible  <bruno@clisp.org>
62969         Fix link errors on Solaris 8.
62970         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
62971         * modules/search-tests (test_search_c___LDADD): Likewise.
62972         * modules/signal-tests (test_signal_c___LDADD): Likewise.
62973         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
62974         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
62975         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
62976         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
62977         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
62978         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
62980 2010-03-18  Bruno Haible  <bruno@clisp.org>
62982         Fix bug introduced on 2010-03-14.
62983         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
62984         (gl_SPAWN_H): Require it.
62985         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
62986         Reported by Simon Josefsson.
62988 2010-03-18  Bruno Haible  <bruno@clisp.org>
62990         Fix typo introduced on 2009-12-31.
62991         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
62992         posix_spawn_file_actions_adddup2.
62994 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
62995         and Eric Blake  <eblake@redhat.com>
62997         test-vc-list-files-git: make more robust
62998         * tests/test-vc-list-files-git.sh: Unset problematic environment
62999         variables.  Chain commands together.
63001 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
63003         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
63004         `AC_CHECK_DECL' invocation.
63006 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
63008         * lib/inttostr.c (inttostr): Make sure the invocation of verify
63009         appears before executable statements. Suggested by Petr Sumbera
63010         <Petr.Sumbera@Sun.COM>.
63012 2010-03-14  Bruno Haible  <bruno@clisp.org>
63014         * tests/test-flock.c (test_exclusive): Comment out a test that causes
63015         portability problems. Instead use a simpler test.
63016         (main): Check that invalid arguments are rejected only on Linux.
63018 2010-03-14  Bruno Haible  <bruno@clisp.org>
63020         Fix bug introduced on 2009-12-31.
63021         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
63022         gl_PREREQ_SYS_H_WINSOCK2 always.
63023         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
63024         SYS_SOCKET_H variable.
63025         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
63026         Update comments.
63027         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
63028         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
63029         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
63030         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
63031         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
63033 2010-03-14  Bruno Haible  <bruno@clisp.org>
63035         Fix values returned by sinl, cosl.
63036         * lib/trigl.h: Add specification comments.
63037         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
63038         that combines the values from the precomputed table with the values of
63039         the Chebyshev polynomials.
63041 2010-03-14  Bruno Haible  <bruno@clisp.org>
63043         Fix compilation error when modules 'posix_spawn[p]' are not used.
63044         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
63045         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
63047 2010-03-14  Bruno Haible  <bruno@clisp.org>
63049         Fix compilation error on mingw when module 'time_r' is not used.
63050         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
63051         is 1.
63052         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
63053         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
63054         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
63055         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
63057 2010-03-14  Bruno Haible  <bruno@clisp.org>
63059         Fix compilation error with Sun C.
63060         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
63061         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
63062         instead of GCC specific ULONG_LONG_MAX.
63063         * lib/xstrtoll.c: Likewise.
63064         * lib/xstrtoull.c: Likewise.
63066 2010-03-13  Bruno Haible  <bruno@clisp.org>
63068         Allow the user to disable C++ code and tests.
63069         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
63070         (gl_PROG_ANSI_CXX): Require it.
63072 2010-03-13  Bruno Haible  <bruno@clisp.org>
63074         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
63075         cases.
63077 2010-03-13  Bruno Haible  <bruno@clisp.org>
63079         Test that gnulib does not break the standard C++ headers.
63080         * tests/test-locale-c++2.cc: New file.
63081         * modules/locale-tests (Files): Add it.
63082         (Makefile.am): Compile it for test-locale-c++.
63083         * tests/test-math-c++2.cc: New file.
63084         * modules/math-tests (Files): Add it.
63085         (Makefile.am): Compile it for test-math-c++.
63086         * tests/test-signal-c++2.cc: New file.
63087         * modules/signal-tests (Files): Add it.
63088         (Makefile.am): Compile it for test-signal-c++.
63089         * tests/test-stdio-c++2.cc: New file.
63090         * modules/stdio-tests (Files): Add it.
63091         (Makefile.am): Compile it for test-stdio-c++.
63092         * tests/test-stdlib-c++2.cc: New file.
63093         * modules/stdlib-tests (Files): Add it.
63094         (Makefile.am): Compile it for test-stdlib-c++.
63095         * tests/test-string-c++2.cc: New file.
63096         * modules/string-tests (Files): Add it.
63097         (Makefile.am): Compile it for test-string-c++.
63098         * tests/test-time-c++2.cc: New file.
63099         * modules/time-tests (Files): Add it.
63100         (Makefile.am): Compile it for test-time-c++.
63101         Reported by John W. Eaton <jwe@gnu.org>.
63103 2010-03-13  Bruno Haible  <bruno@clisp.org>
63105         * gnulib-tool (func_usage): Clarify which options are available for
63106         --create-testdir and --create-megatestdir.
63108 2010-03-13  Bruno Haible  <bruno@clisp.org>
63110         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
63111         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
63112         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
63113         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
63114         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
63115         when appropriate.
63116         Reported by Jim Meyering.
63118 2010-03-12  Simon Josefsson  <simon@josefsson.org>
63120         * gnulib-tool (func_import): Explain origin of code.
63122 2010-03-12  Bruno Haible  <bruno@clisp.org>
63124         Fix problem with automake's definition of CXXLINK.
63125         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
63126         Reported by Simon Josefsson and Ludovic Courtès.
63128 2010-03-12  Bruno Haible  <bruno@clisp.org>
63130         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
63131         stable releases.
63133 2010-03-11  Bruno Haible  <bruno@clisp.org>
63135         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
63136         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
63137         whether the system provides one variant or multiple variants of the
63138         function.
63139         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
63140         C++ compilers.
63141         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
63142         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
63143         Reported by Jim Meyering.
63145 2010-03-09  Simon Josefsson  <simon@josefsson.org>
63147         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
63149 2010-03-08  Bruno Haible  <bruno@clisp.org>
63151         gnulib-tool: Add support for --libtool in --create-testdir.
63152         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
63153         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
63155 2010-03-08  Eric Blake  <eblake@redhat.com>
63157         gnulib-tool.texi: mention possibility of git submodule
63158         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
63159         submodules.
63160         * doc/.gitignore: Ignore another generated file.
63162 2010-03-08  Karl Berry  <karl@gnu.org>
63164         * doc/gnulib-tool.texi (VCS Issues): Mention third option
63165         of committing gnulib files while skipping others.
63167 2010-03-07  Bruno Haible  <bruno@clisp.org>
63169         Tests of module 'wctype' in C++ mode.
63170         * tests/test-wctype-c++.cc: New file.
63171         * modules/wctype-tests (Files): Add it and tests/signature.h.
63172         (Depends-on): Add ansi-c++-opt.
63173         (Makefile.am): Arrange to compile and run test-wctype-c++.
63175         Tests of module 'wchar' in C++ mode.
63176         * tests/test-wchar-c++.cc: New file.
63177         * modules/wchar-tests (Files): Add it and tests/signature.h.
63178         (Depends-on): Add ansi-c++-opt.
63179         (Makefile.am): Arrange to compile and run test-wchar-c++.
63180         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
63181         gl_MODULE_INDICATOR.
63183         Tests of module 'unistd' in C++ mode.
63184         * tests/test-unistd-c++.cc: New file.
63185         * modules/unistd-tests (Files): Add it and tests/signature.h.
63186         (Depends-on): Add ansi-c++-opt.
63187         (Makefile.am): Arrange to compile and run test-unistd-c++.
63188         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
63189         gl_MODULE_INDICATOR.
63191         Tests of module 'time' in C++ mode.
63192         * tests/test-time-c++.cc: New file.
63193         * modules/time-tests (Files): Add it and tests/signature.h.
63194         (Depends-on): Add ansi-c++-opt.
63195         (Makefile.am): Arrange to compile and run test-time-c++.
63196         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
63198         Tests of module 'sys_time' in C++ mode.
63199         * tests/test-sys_time-c++.cc: New file.
63200         * modules/sys_time-tests (Files): Add it and tests/signature.h.
63201         (Depends-on): Add ansi-c++-opt.
63202         (Makefile.am): Arrange to compile and run test-sys_time-c++.
63203         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
63204         gl_MODULE_INDICATOR.
63206         Tests of module 'sys_stat' in C++ mode.
63207         * tests/test-sys_stat-c++.cc: New file.
63208         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
63209         (Depends-on): Add ansi-c++-opt.
63210         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
63211         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
63212         gl_MODULE_INDICATOR.
63214         Tests of module 'sys_socket' in C++ mode.
63215         * tests/test-sys_socket-c++.cc: New file.
63216         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
63217         (Depends-on): Add ansi-c++-opt.
63218         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
63219         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
63220         gl_MODULE_INDICATOR.
63222         Tests of module 'sys_select' in C++ mode.
63223         * tests/test-sys_select-c++.cc: New file.
63224         * modules/sys_select-tests (Files): Add it and tests/signature.h.
63225         (Depends-on): Add ansi-c++-opt.
63226         (Makefile.am): Arrange to compile and run test-sys_select-c++.
63227         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
63228         gl_MODULE_INDICATOR.
63230         Tests of module 'sys_ioctl' in C++ mode.
63231         * tests/test-sys_ioctl-c++.cc: New file.
63232         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
63233         (Depends-on): Add ansi-c++-opt.
63234         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
63235         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
63236         gl_MODULE_INDICATOR.
63238         Tests of module 'string' in C++ mode.
63239         * tests/test-string-c++.cc: New file.
63240         * modules/string-tests (Files): Add it and tests/signature.h.
63241         (Depends-on): Add ansi-c++-opt.
63242         (Makefile.am): Arrange to compile and run test-string-c++.
63243         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
63244         gl_MODULE_INDICATOR.
63246         Tests of module 'stdlib' in C++ mode.
63247         * tests/test-stdlib-c++.cc: New file.
63248         * modules/stdlib-tests (Files): Add it and tests/signature.h.
63249         (Depends-on): Add ansi-c++-opt.
63250         (Makefile.am): Arrange to compile and run test-stdlib-c++.
63251         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
63252         gl_MODULE_INDICATOR.
63254         Tests of module 'stdio' in C++ mode.
63255         * tests/test-stdio-c++.cc: New file.
63256         * modules/stdio-tests (Files): Add it and tests/signature.h.
63257         (Depends-on): Add ansi-c++-opt.
63258         (Makefile.am): Arrange to compile and run test-stdio-c++.
63259         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
63260         gl_MODULE_INDICATOR.
63262         Tests of module 'spawn' in C++ mode.
63263         * tests/test-spawn-c++.cc: New file.
63264         * modules/spawn-tests (Files): Add it and tests/signature.h.
63265         (Depends-on): Add ansi-c++-opt.
63266         (Makefile.am): Arrange to compile and run test-spawn-c++.
63267         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
63268         gl_MODULE_INDICATOR.
63270         Tests of module 'signal' in C++ mode.
63271         * tests/test-signal-c++.cc: New file.
63272         * modules/signal-tests (Files): Add it and tests/signature.h.
63273         (Depends-on): Add ansi-c++-opt.
63274         (Makefile.am): Arrange to compile and run test-signal-c++.
63275         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
63276         gl_MODULE_INDICATOR.
63278         Tests of module 'search' in C++ mode.
63279         * tests/test-search-c++.cc: New file.
63280         * modules/search-tests (Files): Add it and tests/signature.h.
63281         (Depends-on): Add ansi-c++-opt.
63282         (Makefile.am): Arrange to compile and run test-search-c++.
63283         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
63284         gl_MODULE_INDICATOR.
63286         Tests of module 'math' in C++ mode.
63287         * tests/test-math-c++.cc: New file.
63288         * modules/math-tests (Files): Add it and tests/signature.h.
63289         (Depends-on): Add ansi-c++-opt.
63290         (Makefile.am): Arrange to compile and run test-math-c++.
63291         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
63293         Tests of module 'locale' in C++ mode.
63294         * tests/test-locale-c++.cc: New file.
63295         * modules/locale-tests (Files): Add it and tests/signature.h.
63296         (Depends-on): Add ansi-c++-opt.
63297         (Makefile.am): Arrange to compile and run test-locale-c++.
63298         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
63299         gl_MODULE_INDICATOR.
63301         Tests of module 'langinfo' in C++ mode.
63302         * tests/test-langinfo-c++.cc: New file.
63303         * modules/langinfo-tests (Files): Add it and tests/signature.h.
63304         (Depends-on): Add ansi-c++-opt.
63305         (Makefile.am): Arrange to compile and run test-langinfo-c++.
63306         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
63307         gl_MODULE_INDICATOR.
63309         Tests of module 'iconv-h' in C++ mode.
63310         * tests/test-iconv-h-c++.cc: New file.
63311         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
63312         (Depends-on): Add ansi-c++-opt.
63313         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
63315         Tests of module 'glob' in C++ mode.
63316         * tests/test-glob-c++.cc: New file.
63317         * modules/glob-tests (Files): Add it.
63318         (Depends-on): Add ansi-c++-opt.
63319         (Makefile.am): Arrange to compile and run test-glob-c++.
63321         Tests of module 'fcntl-h' in C++ mode.
63322         * tests/test-fcntl-h-c++.cc: New file.
63323         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
63324         (Depends-on): Add ansi-c++-opt.
63325         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
63326         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
63327         gl_MODULE_INDICATOR.
63329         Tests of module 'dirent' in C++ mode.
63330         * tests/test-dirent-c++.cc: New file.
63331         * modules/dirent-tests (Files): Add it and tests/signature.h.
63332         (Depends-on): Add ansi-c++-opt.
63333         (Makefile.am): Arrange to compile and run test-dirent-c++.
63334         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
63335         gl_MODULE_INDICATOR.
63337         New module 'ansi-c++-opt'.
63338         * modules/ansi-c++-opt: New file.
63339         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
63341         Document C++ namespace mode.
63342         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
63344         wctype: Avoid #define replacements in C++ mode.
63345         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
63346         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
63347         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
63348         In C++, define a namespaced alias symbol.
63349         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
63350         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
63351         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
63352         rule.
63354         wchar: Avoid #define replacements in C++ mode.
63355         * lib/wchar.in.h: Include c++defs.h.
63356         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
63357         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
63358         symbol.
63359         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
63360         * modules/wchar (Depends-on): Add c++defs.
63361         (Makefile.am): Update wchar.h rule.
63363         unistd: Avoid #define replacements in C++ mode.
63364         * lib/unistd.in.h: Include c++defs.h.
63365         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
63366         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
63367         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
63368         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
63369         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
63370         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
63371         symbol.
63372         (environ): Update.
63373         * modules/unistd (Depends-on): Add c++defs.
63374         (Makefile.am): Update unistd.h rule.
63376         time: Avoid #define replacements in C++ mode.
63377         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
63378         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
63379         define a namespaced alias symbol.
63380         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
63381         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
63382         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
63383         * modules/time (Depends-on): Add c++defs, warn-on-use.
63384         (Makefile.am): Update time.h rule.
63385         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
63386         * modules/nanosleep (configure.ac): Likewise.
63387         * modules/strptime (configure.ac): Likewise.
63388         * modules/timegm (configure.ac): Likewise.
63390         sys_time: Avoid #define replacements in C++ mode.
63391         * lib/sys_time.in.h: Include c++defs.h.
63392         (gettimeofday): In C++, define a namespaced alias symbol.
63393         * modules/sys_time (Depends-on): Add c++defs.
63394         (Makefile.am): Update sys/time.h rule.
63396         sys_stat: Avoid #define replacements in C++ mode.
63397         * lib/sys_stat.in.h: Include c++defs.h.
63398         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
63399         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
63400         namespaced alias symbol.
63401         In C++, define a namespaced alias symbol.
63402         * modules/sys_stat (Depends-on): Add c++defs.
63403         (Makefile.am): Update sys/stat.h rule.
63405         sys_socket: Avoid #define replacements in C++ mode.
63406         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
63407         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
63408         definitions also when the system has a <sys/socket.h>.
63409         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
63410         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
63411         In C++, define a namespaced alias symbol.
63412         * modules/sys_socket (Depends-on): Add c++defs.
63413         (Makefile.am): Update sys/socket.h rule.
63415         sys_select: Avoid #define replacements in C++ mode.
63416         * lib/sys_select.in.h: Include c++defs.h. Enable the function
63417         definitions also when the system has a <sys/select.h>.
63418         (select): In C++, define a namespaced alias symbol.
63419         * modules/sys_select (Depends-on): Add c++defs.
63420         (Makefile.am): Update sys/select.h rule.
63422         sys_ioctl: Avoid #define replacements in C++ mode.
63423         * lib/sys_ioctl.in.h: Include c++defs.h.
63424         (ioctl): In C++, define a namespaced alias symbol.
63425         * modules/sys_ioctl (Depends-on): Add c++defs.
63426         (Makefile.am): Update sys/ioctl.h rule.
63428         string: Avoid #define replacements in C++ mode.
63429         * lib/string.in.h: Include c++defs.h.
63430         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
63431         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
63432         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
63433         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
63434         strsignal, strverscmp): In C++, define a namespaced alias symbol.
63435         * modules/string (Depends-on): Add c++defs.
63436         (Makefile.am): Update string.h rule.
63438         stdlib: Avoid #define replacements in C++ mode.
63439         * lib/stdlib.in.h: Include c++defs.h.
63440         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
63441         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
63442         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
63443         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
63444         symbol.
63445         * modules/stdlib (Depends-on): Add c++defs.
63446         (Makefile.am): Update stdlib.h rule.
63448         stdio: Avoid #define replacements in C++ mode.
63449         * lib/stdio.in.h: Include c++defs.h.
63450         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
63451         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
63452         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
63453         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
63454         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
63455         namespaced alias symbol.
63456         * modules/stdio (Depends-on): Add c++defs.
63457         (Makefile.am): Update stdio.h rule.
63459         spawn: Avoid #define replacements in C++ mode.
63460         * lib/spawn.in.h: Include c++defs.h.
63461         (posix_spawn, posix_spawnp, posix_spawnattr_init,
63462         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
63463         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
63464         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
63465         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
63466         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
63467         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
63468         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
63469         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
63470         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
63471         In C++, define a namespaced alias symbol.
63472         * modules/spawn (Depends-on): Add c++defs.
63473         (Makefile.am): Update spawn.h rule.
63475         signal: Avoid #define replacements in C++ mode.
63476         * lib/signal.in.h: Include c++defs.h.
63477         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
63478         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
63479         namespaced alias symbol.
63480         * modules/signal (Depends-on): Add c++defs.
63481         (Makefile.am): Update signal.h rule.
63483         search: Avoid #define replacements in C++ mode.
63484         * lib/search.in.h: Include c++defs.h.
63485         (_gl_search_compar_fn, _gl_search_action_fn): New types.
63486         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
63487         symbol.
63488         * modules/search (Depends-on): Add c++defs.
63489         (Makefile.am): Update search.h rule.
63491         math: Avoid #define replacements in C++ mode.
63492         * lib/math.in.h: Include c++defs.h.
63493         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
63494         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
63495         trunc, truncl): In C++, define a namespaced alias symbol.
63496         * modules/math (Depends-on): Add c++defs.
63497         (Makefile.am): Update math.h rule.
63499         locale: Avoid #define replacements in C++ mode.
63500         * lib/locale.in.h: Include c++defs.h.
63501         (duplocale): In C++, define a namespaced alias symbol.
63502         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
63503         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
63504         * modules/locale (Depends-on): Add c++defs.
63505         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
63507         langinfo: Avoid #define replacements in C++ mode.
63508         * lib/langinfo.in.h: Include c++defs.h.
63509         (nl_langinfo): In C++, define a namespaced alias symbol.
63510         * modules/langinfo (Depends-on): Add c++defs.
63511         (Makefile.am): Update langinfo.h rule.
63513         iconv-h: Avoid #define replacements in C++ mode.
63514         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
63515         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
63516         symbol.
63517         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
63518         whenever iconv is present.
63519         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
63520         (Makefile.am): Update iconv.h rule.
63522         glob: Avoid #define replacements in C++ mode.
63523         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
63524         (_gl_glob_errfunc_fn): New type.
63525         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
63526         symbol.
63527         * modules/glob (Depends-on): Add c++defs, warn-on-use.
63528         (Makefile.am): Update glob.h rule.
63530         fcntl-h: Avoid #define replacements in C++ mode.
63531         * lib/fcntl.in.h: Include c++defs.h.
63532         (fcntl, open, openat): In C++, define a namespaced alias symbol.
63533         * modules/fcntl-h (Depends-on): Add c++defs.
63534         (Makefile.am): Update fcntl.h rule.
63536         dirent: Avoid #define replacements in C++ mode.
63537         * lib/dirent.in.h: Include c++defs.h.
63538         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
63539         namespaced alias symbol.
63540         (dirfd): Update declaration.
63541         * modules/dirent (Depends-on): Add c++defs.
63542         (Makefile.am): Update dirent.h rule.
63544         ctype: Make it usable in C++ code.
63545         * lib/ctype.in.h: Include c++defs.h.
63546         (isblank): Declare as extern "C".
63547         * modules/ctype (Depends-on): Add c++defs.
63548         (Makefile.am): Update ctype.h rule.
63550         New module 'c++defs'.
63551         * modules/c++defs: New file.
63552         * build-aux/c++defs.h: New file.
63553         Reported by John W. Eaton <jwe@gnu.org>.
63555 2010-03-07  Bruno Haible  <bruno@clisp.org>
63557         logb: Provide missing declaration for Cygwin.
63558         * lib/math.in.h (logb): New declaration.
63559         * m4/logb.m4: New file.
63560         * modules/logb (Files): Add m4/logb.m4.
63561         (Depends-on): Add math.
63562         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
63563         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
63564         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
63565         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
63566         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
63568 2010-03-07  Bruno Haible  <bruno@clisp.org>
63570         Fix test-cond link error.
63571         * tests/test-cond.c: Include <stdio.h>.
63573 2010-03-07  Bruno Haible  <bruno@clisp.org>
63575         Fix test-dirent-safer link error.
63576         * modules/dirent-safer-tests (Makefile.am): Define
63577         test_dirent_safer_LDADD.
63579 2010-03-07  Bruno Haible  <bruno@clisp.org>
63581         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
63582         among default module list.
63584 2010-03-07  Bruno Haible  <bruno@clisp.org>
63586         Fix link error on platforms with GNU libiconv.
63587         * modules/unistr/u8-strcoll-tests (Makefile): Define
63588         test_u8_strcoll_LDADD.
63589         * modules/unistr/u16-strcoll-tests (Makefile): Define
63590         test_u16_strcoll_LDADD.
63591         * modules/unistr/u32-strcoll-tests (Makefile): Define
63592         test_u32_strcoll_LDADD.
63594 2010-03-07  Bruno Haible  <bruno@clisp.org>
63596         Use POSIX declarations for socket functions.
63597         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
63598         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
63599         rpl_sendto): Change declaration to match POSIX.
63600         * lib/connect.c (rpl_connect): Likewise.
63601         * lib/accept.c (rpl_accept): Likewise.
63602         * lib/bind.c (rpl_bind): Likewise.
63603         * lib/getpeername.c (rpl_getpeername): Likewise.
63604         * lib/getsockname.c (rpl_getsockname): Likewise.
63605         * lib/recv.c (rpl_recv): Likewise.
63606         * lib/send.c (rpl_send): Likewise.
63607         * lib/recvfrom.c (rpl_recvfrom): Likewise.
63608         * lib/sendto.c (rpl_sendto): Likewise.
63610 2010-03-06  Bruno Haible  <bruno@clisp.org>
63612         Clarify access, euidaccess, faccessat.
63613         * doc/posix-functions/faccessat.texi: Mention security problem under
63614         "Other problems", not "Portability problems".
63615         * doc/posix-functions/access.texi: Likewise. Mention a related security
63616         problem.
63617         * doc/glibc-functions/euidaccess.texi: Mention security problems.
63618         * lib/euidaccess.c: Add comments about platforms.
63619         * lib/unistd.in.h (access, euidaccess): Add warnings.
63621 2010-03-07  Bruno Haible  <bruno@clisp.org>
63623         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
63624         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
63625         (POSIX_SPAWN_SETSCHEDULER): Likewise.
63626         (POSIX_SPAWN_USEVFORK): Define in a way that works when
63627         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
63628         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
63629         declare when POSIX_SPAWN_SETSCHEDULER is zero.
63630         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
63631         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
63632         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
63633         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
63634         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
63635         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
63636         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
63637         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
63638         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
63639         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
63640         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
63641         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
63642         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
63643         Likewise.
63644         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
63645         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
63646         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
63647         Likewise.
63648         * tests/test-spawn.c (main): Make it work when
63649         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
63651 2010-03-07  Bruno Haible  <bruno@clisp.org>
63653         Fix incorrect Makefile.am generation in German locale.
63654         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63655         Execute sed command with character range in C locale.
63657 2010-03-06  Bruno Haible  <bruno@clisp.org>
63659         Tests for module 'iconv-h'.
63660         * modules/iconv-h-tests: New file.
63661         * tests/test-iconv-h.c: New file.
63663         New module 'iconv-h'.
63664         * modules/iconv-h: New file.
63665         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
63666         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
63667         (configure.ac): Remove gl_ICONV_H.
63668         (Makefile.am): Remove rule for iconv.h.
63670 2010-03-06  Bruno Haible  <bruno@clisp.org>
63672         More consistent naming of *.m4 files.
63673         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
63674         * modules/wctype (Files): Update.
63676         More consistent naming of *.m4 files.
63677         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
63678         * modules/wchar (Files): Update.
63680 2010-03-06  Jim Meyering  <meyering@redhat.com>
63682         euidaccess: relax license to LGPLv2+
63683         * modules/euidaccess (License): Relax to LGPLv2+.
63685 2010-03-06  Bruno Haible  <bruno@clisp.org>
63687         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
63688         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
63689         (Makefile.am): Augment lib_SOURCES instead.
63691 2010-03-04  Jim Meyering  <meyering@redhat.com>
63693         utime: remove obsolete module
63694         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
63695         unnecessary for years, and has been marked as obsolete for 10 months.
63696         * modules/utime: Remove file.
63697         * lib/utime.c: Remove file.
63698         * m4/utime.m4: Remove file.
63699         * m4/utimes-null.m4: Remove file.
63700         * doc/posix-functions/utime.texi (utime): Remove reference to
63701         the module.  Move the sole "fixed by gnulib" item into the
63702         "problems not fixed by Gnulib" list.
63703         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
63705 2010-03-05  Simon Josefsson  <simon@josefsson.org>
63707         * modules/exit (License): Relax license to LGPLv2+.
63708         (Status): Mark as obsolete.
63709         * NEWS: Mention deprecated 'exit' module.
63710         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
63711         of now obsolete 'exit'.
63713 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63715         fts-lgpl: remove unused module
63716         * modules/fts-lgpl: Remove.
63717         * MODULES.html.sh (func_all_modules): Adjust.
63718         * check-module (find_included_lib_files): Adjust.
63719         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
63721 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
63723         copy-acl: enhance Solaris ACL error handling
63724         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
63725         * lib/set-mode-acl.c (qset_acl): Likewise.
63727 2010-03-02  Bruno Haible  <bruno@clisp.org>
63729         spawn: Don't override the system defined values on FreeBSD 8.
63730         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
63731         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
63732         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
63733         if HAVE_POSIX_SPAWN is 1.
63734         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
63736 2010-03-01  Bruno Haible  <bruno@clisp.org>
63738         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
63739         regarding Automake.
63741 2010-02-25  Bruno Haible  <bruno@clisp.org>
63743         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
63744         * gnulib-tool: Define 'echo' as a function only before the ksh alias
63745         setting, not afterwards.
63746         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
63748 2010-02-24  Eric Blake  <eblake@redhat.com>
63750         bootstrap, git-version-gen: use timestamp
63751         * build-aux/git-version-gen (scriptversion): Force UTC.
63752         * build-aux/bootstrap (scriptversion): New variable.
63754         bootstrap: allow older git
63755         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
63756         older than 1.6.4.  Requested by the libvirt project.
63758 2010-02-23  Eric Blake  <eblake@redhat.com>
63760         warn-on-use: work with old autoconf
63761         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
63762         AS_VAR semantics of autoconf 2.60.
63763         Reported by Bruno Haible.
63765         bootstrap: improve some comments
63766         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
63767         clarification comments.
63769         gettimeofday: provide correct function
63770         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
63771         when replacement is declared, otherwise provide gettimeofday.
63772         Reported by Michael Goffioul.
63774 2010-02-23  Jim Meyering  <meyering@redhat.com>
63776         lib-ignore: relax license to "unlimited", not LGPLv2+
63777         * modules/lib-ignore (License): Relax to "unlimited".
63779 2010-02-23  Jim Meyering  <meyering@redhat.com>
63781         lib-ignore: relax license to LGPLv2+
63782         * modules/lib-ignore (License): Relax to LGPLv2+.
63784 2010-02-22  Eric Blake  <eblake@redhat.com>
63786         lseek: avoid bash 3.2 broken pipe bug
63787         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
63788         warning from bash 3.2.
63789         Reported by Ben Pfaff, with analysis from Bruno Haible.
63791         bootstrap: support non-FSF copyright holder
63792         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
63793         bootstrap.conf override of COPYRIGHT_HOLDER.
63794         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
63796         bootstrap: interoperate with gettext 0.14.1
63797         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
63799         bootstrap: allow for alternate submodule location
63800         * build-aux/bootstrap (gnulib_path): New variable; use instead of
63801         hardcoding submodule location.
63802         (gnulib_mk): Allow direct use of Makefile.am.
63804         bootstrap: use GNULIB_SRCDIR to reduce disk usage
63805         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
63806         rather than reconfiguring where the submodule points.
63808         gettimeofday: restore support for platforms that lack function
63809         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
63810         replacement if function is missing.
63811         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
63812         * modules/sys_time (Makefile.am): Substitute it.
63813         * lib/sys_time.in.h (gettimeofday): Check it.
63814         Reported by Michael Goffioul.
63816 2010-02-21  Bruno Haible  <bruno@clisp.org>
63818         * lib/stdio.in.h (obstack_printf): Fix typo.
63820 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
63822         vc-list-files: use bzr ls's -R option
63823         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
63824         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
63826 2010-02-21  Jim Meyering  <meyering@redhat.com>
63828         init.sh: fix EXEEXT shims to work also for names like test-prog
63829         * tests/init.sh: Re-exec a better shell, when needed.
63830         If the current shell lacks support for posix $(...), an init.sh-using
63831         test will now try to find a shell that supports that.  If EXEEXT is
63832         nonempty, we also require support for hyphen-in-alias-name and shell
63833         substitutions like ${var#glob}.  Failure to find such a shell results
63834         in a skipped test.
63836 2010-02-21  Bruno Haible  <bruno@clisp.org>
63838         Really work around "broken pipe" error message from bash 3.2.
63839         * gnulib-tool (func_reset_sigpipe): Remove function.
63840         (echo): In bash 3.2, define to a function that uses printf.
63841         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
63843 2010-02-20  Bruno Haible  <bruno@clisp.org>
63845         Restore support for automake 1.9.6 with autoconf 2.61.
63846         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
63847         Reported by James Youngman <jay@gnu.org>.
63849 2010-02-20  Bruno Haible  <bruno@clisp.org>
63851         Improve *printf warning condition.
63852         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
63853         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
63854         and the function is overridden due to SIGPIPE emulation.
63856 2010-02-20  Bruno Haible  <bruno@clisp.org>
63858         * lib/stdio.in.h: Tweak comments.
63860 2010-02-19  Bruno Haible  <bruno@clisp.org>
63862         Make it easier to find modules. New gnulib-tool option '--find'.
63863         * gnulib-tool: New option --find.
63864         (func_usage): Document it.
63865         (func_sanitize_modulelist): New function, extracted from
63866         func_all_modules.
63867         (func_all_modules): Invoke it.
63868         * doc/gnulib-tool.texi (Which modules?): New node.
63870 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
63872         * lib/sys_select.in.h: Provide select replacement even if
63873         sys/select.h exists on a system, for Interix.
63875 2010-02-18  Jim Meyering  <meyering@redhat.com>
63877         init.sh: don't use $(...) just yet
63878         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
63879         to accommodate e.g., Solaris' /bin/sh.
63881 2010-02-17  Bruno Haible  <bruno@clisp.org>
63883         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
63884         Reported by Ludovic Courtès <ludo@gnu.org>.
63886 2010-02-16  Simon Josefsson  <simon@josefsson.org>
63888         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
63889         linking with -lintl.
63891 2010-02-17  Simon Josefsson  <simon@josefsson.org>
63893         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
63894         if not provided by the system's netdb.h.  Reported by
63895         ludo@gnu.org (Ludovic Courtès).
63897 2010-02-15  Jim Meyering  <meyering@redhat.com>
63899         init.sh: improve portability and efficiency
63900         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
63901         "dummy" in a for loop.
63902         Use '!', not '^' to select the complement of a character set used
63903         in a "case" statement.
63904         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
63905         Suggestions from Eric Blake.
63907         init.sh: automatically accommodate programs with the .exe suffix
63908         Automatically arrange for an invocation of "prog" to execute the
63909         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
63910         may use the simpler "prog", yet still work when built on a system
63911         that requires specifying the added suffix.
63912         Do this by constructing a function named "prog" that invokes
63913         "prog.exe" for each .exe file in selected directories.
63914         * tests/init.sh (find_exe_basenames_): New function.
63915         (create_exe_shim_functions_): New function.
63916         (path_prepend_): Use it.
63918         maint.mk: mark syntax-check sc_*.m rules as .PHONY
63919         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
63920         "make -t syntax-check" doesn't create a ton of sc_*.m files.
63922 2010-02-14  Jim Meyering  <meyering@redhat.com>
63924         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
63925         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
63926         (sc_prohibit_hash_pjw_without_use): New rule.
63928         maint.mk: allow the default upload destination dir to be overridden
63929         * top/maint.mk (upload_dest_dir_): Define with a default that
63930         preserves the status quo.
63931         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
63932         Reported by Peter Simons.
63934         maint.mk: prohibit inclusion of "hash.h" without_use
63935         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
63937 2010-02-10  Jim Meyering  <meyering@redhat.com>
63939         maint.mk: prohibit inclusion of "ignore-value.h" without_use
63940         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
63942 2010-02-09  Eric Blake  <ebb9@byu.net>
63943         and Bruno Haible  <bruno@clisp.org>
63945         obstack-printf-posix: ensure declaration
63946         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
63947         extracted from gl_FUNC_OBSTACK_PRINTF.
63948         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
63949         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
63950         Likewise.
63951         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
63952         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
63953         0.
63955 2010-02-08  Bruno Haible  <bruno@clisp.org>
63957         gnulib-tool: Fix typo in 2010-02-07 commit.
63958         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
63959         Reported by Eric Blake.
63961 2010-02-07  Bruno Haible  <bruno@clisp.org>
63963         gnulib-tool: Fix up caching patches.
63964         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
63965         option --no-cache. Use associative arrays when supported by the shell.
63966         (sed_comments): New variable.
63967         (modcache): Renamed from do_cache.
63968         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
63969         abbreviate unnecessarily.
63970         (have_associative): New variable.
63971         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
63972         way also for ksh and zsh.
63973         (func_init_sed_convert_to_cache_statements): New function, extracted
63974         from func_cache_lookup_module. Add support for associative arrays.
63975         Don't set the c_MODULE_cached variable here. Ignore all lines before
63976         the first field header. Remove only the final newline, not all trailing
63977         newlines. Support empty fields correctly. Limit the use of 'eval' to
63978         assignments.
63979         (func_get_description, func_get_status, func_get_notice,
63980         func_get_applicability, func_get_filelist, func_get_dependencies,
63981         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
63982         func_get_automake_snippet, func_get_include_directive,
63983         func_get_link_directive, func_get_license, func_get_maintainer):
63984         Update documentation. List the unoptimized code first. Add support for
63985         associative arrays. Limit the use of 'eval' to assignments.
63986         (func_get_applicability): Undo stylistic pessimisations.
63987         (func_get_automake_snippet, func_get_include_directive): Reduce code
63988         duplication.
63989         (func_modules_transitive_closure, func_modules_add_dummy,
63990         func_modules_notice, func_modules_to_filelist, func_add_file,
63991         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
63992         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
63993         func_create_testdir, func_create_megatestdir): Update documentation.
63995 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63997         * gnulib-tool (func_cache_lookup_module): Store the module name
63998         belonging to the cache variable; error out if two different
63999         module names map to the same cache variable name.
64001 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64003         gnulib-tool: Make caching optional.
64004         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
64005         Update matching short versions of --no-changelog.
64006         (func_usage): Update.
64007         (sed_extract_cache_prog): Renamed from ...
64008         (sed_extract_prog): ... this; revert to old extraction script.
64009         (func_get_description, func_get_status)
64010         (func_get_notice, func_get_applicability, func_get_filelist)
64011         (func_get_dependencies, func_get_autoconf_early_snippet)
64012         (func_get_autoconf_snippet, func_get_automake_snippet)
64013         (func_get_include_directive, func_get_link_directive)
64014         (func_get_license, func_get_maintainer): If $do_cache is false,
64015         use old, non-caching extraction scripts.
64016         Suggestion by Bruno Haible.
64018 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64020         gnulib-tool: cache module metainformation.
64021         * gnulib-tool (sed_extract_prog): Match newline before each
64022         header, and rewrite header to a shell variable suffix.
64023         (func_cache_var, func_cache_lookup_module): New functions,
64024         to turn a module name into a cache variable prefix, and to
64025         look up and cache module metainformation.
64026         (func_get_description, func_get_status)
64027         (func_get_notice, func_get_applicability, func_get_filelist)
64028         (func_get_dependencies, func_get_autoconf_early_snippet)
64029         (func_get_autoconf_snippet, func_get_automake_snippet)
64030         (func_get_include_directive, func_get_link_directive)
64031         (func_get_license, func_get_maintainer): Use
64032         func_cache_lookup_module.
64034 2010-02-07  Bruno Haible  <bruno@clisp.org>
64036         fnctl: Fix missing dependency.
64037         * modules/fcntl (Depends-on): Add getdtablesize.
64038         Reported by John W. Eaton <jwe@gnu.org>.
64040 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
64042         Argp: fix recognition of short alias options.
64044         * lib/argp-parse.c (convert_options): Fix improper use of
64045         `|' between character values.
64046         * tests/test-argp.c (group1_option): New alias option
64047         --read (-r).
64048         (group1_parser): Special handling for 'r'.
64049         (test15): New test case.
64050         (test_fun): Add test15.
64051         * tests/test-argp-2.sh: Update expected --help and --usage
64052         outputs.
64054 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
64056         * tests/test-argp.c: Fix indentation.
64058 2010-02-04  Eric Blake  <ebb9@byu.net>
64060         gettimeofday: expose type of second argument
64061         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
64062         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
64063         * tests/test-gettimeofday.c: Use it to silence warning.
64064         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
64065         the issue.
64067 2010-02-03  Jim Meyering  <meyering@redhat.com>
64069         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
64070         * lib/regcomp.c (TYPE_SIGNED): Define.
64071         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
64073         regcomp.c: avoid a new -Wshadow warning
64074         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
64076 2010-02-01  Jim Meyering  <meyering@redhat.com>
64078         removing useless parentheses in cpp #define directives
64079         For motivation, see commit c0221df4, "define STREQ(a,b)
64080         consistently, removing useless parentheses"
64081         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
64082         * lib/mountlist.c (MNT_IGNORE): Likewise.
64083         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
64085 2010-02-01  Eric Blake  <ebb9@byu.net>
64087         sys_time: use link-warning
64088         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
64089         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
64090         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
64091         * modules/sys_time (Depends-on): Add warn-on-use.
64092         (Makefile.am): Always build replacement.
64093         (configure.ac): Update substitutions.
64094         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
64095         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
64096         bother with SYS_TIME_H.
64097         * modules/gettimeofday (configure.ac): Declare indicator.
64098         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
64099         in use.
64101         closein-tests: silence compiler warning
64102         * tests/test-closein.c (main): Ignore fread result.
64103         * modules/closein-tests (Depends-on): Add ignore-value.
64105         tests: silence warning about system return
64106         * tests/test-areadlink-with-size.c (main): Ignore system result.
64107         * tests/test-areadlink.c (main): Likewise.
64108         * tests/test-areadlinkat-with-size.c (main): Likewise.
64109         * tests/test-areadlinkat.c (main): Likewise.
64110         * tests/test-canonicalize-lgpl.c (main): Likewise.
64111         * tests/test-canonicalize.c (main): Likewise.
64112         * tests/test-chown.c (main): Likewise.
64113         * tests/test-fchownat.c (main): Likewise.
64114         * tests/test-fdutimensat.c (main): Likewise.
64115         * tests/test-fstatat.c (main): Likewise.
64116         * tests/test-futimens.c (main): Likewise.
64117         * tests/test-lchown.c (main): Likewise.
64118         * tests/test-link.c (main): Likewise.
64119         * tests/test-linkat.c (main): Likewise.
64120         * tests/test-lstat.c (main): Likewise.
64121         * tests/test-mkdir.c (main): Likewise.
64122         * tests/test-mkdirat.c (main): Likewise.
64123         * tests/test-mkfifo.c (main): Likewise.
64124         * tests/test-mkfifoat.c (main): Likewise.
64125         * tests/test-mknod.c (main): Likewise.
64126         * tests/test-readlink.c (main): Likewise.
64127         * tests/test-remove.c (main): Likewise.
64128         * tests/test-rename.c (main): Likewise.
64129         * tests/test-renameat.c (main): Likewise.
64130         * tests/test-rmdir.c (main): Likewise.
64131         * tests/test-symlink.c (main): Likewise.
64132         * tests/test-symlinkat.c (main): Likewise.
64133         * tests/test-unlink.c (main): Likewise.
64134         * tests/test-unlinkat.c (main): Likewise.
64135         * tests/test-utimens.c (main): Likewise.
64136         * tests/test-utimensat.c (main): Likewise.
64137         * modules/areadlink-tests (Depends-on): Add ignore-value.
64138         * modules/areadlink-with-size-tests (Depends-on): Likewise.
64139         * modules/areadlinkat-tests (Depends-on): Likewise.
64140         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
64141         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
64142         * modules/canonicalize-tests (Depends-on): Likewise.
64143         * modules/chown-tests (Depends-on): Likewise.
64144         * modules/fdutimensat-tests (Depends-on): Likewise.
64145         * modules/futimens-tests (Depends-on): Likewise.
64146         * modules/lchown-tests (Depends-on): Likewise.
64147         * modules/link-tests (Depends-on): Likewise.
64148         * modules/linkat-tests (Depends-on): Likewise.
64149         * modules/lstat-tests (Depends-on): Likewise.
64150         * modules/mkdir-tests (Depends-on): Likewise.
64151         * modules/mkfifo-tests (Depends-on): Likewise.
64152         * modules/mkfifoat-tests (Depends-on): Likewise.
64153         * modules/mknod-tests (Depends-on): Likewise.
64154         * modules/openat-tests (Depends-on): Likewise.
64155         * modules/readlink-tests (Depends-on): Likewise.
64156         * modules/remove-tests (Depends-on): Likewise.
64157         * modules/rename-tests (Depends-on): Likewise.
64158         * modules/renameat-tests (Depends-on): Likewise.
64159         * modules/rmdir-tests (Depends-on): Likewise.
64160         * modules/symlink-tests (Depends-on): Likewise.
64161         * modules/symlinkat-tests (Depends-on): Likewise.
64162         * modules/unlink-tests (Depends-on): Likewise.
64163         * modules/utimens-tests (Depends-on): Likewise.
64164         * modules/utimensat-tests (Depends-on): Likewise.
64166 2010-01-31  Bruno Haible  <bruno@clisp.org>
64168         Perform the same test for many <math.h> functions.
64169         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
64170         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
64171         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
64172         of gl_MATHFUNC.
64173         * modules/acos (configure.ac): Likewise.
64174         * modules/asin (configure.ac): Likewise.
64175         * modules/atan (configure.ac): Likewise.
64176         * modules/atan2 (configure.ac): Likewise.
64177         * modules/cbrt (configure.ac): Likewise.
64178         * modules/copysign (configure.ac): Likewise.
64179         * modules/cos (configure.ac): Likewise.
64180         * modules/cosh (configure.ac): Likewise.
64181         * modules/erf (configure.ac): Likewise.
64182         * modules/erfc (configure.ac): Likewise.
64183         * modules/exp (configure.ac): Likewise.
64184         * modules/fmod (configure.ac): Likewise.
64185         * modules/hypot (configure.ac): Likewise.
64186         * modules/j0 (configure.ac): Likewise.
64187         * modules/j1 (configure.ac): Likewise.
64188         * modules/jn (configure.ac): Likewise.
64189         * modules/lgamma (configure.ac): Likewise.
64190         * modules/log (configure.ac): Likewise.
64191         * modules/log10 (configure.ac): Likewise.
64192         * modules/log1p (configure.ac): Likewise.
64193         * modules/pow (configure.ac): Likewise.
64194         * modules/remainder (configure.ac): Likewise.
64195         * modules/sin (configure.ac): Likewise.
64196         * modules/sinh (configure.ac): Likewise.
64197         * modules/tan (configure.ac): Likewise.
64198         * modules/tanh (configure.ac): Likewise.
64199         * modules/y0 (configure.ac): Likewise.
64200         * modules/y1 (configure.ac): Likewise.
64201         * modules/yn (configure.ac): Likewise.
64202         Suggested by Paolo Bonzini.
64204 2010-01-31  Bruno Haible  <bruno@clisp.org>
64206         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
64208 2010-01-31  Bruno Haible  <bruno@clisp.org>
64210         Work around getdelim() bug on FreeBSD 8.0.
64211         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
64212         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
64213         not work.
64214         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
64215         is 1.
64216         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
64217         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
64218         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
64219         a non-zero size.
64220         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
64222 2010-01-31  Bruno Haible  <bruno@clisp.org>
64224         Work around getline() bug on FreeBSD 8.0.
64225         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
64226         and a non-zero size.
64227         * tests/test-getline.c (main): Likewise.
64228         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
64229         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
64231 2010-01-28  Eric Blake  <ebb9@byu.net>
64233         regex: fix build failure
64234         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
64235         platforms.
64237 2010-01-28  Jim Meyering  <meyering@redhat.com>
64239         regex: do not ignore memory allocation failure
64240         * lib/regex_internal.c (create_cd_newstate): Detect
64241         re_node_set_init_copy failure.   Extracted from glibc commit
64242         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
64244         regex: sync more white-space changes from libc
64245         * lib/regex_internal.c: White-space only changes.
64246         * lib/regexec.c: Likewise.
64248         regex: add many uses of __attribute_warn_unused_result__
64249         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
64250         * lib/regexec.c: Likewise.
64251         Extracted from a messy glibc commit.
64253         regcomp.c: spelling and merge-artifact from glibc
64254         * lib/regcomp.c: Merge remainder of glibc's
64255         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
64257         regcomp.c: sync white-space changes from glibc
64258         * lib/regcomp.c: Merge to accommodate white space
64259         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
64261         regcomp.c: do not ignore internal return values
64262         * lib/regcomp.c: Do not ignore internal return values.
64263         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
64264         but without its white-space changes and spelling fixes.
64266         regex_internal.h: define __attribute_warn_unused_result__
64267         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
64269         maint: add a syntax-check rule to check for vulnerable Makefile.in
64270         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
64272 2010-01-27  Jim Meyering  <meyering@redhat.com>
64274         ncftpput-ftp: clean up spaces
64275         * build-aux/ncftpput-ftp: Make Copyright line consistent.
64276         Remove trailing blanks.
64278 2010-01-27  Simon Josefsson  <simon@josefsson.org>
64280         * build-aux/git-version-gen: Fix copyright statement.
64281         * build-aux/gnupload: Likewise.
64282         * tests/test-arcfour.c: Likewise.
64283         * tests/test-arctwo.c: Likewise.
64284         * tests/test-count-one-bits.c: Likewise.
64285         * tests/test-crc.c: Likewise.
64286         * tests/test-des.c: Likewise.
64287         * tests/test-gc-arcfour.c: Likewise.
64288         * tests/test-gc-arctwo.c: Likewise.
64289         * tests/test-gc-des.c: Likewise.
64290         * tests/test-gc-hmac-md5.c: Likewise.
64291         * tests/test-gc-hmac-sha1.c: Likewise.
64292         * tests/test-gc-md2.c: Likewise.
64293         * tests/test-gc-md4.c: Likewise.
64294         * tests/test-gc-md5.c: Likewise.
64295         * tests/test-gc-pbkdf2-sha1.c: Likewise.
64296         * tests/test-gc-rijndael.c: Likewise.
64297         * tests/test-gc-sha1.c: Likewise.
64298         * tests/test-gc.c: Likewise.
64299         * tests/test-gethostname.c: Likewise.
64300         * tests/test-gettimeofday.c: Likewise.
64301         * tests/test-hash.c: Likewise.
64302         * tests/test-hmac-md5.c: Likewise.
64303         * tests/test-hmac-sha1.c: Likewise.
64304         * tests/test-md2.c: Likewise.
64305         * tests/test-md4.c: Likewise.
64306         * tests/test-md5.c: Likewise.
64307         * tests/test-memchr.c: Likewise.
64308         * tests/test-memchr2.c: Likewise.
64309         * tests/test-memcmp.c: Likewise.
64310         * tests/test-memmem.c: Likewise.
64311         * tests/test-memrchr.c: Likewise.
64312         * tests/test-rawmemchr.c: Likewise.
64313         * tests/test-read-file.c: Likewise.
64314         * tests/test-rijndael.c: Likewise.
64315         * tests/test-sockets.c: Likewise.
64316         * tests/test-strchrnul.c: Likewise.
64317         * tests/test-strstr.c: Likewise.
64318         * tests/test-strtod.c: Likewise.
64319         * build-aux/ncftpput-ftp: Likewise.
64321 2010-01-26  Eric Blake  <ebb9@byu.net>
64323         ignore-value: update recommended header name
64324         * modules/ignore-value (Include): Only use <> for headers that
64325         exist in glibc.
64327 2010-01-26  Jim Meyering  <meyering@redhat.com>
64329         test-userspec.c: avoid compiler warnings
64330         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
64331         and "initialization discards qualifiers..." warnings.
64332         Put the first "uid" in its own scope, and make char* members "const".
64334 2010-01-25  Bruno Haible  <bruno@clisp.org>
64336         gnulib-tool: Make warning diagnostics consistent.
64337         * gnulib-tool (func_warning): New function.
64338         Use it everywhere where gnulib-tool produces output to stderr and it is
64339         not a fatal error.
64341 2010-01-25  Bruno Haible  <bruno@clisp.org>
64343         Fix test dependencies.
64344         * modules/xstrtol-tests (Depends-on): Add inttypes.
64345         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
64347 2010-01-25  Pádraig Brady  <P@draigBrady.com>
64349         syntax-check: detect incorrect boolean macro values in config.h
64350         * modules/maintainer-makefile (configure.ac): Parameterize the location
64351         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
64352         The logic is from Eric Blake and the location indicated by Jim Meyering.
64353         Note the more natural CONFIG_HEADER name is prohibited by automake
64354         for backwards compatibility reasons.
64355         * top/maint.mk (sc_Wundef_boolean): New rule.
64357 2010-01-25  Jim Meyering  <meyering@redhat.com>
64359         bootstrap: detect MacOS 10.6's shasum, too
64360         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
64361         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
64363 2010-01-23  Jim Meyering  <meyering@redhat.com>
64365         xstrtoll: new module
64366         * modules/xstrtoll: New file.
64367         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
64368         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
64369         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
64370         ./configure fails if you use this module and lack "long long".
64371         * modules/xstrtoll-tests: New module.
64372         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
64373         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
64374         new init.sh-based test framework.
64376 2010-01-24  Bruno Haible  <bruno@clisp.org>
64378         Tests for module 'yn'.
64379         * modules/yn-tests: New file.
64380         * tests/test-yn.c: New file.
64382         Tests for module 'y1'.
64383         * modules/y1-tests: New file.
64384         * tests/test-y1.c: New file.
64386         Tests for module 'y0'.
64387         * modules/y0-tests: New file.
64388         * tests/test-y0.c: New file.
64390         Tests for module 'tanh'.
64391         * modules/tanh-tests: New file.
64392         * tests/test-tanh.c: New file.
64394         Tests for module 'tan'.
64395         * modules/tan-tests: New file.
64396         * tests/test-tan.c: New file.
64398         Tests for module 'sqrt'.
64399         * modules/sqrt-tests: New file.
64400         * tests/test-sqrt.c: New file.
64402         Tests for module 'sinh'.
64403         * modules/sinh-tests: New file.
64404         * tests/test-sinh.c: New file.
64406         Tests for module 'sin'.
64407         * modules/sin-tests: New file.
64408         * tests/test-sin.c: New file.
64410         Tests for module 'rint'.
64411         * modules/rint-tests: New file.
64412         * tests/test-rint.c: New file.
64414         Tests for module 'remainder'.
64415         * modules/remainder-tests: New file.
64416         * tests/test-remainder.c: New file.
64418         Tests for module 'pow'.
64419         * modules/pow-tests: New file.
64420         * tests/test-pow.c: New file.
64422         Tests for module 'nextafter'.
64423         * modules/nextafter-tests: New file.
64424         * tests/test-nextafter.c: New file.
64426         Tests for module 'modf'.
64427         * modules/modf-tests: New file.
64428         * tests/test-modf.c: New file.
64430         Tests for module 'logb'.
64431         * modules/logb-tests: New file.
64432         * tests/test-logb.c: New file.
64434         Tests for module 'log1p'.
64435         * modules/log1p-tests: New file.
64436         * tests/test-log1p.c: New file.
64438         Tests for module 'log10'.
64439         * modules/log10-tests: New file.
64440         * tests/test-log10.c: New file.
64442         Tests for module 'log'.
64443         * modules/log-tests: New file.
64444         * tests/test-log.c: New file.
64446         Tests for module 'lgamma'.
64447         * modules/lgamma-tests: New file.
64448         * tests/test-lgamma.c: New file.
64450         Tests for module 'ldexp'.
64451         * modules/ldexp-tests: New file.
64452         * tests/test-ldexp.c: New file.
64454         Tests for module 'jn'.
64455         * modules/jn-tests: New file.
64456         * tests/test-jn.c: New file.
64458         Tests for module 'j1'.
64459         * modules/j1-tests: New file.
64460         * tests/test-j1.c: New file.
64462         Tests for module 'j0'.
64463         * modules/j0-tests: New file.
64464         * tests/test-j0.c: New file.
64466         Tests for module 'hypot'.
64467         * modules/hypot-tests: New file.
64468         * tests/test-hypot.c: New file.
64470         Tests for module 'fmod'.
64471         * modules/fmod-tests: New file.
64472         * tests/test-fmod.c: New file.
64474         Tests for module 'fabs'.
64475         * modules/fabs-tests: New file.
64476         * tests/test-fabs.c: New file.
64478         Tests for module 'exp'.
64479         * modules/exp-tests: New file.
64480         * tests/test-exp.c: New file.
64482         Tests for module 'erfc'.
64483         * modules/erfc-tests: New file.
64484         * tests/test-erfc.c: New file.
64486         Tests for module 'erf'.
64487         * modules/erf-tests: New file.
64488         * tests/test-erf.c: New file.
64490         Tests for module 'cosh'.
64491         * modules/cosh-tests: New file.
64492         * tests/test-cosh.c: New file.
64494         Tests for module 'cos'.
64495         * modules/cos-tests: New file.
64496         * tests/test-cos.c: New file.
64498         Tests for module 'copysign'.
64499         * modules/copysign-tests: New file.
64500         * tests/test-copysign.c: New file.
64502         Tests for module 'cbrt'.
64503         * modules/cbrt-tests: New file.
64504         * tests/test-cbrt.c: New file.
64506         Tests for module 'atan2'.
64507         * modules/atan2-tests: New file.
64508         * tests/test-atan2.c: New file.
64510         Tests for module 'atan'.
64511         * modules/atan-tests: New file.
64512         * tests/test-atan.c: New file.
64514         Tests for module 'asin'.
64515         * modules/asin-tests: New file.
64516         * tests/test-asin.c: New file.
64518         Tests for module 'acos'.
64519         * modules/acos-tests: New file.
64520         * tests/test-acos.c: New file.
64522 2010-01-24  Bruno Haible  <bruno@clisp.org>
64524         Fix tests for common <math.h> functions.
64525         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
64526         code snippet that references the function pointer, rather than merely
64527         calling the function. Substitute the FUNC_LIBM variable.
64528         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
64529         * modules/acos (configure.ac): Likewise.
64530         * modules/asin (configure.ac): Likewise.
64531         * modules/atan (configure.ac): Likewise.
64532         * modules/atan2 (configure.ac): Likewise.
64533         * modules/cbrt (configure.ac): Likewise.
64534         * modules/copysign (configure.ac): Likewise.
64535         * modules/cos (configure.ac): Likewise.
64536         * modules/cosh (configure.ac): Likewise.
64537         * modules/erf (configure.ac): Likewise.
64538         * modules/erfc (configure.ac): Likewise.
64539         * modules/exp (configure.ac): Likewise.
64540         * modules/fabs (configure.ac): Likewise.
64541         * modules/fmod (configure.ac): Likewise.
64542         * modules/hypot (configure.ac): Likewise.
64543         * modules/j0 (configure.ac): Likewise.
64544         * modules/j1 (configure.ac): Likewise.
64545         * modules/jn (configure.ac): Likewise.
64546         * modules/ldexp (configure.ac): Likewise.
64547         * modules/lgamma (configure.ac): Likewise.
64548         * modules/log (configure.ac): Likewise.
64549         * modules/log10 (configure.ac): Likewise.
64550         * modules/log1p (configure.ac): Likewise.
64551         * modules/logb (configure.ac): Likewise.
64552         * modules/modf (configure.ac): Likewise.
64553         * modules/nextafter (configure.ac): Likewise.
64554         * modules/pow (configure.ac): Likewise.
64555         * modules/remainder (configure.ac): Likewise.
64556         * modules/rint (configure.ac): Likewise.
64557         * modules/sin (configure.ac): Likewise.
64558         * modules/sinh (configure.ac): Likewise.
64559         * modules/tan (configure.ac): Likewise.
64560         * modules/tanh (configure.ac): Likewise.
64561         * modules/y0 (configure.ac): Likewise.
64562         * modules/y1 (configure.ac): Likewise.
64563         * modules/yn (configure.ac): Likewise.
64565 2010-01-24  Bruno Haible  <bruno@clisp.org>
64567         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
64568         * tests/test-acosl.c (x): New variable.
64569         (main): Store argument in x and fetch it from x.
64570         * tests/test-asinl.c (x): New variable.
64571         (main): Store argument in x and fetch it from x.
64572         * tests/test-atanl.c (x): New variable.
64573         (main): Store argument in x and fetch it from x.
64574         * tests/test-cosl.c (x): New variable.
64575         (main): Store argument in x and fetch it from x.
64576         * tests/test-expl.c (x): New variable.
64577         (main): Store argument in x and fetch it from x.
64578         * tests/test-logl.c (x): New variable.
64579         (main): Store argument in x and fetch it from x.
64580         * tests/test-sinl.c (x): New variable.
64581         (main): Store argument in x and fetch it from x.
64582         * tests/test-sqrtl.c (x): New variable.
64583         (main): Store argument in x and fetch it from x.
64584         * tests/test-tanl.c (x): New variable.
64585         (main): Store argument in x and fetch it from x.
64587 2010-01-24  Bruno Haible  <bruno@clisp.org>
64589         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
64590         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
64591         assignments to the initial TESTS_ENVIRONMENT.
64592         * doc/gnulib.texi (Unit test modules): Document it.
64593         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
64594         TESTS_ENVIRONMENT.
64595         * modules/btowc-tests (Makefile.am): Likewise.
64596         * modules/c-stack-tests (Makefile.am): Likewise.
64597         * modules/c-strcase-tests (Makefile.am): Likewise.
64598         * modules/copy-file-tests (Makefile.am): Likewise.
64599         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
64600         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
64601         * modules/mbrtowc-tests (Makefile.am): Likewise.
64602         * modules/mbscasecmp-tests (Makefile.am): Likewise.
64603         * modules/mbscasestr-tests (Makefile.am): Likewise.
64604         * modules/mbschr-tests (Makefile.am): Likewise.
64605         * modules/mbscspn-tests (Makefile.am): Likewise.
64606         * modules/mbsinit-tests (Makefile.am): Likewise.
64607         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
64608         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
64609         * modules/mbspbrk-tests (Makefile.am): Likewise.
64610         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
64611         * modules/mbsrchr-tests (Makefile.am): Likewise.
64612         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
64613         * modules/mbsspn-tests (Makefile.am): Likewise.
64614         * modules/mbsstr-tests (Makefile.am): Likewise.
64615         * modules/nl_langinfo-tests (Makefile.am): Likewise.
64616         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
64617         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
64618         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
64619         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
64620         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
64621         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
64622         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
64623         * modules/wcrtomb-tests (Makefile.am): Likewise.
64624         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
64625         * modules/wcsrtombs-tests (Makefile.am): Likewise.
64626         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
64627         assignments from TESTS_ENVIRONMENT.
64628         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
64629         augmentation.
64630         * modules/argp-version-etc-tests (Makefile.am): Likewise.
64631         * modules/atexit-tests (Makefile.am): Likewise.
64632         * modules/binary-io-tests (Makefile.am): Likewise.
64633         * modules/closein-tests (Makefile.am): Likewise.
64634         * modules/dprintf-posix-tests (Makefile.am): Likewise.
64635         * modules/exclude-tests (Makefile.am): Likewise.
64636         * modules/fflush-tests (Makefile.am): Likewise.
64637         * modules/fpending-tests (Makefile.am): Likewise.
64638         * modules/fprintf-posix-tests (Makefile.am): Likewise.
64639         * modules/freadahead-tests (Makefile.am): Likewise.
64640         * modules/freadptr-tests (Makefile.am): Likewise.
64641         * modules/freadseek-tests (Makefile.am): Likewise.
64642         * modules/fseek-tests (Makefile.am): Likewise.
64643         * modules/fseeko-tests (Makefile.am): Likewise.
64644         * modules/ftell-tests (Makefile.am): Likewise.
64645         * modules/ftello-tests (Makefile.am): Likewise.
64646         * modules/idpriv-drop-tests (Makefile.am): Likewise.
64647         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
64648         * modules/lseek-tests (Makefile.am): Likewise.
64649         * modules/parse-duration-tests (Makefile.am): Likewise.
64650         * modules/perror-tests (Makefile.am): Likewise.
64651         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
64652         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
64653         * modules/pipe-tests (Makefile.am): Likewise.
64654         * modules/pread-tests (Makefile.am): Likewise.
64655         * modules/printf-posix-tests (Makefile.am): Likewise.
64656         * modules/select-tests (Makefile.am): Likewise.
64657         * modules/sigpipe-tests (Makefile.am): Likewise.
64658         * modules/tsearch-tests (Makefile.am): Likewise.
64659         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
64660         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
64661         * modules/uniname/uniname-tests (Makefile.am): Likewise.
64662         * modules/uniwidth/width-tests (Makefile.am): Likewise.
64663         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
64664         * modules/version-etc-tests (Makefile.am): Likewise.
64665         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
64666         * modules/vprintf-posix-tests (Makefile.am): Likewise.
64667         * modules/xalloc-die-tests (Makefile.am): Likewise.
64668         * modules/xprintf-posix-tests (Makefile.am): Likewise.
64669         * modules/xstrtoimax-tests (Makefile.am): Likewise.
64670         * modules/xstrtol-tests (Makefile.am): Likewise.
64671         * modules/xstrtoumax-tests (Makefile.am): Likewise.
64672         * modules/yesno-tests (Makefile.am): Likewise.
64673         Suggested by Jim Meyering.
64675 2010-01-24  Bruno Haible  <bruno@clisp.org>
64677         More documentation.
64678         * doc/gnulib.texi (Writing modules): New chapter.
64679         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
64680         the new chapter.
64682 2010-01-24  Jim Meyering  <meyering@redhat.com>
64684         maint.mk: do not prepend "./" after filtering
64685         * top/maint.mk (_prepend_srcdir_prefix): New variable
64686         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
64687         "./" when $(srcdir) is ".".
64689         define STREQ(a,b) consistently, removing useless parentheses
64690         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
64691         since the only risk is that "a" or "b" contains an unparenthesized
64692         comma, but if either did that, STREQ would have 3 or more arguments.
64693         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
64694         * lib/fts.c (STREQ): Remove unnecessary parentheses.
64695         * lib/hash-triple.c (STREQ): Likewise.
64696         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
64697         * lib/getugroups.c (STREQ): Likewise.
64699 2010-01-23  Jim Meyering  <meyering@redhat.com>
64701         maint.mk: fix syntax-check in a non-srcdir build directory
64702         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
64703         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
64705 2010-01-22  Jim Meyering  <meyering@redhat.com>
64707         userspec: add unit tests
64708         * tests/test-userspec.c: New file.
64709         * modules/userspec-tests: Likewise.
64711 2010-01-21  Jim Meyering  <meyering@redhat.com>
64713         maint.mk: handle source file names containing "." robustly
64714         * top/maint.mk (_dot_escaped_srcdir): Define.
64715         (VC_LIST): Use it in LHS of sed substitution.
64717 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
64719         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
64720         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
64721         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
64722         from a non-srcdir build.
64724 2010-01-20  Eric Blake  <ebb9@byu.net>
64726         warn-on-use: use instead of link-warning
64727         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
64728         * modules/unistd (Depends-on, Makefile.am): Likewise.
64729         * modules/arpa_inet (Depends-on): Replace link-warning with
64730         warn-on-use.
64731         (Makefile.am): Update rules accordingly.
64732         * modules/ctype (Depends-on, Makefile.am): Likewise.
64733         * modules/dirent (Depends-on, Makefile.am): Likewise.
64734         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
64735         * modules/inttypes (Depends-on, Makefile.am): Likewise.
64736         * modules/langinfo (Depends-on, Makefile.am): Likewise.
64737         * modules/locale (Depends-on, Makefile.am): Likewise.
64738         * modules/math (Depends-on, Makefile.am): Likewise.
64739         * modules/search (Depends-on, Makefile.am): Likewise.
64740         * modules/signal (Depends-on, Makefile.am): Likewise.
64741         * modules/spawn (Depends-on, Makefile.am): Likewise.
64742         * modules/stdlib (Depends-on, Makefile.am): Likewise.
64743         * modules/string (Depends-on, Makefile.am): Likewise.
64744         * modules/strings (Depends-on, Makefile.am): Likewise.
64745         * modules/sys_file (Depends-on, Makefile.am): Likewise.
64746         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
64747         * modules/sys_select (Depends-on, Makefile.am): Likewise.
64748         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
64749         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
64750         * modules/sys_times (Depends-on, Makefile.am): Likewise.
64751         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
64752         * modules/wchar (Depends-on, Makefile.am): Likewise.
64753         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
64754         should be poisoned.
64755         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
64756         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
64757         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
64758         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64759         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
64760         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64761         * m4/math_h.m4 (gl_MATH_H): Likewise.
64762         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64763         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64764         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
64765         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64766         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64767         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64768         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
64769         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
64770         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
64771         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64772         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64773         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64774         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
64775         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
64776         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64777         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64778         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
64779         GL_LINK_WARNING.
64780         * lib/ctype.in.h: Likewise.
64781         * lib/dirent.in.h: Likewise.
64782         * lib/fcntl.in.h: Likewise.
64783         * lib/inttypes.in.h: Likewise.
64784         * lib/langinfo.in.h: Likewise.
64785         * lib/locale.in.h: Likewise.
64786         * lib/math.in.h: Likewise.
64787         * lib/search.in.h: Likewise.
64788         * lib/signal.in.h: Likewise.
64789         * lib/spawn.in.h: Likewise.
64790         * lib/stdio.in.h: Likewise.
64791         * lib/stdlib.in.h: Likewise.
64792         * lib/string.in.h: Likewise.
64793         * lib/strings.in.h: Likewise.
64794         * lib/sys_file.in.h: Likewise.
64795         * lib/sys_ioctl.in.h: Likewise.
64796         * lib/sys_select.in.h: Likewise.
64797         * lib/sys_socket.in.h: Likewise.
64798         * lib/sys_stat.in.h: Likewise.
64799         * lib/sys_times.in.h: Likewise.
64800         * lib/sys_utsname.in.h: Likewise.
64801         * lib/unistd.in.h: Likewise.
64802         * lib/wchar.in.h: Likewise.
64804 2010-01-20  Bruno Haible  <bruno@clisp.org>
64806         Avoid duplicate -lm.
64807         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
64808         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
64809         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
64810         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
64811         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
64812         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
64813         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
64814         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
64815         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
64816         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
64817         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
64818         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
64819         Reported by Paolo Bonzini.
64821 2010-01-19  Bruno Haible  <bruno@clisp.org>
64823         langinfo, nl_langinfo: Relicense under LGPLv2+.
64824         * modules/langinfo (License): Change to LGPLv2+.
64825         * modules/nl_langinfo (License): Likewise.
64826         Patch by David Lutterkort <lutter@redhat.com>.
64828 2010-01-19  Bruno Haible  <bruno@clisp.org>
64830         Avoid compilation error with cc on OSF/1 5.1.
64831         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
64832         statement, not before.
64833         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64835 2010-01-18  Bruno Haible  <bruno@clisp.org>
64837         Avoid a link error due to the __printf__ symbol.
64838         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
64839         and 2.6.x.
64840         (__format__, __printf__): Remove definitions.
64841         * lib/argp-fmtstream.h: Likewise.
64842         * lib/argp.h: Likewise.
64843         * lib/error.h: Likewise.
64844         * lib/vasnprintf.h: Likewise.
64845         * lib/xprintf.h: Likewise.
64846         * lib/xvasprintf.h: Likewise.
64847         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64849 2010-01-18  Bruno Haible  <bruno@clisp.org>
64851         Tests for module 'tanl'.
64852         * modules/tanl-tests: New file.
64853         * tests/test-tanl.c: New file.
64855         Tests for module 'sqrtl'.
64856         * modules/sqrtl-tests: New file.
64857         * tests/test-sqrtl.c: New file.
64859         Tests for module 'sinl'.
64860         * modules/sinl-tests: New file.
64861         * tests/test-sinl.c: New file.
64863         Tests for module 'logl'.
64864         * modules/logl-tests: New file.
64865         * tests/test-logl.c: New file.
64867         Tests for module 'expl'.
64868         * modules/expl-tests: New file.
64869         * tests/test-expl.c: New file.
64871         Tests for module 'cosl'.
64872         * modules/cosl-tests: New file.
64873         * tests/test-cosl.c: New file.
64875         Tests for module 'atanl'.
64876         * modules/atanl-tests: New file.
64877         * tests/test-atanl.c: New file.
64879         Tests for module 'asinl'.
64880         * modules/asinl-tests: New file.
64881         * tests/test-asinl.c: New file.
64883         Tests for module 'acosl'.
64884         * modules/acosl-tests: New file.
64885         * tests/test-acosl.c: New file.
64887         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
64888         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
64889         tanl): Use the standard gnulib idiom.
64890         * lib/cosl.c: Don't include trigl.c and sincosl.c.
64891         * lib/sinl.c: Likewise.
64892         * lib/tanl.c: Don't include trigl.c.
64893         (kernel_tanl): Make static.
64894         * lib/sincosl.c: Include trigl.h first.
64895         * lib/trigl.c: Likewise.
64896         * m4/acosl.m4: New file.
64897         * m4/asinl.m4: New file.
64898         * m4/atanl.m4: New file.
64899         * m4/cosl.m4: New file.
64900         * m4/expl.m4: New file.
64901         * m4/logl.m4: New file.
64902         * m4/sinl.m4: New file.
64903         * m4/sqrtl.m4: New file.
64904         * m4/tanl.m4: New file.
64905         * m4/mathl.m4: Remove file.
64906         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
64907         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
64908         Don't initialize GNULIB_MATHL.
64909         * modules/acosl: New file.
64910         * modules/asinl: New file.
64911         * modules/atanl: New file.
64912         * modules/cosl: New file.
64913         * modules/expl: New file.
64914         * modules/logl: New file.
64915         * modules/sinl: New file.
64916         * modules/sqrtl: New file.
64917         * modules/tanl: New file.
64918         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
64919         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
64920         substitute GNULIB_MATHL.
64921         * modules/mathl: Rewritten.
64922         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
64923         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
64924         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
64925         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
64926         * doc/posix-functions/expl.texi: Mention the 'expl' module.
64927         * doc/posix-functions/logl.texi: Mention the 'logl' module.
64928         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
64929         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
64930         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
64932 2010-01-18  Bruno Haible  <bruno@clisp.org>
64934         sqrt: Make gl_FUNC_SQRT requirable.
64935         * m4/sqrt.m4: New file.
64936         * modules/sqrt (Files): Add it.
64937         (configure.ac): Invoke gl_FUNC_SQRT.
64939 2010-01-18  Bruno Haible  <bruno@clisp.org>
64941         New modules for common <math.h> functions.
64942         * m4/mathfunc.m4: New file.
64943         * modules/acos: New file.
64944         * modules/asin: New file.
64945         * modules/atan: New file.
64946         * modules/atan2: New file.
64947         * modules/cbrt: New file.
64948         * modules/copysign: New file.
64949         * modules/cos: New file.
64950         * modules/cosh: New file.
64951         * modules/erf: New file.
64952         * modules/erfc: New file.
64953         * modules/exp: New file.
64954         * modules/fabs: New file.
64955         * modules/fmod: New file.
64956         * modules/hypot: New file.
64957         * modules/j0: New file.
64958         * modules/j1: New file.
64959         * modules/jn: New file.
64960         * modules/ldexp: New file.
64961         * modules/lgamma: New file.
64962         * modules/log: New file.
64963         * modules/log10: New file.
64964         * modules/log1p: New file.
64965         * modules/logb: New file.
64966         * modules/modf: New file.
64967         * modules/nextafter: New file.
64968         * modules/pow: New file.
64969         * modules/remainder: New file.
64970         * modules/rint: New file.
64971         * modules/sin: New file.
64972         * modules/sinh: New file.
64973         * modules/sqrt: New file.
64974         * modules/tan: New file.
64975         * modules/tanh: New file.
64976         * modules/y0: New file.
64977         * modules/y1: New file.
64978         * modules/yn: New file.
64979         * doc/posix-functions/acos.texi: Mention the 'acos' module.
64980         * doc/posix-functions/asin.texi: Mention the 'asin' module.
64981         * doc/posix-functions/atan.texi: Mention the 'atan' module.
64982         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
64983         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
64984         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
64985         * doc/posix-functions/cos.texi: Mention the 'cos' module.
64986         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
64987         * doc/posix-functions/erf.texi: Mention the 'erf' module.
64988         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
64989         * doc/posix-functions/exp.texi: Mention the 'exp' module.
64990         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
64991         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
64992         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
64993         * doc/posix-functions/j0.texi: Mention the 'j0' module.
64994         * doc/posix-functions/j1.texi: Mention the 'j1' module.
64995         * doc/posix-functions/jn.texi: Mention the 'jn' module.
64996         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
64997         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
64998         * doc/posix-functions/log.texi: Mention the 'log' module.
64999         * doc/posix-functions/log10.texi: Mention the 'log10' module.
65000         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
65001         * doc/posix-functions/logb.texi: Mention the 'logb' module.
65002         * doc/posix-functions/modf.texi: Mention the 'modf' module.
65003         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
65004         * doc/posix-functions/pow.texi: Mention the 'pow' module.
65005         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
65006         * doc/posix-functions/rint.texi: Mention the 'rint' module.
65007         * doc/posix-functions/sin.texi: Mention the 'sin' module.
65008         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
65009         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
65010         * doc/posix-functions/tan.texi: Mention the 'tan' module.
65011         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
65012         * doc/posix-functions/y0.texi: Mention the 'y0' module.
65013         * doc/posix-functions/y1.texi: Mention the 'y1' module.
65014         * doc/posix-functions/yn.texi: Mention the 'yn' module.
65016 2010-01-18  Jim Meyering  <meyering@redhat.com>
65018         ignore-value: relax license to LGPLv2+
65019         * modules/ignore-value (License): Relax to LGPLv2+.
65021         getdate: don't leak when TZ contains two or more '"'s
65022         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
65023         double quote in TZ after the first one.
65025         readtokens: do not leak internal token_lengths buffer
65026         * lib/readtokens.c (readtokens): Free the local, lengths,
65027         when the supplied "token_lengths" parameter is NULL.
65029 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65031         Fix a couple of missing LIBTHREAD link failures on AIX.
65032         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
65033         $(LIBTHREAD).
65034         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
65036         Link test-poll against INET_PTON_LIB.
65037         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
65038         for inet_pton on Solaris 10.
65040 2010-01-17  Bruno Haible  <bruno@clisp.org>
65042         unistdio/*-sprintf: Fix typo in module description.
65043         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
65044         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
65045         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
65046         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
65047         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
65048         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
65049         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
65050         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65052 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65054         gnulib-tool: fix filelist for AIX, HP-UX ksh.
65055         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
65056         variables in shell case patterns, for AIX and HP-UX ksh.
65058         Split large sed scripts, for HP-UX sed.
65059         * modules/stdio: Split sed scripts around 50 sed commands,
65060         to avoid HP-UX limit of 99 commands, in the near future.
65061         * modules/string: Likewise.
65062         * modules/unistd: Likewise.
65064         gnulib-tool: avoid writing in the current directory.
65065         * gnulib-tool (func_emit_lib_Makefile_am)
65066         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
65067         not in the current directory, so concurrent gnulib-tool
65068         instances do not interfere.
65070 2010-01-16  Jim Meyering  <meyering@redhat.com>
65072         doc: update users.txt
65073         * users.txt: Add grep.
65074         (diffutils, gzip): Update URLs.
65076 2010-01-12  Bruno Haible  <bruno@clisp.org>
65078         posix_spawn: Avoid test failure on Cygwin.
65079         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
65080         characters.
65081         Reported by Simon Josefsson.
65083 2010-01-12  Bruno Haible  <bruno@clisp.org>
65085         * tests/test-cond.c (main): When skipping the test, show the reason.
65087 2010-01-12  Simon Josefsson  <simon@josefsson.org>
65089         * lib/striconv.c (str_cd_iconv): Avoid if before free.
65091 2010-01-12  Simon Josefsson  <simon@josefsson.org>
65093         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
65094         VC_LIST_ALWAYS_EXCLUDE_REGEX.
65096 2010-01-12  Eric Blake  <ebb9@byu.net>
65098         build: guarantee AS_VAR_IF
65099         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
65100         (gl_AS_VAR_IF): Move...
65101         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
65102         Reported by Simon Josefsson.
65104 2010-01-12  Simon Josefsson  <simon@josefsson.org>
65106         * lib/stdio.in.h: Fix typo.
65108 2010-01-12  Simon Josefsson  <simon@josefsson.org>
65110         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
65111         libgpg-error.
65113 2010-01-12  Simon Josefsson  <simon@josefsson.org>
65115         * tests/test-xalloc-die.sh: Use $EXEEXT.
65117 2010-01-12  Simon Josefsson  <simon@josefsson.org>
65118             Bruno Haible  <bruno@clisp.org>
65120         getlogin, getlogin_r: Avoid test failure.
65121         * tests/test-getlogin.c: Include <stdio.h>.
65122         (main): Skip the test when the function fails because stdin is not a
65123         tty.
65124         * tests/test-getlogin_r.c: Include <stdio.h>.
65125         (main): Skip the test when the function fails because stdin is not a
65126         tty.
65128 2010-01-11  Eric Blake  <ebb9@byu.net>
65130         tests: avoid more large file warnings
65131         * tests/test-fflush.c: Avoid warning about ftell use.
65132         * tests/test-fseek.c: Avoid warning about fseek use.
65134 2010-01-10  Bruno Haible  <bruno@clisp.org>
65136         nproc: Work better on Linux when /proc and /sys are not mounted.
65137         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
65138         as lower bound when, on glibc/Linux systems,
65139         sysconf (_SC_NPROCESSORS_CONF) returns 1.
65140         Suggested by Pádraig Brady <P@draigbrady.com>.
65141         Reported by Dmitry V. Levin <ldv@altlinux.org>.
65143         nproc: Refactor.
65144         * lib/nproc.c (num_processors_via_affinity_mask): New function,
65145         extracted from num_processors.
65146         (num_processors): Call it.
65148 2010-01-11  Jim Meyering  <meyering@redhat.com>
65150         utimecmp: avoid new warning from upcoming gcc-4.5.0
65151         * lib/utimecmp.c (BILLION): Define using #define rather than an
65152         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
65154 2010-01-11  Eric Blake  <ebb9@byu.net>
65156         math: add portability warnings for classification macros
65157         * modules/math (Depends-on): Add warn-on-use.
65158         (Makefile.am): Provide new substitutions.
65159         * m4/math_h.m4 (gl_MATH_H): Require inline.
65160         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
65161         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
65162         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
65163         implement warnings.
65165         unistd: warn on use of environ without module
65166         * modules/unistd (Depends-on): Add warn-on-use.
65167         (Makefile.am): Provide new substitutions.
65168         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
65169         * lib/unistd.in.h (environ): Wrap with a warning helper function.
65171         stdio: warn on suspicious uses
65172         * modules/stdio (Depends-on): Add warn-on-use.
65173         (Makefile.am): Provide new substitutions.
65174         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
65175         fseeko.
65176         * lib/stdio.in.h (gets): Always warn on use.
65177         (fseek, ftell): Adjust when warnings are issued, and honor
65178         _GL_NO_LARGE_FILES as a way to silence the warning.
65179         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
65180         any warning about large file offsets.
65181         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
65182         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
65183         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
65184         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
65185         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
65186         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
65187         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
65188         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
65190         warn-on-use: new module
65191         * modules/warn-on-use: New file.
65192         * build-aux/warn-on-use.h: Likewise.
65193         * m4/warn-on-use.m4: Likewise.
65194         * MODULES.html.sh (Support for building): Mention it.
65196 2010-01-10  Bruno Haible  <bruno@clisp.org>
65198         Tests for module 'unistr/u32-strdup'.
65199         * modules/unistr/u32-strdup-tests: New file.
65200         * tests/unistr/test-u32-strdup.c: New file.
65202         Tests for module 'unistr/u16-strdup'.
65203         * modules/unistr/u16-strdup-tests: New file.
65204         * tests/unistr/test-u16-strdup.c: New file.
65206         Tests for module 'unistr/u8-strdup'.
65207         * modules/unistr/u8-strdup-tests: New file.
65208         * tests/unistr/test-u8-strdup.c: New file.
65209         * tests/unistr/test-strdup.h: New file.
65211         Tests for module 'unistr/u32-strncmp'.
65212         * modules/unistr/u32-strncmp-tests: New file.
65213         * tests/unistr/test-u32-strncmp.c: New file.
65215         Tests for module 'unistr/u16-strncmp'.
65216         * modules/unistr/u16-strncmp-tests: New file.
65217         * tests/unistr/test-u16-strncmp.c: New file.
65219         Tests for module 'unistr/u8-strncmp'.
65220         * modules/unistr/u8-strncmp-tests: New file.
65221         * tests/unistr/test-u8-strncmp.c: New file.
65222         * tests/unistr/test-strncmp.h: New file.
65224         Tests for module 'unistr/u32-strcoll'.
65225         * modules/unistr/u32-strcoll-tests: New file.
65226         * tests/unistr/test-u32-strcoll.c: New file.
65228         Tests for module 'unistr/u16-strcoll'.
65229         * modules/unistr/u16-strcoll-tests: New file.
65230         * tests/unistr/test-u16-strcoll.c: New file.
65232         Tests for module 'unistr/u8-strcoll'.
65233         * modules/unistr/u8-strcoll-tests: New file.
65234         * tests/unistr/test-u8-strcoll.c: New file.
65236         Tests for module 'unistr/u32-strcmp'.
65237         * modules/unistr/u32-strcmp-tests: New file.
65238         * tests/unistr/test-u32-strcmp.c: New file.
65239         * tests/unistr/test-u32-strcmp.h: New file.
65241         Tests for module 'unistr/u16-strcmp'.
65242         * modules/unistr/u16-strcmp-tests: New file.
65243         * tests/unistr/test-u16-strcmp.c: New file.
65244         * tests/unistr/test-u16-strcmp.h: New file.
65246         Tests for module 'unistr/u8-strcmp'.
65247         * modules/unistr/u8-strcmp-tests: New file.
65248         * tests/unistr/test-u8-strcmp.c: New file.
65249         * tests/unistr/test-u8-strcmp.h: New file.
65250         * tests/unistr/test-strcmp.h: New file.
65252         Tests for module 'unistr/u32-strncat'.
65253         * modules/unistr/u32-strncat-tests: New file.
65254         * tests/unistr/test-u32-strncat.c: New file.
65256         Tests for module 'unistr/u16-strncat'.
65257         * modules/unistr/u16-strncat-tests: New file.
65258         * tests/unistr/test-u16-strncat.c: New file.
65260         Tests for module 'unistr/u8-strncat'.
65261         * modules/unistr/u8-strncat-tests: New file.
65262         * tests/unistr/test-u8-strncat.c: New file.
65263         * tests/unistr/test-strncat.h: New file.
65265         Tests for module 'unistr/u32-strcat'.
65266         * modules/unistr/u32-strcat-tests: New file.
65267         * tests/unistr/test-u32-strcat.c: New file.
65269         Tests for module 'unistr/u16-strcat'.
65270         * modules/unistr/u16-strcat-tests: New file.
65271         * tests/unistr/test-u16-strcat.c: New file.
65273         Tests for module 'unistr/u8-strcat'.
65274         * modules/unistr/u8-strcat-tests: New file.
65275         * tests/unistr/test-u8-strcat.c: New file.
65276         * tests/unistr/test-strcat.h: New file.
65278         Tests for module 'unistr/u32-stpncpy'.
65279         * modules/unistr/u32-stpncpy-tests: New file.
65280         * tests/unistr/test-u32-stpncpy.c: New file.
65282         Tests for module 'unistr/u16-stpncpy'.
65283         * modules/unistr/u16-stpncpy-tests: New file.
65284         * tests/unistr/test-u16-stpncpy.c: New file.
65286         Tests for module 'unistr/u8-stpncpy'.
65287         * modules/unistr/u8-stpncpy-tests: New file.
65288         * tests/unistr/test-u8-stpncpy.c: New file.
65289         * tests/unistr/test-stpncpy.h: New file.
65291         Tests for module 'unistr/u32-strncpy'.
65292         * modules/unistr/u32-strncpy-tests: New file.
65293         * tests/unistr/test-u32-strncpy.c: New file.
65295         Tests for module 'unistr/u16-strncpy'.
65296         * modules/unistr/u16-strncpy-tests: New file.
65297         * tests/unistr/test-u16-strncpy.c: New file.
65299         Tests for module 'unistr/u8-strncpy'.
65300         * modules/unistr/u8-strncpy-tests: New file.
65301         * tests/unistr/test-u8-strncpy.c: New file.
65302         * tests/unistr/test-strncpy.h: New file.
65304         Tests for module 'unistr/u32-stpcpy'.
65305         * modules/unistr/u32-stpcpy-tests: New file.
65306         * tests/unistr/test-u32-stpcpy.c: New file.
65308         Tests for module 'unistr/u16-stpcpy'.
65309         * modules/unistr/u16-stpcpy-tests: New file.
65310         * tests/unistr/test-u16-stpcpy.c: New file.
65312         Tests for module 'unistr/u8-stpcpy'.
65313         * modules/unistr/u8-stpcpy-tests: New file.
65314         * tests/unistr/test-u8-stpcpy.c: New file.
65315         * tests/unistr/test-stpcpy.h: New file.
65317         Tests for module 'unistr/u32-strcpy'.
65318         * modules/unistr/u32-strcpy-tests: New file.
65319         * tests/unistr/test-u32-strcpy.c: New file.
65321         Tests for module 'unistr/u16-strcpy'.
65322         * modules/unistr/u16-strcpy-tests: New file.
65323         * tests/unistr/test-u16-strcpy.c: New file.
65325         Tests for module 'unistr/u8-strcpy'.
65326         * modules/unistr/u8-strcpy-tests: New file.
65327         * tests/unistr/test-u8-strcpy.c: New file.
65328         * tests/unistr/test-strcpy.h: New file.
65330         Tests for module 'unistr/u32-strnlen'.
65331         * modules/unistr/u32-strnlen-tests: New file.
65332         * tests/unistr/test-u32-strnlen.c: New file.
65334         Tests for module 'unistr/u16-strnlen'.
65335         * modules/unistr/u16-strnlen-tests: New file.
65336         * tests/unistr/test-u16-strnlen.c: New file.
65338         Tests for module 'unistr/u8-strnlen'.
65339         * modules/unistr/u8-strnlen-tests: New file.
65340         * tests/unistr/test-u8-strnlen.c: New file.
65341         * tests/unistr/test-strnlen.h: New file.
65343         Tests for module 'unistr/u32-strlen'.
65344         * modules/unistr/u32-strlen-tests: New file.
65345         * tests/unistr/test-u32-strlen.c: New file.
65347         Tests for module 'unistr/u16-strlen'.
65348         * modules/unistr/u16-strlen-tests: New file.
65349         * tests/unistr/test-u16-strlen.c: New file.
65351         Tests for module 'unistr/u8-strlen'.
65352         * modules/unistr/u8-strlen-tests: New file.
65353         * tests/unistr/test-u8-strlen.c: New file.
65355         Tests for module 'unistr/u32-prev'.
65356         * modules/unistr/u32-prev-tests: New file.
65357         * tests/unistr/test-u32-prev.c: New file.
65359         Tests for module 'unistr/u16-prev'.
65360         * modules/unistr/u16-prev-tests: New file.
65361         * tests/unistr/test-u16-prev.c: New file.
65363         Tests for module 'unistr/u8-prev'.
65364         * modules/unistr/u8-prev-tests: New file.
65365         * tests/unistr/test-u8-prev.c: New file.
65367         Tests for module 'unistr/u32-next'.
65368         * modules/unistr/u32-next-tests: New file.
65369         * tests/unistr/test-u32-next.c: New file.
65371         Tests for module 'unistr/u16-next'.
65372         * modules/unistr/u16-next-tests: New file.
65373         * tests/unistr/test-u16-next.c: New file.
65375         Tests for module 'unistr/u8-next'.
65376         * modules/unistr/u8-next-tests: New file.
65377         * tests/unistr/test-u8-next.c: New file.
65379         Tests for module 'unistr/u32-strmbtouc'.
65380         * modules/unistr/u32-strmbtouc-tests: New file.
65381         * tests/unistr/test-u32-strmbtouc.c: New file.
65383         Tests for module 'unistr/u16-strmbtouc'.
65384         * modules/unistr/u16-strmbtouc-tests: New file.
65385         * tests/unistr/test-u16-strmbtouc.c: New file.
65387         Tests for module 'unistr/u8-strmbtouc'.
65388         * modules/unistr/u8-strmbtouc-tests: New file.
65389         * tests/unistr/test-u8-strmbtouc.c: New file.
65391         Tests for module 'unistr/u32-strmblen'.
65392         * modules/unistr/u32-strmblen-tests: New file.
65393         * tests/unistr/test-u32-strmblen.c: New file.
65395         Tests for module 'unistr/u16-strmblen'.
65396         * modules/unistr/u16-strmblen-tests: New file.
65397         * tests/unistr/test-u16-strmblen.c: New file.
65399         Tests for module 'unistr/u8-strmblen'.
65400         * modules/unistr/u8-strmblen-tests: New file.
65401         * tests/unistr/test-u8-strmblen.c: New file.
65403         Tests for module 'unistr/u32-cpy-alloc'.
65404         * modules/unistr/u32-cpy-alloc-tests: New file.
65405         * tests/unistr/test-u32-cpy-alloc.c: New file.
65407         Tests for module 'unistr/u16-cpy-alloc'.
65408         * modules/unistr/u16-cpy-alloc-tests: New file.
65409         * tests/unistr/test-u16-cpy-alloc.c: New file.
65411         Tests for module 'unistr/u8-cpy-alloc'.
65412         * modules/unistr/u8-cpy-alloc-tests: New file.
65413         * tests/unistr/test-u8-cpy-alloc.c: New file.
65414         * tests/unistr/test-cpy-alloc.h: New file.
65416         Tests for module 'unistr/u32-mbsnlen'.
65417         * modules/unistr/u32-mbsnlen-tests: New file.
65418         * tests/unistr/test-u32-mbsnlen.c: New file.
65420         Tests for module 'unistr/u16-mbsnlen'.
65421         * modules/unistr/u16-mbsnlen-tests: New file.
65422         * tests/unistr/test-u16-mbsnlen.c: New file.
65424         Tests for module 'unistr/u8-mbsnlen'.
65425         * modules/unistr/u8-mbsnlen-tests: New file.
65426         * tests/unistr/test-u8-mbsnlen.c: New file.
65428         Tests for module 'unistr/u32-chr'.
65429         * modules/unistr/u32-chr-tests: New file.
65430         * tests/unistr/test-u32-chr.c: New file.
65432         Tests for module 'unistr/u16-chr'.
65433         * modules/unistr/u16-chr-tests: New file.
65434         * tests/unistr/test-u16-chr.c: New file.
65436         Tests for module 'unistr/u8-chr'.
65437         * modules/unistr/u8-chr-tests: New file.
65438         * tests/unistr/test-u8-chr.c: New file.
65439         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
65441         Tests for module 'unistr/u32-cmp2'.
65442         * modules/unistr/u32-cmp2-tests: New file.
65443         * tests/unistr/test-u32-cmp2.c: New file.
65445         Tests for module 'unistr/u16-cmp2'.
65446         * modules/unistr/u16-cmp2-tests: New file.
65447         * tests/unistr/test-u16-cmp2.c: New file.
65449         Tests for module 'unistr/u8-cmp2'.
65450         * modules/unistr/u8-cmp2-tests: New file.
65451         * tests/unistr/test-u8-cmp2.c: New file.
65452         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
65454         Tests for module 'unistr/u32-cmp'.
65455         * modules/unistr/u32-cmp-tests: New file.
65456         * tests/unistr/test-u32-cmp.c: New file.
65458         Tests for module 'unistr/u16-cmp'.
65459         * modules/unistr/u16-cmp-tests: New file.
65460         * tests/unistr/test-u16-cmp.c: New file.
65462         Tests for module 'unistr/u8-cmp'.
65463         * modules/unistr/u8-cmp-tests: New file.
65464         * tests/unistr/test-u8-cmp.c: New file.
65465         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
65467         Tests for module 'unistr/u32-set'.
65468         * modules/unistr/u32-set-tests: New file.
65469         * tests/unistr/test-u32-set.c: New file.
65471         Tests for module 'unistr/u16-set'.
65472         * modules/unistr/u16-set-tests: New file.
65473         * tests/unistr/test-u16-set.c: New file.
65475         Tests for module 'unistr/u8-set'.
65476         * modules/unistr/u8-set-tests: New file.
65477         * tests/unistr/test-u8-set.c: New file.
65478         * tests/unistr/test-set.h: New file.
65480         Tests for module 'unistr/u32-move'.
65481         * modules/unistr/u32-move-tests: New file.
65482         * tests/unistr/test-u32-move.c: New file.
65484         Tests for module 'unistr/u16-move'.
65485         * modules/unistr/u16-move-tests: New file.
65486         * tests/unistr/test-u16-move.c: New file.
65488         Tests for module 'unistr/u8-move'.
65489         * modules/unistr/u8-move-tests: New file.
65490         * tests/unistr/test-u8-move.c: New file.
65491         * tests/unistr/test-move.h: New file.
65493         Tests for module 'unistr/u32-cpy'.
65494         * modules/unistr/u32-cpy-tests: New file.
65495         * tests/unistr/test-u32-cpy.c: New file.
65497         Tests for module 'unistr/u16-cpy'.
65498         * modules/unistr/u16-cpy-tests: New file.
65499         * tests/unistr/test-u16-cpy.c: New file.
65501         Tests for module 'unistr/u8-cpy'.
65502         * modules/unistr/u8-cpy-tests: New file.
65503         * tests/unistr/test-u8-cpy.c: New file.
65504         * tests/unistr/test-cpy.h: New file.
65506 2010-01-09  Bruno Haible  <bruno@clisp.org>
65508         Tests for module 'unistr/u32-uctomb'.
65509         * modules/unistr/u32-uctomb-tests: New file.
65510         * tests/unistr/test-u32-uctomb.c: New file.
65512         Tests for module 'unistr/u16-uctomb'.
65513         * modules/unistr/u16-uctomb-tests: New file.
65514         * tests/unistr/test-u16-uctomb.c: New file.
65516         Tests for module 'unistr/u8-uctomb'.
65517         * modules/unistr/u8-uctomb-tests: New file.
65518         * tests/unistr/test-u8-uctomb.c: New file.
65520         Tests for module 'unistr/u32-mbtoucr'.
65521         * modules/unistr/u32-mbtoucr-tests: New file.
65522         * tests/unistr/test-u32-mbtoucr.c: New file.
65524         Tests for module 'unistr/u16-mbtoucr'.
65525         * modules/unistr/u16-mbtoucr-tests: New file.
65526         * tests/unistr/test-u16-mbtoucr.c: New file.
65528         Tests for module 'unistr/u8-mbtoucr'.
65529         * modules/unistr/u8-mbtoucr-tests: New file.
65530         * tests/unistr/test-u8-mbtoucr.c: New file.
65532         Tests for module 'unistr/u32-mbtouc'.
65533         * modules/unistr/u32-mbtouc-tests: New file.
65534         * tests/unistr/test-u32-mbtouc.c: New file.
65536         Tests for module 'unistr/u16-mbtouc'.
65537         * modules/unistr/u16-mbtouc-tests: New file.
65538         * tests/unistr/test-u16-mbtouc.c: New file.
65540         Tests for module 'unistr/u8-mbtouc'.
65541         * modules/unistr/u8-mbtouc-tests: New file.
65542         * tests/unistr/test-u8-mbtouc.c: New file.
65544         Tests for module 'unistr/u32-mbtouc-unsafe'.
65545         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
65546         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
65547         * tests/unistr/test-u32-mbtouc.h: New file.
65549         Tests for module 'unistr/u16-mbtouc-unsafe'.
65550         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
65551         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
65552         * tests/unistr/test-u16-mbtouc.h: New file.
65554         Tests for module 'unistr/u8-mbtouc-unsafe'.
65555         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
65556         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
65557         * tests/unistr/test-u8-mbtouc.h: New file.
65559         Tests for module 'unistr/u32-mblen'.
65560         * modules/unistr/u32-mblen-tests: New file.
65561         * tests/unistr/test-u32-mblen.c: New file.
65563         Tests for module 'unistr/u16-mblen'.
65564         * modules/unistr/u16-mblen-tests: New file.
65565         * tests/unistr/test-u16-mblen.c: New file.
65567         Tests for module 'unistr/u8-mblen'.
65568         * modules/unistr/u8-mblen-tests: New file.
65569         * tests/unistr/test-u8-mblen.c: New file.
65571         Tests for module 'unistr/u32-to-u16'.
65572         * modules/unistr/u32-to-u16-tests: New file.
65573         * tests/unistr/test-u32-to-u16.c: New file.
65575         Tests for module 'unistr/u32-to-u8'.
65576         * modules/unistr/u32-to-u8-tests: New file.
65577         * tests/unistr/test-u32-to-u8.c: New file.
65579         Tests for module 'unistr/u16-to-u32'.
65580         * modules/unistr/u16-to-u32-tests: New file.
65581         * tests/unistr/test-u16-to-u32.c: New file.
65583         Tests for module 'unistr/u16-to-u8'.
65584         * modules/unistr/u16-to-u8-tests: New file.
65585         * tests/unistr/test-u16-to-u8.c: New file.
65587         Tests for module 'unistr/u8-to-u32'.
65588         * modules/unistr/u8-to-u32-tests: New file.
65589         * tests/unistr/test-u8-to-u32.c: New file.
65591         Tests for module 'unistr/u8-to-u16'.
65592         * modules/unistr/u8-to-u16-tests: New file.
65593         * tests/unistr/test-u8-to-u16.c: New file.
65595         Tests for module 'unistr/u32-check'.
65596         * modules/unistr/u32-check-tests: New file.
65597         * tests/unistr/test-u32-check.c: New file.
65599         Tests for module 'unistr/u16-check'.
65600         * modules/unistr/u16-check-tests: New file.
65601         * tests/unistr/test-u16-check.c: New file.
65603         Tests for module 'unistr/u8-check'.
65604         * modules/unistr/u8-check-tests: New file.
65605         * tests/unistr/test-u8-check.c: New file.
65607         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
65608         (category_equals): New function.
65609         (main): Add more tests.
65610         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
65612         * tests/unictype/test-bidi_byname.c (main): Add more tests.
65614 2010-01-10  Bruno Haible  <bruno@clisp.org>
65616         unistr/u*-strcoll: Try harder to distinguish different strings.
65617         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
65618         compare s1 and s2 to see if they are different.
65620 2010-01-10  Bruno Haible  <bruno@clisp.org>
65622         unistr/u*-stpncpy: Fix the return value.
65623         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
65624         description of the return value consistent with stpncpy in glibc.
65625         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
65626         written non-NUL unit.
65628 2010-01-10  Bruno Haible  <bruno@clisp.org>
65630         unistr/u*-next: Add missing dependencies.
65631         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
65632         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
65633         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
65635 2010-01-10  Bruno Haible  <bruno@clisp.org>
65637         unistr/u8-mbsnlen: Fix return value for incomplete character.
65638         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
65639         u8_mblen.
65640         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
65641         Remove unistr/u8-mblen.
65642         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
65643         u16_mblen.
65644         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
65645         Remove unistr/u16-mblen.
65647 2010-01-10  Bruno Haible  <bruno@clisp.org>
65649         wchar: Fix compilation error when <wchar.h> is used from coreutils.
65650         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
65651         Reported by Brian Gough <bjg@gnu.org> and
65652         Chris Clayton <chris2553@googlemail.com> via
65653         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
65655 2010-01-09  Bruno Haible  <bruno@clisp.org>
65657         unistr/u16-to-u32: Reject invalid input.
65658         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
65659         u16_mbtouc.
65660         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
65661         Remove unistr/u16-mbtouc.
65663         unistr/u16-to-u8: Reject invalid input.
65664         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
65665         u16_mbtouc.
65666         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
65667         Remove unistr/u16-mbtouc.
65669         unistr/u8-to-u32: Reject invalid input.
65670         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
65671         u8_mbtouc.
65672         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
65673         Remove unistr/u8-mbtouc.
65675         unistr/u8-to-u16: Reject invalid input.
65676         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
65677         u8_mbtouc.
65678         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
65679         Remove unistr/u8-mbtouc.
65681 2010-01-09  Bruno Haible  <bruno@clisp.org>
65683         Tests for module 'getlogin'.
65684         * modules/getlogin-tests: New file.
65685         * tests/test-getlogin.c: New file.
65687         New module 'getlogin'.
65688         * lib/unistd.in.h (getlogin): New declaration.
65689         * lib/getlogin.c: New file.
65690         * m4/getlogin.m4: New file.
65691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
65692         HAVE_GETLOGIN.
65693         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
65694         HAVE_GETLOGIN.
65695         * modules/getlogin: New file.
65696         * doc/posix-functions/getlogin.texi: Mention the new module.
65697         Reported by John W. Eaton <jwe@gnu.org>.
65699 2010-01-09  Bruno Haible  <bruno@clisp.org>
65701         getlogin_r: Support for native Windows.
65702         * lib/getlogin_r.c: Include <windows.h>
65703         (getlogin_r): Implement for native Windows.
65704         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
65705         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
65706         via John W. Eaton <jwe@gnu.org>.
65708 2010-01-09  Bruno Haible  <bruno@clisp.org>
65710         getlogin_r: Small fixes.
65711         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
65712         succeeds.
65713         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
65714         before testing whether getlogin_r is declared. No need to set
65715         HAVE_DECL_GETLOGIN_R to 1.
65716         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
65718 2010-01-09  Bruno Haible  <bruno@clisp.org>
65720         * lib/unistd.in.h (getlogin_r): Add comment.
65722 2010-01-09  Bruno Haible  <bruno@clisp.org>
65724         Tests for module 'getlogin_r'.
65725         * modules/getlogin_r-tests: New file.
65726         * tests/test-getlogin_r.c: New file.
65728 2010-01-09  Jim Meyering  <meyering@redhat.com>
65730         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
65731         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
65732         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
65734 2010-01-08  Simon Josefsson  <simon@josefsson.org>
65736         * lib/dup2.c (rpl_dup2): Improve comment.
65738 2010-01-08  Eric Blake  <ebb9@byu.net>
65740         maint.mk: allow packages to add makefile @@ exceptions
65741         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
65742         (sc_makefile_check): Rename...
65743         (sc_makefile_at_at_check): ...to this, and use hook.
65745         dup2: work around mingw bug
65746         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
65747         Reported by Simon Josefsson.
65749 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
65751         glob: Fix C++ compilation.
65752         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
65753         C++.
65755 2010-01-07  Bruno Haible  <bruno@clisp.org>
65757         Fix indentation of wctype.in.h, broken since 2007-01-06.
65758         * lib/wctype.in.h: Fix indentation of preprocessor directives.
65760 2010-01-07  Bruno Haible  <bruno@clisp.org>
65762         mbslen: Avoid collision with system function.
65763         * lib/string.in.h [MirBSD]: Include <wchar.h>.
65764         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
65765         * m4/mbslen.m4: New file.
65766         * modules/mbslen (Files): Add it.
65767         (configure.ac): Invoke gl_MBSLEN.
65768         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
65769         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
65770         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
65771         via Ian Beckwith <ianb@erislabs.net>.
65773 2010-01-07  Bruno Haible  <bruno@clisp.org>
65775         dirent: Document the last fix.
65776         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
65778 2010-01-07  Bruno Haible  <bruno@clisp.org>
65780         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
65781         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
65782         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
65783         va_list are defined.
65784         * doc/posix-headers/stdio.texi: Document the bug of missing types.
65785         Reported by Eric Blake.
65787 2010-01-07  Bruno Haible  <bruno@clisp.org>
65789         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
65790         * modules/xlist (Depends-on): Add 'list',
65791         * modules/xoset (Depends-on): Add 'oset'.
65792         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65794 2010-01-07  Bruno Haible  <bruno@clisp.org>
65796         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
65797         * doc/posix-functions/strncasecmp.texi: Likewise.
65799 2010-01-07  Bruno Haible  <bruno@clisp.org>
65801         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
65803 2010-01-07  John W. Eaton  <jwe@octave.org>
65805         wctype: allow C++ use
65806         * lib/wctype.in.h: Add extern "C" block for C++.
65808 2010-01-06  Eric Blake  <ebb9@byu.net>
65810         maint.mk: detect incorrect GFDL usage
65811         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
65813 2010-01-06  Jim Meyering  <meyering@redhat.com>
65814         and Eric Blake  <ebb9@byu.net>
65816         maint.mk: ignore multi-line copyright in NEWS
65817         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
65819 2010-01-06  Eric Blake  <ebb9@byu.net>
65821         select: add missing dependency
65822         * modules/select-tests (Depends-on): Move sockets dependency...
65823         * modules/select (Depends-on): ...here.
65824         Reported by Ian Beckwith.
65826         doc: regenerate INSTALL
65827         * doc/INSTALL: Reflect recent autoconf update.
65828         * doc/INSTALL.ISO: Likewise.
65829         * doc/INSTALL.UTF-8: Likewise.
65831         pread: fix compilation on glibc
65832         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
65833         Reported by Ralf Wildenhues.
65835         dirent: fix test failure
65836         * lib/dirent.in.h (includes): Guarantee ino_t.
65837         Reported by Ralf Wildenhues.
65839 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
65841         linkat, renameat: avoid bad free
65842         * lib/at-func2.c (at_func2): Fix typo.
65843         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
65845 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65847         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
65848         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
65849         to avoid failure of symlink test later.
65851 2010-01-06  Eric Blake  <ebb9@byu.net>
65853         stdio, unistd: guarantee ssize_t
65854         * lib/unistd.in.h (includes): Ensure that types required by POSIX
65855         2008 are exposed when needed.
65856         * lib/stdio.in.h (includes): Likewise.
65857         Reported by Ralf Wildenhues.
65859 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
65861         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
65862         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
65863         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
65865 2010-01-06  Jim Meyering  <meyering@redhat.com>
65867         readtokens: this module *does* require xalloc.h
65868         It uses only functions that were omitted by the old syntax-check rule.
65869         * lib/readtokens.c: Include "xalloc.h" once again.
65870         * modules/readtokens (Depends-on): Add xalloc.
65871         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
65873 2010-01-05  Eric Blake  <ebb9@byu.net>
65875         maint: support 'make announcement' from a VPATH build
65876         * top/maint.mk (announcement): Look for correct NEWS file.
65878 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
65880         utimens (fdutimens): ignore a negative FD, per contract
65881         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
65882         when we have a valid file descriptor.  Otherwise, using a brand
65883         new glibc (with just-patched futimens that now fails with EBADF)
65884         would cause this function to fail with ENOSYS.
65885         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
65886         See also http://bugzilla.redhat.com/552320.
65888 2010-01-05  Eric Blake  <ebb9@byu.net>
65890         strcase: document what it provides
65891         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
65892         gnulib module.
65893         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
65894         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
65896 2010-01-05  Jim Meyering  <meyering@redhat.com>
65898         maint: remove useless inclusions of "xalloc.h"
65899         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
65900         * lib/readtokens.c: Likewise.
65901         * lib/same.c: Likewise.
65902         * modules/getloadavg (Depends-on): Remove xalloc.
65903         * modules/readtokens: Likewise.
65904         * modules/same: Likewise.
65906         maint.mk: include 4 more function names in alloca.h-checking regexp
65907         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
65908         regexp.  Before, we would give a false-positive (saying alloca.h
65909         is included unnecessarily) when the only uses involved omitted symbols.
65911         xalloc.h: use consistent formatting
65912         * lib/xalloc.h: Move declarations to start in the first column.
65914 2010-01-05  Eric Blake  <ebb9@byu.net>
65916         mkdir: avoid xalloc
65917         * lib/mkdir.c (includes): Drop unused header.
65918         Reported by John W. Eaton.
65920 2010-01-04  Jim Meyering  <meyering@redhat.com>
65922         nl_langinfo: avoid configure-time syntax error
65923         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
65924         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
65925         the empty string.  Don't let that provoke a shell syntax error.
65927         regcomp, regexec, fnmatch: avoid array bounds read error
65928         * lib/regcomp.c (build_equiv_class): From glibc:
65929         Use only the low 24 bits of a findidx return value as an index
65930         into the weights array.  Patch by Ulrich Drepper:
65931         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
65932         * lib/regexec.c (check_node_accept_bytes): Likewise.
65933         * lib/fnmatch_loop.c (FCT): Likewise.
65935         regcomp: skip collseq lookup when there are no rules
65936         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
65937         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
65939         regcomp: recognize ill-formed { } expressions
65940         * lib/regcomp.c (parse_dup_op): From glibc:
65941         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
65943         regcomp: fix typo in comment
65944         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
65945         s/satisfy/satisfies/.
65947         regcomp: sync from glibc: remove dead store
65948         * lib/regcomp.c (duplicate_node_closure): Remove useless
65949         search_duplicated_node call and dead store.
65951         regcomp: sync from glibc; always use nl_langinfo
65952         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
65953         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
65954         * modules/regex (Depends-on): Add nl_langinfo.
65956 2010-01-04  Eric Blake  <ebb9@byu.net>
65958         fdopendir: fix configure test
65959         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
65961 2010-01-01  Bruno Haible  <bruno@clisp.org>
65963         wchar: Remove unused configure check.
65964         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
65966 2010-01-01  Eric Blake  <ebb9@byu.net>
65968         headers: make check of system header explicit
65969         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
65970         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
65971         ourselves.
65972         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
65973         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
65974         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
65975         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
65976         internals.
65977         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
65978         missing.
65979         Suggested by Bruno Haible.
65981 2010-01-01  Jim Meyering  <meyering@redhat.com>
65983         ChangeLog: tweak to eliminate unnecessary copyright line
65984         * ChangeLog: Remove a copyright line that was mistakenly updated
65985         by today's update-copyright run.  Reported by Eric Blake.
65987         test-update-copyright: don't let envvar setting cause test failure
65988         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
65990 2010-01-01  Bruno Haible  <bruno@clisp.org>
65992         localename: Avoid gcc warning.
65993         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
65994         function if it is not used.
65996 2010-01-01  Jim Meyering  <meyering@redhat.com>
65998         update nearly all FSF copyright year lists to include 2010
65999         Use the same procedure as for 2009, outlined in
66000         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
66002         version-etc: set COPYRIGHT_YEAR to 2010
66003         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
66005 2009-12-31  Eric Blake  <ebb9@byu.net>
66007         doc: correct availability of cygwin 1.5.x getopt
66008         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
66009         variables.
66010         * doc/posix-functions/opterr.texi (opterr): Likewise.
66011         * doc/posix-functions/optind.texi (optind): Likewise.
66012         * doc/posix-functions/optopt.texi (optopt): Likewise.
66013         * doc/posix-functions/tzname.texi (tzname): Likewise.
66015         openat: update maintainer
66016         * modules/openat (Maintainer): Add myself.
66018         utimens: avoid shadowing warning
66019         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
66020         buffers into one, to avoid shadowing, as well as avoiding a
66021         redundant stat.
66022         Reported by Jim Meyering.
66024         test-dup2: avoid compiler warning
66025         * tests/test-dup2.c (is_inheritable): Only define if used.
66027 2010-01-01  Bruno Haible  <bruno@clisp.org>
66029         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
66030         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
66031         defined, use wctomb instead of wcrtomb.
66033 2010-01-01  Bruno Haible  <bruno@clisp.org>
66035         iconv: Reject native Solaris iconv.
66036         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
66037         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
66039 2009-12-31  Bruno Haible  <bruno@clisp.org>
66041         * tests/test-signal.c (main): Remove test of 'SIG'.
66043 2009-12-31  Bruno Haible  <bruno@clisp.org>
66045         spawn: Fix incomplete fix.
66046         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
66047         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
66048         warnings for GNULIB_POSIXCHECK again.
66049         Reported by Eric Blake.
66051 2009-12-31  Bruno Haible  <bruno@clisp.org>
66053         Avoid namespace pollution on glibc systems.
66054         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
66055         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
66056         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
66057         glibc systems.
66059 2009-12-31  Bruno Haible  <bruno@clisp.org>
66061         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
66062         (gl_REPLACE_WCHAR_H): Turn into a no-op.
66063         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
66064         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
66065         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
66066         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
66067         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
66069 2009-12-31  Bruno Haible  <bruno@clisp.org>
66071         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
66072         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
66073         afterwards.
66075 2009-12-31  Bruno Haible  <bruno@clisp.org>
66077         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
66078         SYS_UTSNAME_H.
66080 2009-12-31  Bruno Haible  <bruno@clisp.org>
66082         spawn: Fix misapplied patch.
66083         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
66084         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
66085         warnings for GNULIB_POSIXCHECK.
66087 2009-12-31  Bruno Haible  <bruno@clisp.org>
66089         times: Update after sys_times changed.
66090         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
66091         * modules/times (Files): Add it.
66092         (configure.ac): Invoke gl_FUNC_TIMES.
66094 2009-12-31  Bruno Haible  <bruno@clisp.org>
66096         Use AC_C_INLINE where necessary.
66097         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
66098         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
66099         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
66100         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
66101         * m4/mbfile.m4 (gl_MBFILE): Likewise.
66102         * m4/mbiter.m4 (gl_MBITER): Likewise.
66103         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66104         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
66105         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
66106         * modules/u64 (configure.ac): Likewise.
66108 2009-12-31  Bruno Haible  <bruno@clisp.org>
66110         Use AC_C_INLINE instead of module 'inline' where possible.
66111         * modules/inline (Description): Clarify purpose.
66112         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
66113         * modules/count-one-bits (Depends-on): Remove inline.
66114         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
66115         * modules/openat (Depends-on): Remove inline.
66116         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
66117         instead of depending on module 'inline'.
66118         * modules/filevercmp (Depends-on, configure.ac): Likewise.
66119         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
66120         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
66121         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
66122         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
66123         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
66124         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
66125         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
66126         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
66127         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
66128         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
66129         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
66130         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
66131         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
66132         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
66133         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
66134         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
66135         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
66136         Likewise.
66137         * modules/unictype/property-ascii-hex-digit (Depends-on,
66138         configure.ac): Likewise.
66139         * modules/unictype/property-bidi-arabic-digit (Depends-on,
66140         configure.ac): Likewise.
66141         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
66142         configure.ac): Likewise.
66143         * modules/unictype/property-bidi-block-separator (Depends-on,
66144         configure.ac): Likewise.
66145         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
66146         configure.ac): Likewise.
66147         * modules/unictype/property-bidi-common-separator (Depends-on,
66148         configure.ac): Likewise.
66149         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
66150         Likewise.
66151         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
66152         configure.ac): Likewise.
66153         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
66154         configure.ac): Likewise.
66155         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
66156         configure.ac): Likewise.
66157         * modules/unictype/property-bidi-european-digit (Depends-on,
66158         configure.ac): Likewise.
66159         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
66160         configure.ac): Likewise.
66161         * modules/unictype/property-bidi-left-to-right (Depends-on,
66162         configure.ac): Likewise.
66163         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
66164         configure.ac): Likewise.
66165         * modules/unictype/property-bidi-other-neutral (Depends-on,
66166         configure.ac): Likewise.
66167         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
66168         Likewise.
66169         * modules/unictype/property-bidi-segment-separator (Depends-on,
66170         configure.ac): Likewise.
66171         * modules/unictype/property-bidi-whitespace (Depends-on,
66172         configure.ac): Likewise.
66173         * modules/unictype/property-combining (Depends-on, configure.ac):
66174         Likewise.
66175         * modules/unictype/property-composite (Depends-on, configure.ac):
66176         Likewise.
66177         * modules/unictype/property-currency-symbol (Depends-on,
66178         configure.ac): Likewise.
66179         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
66180         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
66181         Likewise.
66182         * modules/unictype/property-default-ignorable-code-point (Depends-on,
66183         configure.ac): Likewise.
66184         * modules/unictype/property-deprecated (Depends-on, configure.ac):
66185         Likewise.
66186         * modules/unictype/property-diacritic (Depends-on, configure.ac):
66187         Likewise.
66188         * modules/unictype/property-extender (Depends-on, configure.ac):
66189         Likewise.
66190         * modules/unictype/property-format-control (Depends-on, configure.ac):
66191         Likewise.
66192         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
66193         Likewise.
66194         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
66195         Likewise.
66196         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
66197         Likewise.
66198         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
66199         Likewise.
66200         * modules/unictype/property-hyphen (Depends-on, configure.ac):
66201         Likewise.
66202         * modules/unictype/property-id-continue (Depends-on, configure.ac):
66203         Likewise.
66204         * modules/unictype/property-id-start (Depends-on, configure.ac):
66205         Likewise.
66206         * modules/unictype/property-ideographic (Depends-on, configure.ac):
66207         Likewise.
66208         * modules/unictype/property-ids-binary-operator (Depends-on,
66209         configure.ac): Likewise.
66210         * modules/unictype/property-ids-trinary-operator (Depends-on,
66211         configure.ac): Likewise.
66212         * modules/unictype/property-ignorable-control (Depends-on,
66213         configure.ac): Likewise.
66214         * modules/unictype/property-iso-control (Depends-on, configure.ac):
66215         Likewise.
66216         * modules/unictype/property-join-control (Depends-on, configure.ac):
66217         Likewise.
66218         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
66219         Likewise.
66220         * modules/unictype/property-line-separator (Depends-on, configure.ac):
66221         Likewise.
66222         * modules/unictype/property-logical-order-exception (Depends-on,
66223         configure.ac): Likewise.
66224         * modules/unictype/property-lowercase (Depends-on, configure.ac):
66225         Likewise.
66226         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
66227         * modules/unictype/property-non-break (Depends-on, configure.ac):
66228         Likewise.
66229         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
66230         Likewise.
66231         * modules/unictype/property-numeric (Depends-on, configure.ac):
66232         Likewise.
66233         * modules/unictype/property-other-alphabetic (Depends-on,
66234         configure.ac): Likewise.
66235         * modules/unictype/property-other-default-ignorable-code-point
66236         (Depends-on, configure.ac): Likewise.
66237         * modules/unictype/property-other-grapheme-extend (Depends-on,
66238         configure.ac): Likewise.
66239         * modules/unictype/property-other-id-continue (Depends-on,
66240         configure.ac): Likewise.
66241         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
66242         Likewise.
66243         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
66244         Likewise.
66245         * modules/unictype/property-other-math (Depends-on, configure.ac):
66246         Likewise.
66247         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
66248         Likewise.
66249         * modules/unictype/property-paired-punctuation (Depends-on,
66250         configure.ac): Likewise.
66251         * modules/unictype/property-paragraph-separator (Depends-on,
66252         configure.ac): Likewise.
66253         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
66254         Likewise.
66255         * modules/unictype/property-pattern-white-space (Depends-on,
66256         configure.ac): Likewise.
66257         * modules/unictype/property-private-use (Depends-on, configure.ac):
66258         Likewise.
66259         * modules/unictype/property-punctuation (Depends-on, configure.ac):
66260         Likewise.
66261         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
66262         Likewise.
66263         * modules/unictype/property-radical (Depends-on, configure.ac):
66264         Likewise.
66265         * modules/unictype/property-sentence-terminal (Depends-on,
66266         configure.ac): Likewise.
66267         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
66268         Likewise.
66269         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
66270         * modules/unictype/property-terminal-punctuation (Depends-on,
66271         configure.ac): Likewise.
66272         * modules/unictype/property-titlecase (Depends-on, configure.ac):
66273         Likewise.
66274         * modules/unictype/property-unassigned-code-value (Depends-on,
66275         configure.ac): Likewise.
66276         * modules/unictype/property-unified-ideograph (Depends-on,
66277         configure.ac): Likewise.
66278         * modules/unictype/property-uppercase (Depends-on, configure.ac):
66279         Likewise.
66280         * modules/unictype/property-variation-selector (Depends-on,
66281         configure.ac): Likewise.
66282         * modules/unictype/property-white-space (Depends-on, configure.ac):
66283         Likewise.
66284         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
66285         Likewise.
66286         * modules/unictype/property-xid-start (Depends-on, configure.ac):
66287         Likewise.
66288         * modules/unictype/property-zero-width (Depends-on, configure.ac):
66289         Likewise.
66290         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
66291         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
66292         Likewise.
66294 2009-12-31  Bruno Haible  <bruno@clisp.org>
66296         Remove unnecessary AC_C_INLINE invocation.
66297         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
66298         since 2009-08-21.
66300 2009-12-31  Jim Meyering  <meyering@redhat.com>
66302         maint.mk: don't require explicit gpg_key_ID in cfg.mk
66303         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
66304         With this change, we can all remove the gpg_key_ID = ... definition
66305         from our respective cfg.mk files.
66307         maint.mk: create announcement template in ~/, not in /tmp
66308         * top/maint.mk (emit_upload_commands): Adjust.
66309         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
66310         Remove temporary file, .ci-msg.
66312 2009-12-31  Eric Blake  <ebb9@byu.net>
66314         link-warning: always build headers with link warnings
66315         * modules/arpa_inet (Makefile.am): Always build replacement
66316         header.
66317         * modules/ctype (Makefile.am): Likewise.
66318         * modules/dirent (Makefile.am): Likewise.
66319         * modules/inttypes (Makefile.am): Likewise.
66320         * modules/langinfo (Makefile.am): Likewise.
66321         * modules/locale (Makefile.am): Likewise.
66322         * modules/spawn (Makefile.am): Likewise.
66323         * modules/sys_file (Makefile.am): Likewise.
66324         * modules/sys_ioctl (Makefile.am): Likewise.
66325         * modules/sys_select (Makefile.am): Likewise.
66326         * modules/sys_socket (Makefile.am): Likewise.
66327         * modules/sys_times (Makefile.am): Likewise.
66328         * modules/sys_utsname (Makefile.am): Likewise.
66329         * modules/sys_wait (Makefile.am): Likewise.
66330         * modules/wchar (Makefile.am): Likewise.
66331         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
66332         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
66333         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
66334         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
66335         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
66336         Likewise.
66337         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
66338         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
66339         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
66340         Likewise.
66341         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
66342         Likewise.
66343         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
66344         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
66345         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
66346         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
66347         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
66348         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
66349         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
66350         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
66351         (gl_WCHAR_H_DEFAULTS): Likewise.
66353 2009-12-31  Eric Blake  <ebb9@byu.net>
66355         signal, spawn: use link warnings
66356         * lib/signal.in.h (sigset_t): Make unconditional.
66357         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
66358         (sigpending, sigprocmask, sigaction): Add link warnings.
66359         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
66360         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
66361         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
66362         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
66363         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
66364         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
66365         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
66366         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
66367         (posix_spawn_file_actions_destroy)
66368         (posix_spawn_file_actions_addopen)
66369         (posix_spawn_file_actions_addclose)
66370         (posix_spawn_file_actions_adddup2): Likewise.
66371         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
66372         * tests/test-signal.c (main): Enhance test.
66374         spawn: improve wrapper support
66375         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
66376         (gl_SPAWN_H_DEFAULTS): New defaults.
66377         * modules/spawn (Makefile.am): Substitute them.
66378         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
66379         Only declare if missing or broken.
66381         sys_times, sys_utsname: use include_next
66382         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
66383         header.
66384         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
66385         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
66386         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
66387         * modules/sys_times (Depends-on): Add include_next.
66388         (Makefile.am): Substitute additional values.
66389         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
66390         * lib/sys_times.in.h (includes): Include native header, if
66391         available.
66392         * lib/sys_utsname.in.h (includes): Likewise.
66393         * tests/test-sys_times.c (main): Enhance test.
66395         fdutimensat: revert prior patch
66396         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
66397         utimens.h.
66398         Reported by Bruno Haible.
66400 2009-12-30  Eric Blake  <ebb9@byu.net>
66402         sys_wait: drop link-warning dependency
66403         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
66404         link-warning efforts.
66405         * lib/sys_wait.in.h: Likewise.
66407         fdutimensat: remove bogus dependency
66408         * modules/fdutimensat (Depends-on): Drop inline.
66410         unistd: fix typo
66411         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
66413 2009-12-30  Bruno Haible  <bruno@clisp.org>
66415         Fix compilation error with Solaris cc.
66416         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
66417         * lib/unicase/u16-is-invariant.c: Likewise.
66418         * lib/unicase/u32-is-invariant.c: Likewise.
66419         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66421 2009-12-30  Bruno Haible  <bruno@clisp.org>
66423         Fix test crash.
66424         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
66425         locales.
66426         Reported by Simon Josefsson <simon@josefsson.org>.
66428 2009-12-30  Bruno Haible  <bruno@clisp.org>
66430         Fix compilation error on most platforms.
66431         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
66432         Reported by Simon Josefsson <simon@josefsson.org>
66433         and Nelson H. F. Beebe <beebe@math.utah.edu>.
66435 2009-12-30  Eric Blake  <ebb9@byu.net>
66437         futimens, utimensat: work around ntfs-3g bug
66438         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
66439         a ctime bug is present, and expand workaround to cover ntfs-3g.
66440         * lib/utimens.c (fdutimens, lutimens): Likewise.
66441         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
66442         (validate_timespec): Adjust return value.
66443         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
66444         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
66445         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
66447 2009-12-29  Eric Blake  <ebb9@byu.net>
66449         link-warning: make usage consistent
66450         * modules/ctype (Depends-on): Add link-warning.
66451         (Makefile.am): Update rules accordingly.
66452         * modules/langinfo (Depends-on, Makefile.am): Likewise.
66453         * modules/locale (Depends-on, Makefile.am): Likewise.
66454         * modules/sys_file (Makefile.am): Likewise.
66455         * modules/getopt-posix (Makefile.am): Delete unused link warning
66456         efforts.
66457         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
66458         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
66459         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
66460         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
66462         stdio: remove unused variables
66463         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
66464         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
66465         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
66467         tests: test more substitute headers
66468         * modules/ctype-tests: New file.
66469         * modules/dirent-tests: Likewise.
66470         * modules/spawn-tests: Likewise.
66471         * modules/sys_file-tests: Likewise.
66472         * modules/sys_ioctl-tests: Likewise.
66473         * modules/sys_wait-tests: Likewise.
66474         * tests/test-ctype.c: Likewise.
66475         * tests/test-dirent.c: Likewise.
66476         * tests/test-spawn.c: Likewise.
66477         * tests/test-sys_file.c: Likewise.
66478         * tests/test-sys_ioctl.c: Likewise.
66479         * tests/test-sys_wait.c: Likewise.
66480         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
66481         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
66482         whether or not flock is in use.
66484         tests: remove License section from module
66485         * modules/arpa_inet-tests: Remove unneeded section.
66486         * modules/byteswap-tests: Likewise.
66487         * modules/ceilf-tests: Likewise.
66488         * modules/ceill-tests: Likewise.
66489         * modules/crypto/des-tests: Likewise.
66490         * modules/crypto/gc-arcfour-tests: Likewise.
66491         * modules/crypto/gc-arctwo-tests: Likewise.
66492         * modules/crypto/gc-des-tests: Likewise.
66493         * modules/crypto/gc-hmac-md5-tests: Likewise.
66494         * modules/crypto/gc-hmac-sha1-tests: Likewise.
66495         * modules/crypto/gc-md2-tests: Likewise.
66496         * modules/crypto/gc-md4-tests: Likewise.
66497         * modules/crypto/gc-md5-tests: Likewise.
66498         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
66499         * modules/crypto/gc-rijndael-tests: Likewise.
66500         * modules/crypto/gc-sha1-tests: Likewise.
66501         * modules/crypto/gc-tests: Likewise.
66502         * modules/crypto/md2-tests: Likewise.
66503         * modules/crypto/md4-tests: Likewise.
66504         * modules/fcntl-h-tests: Likewise.
66505         * modules/floorf-tests: Likewise.
66506         * modules/floorl-tests: Likewise.
66507         * modules/frexp-nolibm-tests: Likewise.
66508         * modules/frexp-tests: Likewise.
66509         * modules/frexpl-nolibm-tests: Likewise.
66510         * modules/frexpl-tests: Likewise.
66511         * modules/getaddrinfo-tests: Likewise.
66512         * modules/inttypes-tests: Likewise.
66513         * modules/isfinite-tests: Likewise.
66514         * modules/isinf-tests: Likewise.
66515         * modules/ldexpl-tests: Likewise.
66516         * modules/locale-tests: Likewise.
66517         * modules/math-tests: Likewise.
66518         * modules/netdb-tests: Likewise.
66519         * modules/netinet_in-tests: Likewise.
66520         * modules/printf-frexp-tests: Likewise.
66521         * modules/printf-frexpl-tests: Likewise.
66522         * modules/priv-set-tests: Likewise.
66523         * modules/random_r-tests: Likewise.
66524         * modules/round-tests: Likewise.
66525         * modules/roundf-tests: Likewise.
66526         * modules/roundl-tests: Likewise.
66527         * modules/search-tests: Likewise.
66528         * modules/select-tests: Likewise.
66529         * modules/signal-tests: Likewise.
66530         * modules/stdbool-tests: Likewise.
66531         * modules/stddef-tests: Likewise.
66532         * modules/stdint-tests: Likewise.
66533         * modules/stdio-tests: Likewise.
66534         * modules/stdlib-tests: Likewise.
66535         * modules/string-tests: Likewise.
66536         * modules/strings-tests: Likewise.
66537         * modules/sys_select-tests: Likewise.
66538         * modules/sys_socket-tests: Likewise.
66539         * modules/sys_stat-tests: Likewise.
66540         * modules/sys_time-tests: Likewise.
66541         * modules/sys_utsname-tests: Likewise.
66542         * modules/sysexits-tests: Likewise.
66543         * modules/time-tests: Likewise.
66544         * modules/trunc-tests: Likewise.
66545         * modules/truncf-tests: Likewise.
66546         * modules/truncl-tests: Likewise.
66547         * modules/tsearch-tests: Likewise.
66548         * modules/unistd-tests: Likewise.
66549         * modules/wchar-tests: Likewise.
66550         * modules/wctype-tests: Likewise.
66552         tests: fix license on several tests
66553         * tests/test-des.c: Update to GPLv3+.
66554         * tests/test-flock.c: Likewise.
66555         * tests/test-fsync.c: Likewise.
66556         * tests/test-futimens.h: Likewise.
66557         * tests/test-gc-arcfour.c: Likewise.
66558         * tests/test-gc-arctwo.c: Likewise.
66559         * tests/test-gc-des.c: Likewise.
66560         * tests/test-gc-hmac-md5.c: Likewise.
66561         * tests/test-gc-hmac-sha1.c: Likewise.
66562         * tests/test-gc-md2.c: Likewise.
66563         * tests/test-gc-md4.c: Likewise.
66564         * tests/test-gc-md5.c: Likewise.
66565         * tests/test-gc-pbkdf2-sha1.c: Likewise.
66566         * tests/test-gc-rijndael.c: Likewise.
66567         * tests/test-gc-sha1.c: Likewise.
66568         * tests/test-gc.c: Likewise.
66569         * tests/test-getcwd.c: Likewise.
66570         * tests/test-link.c: Likewise.
66571         * tests/test-link.h: Likewise.
66572         * tests/test-lutimens.h: Likewise.
66573         * tests/test-md2.c: Likewise.
66574         * tests/test-md4.c: Likewise.
66575         * tests/test-mkdir.h: Likewise.
66576         * tests/test-rename.c: Likewise.
66577         * tests/test-rename.h: Likewise.
66578         * tests/test-safe-alloc.c: Likewise.
66579         * tests/test-utimens-common.h: Likewise.
66580         * tests/test-utimens.h: Likewise.
66582         maint: sync license texts
66583         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
66584         * doc/gpl-3.0.texi: Revert copyright year update.
66585         * doc/lgpl-3.0.texi: Likewise.
66587 2009-12-29  Jim Meyering  <meyering@redhat.com>
66589         update nearly all FSF copyright year lists to include 2009
66590         The files named by the following are exempted:
66591             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
66592               test -f "$dst" && { echo "$dst"; continue; }
66593               test -d "$dst" || continue
66594               echo "$dst"/$(basename "$src")
66595             done > exempt
66596             git ls-files tests/unictype >> exempt
66597         In the remaining files, convert to all-interval notation if
66598         - there is already at least one year interval like 2000-2003
66599         - the file is maintained by me
66600         - the file is in lib/uni*/, where that style already prevails
66601         Otherwise, use update-copyright's default.
66603 2009-12-29  Simon Josefsson  <simon@josefsson.org>
66604         and Eric Blake  <ebb9@byu.net>
66606         tests: don't require debug system() to pass
66607         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
66608         * tests/test-rmdir.h (test_rmdir_func): Likewise.
66609         * tests/test-unlink.h (test_unlink_func): Likewise.
66610         * tests/test-fstatat.c (main): ...into callers.
66611         * tests/test-lstat.c (main): Likewise.
66612         * tests/test-rmdir.c (main): Likewise.
66613         * tests/test-unlink.c (main): Likewise.
66614         * tests/test-unlinkat.c (main): Likewise.
66615         * tests/test-areadlink-with-size.c (main): Don't require a
66616         debug-only system call to pass, aiding cross-testing to mingw.
66617         * tests/test-areadlink.c (main): Likewise.
66618         * tests/test-areadlinkat-with-size.c (main): Likewise.
66619         * tests/test-areadlinkat.c (main): Likewise.
66620         * tests/test-canonicalize-lgpl.c (main): Likewise.
66621         * tests/test-canonicalize.c (main): Likewise.
66622         * tests/test-chown.c (main): Likewise.
66623         * tests/test-fchownat.c (main): Likewise.
66624         * tests/test-lchown.c (main): Likewise.
66625         * tests/test-fdutimensat.c (main): Likewise.
66626         * tests/test-futimens.c (main): Likewise.
66627         * tests/test-link.c (main): Likewise.
66628         * tests/test-linkat.c (main): Likewise.
66629         * tests/test-mkdir.c (main): Likewise.
66630         * tests/test-mkdirat.c (main): Likewise.
66631         * tests/test-mkfifo.c (main): Likewise.
66632         * tests/test-mkfifoat.c (main): Likewise.
66633         * tests/test-mknod.c (main): Likewise.
66634         * tests/test-readlink.c (main): Likewise.
66635         * tests/test-remove.c (main): Likewise.
66636         * tests/test-rename.c (main): Likewise.
66637         * tests/test-renameat.c (main): Likewise.
66638         * tests/test-symlink.c (main): Likewise.
66639         * tests/test-symlinkat.c (main): Likewise.
66640         * tests/test-utimens.c (main): Likewise.
66641         * tests/test-utimensat.c (main): Likewise.
66643 2009-12-29  Simon Josefsson  <simon@josefsson.org>
66645         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
66646         on $(UNUSED_PARAMETER_H) to avoid build failure.
66648 2009-12-28  Jim Meyering  <meyering@redhat.com>
66650         update-copyright: you may specify a max. line length other than 72
66651         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
66653         maint: use consistent FSF copyright line syntax
66654         * lib/posixtm.c: Add missing comma in FSF copyright line.
66655         * lib/posixtm.h: Likewise.
66656         * lib/getugroups.c: Add missing ", Inc.".
66658         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
66659         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
66660         FSF copyright line.  Remove trailing blanks.
66662 2009-12-28  Eric Blake  <ebb9@byu.net>
66664         test-dup2: reduce dependencies
66665         * modules/cloexec (Configure.ac): Set witness.
66666         * modules/dup2-tests (Depends-on): Drop cloexec.
66667         * tests/test-dup2.c (main): Skip portion of test if cloexec module
66668         not present.
66669         Suggested by Bruno Haible.
66671 2009-12-26  Bruno Haible  <bruno@clisp.org>
66673         Remove an unneeded dependency.
66674         * modules/fseterr (Depends-on): Remove dup2.
66676 2009-12-26  Eric Blake  <ebb9@byu.net>
66678         tests: use macros.h in more places
66679         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
66680         (ASSERT_STREAM): Provide default of stderr.
66681         * tests/test-dirent-safer.c: Include macros.h, using alternate
66682         stream for assertions.
66683         * tests/test-dup-safer.c: Likewise.
66684         * tests/test-freopen-safer.c: Likewise.
66685         * tests/test-getopt.c: Likewise.
66686         * tests/test-openat-safer.c: Likewise.
66687         * tests/test-pipe.c: Likewise.
66688         * tests/test-popen-safer.c: Likewise.
66689         * modules/dirent-safer-tests (Files): Include macros.h.
66690         * modules/unistd-safer-tests (Files): Likewise.
66691         * modules/freopen-safer-tests (Files): Likewise.
66692         * modules/getopt-posix-tests (Files): Likewise.
66693         * modules/openat-safer-tests (Files): Likewise.
66694         * modules/pipe-tests (Files): Likewise.
66696 2009-12-26  Bruno Haible  <bruno@clisp.org>
66698         javacomp-script: Portability fix.
66699         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
66700         that it also works on Solaris.
66702 2009-12-26  Bruno Haible  <bruno@clisp.org>
66704         localename: Fix storage allocation of gl_locale_name_thread's result.
66705         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
66706         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
66707         all platforms that have 'uselocale'.
66708         (gl_locale_name_thread_unsafe): New function, extracted from
66709         gl_locale_name_thread.
66710         (gl_locale_name_thread): Call struniq on all platforms that have
66711         'uselocale'.
66712         * tests/test-localename.c (test_locale_name_thread): Check that the
66713         resulting strings are permanently allocated.
66714         * modules/localename-tests (Depends-on): Add strdup.
66716 2009-12-26  Bruno Haible  <bruno@clisp.org>
66718         * tests/test-localename.c (categories): Fill in the strings.
66720 2009-12-26  Jim Meyering  <meyering@redhat.com>
66722         isdir: complete the removal of m4/isdir.m4
66723         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
66725         isdir: clean up, since at least grep still uses it
66726         * lib/isdir.c: Include "isdir.h".
66727         (S_ISDIR): Remove now-unneeded definition.
66728         * modules/isdir (Files): Add lib/isdir.h.
66729         * lib/isdir.h: New file, with declaration.
66730         * m4/isdir.m4: Remove file -- unneeded.
66732 2009-12-25  Bruno Haible  <bruno@clisp.org>
66734         selinux-h: Make generated .h files standalone.
66735         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
66736         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
66737         * lib/se-selinux.in.h: Likewise.
66738         * modules/selinux-h (Depends-on): Add unused-parameter.
66739         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
66740         selinux/selinux.h and selinux/context.h.
66741         Suggested by Eric Blake.
66743 2009-12-25  Bruno Haible  <bruno@clisp.org>
66745         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
66746         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
66747         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
66748         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
66749         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
66751 2009-12-24  Bruno Haible  <bruno@clisp.org>
66753         openat: Fix warning.
66754         * lib/openat-proc.c: Include <unistd.h>.
66756 2009-12-24  Bruno Haible  <bruno@clisp.org>
66758         New module 'unused-parameter'.
66759         * build-aux/unused-parameter.h: New file, extracted from earlier
66760         gnulib-common.m4.
66761         * modules/unused-parameter: New file.
66762         * lib/unistr.h: Include unused-parameter.h.
66763         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
66764         _GL_UNUSED.
66765         * modules/unistr/base (Depends-on): Add unused-parameter.
66767 2009-12-24  Bruno Haible  <bruno@clisp.org>
66769         Add missing dependencies to 'extensions' module.
66770         * m4/extensions.m4: Add comment.
66771         * modules/accept4 (Depends-on): Add extensions.
66772         * modules/dup3 (Depends-on): Likewise.
66773         * modules/fcntl (Depends-on): Likewise.
66774         * modules/futimens (Depends-on): Likewise.
66775         * modules/mknod (Depends-on): Likewise.
66776         * modules/pipe2 (Depends-on): Likewise.
66777         * modules/stat-time (Depends-on): Likewise.
66778         * modules/strcasestr-simple (Depends-on): Likewise.
66779         * modules/strsignal (Depends-on): Likewise.
66780         * modules/utimensat (Depends-on): Likewise.
66781         * modules/localcharset (Depends-on): Likewise. Needed because of
66782         gl_FCNTL_O_FLAGS.
66783         * modules/wcrtomb (Depends-on): Likewise. Needed because of
66784         AC_TYPE_MBSTATE_T.
66785         * modules/wcsnrtombs (Depends-on): Likewise.
66786         * modules/wcsrtombs (Depends-on): Likewise.
66788 2009-12-24  Bruno Haible  <bruno@clisp.org>
66790         binary-io: Avoid gcc warning due to SET_BINARY.
66791         * lib/binary-io.h (SET_BINARY): Cast the result to void.
66792         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
66794 2009-12-24  Bruno Haible  <bruno@clisp.org>
66796         Avoid future namespace pollution on glibc systems.
66797         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
66798         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
66799         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
66800         glibc systems.
66802 2009-12-24  Bruno Haible  <bruno@clisp.org>
66804         Refactor common macros used in tests.
66805         * tests/macros.h: New file.
66806         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
66807         and/or <stdlib.h>, if appropriate.
66808         (ASSERT, SIZEOF): Remove macros.
66809         * tests/test-areadlink-with-size.c: Likewise.
66810         * tests/test-areadlinkat.c: Likewise.
66811         * tests/test-areadlinkat-with-size.c: Likewise.
66812         * tests/test-argmatch.c: Likewise.
66813         * tests/test-argv-iter.c: Likewise.
66814         * tests/test-array-mergesort.c: Likewise.
66815         * tests/test-array_list.c: Likewise.
66816         * tests/test-array_oset.c: Likewise.
66817         * tests/test-avltree_list.c: Likewise.
66818         * tests/test-avltree_oset.c: Likewise.
66819         * tests/test-avltreehash_list.c: Likewise.
66820         * tests/test-base64.c: Likewise.
66821         * tests/test-binary-io.c: Likewise.
66822         * tests/test-bitrotate.c: Likewise.
66823         * tests/test-btowc.c: Likewise.
66824         * tests/test-byteswap.c: Likewise.
66825         * tests/test-c-ctype.c: Likewise.
66826         * tests/test-c-stack.c: Likewise.
66827         * tests/test-c-strcasecmp.c: Likewise.
66828         * tests/test-c-strcasestr.c: Likewise.
66829         * tests/test-c-strncasecmp.c: Likewise.
66830         * tests/test-c-strstr.c: Likewise.
66831         * tests/test-canonicalize-lgpl.c: Likewise.
66832         * tests/test-canonicalize.c: Likewise.
66833         * tests/test-carray_list.c: Likewise.
66834         * tests/test-ceilf1.c: Likewise.
66835         * tests/test-ceilf2.c: Likewise.
66836         * tests/test-ceill.c: Likewise.
66837         * tests/test-chown.c: Likewise.
66838         * tests/test-cloexec.c: Likewise.
66839         * tests/test-copy-acl.c: Likewise.
66840         * tests/test-copy-file.c: Likewise.
66841         * tests/test-count-one-bits.c: Likewise.
66842         * tests/test-dprintf-posix.c: Likewise.
66843         * tests/test-dup2.c: Likewise.
66844         * tests/test-dup3.c: Likewise.
66845         * tests/test-duplocale.c: Likewise.
66846         * tests/test-fbufmode.c: Likewise.
66847         * tests/test-fchdir.c: Likewise.
66848         * tests/test-fchownat.c: Likewise.
66849         * tests/test-fcntl-safer.c: Likewise.
66850         * tests/test-fcntl.c: Likewise.
66851         * tests/test-fdopendir.c: Likewise.
66852         * tests/test-fdutimensat.c: Likewise.
66853         * tests/test-fflush2.c: Likewise.
66854         * tests/test-file-has-acl.c: Likewise.
66855         * tests/test-filevercmp.c: Likewise.
66856         * tests/test-flock.c: Likewise.
66857         * tests/test-floorf1.c: Likewise.
66858         * tests/test-floorf2.c: Likewise.
66859         * tests/test-floorl.c: Likewise.
66860         * tests/test-fnmatch.c: Likewise.
66861         * tests/test-fopen.h: Likewise.
66862         * tests/test-fpending.c: Likewise.
66863         * tests/test-fprintf-posix.c: Likewise.
66864         * tests/test-fpurge.c: Likewise.
66865         * tests/test-freadable.c: Likewise.
66866         * tests/test-freadahead.c: Likewise.
66867         * tests/test-freading.c: Likewise.
66868         * tests/test-freadptr.c: Likewise.
66869         * tests/test-freadptr2.c: Likewise.
66870         * tests/test-freadseek.c: Likewise.
66871         * tests/test-freopen.c: Likewise.
66872         * tests/test-frexp.c: Likewise.
66873         * tests/test-frexpl.c: Likewise.
66874         * tests/test-fseek.c: Likewise.
66875         * tests/test-fseeko.c: Likewise.
66876         * tests/test-fstatat.c: Likewise.
66877         * tests/test-fstrcmp.c: Likewise.
66878         * tests/test-fsync.c: Likewise.
66879         * tests/test-ftell.c: Likewise.
66880         * tests/test-ftello.c: Likewise.
66881         * tests/test-func.c: Likewise.
66882         * tests/test-futimens.c: Likewise.
66883         * tests/test-fwritable.c: Likewise.
66884         * tests/test-fwriting.c: Likewise.
66885         * tests/test-getcwd.c: Likewise.
66886         * tests/test-getdate.c: Likewise.
66887         * tests/test-getdelim.c: Likewise.
66888         * tests/test-getdtablesize.c: Likewise.
66889         * tests/test-getgroups.c: Likewise.
66890         * tests/test-getline.c: Likewise.
66891         * tests/test-getndelim2.c: Likewise.
66892         * tests/test-glob.c: Likewise.
66893         * tests/test-hash.c: Likewise.
66894         * tests/test-i-ring.c: Likewise.
66895         * tests/test-iconv-utf.c: Likewise.
66896         * tests/test-iconv.c: Likewise.
66897         * tests/test-idpriv-drop.c: Likewise.
66898         * tests/test-idpriv-droptemp.c: Likewise.
66899         * tests/test-inet_ntop.c: Likewise.
66900         * tests/test-inet_pton.c: Likewise.
66901         * tests/test-isblank.c: Likewise.
66902         * tests/test-isfinite.c: Likewise.
66903         * tests/test-isinf.c: Likewise.
66904         * tests/test-isnan.c: Likewise.
66905         * tests/test-isnand.h: Likewise.
66906         * tests/test-isnanf.h: Likewise.
66907         * tests/test-isnanl.h: Likewise.
66908         * tests/test-lchown.c: Likewise.
66909         * tests/test-ldexpl.c: Likewise.
66910         * tests/test-link.c: Likewise.
66911         * tests/test-linkat.c: Likewise.
66912         * tests/test-linked_list.c: Likewise.
66913         * tests/test-linkedhash_list.c: Likewise.
66914         * tests/test-localename.c: Likewise.
66915         * tests/test-lseek.c: Likewise.
66916         * tests/test-lstat.c: Likewise.
66917         * tests/test-mbmemcasecmp.c: Likewise.
66918         * tests/test-mbmemcasecoll.c: Likewise.
66919         * tests/test-mbrtowc.c: Likewise.
66920         * tests/test-mbscasecmp.c: Likewise.
66921         * tests/test-mbscasestr1.c: Likewise.
66922         * tests/test-mbscasestr2.c: Likewise.
66923         * tests/test-mbscasestr3.c: Likewise.
66924         * tests/test-mbscasestr4.c: Likewise.
66925         * tests/test-mbschr.c: Likewise.
66926         * tests/test-mbscspn.c: Likewise.
66927         * tests/test-mbsinit.c: Likewise.
66928         * tests/test-mbsncasecmp.c: Likewise.
66929         * tests/test-mbsnrtowcs.c: Likewise.
66930         * tests/test-mbspbrk.c: Likewise.
66931         * tests/test-mbspcasecmp.c: Likewise.
66932         * tests/test-mbsrchr.c: Likewise.
66933         * tests/test-mbsrtowcs.c: Likewise.
66934         * tests/test-mbsspn.c: Likewise.
66935         * tests/test-mbsstr1.c: Likewise.
66936         * tests/test-mbsstr2.c: Likewise.
66937         * tests/test-mbsstr3.c: Likewise.
66938         * tests/test-memchr.c: Likewise.
66939         * tests/test-memchr2.c: Likewise.
66940         * tests/test-memcmp.c: Likewise.
66941         * tests/test-memmem.c: Likewise.
66942         * tests/test-memrchr.c: Likewise.
66943         * tests/test-mkdir.c: Likewise.
66944         * tests/test-mkdirat.c: Likewise.
66945         * tests/test-mkfifo.c: Likewise.
66946         * tests/test-mkfifoat.c: Likewise.
66947         * tests/test-mknod.c: Likewise.
66948         * tests/test-nanosleep.c: Likewise.
66949         * tests/test-nl_langinfo.c: Likewise.
66950         * tests/test-obstack-printf.c: Likewise.
66951         * tests/test-open.c: Likewise.
66952         * tests/test-openat.c: Likewise.
66953         * tests/test-pipe-filter-gi1.c: Likewise.
66954         * tests/test-pipe-filter-gi2-main.c: Likewise.
66955         * tests/test-pipe-filter-ii1.c: Likewise.
66956         * tests/test-pipe-filter-ii2-main.c: Likewise.
66957         * tests/test-pipe2.c: Likewise.
66958         * tests/test-popen.h: Likewise.
66959         * tests/test-posixtm.c: Likewise.
66960         * tests/test-pread.c: Likewise.
66961         * tests/test-printf-frexp.c: Likewise.
66962         * tests/test-printf-frexpl.c: Likewise.
66963         * tests/test-printf-posix.c: Likewise.
66964         * tests/test-priv-set.c: Likewise.
66965         * tests/test-quotearg.c: Likewise.
66966         * tests/test-random_r.c: Likewise.
66967         * tests/test-rawmemchr.c: Likewise.
66968         * tests/test-rbtree_list.c: Likewise.
66969         * tests/test-rbtree_oset.c: Likewise.
66970         * tests/test-rbtreehash_list.c: Likewise.
66971         * tests/test-readlink.c: Likewise.
66972         * tests/test-remove.c: Likewise.
66973         * tests/test-rename.c: Likewise.
66974         * tests/test-renameat.c: Likewise.
66975         * tests/test-rmdir.c: Likewise.
66976         * tests/test-round1.c: Likewise.
66977         * tests/test-roundf1.c: Likewise.
66978         * tests/test-roundl.c: Likewise.
66979         * tests/test-safe-alloc.c: Likewise.
66980         * tests/test-sameacls.c: Likewise.
66981         * tests/test-set-mode-acl.c: Likewise.
66982         * tests/test-setenv.c: Likewise.
66983         * tests/test-sigaction.c: Likewise.
66984         * tests/test-signbit.c: Likewise.
66985         * tests/test-sleep.c: Likewise.
66986         * tests/test-snprintf-posix.c: Likewise.
66987         * tests/test-snprintf.c: Likewise.
66988         * tests/test-sprintf-posix.c: Likewise.
66989         * tests/test-stat-time.c: Likewise.
66990         * tests/test-stat.c: Likewise.
66991         * tests/test-strcasestr.c: Likewise.
66992         * tests/test-strchrnul.c: Likewise.
66993         * tests/test-strerror.c: Likewise.
66994         * tests/test-striconv.c: Likewise.
66995         * tests/test-striconveh.c: Likewise.
66996         * tests/test-striconveha.c: Likewise.
66997         * tests/test-strsignal.c: Likewise.
66998         * tests/test-strstr.c: Likewise.
66999         * tests/test-strtod.c: Likewise.
67000         * tests/test-strverscmp.c: Likewise.
67001         * tests/test-symlink.c: Likewise.
67002         * tests/test-symlinkat.c: Likewise.
67003         * tests/test-trunc1.c: Likewise.
67004         * tests/test-trunc2.c: Likewise.
67005         * tests/test-truncf1.c: Likewise.
67006         * tests/test-truncf2.c: Likewise.
67007         * tests/test-truncl.c: Likewise.
67008         * tests/test-uname.c: Likewise.
67009         * tests/test-unlink.c: Likewise.
67010         * tests/test-unlinkat.c: Likewise.
67011         * tests/test-unsetenv.c: Likewise.
67012         * tests/test-usleep.c: Likewise.
67013         * tests/test-utimens.c: Likewise.
67014         * tests/test-utimensat.c: Likewise.
67015         * tests/test-vasnprintf-posix.c: Likewise.
67016         * tests/test-vasnprintf-posix2.c: Likewise.
67017         * tests/test-vasnprintf.c: Likewise.
67018         * tests/test-vasprintf-posix.c: Likewise.
67019         * tests/test-vasprintf.c: Likewise.
67020         * tests/test-vdprintf-posix.c: Likewise.
67021         * tests/test-vfprintf-posix.c: Likewise.
67022         * tests/test-vprintf-posix.c: Likewise.
67023         * tests/test-vsnprintf-posix.c: Likewise.
67024         * tests/test-vsnprintf.c: Likewise.
67025         * tests/test-vsprintf-posix.c: Likewise.
67026         * tests/test-wcrtomb.c: Likewise.
67027         * tests/test-wcsnrtombs.c: Likewise.
67028         * tests/test-wcsrtombs.c: Likewise.
67029         * tests/test-wctype.c: Likewise.
67030         * tests/test-wcwidth.c: Likewise.
67031         * tests/test-xfprintf-posix.c: Likewise.
67032         * tests/test-xmemdup0.c: Likewise.
67033         * tests/test-xprintf-posix.c: Likewise.
67034         * tests/test-xvasprintf.c: Likewise.
67035         * tests/unicase/test-locale-language.c: Likewise.
67036         * tests/unicase/test-mapping-part1.h: Likewise.
67037         * tests/unicase/test-predicate-part1.h: Likewise.
67038         * tests/unicase/test-u8-casecmp.c: Likewise.
67039         * tests/unicase/test-u8-casecoll.c: Likewise.
67040         * tests/unicase/test-u8-casefold.c: Likewise.
67041         * tests/unicase/test-u8-is-cased.c: Likewise.
67042         * tests/unicase/test-u8-is-casefolded.c: Likewise.
67043         * tests/unicase/test-u8-is-lowercase.c: Likewise.
67044         * tests/unicase/test-u8-is-titlecase.c: Likewise.
67045         * tests/unicase/test-u8-is-uppercase.c: Likewise.
67046         * tests/unicase/test-u8-tolower.c: Likewise.
67047         * tests/unicase/test-u8-totitle.c: Likewise.
67048         * tests/unicase/test-u8-toupper.c: Likewise.
67049         * tests/unicase/test-u16-casecmp.c: Likewise.
67050         * tests/unicase/test-u16-casecoll.c: Likewise.
67051         * tests/unicase/test-u16-casefold.c: Likewise.
67052         * tests/unicase/test-u16-is-cased.c: Likewise.
67053         * tests/unicase/test-u16-is-casefolded.c: Likewise.
67054         * tests/unicase/test-u16-is-lowercase.c: Likewise.
67055         * tests/unicase/test-u16-is-titlecase.c: Likewise.
67056         * tests/unicase/test-u16-is-uppercase.c: Likewise.
67057         * tests/unicase/test-u16-tolower.c: Likewise.
67058         * tests/unicase/test-u16-totitle.c: Likewise.
67059         * tests/unicase/test-u16-toupper.c: Likewise.
67060         * tests/unicase/test-u32-casecmp.c: Likewise.
67061         * tests/unicase/test-u32-casecoll.c: Likewise.
67062         * tests/unicase/test-u32-casefold.c: Likewise.
67063         * tests/unicase/test-u32-is-cased.c: Likewise.
67064         * tests/unicase/test-u32-is-casefolded.c: Likewise.
67065         * tests/unicase/test-u32-is-lowercase.c: Likewise.
67066         * tests/unicase/test-u32-is-titlecase.c: Likewise.
67067         * tests/unicase/test-u32-is-uppercase.c: Likewise.
67068         * tests/unicase/test-u32-tolower.c: Likewise.
67069         * tests/unicase/test-u32-totitle.c: Likewise.
67070         * tests/unicase/test-u32-toupper.c: Likewise.
67071         * tests/unicase/test-ulc-casecmp.c: Likewise.
67072         * tests/unicase/test-ulc-casecoll.c: Likewise.
67073         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67074         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
67075         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67076         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67077         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
67078         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
67079         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67080         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67081         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67082         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
67083         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67084         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67085         * tests/unictype/test-bidi_byname.c: Likewise.
67086         * tests/unictype/test-bidi_name.c: Likewise.
67087         * tests/unictype/test-bidi_of.c: Likewise.
67088         * tests/unictype/test-bidi_test.c: Likewise.
67089         * tests/unictype/test-block_list.c: Likewise.
67090         * tests/unictype/test-block_of.c: Likewise.
67091         * tests/unictype/test-block_test.c: Likewise.
67092         * tests/unictype/test-categ_and.c: Likewise.
67093         * tests/unictype/test-categ_and_not.c: Likewise.
67094         * tests/unictype/test-categ_byname.c: Likewise.
67095         * tests/unictype/test-categ_name.c: Likewise.
67096         * tests/unictype/test-categ_none.c: Likewise.
67097         * tests/unictype/test-categ_of.c: Likewise.
67098         * tests/unictype/test-categ_or.c: Likewise.
67099         * tests/unictype/test-categ_test_withtable.c: Likewise.
67100         * tests/unictype/test-combining.c: Likewise.
67101         * tests/unictype/test-decdigit.c: Likewise.
67102         * tests/unictype/test-digit.c: Likewise.
67103         * tests/unictype/test-mirror.c: Likewise.
67104         * tests/unictype/test-numeric.c: Likewise.
67105         * tests/unictype/test-pr_byname.c: Likewise.
67106         * tests/unictype/test-pr_test.c: Likewise.
67107         * tests/unictype/test-predicate-part1.h: Likewise.
67108         * tests/unictype/test-scripts.c: Likewise.
67109         * tests/unictype/test-sy_c_ident.c: Likewise.
67110         * tests/unictype/test-sy_java_ident.c: Likewise.
67111         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
67112         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
67113         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
67114         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
67115         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
67116         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
67117         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
67118         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
67119         * tests/uninorm/test-canonical-decomposition.c: Likewise.
67120         * tests/uninorm/test-compat-decomposition.c: Likewise.
67121         * tests/uninorm/test-composition.c: Likewise.
67122         * tests/uninorm/test-decomposing-form.c: Likewise.
67123         * tests/uninorm/test-decomposition.c: Likewise.
67124         * tests/uninorm/test-u8-nfc.c: Likewise.
67125         * tests/uninorm/test-u8-nfd.c: Likewise.
67126         * tests/uninorm/test-u8-nfkc.c: Likewise.
67127         * tests/uninorm/test-u8-nfkd.c: Likewise.
67128         * tests/uninorm/test-u8-normcmp.c: Likewise.
67129         * tests/uninorm/test-u8-normcoll.c: Likewise.
67130         * tests/uninorm/test-u16-nfc.c: Likewise.
67131         * tests/uninorm/test-u16-nfd.c: Likewise.
67132         * tests/uninorm/test-u16-nfkc.c: Likewise.
67133         * tests/uninorm/test-u16-nfkd.c: Likewise.
67134         * tests/uninorm/test-u16-normcmp.c: Likewise.
67135         * tests/uninorm/test-u16-normcoll.c: Likewise.
67136         * tests/uninorm/test-u32-nfc.c: Likewise.
67137         * tests/uninorm/test-u32-nfd.c: Likewise.
67138         * tests/uninorm/test-u32-nfkc.c: Likewise.
67139         * tests/uninorm/test-u32-nfkd.c: Likewise.
67140         * tests/uninorm/test-u32-normalize-big.c: Likewise.
67141         * tests/uninorm/test-u32-normcmp.c: Likewise.
67142         * tests/uninorm/test-u32-normcoll.c: Likewise.
67143         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
67144         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
67145         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
67146         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
67147         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
67148         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
67149         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
67150         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
67151         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
67152         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
67153         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
67154         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
67155         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
67156         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
67157         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
67158         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
67159         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
67160         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
67161         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
67162         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
67163         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
67164         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
67165         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
67166         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
67167         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
67168         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
67169         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
67170         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
67171         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
67172         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
67173         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
67174         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
67175         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
67176         * tests/uniwidth/test-u8-strwidth.c: Likewise.
67177         * tests/uniwidth/test-u8-width.c: Likewise.
67178         * tests/uniwidth/test-u16-strwidth.c: Likewise.
67179         * tests/uniwidth/test-u16-width.c: Likewise.
67180         * tests/uniwidth/test-u32-strwidth.c: Likewise.
67181         * tests/uniwidth/test-u32-width.c: Likewise.
67182         * tests/uniwidth/test-uc_width.c: Likewise.
67183         * tests/uniwidth/test-uc_width2.c: Likewise.
67184         * modules/acl-tests (Files): Add tests/macros.h.
67185         * modules/areadlink-tests (Files): Likewise.
67186         * modules/areadlink-with-size-tests (Files): Likewise.
67187         * modules/areadlinkat-tests (Files): Likewise.
67188         * modules/areadlinkat-with-size-tests (Files): Likewise.
67189         * modules/argmatch-tests (Files): Likewise.
67190         * modules/argv-iter-tests (Files): Likewise.
67191         * modules/array-list-tests (Files): Likewise.
67192         * modules/array-mergesort-tests (Files): Likewise.
67193         * modules/array-oset-tests (Files): Likewise.
67194         * modules/avltree-list-tests (Files): Likewise.
67195         * modules/avltree-oset-tests (Files): Likewise.
67196         * modules/avltreehash-list-tests (Files): Likewise.
67197         * modules/base64-tests (Files): Likewise.
67198         * modules/binary-io-tests (Files): Likewise.
67199         * modules/bitrotate-tests (Files): Likewise.
67200         * modules/btowc-tests (Files): Likewise.
67201         * modules/byteswap-tests (Files): Likewise.
67202         * modules/c-ctype-tests (Files): Likewise.
67203         * modules/c-stack-tests (Files): Likewise.
67204         * modules/c-strcase-tests (Files): Likewise.
67205         * modules/c-strcasestr-tests (Files): Likewise.
67206         * modules/c-strstr-tests (Files): Likewise.
67207         * modules/canonicalize-lgpl-tests (Files): Likewise.
67208         * modules/canonicalize-tests (Files): Likewise.
67209         * modules/carray-list-tests (Files): Likewise.
67210         * modules/ceilf-tests (Files): Likewise.
67211         * modules/ceill-tests (Files): Likewise.
67212         * modules/chown-tests (Files): Likewise.
67213         * modules/cloexec-tests (Files): Likewise.
67214         * modules/copy-file-tests (Files): Likewise.
67215         * modules/count-one-bits-tests (Files): Likewise.
67216         * modules/dprintf-posix-tests (Files): Likewise.
67217         * modules/dup2-tests (Files): Likewise.
67218         * modules/dup3-tests (Files): Likewise.
67219         * modules/duplocale-tests (Files): Likewise.
67220         * modules/fbufmode-tests (Files): Likewise.
67221         * modules/fchdir-tests (Files): Likewise.
67222         * modules/fcntl-safer-tests (Files): Likewise.
67223         * modules/fcntl-tests (Files): Likewise.
67224         * modules/fdopendir-tests (Files): Likewise.
67225         * modules/fdutimensat-tests (Files): Likewise.
67226         * modules/fflush-tests (Files): Likewise.
67227         * modules/filevercmp-tests (Files): Likewise.
67228         * modules/flock-tests (Files): Likewise.
67229         * modules/floorf-tests (Files): Likewise.
67230         * modules/floorl-tests (Files): Likewise.
67231         * modules/fnmatch-tests (Files): Likewise.
67232         * modules/fopen-safer-tests (Files): Likewise.
67233         * modules/fopen-tests (Files): Likewise.
67234         * modules/fpending-tests (Files): Likewise.
67235         * modules/fprintf-posix-tests (Files): Likewise.
67236         * modules/fpurge-tests (Files): Likewise.
67237         * modules/freadable-tests (Files): Likewise.
67238         * modules/freadahead-tests (Files): Likewise.
67239         * modules/freading-tests (Files): Likewise.
67240         * modules/freadptr-tests (Files): Likewise.
67241         * modules/freadseek-tests (Files): Likewise.
67242         * modules/freopen-tests (Files): Likewise.
67243         * modules/frexp-nolibm-tests (Files): Likewise.
67244         * modules/frexp-tests (Files): Likewise.
67245         * modules/frexpl-nolibm-tests (Files): Likewise.
67246         * modules/frexpl-tests (Files): Likewise.
67247         * modules/fseek-tests (Files): Likewise.
67248         * modules/fseeko-tests (Files): Likewise.
67249         * modules/fstrcmp-tests (Files): Likewise.
67250         * modules/fsync-tests (Files): Likewise.
67251         * modules/ftell-tests (Files): Likewise.
67252         * modules/ftello-tests (Files): Likewise.
67253         * modules/func-tests (Files): Likewise.
67254         * modules/futimens-tests (Files): Likewise.
67255         * modules/fwritable-tests (Files): Likewise.
67256         * modules/fwriting-tests (Files): Likewise.
67257         * modules/getcwd-tests (Files): Likewise.
67258         * modules/getdate-tests (Files): Likewise.
67259         * modules/getdelim-tests (Files): Likewise.
67260         * modules/getdtablesize-tests (Files): Likewise.
67261         * modules/getgroups-tests (Files): Likewise.
67262         * modules/getline-tests (Files): Likewise.
67263         * modules/getndelim2-tests (Files): Likewise.
67264         * modules/glob-tests (Files): Likewise.
67265         * modules/hash-tests (Files): Likewise.
67266         * modules/i-ring-tests (Files): Likewise.
67267         * modules/iconv-tests (Files): Likewise.
67268         * modules/iconv_open-utf-tests (Files): Likewise.
67269         * modules/idpriv-drop-tests (Files): Likewise.
67270         * modules/idpriv-droptemp-tests (Files): Likewise.
67271         * modules/inet_ntop-tests (Files): Likewise.
67272         * modules/inet_pton-tests (Files): Likewise.
67273         * modules/isblank-tests (Files): Likewise.
67274         * modules/isfinite-tests (Files): Likewise.
67275         * modules/isinf-tests (Files): Likewise.
67276         * modules/isnan-tests (Files): Likewise.
67277         * modules/isnand-nolibm-tests (Files): Likewise.
67278         * modules/isnand-tests (Files): Likewise.
67279         * modules/isnanf-nolibm-tests (Files): Likewise.
67280         * modules/isnanf-tests (Files): Likewise.
67281         * modules/isnanl-nolibm-tests (Files): Likewise.
67282         * modules/isnanl-tests (Files): Likewise.
67283         * modules/lchown-tests (Files): Likewise.
67284         * modules/ldexpl-tests (Files): Likewise.
67285         * modules/link-tests (Files): Likewise.
67286         * modules/linkat-tests (Files): Likewise.
67287         * modules/linked-list-tests (Files): Likewise.
67288         * modules/linkedhash-list-tests (Files): Likewise.
67289         * modules/localename-tests (Files): Likewise.
67290         * modules/lseek-tests (Files): Likewise.
67291         * modules/lstat-tests (Files): Likewise.
67292         * modules/mbmemcasecmp-tests (Files): Likewise.
67293         * modules/mbmemcasecoll-tests (Files): Likewise.
67294         * modules/mbrtowc-tests (Files): Likewise.
67295         * modules/mbscasecmp-tests (Files): Likewise.
67296         * modules/mbscasestr-tests (Files): Likewise.
67297         * modules/mbschr-tests (Files): Likewise.
67298         * modules/mbscspn-tests (Files): Likewise.
67299         * modules/mbsinit-tests (Files): Likewise.
67300         * modules/mbsncasecmp-tests (Files): Likewise.
67301         * modules/mbsnrtowcs-tests (Files): Likewise.
67302         * modules/mbspbrk-tests (Files): Likewise.
67303         * modules/mbspcasecmp-tests (Files): Likewise.
67304         * modules/mbsrchr-tests (Files): Likewise.
67305         * modules/mbsrtowcs-tests (Files): Likewise.
67306         * modules/mbsspn-tests (Files): Likewise.
67307         * modules/mbsstr-tests (Files): Likewise.
67308         * modules/memchr-tests (Files): Likewise.
67309         * modules/memchr2-tests (Files): Likewise.
67310         * modules/memcmp-tests (Files): Likewise.
67311         * modules/memmem-tests (Files): Likewise.
67312         * modules/memrchr-tests (Files): Likewise.
67313         * modules/mkdir-tests (Files): Likewise.
67314         * modules/mkfifo-tests (Files): Likewise.
67315         * modules/mkfifoat-tests (Files): Likewise.
67316         * modules/mknod-tests (Files): Likewise.
67317         * modules/nanosleep-tests (Files): Likewise.
67318         * modules/nl_langinfo-tests (Files): Likewise.
67319         * modules/obstack-printf-tests (Files): Likewise.
67320         * modules/open-tests (Files): Likewise.
67321         * modules/openat-tests (Files): Likewise.
67322         * modules/pipe-filter-gi-tests (Files): Likewise.
67323         * modules/pipe-filter-ii-tests (Files): Likewise.
67324         * modules/pipe2-tests (Files): Likewise.
67325         * modules/popen-safer-tests (Files): Likewise.
67326         * modules/popen-tests (Files): Likewise.
67327         * modules/posixtm-tests (Files): Likewise.
67328         * modules/pread-tests (Files): Likewise.
67329         * modules/printf-frexp-tests (Files): Likewise.
67330         * modules/printf-frexpl-tests (Files): Likewise.
67331         * modules/printf-posix-tests (Files): Likewise.
67332         * modules/priv-set-tests (Files): Likewise.
67333         * modules/quotearg-tests (Files): Likewise.
67334         * modules/random_r-tests (Files): Likewise.
67335         * modules/rawmemchr-tests (Files): Likewise.
67336         * modules/rbtree-list-tests (Files): Likewise.
67337         * modules/rbtree-oset-tests (Files): Likewise.
67338         * modules/rbtreehash-list-tests (Files): Likewise.
67339         * modules/readlink-tests (Files): Likewise.
67340         * modules/remove-tests (Files): Likewise.
67341         * modules/rename-tests (Files): Likewise.
67342         * modules/renameat-tests (Files): Likewise.
67343         * modules/rmdir-tests (Files): Likewise.
67344         * modules/round-tests (Files): Likewise.
67345         * modules/roundf-tests (Files): Likewise.
67346         * modules/roundl-tests (Files): Likewise.
67347         * modules/safe-alloc-tests (Files): Likewise.
67348         * modules/setenv-tests (Files): Likewise.
67349         * modules/sigaction-tests (Files): Likewise.
67350         * modules/signbit-tests (Files): Likewise.
67351         * modules/sleep-tests (Files): Likewise.
67352         * modules/snprintf-posix-tests (Files): Likewise.
67353         * modules/snprintf-tests (Files): Likewise.
67354         * modules/sprintf-posix-tests (Files): Likewise.
67355         * modules/stat-tests (Files): Likewise.
67356         * modules/stat-time-tests (Files): Likewise.
67357         * modules/strcasestr-tests (Files): Likewise.
67358         * modules/strchrnul-tests (Files): Likewise.
67359         * modules/strerror-tests (Files): Likewise.
67360         * modules/striconv-tests (Files): Likewise.
67361         * modules/striconveh-tests (Files): Likewise.
67362         * modules/striconveha-tests (Files): Likewise.
67363         * modules/strsignal-tests (Files): Likewise.
67364         * modules/strstr-tests (Files): Likewise.
67365         * modules/strtod-tests (Files): Likewise.
67366         * modules/strverscmp-tests (Files): Likewise.
67367         * modules/symlink-tests (Files): Likewise.
67368         * modules/symlinkat-tests (Files): Likewise.
67369         * modules/trunc-tests (Files): Likewise.
67370         * modules/truncf-tests (Files): Likewise.
67371         * modules/truncl-tests (Files): Likewise.
67372         * modules/uname-tests (Files): Likewise.
67373         * modules/unicase/cased-tests (Files): Likewise.
67374         * modules/unicase/ignorable-tests (Files): Likewise.
67375         * modules/unicase/locale-language-tests (Files): Likewise.
67376         * modules/unicase/tolower-tests (Files): Likewise.
67377         * modules/unicase/totitle-tests (Files): Likewise.
67378         * modules/unicase/toupper-tests (Files): Likewise.
67379         * modules/unicase/u8-casecmp-tests (Files): Likewise.
67380         * modules/unicase/u8-casecoll-tests (Files): Likewise.
67381         * modules/unicase/u8-casefold-tests (Files): Likewise.
67382         * modules/unicase/u8-is-cased-tests (Files): Likewise.
67383         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
67384         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
67385         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
67386         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
67387         * modules/unicase/u8-tolower-tests (Files): Likewise.
67388         * modules/unicase/u8-totitle-tests (Files): Likewise.
67389         * modules/unicase/u8-toupper-tests (Files): Likewise.
67390         * modules/unicase/u16-casecmp-tests (Files): Likewise.
67391         * modules/unicase/u16-casecoll-tests (Files): Likewise.
67392         * modules/unicase/u16-casefold-tests (Files): Likewise.
67393         * modules/unicase/u16-is-cased-tests (Files): Likewise.
67394         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
67395         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
67396         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
67397         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
67398         * modules/unicase/u16-tolower-tests (Files): Likewise.
67399         * modules/unicase/u16-totitle-tests (Files): Likewise.
67400         * modules/unicase/u16-toupper-tests (Files): Likewise.
67401         * modules/unicase/u32-casecmp-tests (Files): Likewise.
67402         * modules/unicase/u32-casecoll-tests (Files): Likewise.
67403         * modules/unicase/u32-casefold-tests (Files): Likewise.
67404         * modules/unicase/u32-is-cased-tests (Files): Likewise.
67405         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
67406         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
67407         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
67408         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
67409         * modules/unicase/u32-tolower-tests (Files): Likewise.
67410         * modules/unicase/u32-totitle-tests (Files): Likewise.
67411         * modules/unicase/u32-toupper-tests (Files): Likewise.
67412         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
67413         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
67414         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
67415         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
67416         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
67417         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
67418         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
67419         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
67420         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
67421         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
67422         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
67423         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
67424         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
67425         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
67426         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
67427         * modules/unictype/bidicategory-name-tests (Files): Likewise.
67428         * modules/unictype/bidicategory-of-tests (Files): Likewise.
67429         * modules/unictype/bidicategory-test-tests (Files): Likewise.
67430         * modules/unictype/block-list-tests (Files): Likewise.
67431         * modules/unictype/block-of-tests (Files): Likewise.
67432         * modules/unictype/block-test-tests (Files): Likewise.
67433         * modules/unictype/category-C-tests (Files): Likewise.
67434         * modules/unictype/category-Cc-tests (Files): Likewise.
67435         * modules/unictype/category-Cf-tests (Files): Likewise.
67436         * modules/unictype/category-Cn-tests (Files): Likewise.
67437         * modules/unictype/category-Co-tests (Files): Likewise.
67438         * modules/unictype/category-Cs-tests (Files): Likewise.
67439         * modules/unictype/category-L-tests (Files): Likewise.
67440         * modules/unictype/category-Ll-tests (Files): Likewise.
67441         * modules/unictype/category-Lm-tests (Files): Likewise.
67442         * modules/unictype/category-Lo-tests (Files): Likewise.
67443         * modules/unictype/category-Lt-tests (Files): Likewise.
67444         * modules/unictype/category-Lu-tests (Files): Likewise.
67445         * modules/unictype/category-M-tests (Files): Likewise.
67446         * modules/unictype/category-Mc-tests (Files): Likewise.
67447         * modules/unictype/category-Me-tests (Files): Likewise.
67448         * modules/unictype/category-Mn-tests (Files): Likewise.
67449         * modules/unictype/category-N-tests (Files): Likewise.
67450         * modules/unictype/category-Nd-tests (Files): Likewise.
67451         * modules/unictype/category-Nl-tests (Files): Likewise.
67452         * modules/unictype/category-No-tests (Files): Likewise.
67453         * modules/unictype/category-P-tests (Files): Likewise.
67454         * modules/unictype/category-Pc-tests (Files): Likewise.
67455         * modules/unictype/category-Pd-tests (Files): Likewise.
67456         * modules/unictype/category-Pe-tests (Files): Likewise.
67457         * modules/unictype/category-Pf-tests (Files): Likewise.
67458         * modules/unictype/category-Pi-tests (Files): Likewise.
67459         * modules/unictype/category-Po-tests (Files): Likewise.
67460         * modules/unictype/category-Ps-tests (Files): Likewise.
67461         * modules/unictype/category-S-tests (Files): Likewise.
67462         * modules/unictype/category-Sc-tests (Files): Likewise.
67463         * modules/unictype/category-Sk-tests (Files): Likewise.
67464         * modules/unictype/category-Sm-tests (Files): Likewise.
67465         * modules/unictype/category-So-tests (Files): Likewise.
67466         * modules/unictype/category-Z-tests (Files): Likewise.
67467         * modules/unictype/category-Zl-tests (Files): Likewise.
67468         * modules/unictype/category-Zp-tests (Files): Likewise.
67469         * modules/unictype/category-Zs-tests (Files): Likewise.
67470         * modules/unictype/category-and-not-tests (Files): Likewise.
67471         * modules/unictype/category-and-tests (Files): Likewise.
67472         * modules/unictype/category-byname-tests (Files): Likewise.
67473         * modules/unictype/category-name-tests (Files): Likewise.
67474         * modules/unictype/category-none-tests (Files): Likewise.
67475         * modules/unictype/category-of-tests (Files): Likewise.
67476         * modules/unictype/category-or-tests (Files): Likewise.
67477         * modules/unictype/category-test-withtable-tests (Files): Likewise.
67478         * modules/unictype/combining-class-tests (Files): Likewise.
67479         * modules/unictype/ctype-alnum-tests (Files): Likewise.
67480         * modules/unictype/ctype-alpha-tests (Files): Likewise.
67481         * modules/unictype/ctype-blank-tests (Files): Likewise.
67482         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
67483         * modules/unictype/ctype-digit-tests (Files): Likewise.
67484         * modules/unictype/ctype-graph-tests (Files): Likewise.
67485         * modules/unictype/ctype-lower-tests (Files): Likewise.
67486         * modules/unictype/ctype-print-tests (Files): Likewise.
67487         * modules/unictype/ctype-punct-tests (Files): Likewise.
67488         * modules/unictype/ctype-space-tests (Files): Likewise.
67489         * modules/unictype/ctype-upper-tests (Files): Likewise.
67490         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
67491         * modules/unictype/decimal-digit-tests (Files): Likewise.
67492         * modules/unictype/digit-tests (Files): Likewise.
67493         * modules/unictype/mirror-tests (Files): Likewise.
67494         * modules/unictype/numeric-tests (Files): Likewise.
67495         * modules/unictype/property-alphabetic-tests (Files): Likewise.
67496         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
67497         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
67498         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
67499         Likewise.
67500         * modules/unictype/property-bidi-block-separator-tests (Files):
67501         Likewise.
67502         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
67503         Likewise.
67504         * modules/unictype/property-bidi-common-separator-tests (Files):
67505         Likewise.
67506         * modules/unictype/property-bidi-control-tests (Files): Likewise.
67507         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
67508         Likewise.
67509         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
67510         Likewise.
67511         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
67512         Likewise.
67513         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
67514         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
67515         Likewise.
67516         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
67517         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
67518         Likewise.
67519         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
67520         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
67521         * modules/unictype/property-bidi-segment-separator-tests (Files):
67522         Likewise.
67523         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
67524         * modules/unictype/property-byname-tests (Files): Likewise.
67525         * modules/unictype/property-combining-tests (Files): Likewise.
67526         * modules/unictype/property-composite-tests (Files): Likewise.
67527         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
67528         * modules/unictype/property-dash-tests (Files): Likewise.
67529         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
67530         * modules/unictype/property-default-ignorable-code-point-tests (Files):
67531         Likewise.
67532         * modules/unictype/property-deprecated-tests (Files): Likewise.
67533         * modules/unictype/property-diacritic-tests (Files): Likewise.
67534         * modules/unictype/property-extender-tests (Files): Likewise.
67535         * modules/unictype/property-format-control-tests (Files): Likewise.
67536         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
67537         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
67538         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
67539         * modules/unictype/property-hex-digit-tests (Files): Likewise.
67540         * modules/unictype/property-hyphen-tests (Files): Likewise.
67541         * modules/unictype/property-id-continue-tests (Files): Likewise.
67542         * modules/unictype/property-id-start-tests (Files): Likewise.
67543         * modules/unictype/property-ideographic-tests (Files): Likewise.
67544         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
67545         * modules/unictype/property-ids-trinary-operator-tests (Files):
67546         Likewise.
67547         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
67548         * modules/unictype/property-iso-control-tests (Files): Likewise.
67549         * modules/unictype/property-join-control-tests (Files): Likewise.
67550         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
67551         * modules/unictype/property-line-separator-tests (Files): Likewise.
67552         * modules/unictype/property-logical-order-exception-tests (Files):
67553         Likewise.
67554         * modules/unictype/property-lowercase-tests (Files): Likewise.
67555         * modules/unictype/property-math-tests (Files): Likewise.
67556         * modules/unictype/property-non-break-tests (Files): Likewise.
67557         * modules/unictype/property-not-a-character-tests (Files): Likewise.
67558         * modules/unictype/property-numeric-tests (Files): Likewise.
67559         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
67560         * modules/unictype/property-other-default-ignorable-code-point-tests
67561         (Files): Likewise.
67562         * modules/unictype/property-other-grapheme-extend-tests (Files):
67563         Likewise.
67564         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
67565         * modules/unictype/property-other-id-start-tests (Files): Likewise.
67566         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
67567         * modules/unictype/property-other-math-tests (Files): Likewise.
67568         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
67569         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
67570         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
67571         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
67572         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
67573         * modules/unictype/property-private-use-tests (Files): Likewise.
67574         * modules/unictype/property-punctuation-tests (Files): Likewise.
67575         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
67576         * modules/unictype/property-radical-tests (Files): Likewise.
67577         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
67578         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
67579         * modules/unictype/property-space-tests (Files): Likewise.
67580         * modules/unictype/property-terminal-punctuation-tests (Files):
67581         Likewise.
67582         * modules/unictype/property-test-tests (Files): Likewise.
67583         * modules/unictype/property-titlecase-tests (Files): Likewise.
67584         * modules/unictype/property-unassigned-code-value-tests (Files):
67585         Likewise.
67586         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
67587         * modules/unictype/property-uppercase-tests (Files): Likewise.
67588         * modules/unictype/property-variation-selector-tests (Files): Likewise.
67589         * modules/unictype/property-white-space-tests (Files): Likewise.
67590         * modules/unictype/property-xid-continue-tests (Files): Likewise.
67591         * modules/unictype/property-xid-start-tests (Files): Likewise.
67592         * modules/unictype/property-zero-width-tests (Files): Likewise.
67593         * modules/unictype/scripts-tests (Files): Likewise.
67594         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
67595         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
67596         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
67597         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
67598         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
67599         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
67600         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
67601         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
67602         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
67603         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
67604         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
67605         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
67606         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
67607         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
67608         * modules/uninorm/composition-tests (Files): Likewise.
67609         * modules/uninorm/decomposing-form-tests (Files): Likewise.
67610         * modules/uninorm/decomposition-tests (Files): Likewise.
67611         * modules/uninorm/filter-tests (Files): Likewise.
67612         * modules/uninorm/nfc-tests (Files): Likewise.
67613         * modules/uninorm/nfd-tests (Files): Likewise.
67614         * modules/uninorm/nfkc-tests (Files): Likewise.
67615         * modules/uninorm/nfkd-tests (Files): Likewise.
67616         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
67617         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
67618         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
67619         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
67620         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
67621         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
67622         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
67623         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
67624         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
67625         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
67626         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
67627         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
67628         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
67629         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
67630         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
67631         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
67632         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
67633         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
67634         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
67635         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
67636         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
67637         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
67638         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
67639         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
67640         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
67641         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
67642         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
67643         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
67644         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
67645         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
67646         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
67647         * modules/uniwidth/u8-width-tests (Files): Likewise.
67648         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
67649         * modules/uniwidth/u16-width-tests (Files): Likewise.
67650         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
67651         * modules/uniwidth/u32-width-tests (Files): Likewise.
67652         * modules/uniwidth/width-tests (Files): Likewise.
67653         * modules/unlink-tests (Files): Likewise.
67654         * modules/unsetenv-tests (Files): Likewise.
67655         * modules/usleep-tests (Files): Likewise.
67656         * modules/utimens-tests (Files): Likewise.
67657         * modules/utimensat-tests (Files): Likewise.
67658         * modules/vasnprintf-posix-tests (Files): Likewise.
67659         * modules/vasnprintf-tests (Files): Likewise.
67660         * modules/vasprintf-posix-tests (Files): Likewise.
67661         * modules/vasprintf-tests (Files): Likewise.
67662         * modules/vdprintf-posix-tests (Files): Likewise.
67663         * modules/vfprintf-posix-tests (Files): Likewise.
67664         * modules/vprintf-posix-tests (Files): Likewise.
67665         * modules/vsnprintf-posix-tests (Files): Likewise.
67666         * modules/vsnprintf-tests (Files): Likewise.
67667         * modules/vsprintf-posix-tests (Files): Likewise.
67668         * modules/wcrtomb-tests (Files): Likewise.
67669         * modules/wcsnrtombs-tests (Files): Likewise.
67670         * modules/wcsrtombs-tests (Files): Likewise.
67671         * modules/wctype-tests (Files): Likewise.
67672         * modules/wcwidth-tests (Files): Likewise.
67673         * modules/xmemdup0-tests (Files): Likewise.
67674         * modules/xprintf-posix-tests (Files): Likewise.
67675         * modules/xvasprintf-tests (Files): Likewise.
67677 2009-12-24  Eric Blake  <ebb9@byu.net>
67679         test-nanosleep: fix typo
67680         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
67681         patch.
67682         Reported by Bruno Haible.
67684 2009-12-24  Bruno Haible  <bruno@clisp.org>
67686         Reduce namespace pollution on glibc systems.
67687         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
67688         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
67689         systems.
67690         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
67691         <getopt.h> on glibc systems.
67692         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
67693         systems.
67694         * lib/fcntl.c: Include <unistd.h> here instead.
67696 2009-12-24  Bruno Haible  <bruno@clisp.org>
67698         * lib/stdlib.in.h (includes): Fix typo in today's commit.
67700 2009-12-24  Eric Blake  <ebb9@byu.net>
67702         tests: add signature checks
67703         * tests/signature.h (SIGNATURE_CHECK): New file.
67704         * modules/atexit-tests (Files): Use it.
67705         * modules/btowc-tests (Files): Likewise.
67706         * modules/canonicalize-lgpl-tests (Files): Likewise.
67707         * modules/ceilf-tests (Files): Likewise.
67708         * modules/ceill-tests (Files): Likewise.
67709         * modules/chown-tests (Files): Likewise.
67710         * modules/dprintf-posix-tests (Files): Likewise.
67711         * modules/dup2-tests (Files): Likewise.
67712         * modules/dup3-tests (Files): Likewise.
67713         * modules/duplocale-tests (Files): Likewise.
67714         * modules/fchdir-tests (Files): Likewise.
67715         * modules/fcntl-tests (Files): Likewise.
67716         * modules/fdopendir-tests (Files): Likewise.
67717         * modules/fflush-tests (Files): Likewise.
67718         * modules/flock-tests (Files): Likewise.
67719         * modules/floorf-tests (Files): Likewise.
67720         * modules/floorl-tests (Files): Likewise.
67721         * modules/fnmatch-tests (Files): Likewise.
67722         * modules/fopen-tests (Files): Likewise.
67723         * modules/fprintf-posix-tests (Files): Likewise.
67724         * modules/freopen-tests (Files): Likewise.
67725         * modules/frexp-nolibm-tests (Files): Likewise.
67726         * modules/frexp-tests (Files): Likewise.
67727         * modules/frexpl-nolibm-tests (Files): Likewise.
67728         * modules/frexpl-tests (Files): Likewise.
67729         * modules/fseek-tests (Files): Likewise.
67730         * modules/fseeko-tests (Files): Likewise.
67731         * modules/fsync-tests (Files): Likewise.
67732         * modules/ftell-tests (Files): Likewise.
67733         * modules/ftello-tests (Files): Likewise.
67734         * modules/futimens-tests (Files): Likewise.
67735         * modules/getaddrinfo-tests (Files): Likewise.
67736         * modules/getcwd-tests (Files): Likewise.
67737         * modules/getdelim-tests (Files): Likewise.
67738         * modules/getdtablesize-tests (Files): Likewise.
67739         * modules/getgroups-tests (Files): Likewise.
67740         * modules/gethostname-tests (Files): Likewise.
67741         * modules/getline-tests (Files): Likewise.
67742         * modules/getopt-posix-tests (Files): Likewise.
67743         * modules/gettimeofday-tests (Files): Likewise.
67744         * modules/glob-tests (Files): Likewise.
67745         * modules/iconv-tests (Files): Likewise.
67746         * modules/inet_ntop-tests (Files): Likewise.
67747         * modules/inet_pton-tests (Files): Likewise.
67748         * modules/isblank-tests (Files): Likewise.
67749         * modules/lchown-tests (Files): Likewise.
67750         * modules/ldexpl-tests (Files): Likewise.
67751         * modules/link-tests (Files): Likewise.
67752         * modules/linkat-tests (Files): Likewise.
67753         * modules/lseek-tests (Files): Likewise.
67754         * modules/lstat-tests (Files): Likewise.
67755         * modules/mbrtowc-tests (Files): Likewise.
67756         * modules/mbsinit-tests (Files): Likewise.
67757         * modules/mbsnrtowcs-tests (Files): Likewise.
67758         * modules/mbsrtowcs-tests (Files): Likewise.
67759         * modules/memchr-tests (Files): Likewise.
67760         * modules/memcmp-tests (Files): Likewise.
67761         * modules/memmem-tests (Files): Likewise.
67762         * modules/memrchr-tests (Files): Likewise.
67763         * modules/mkdir-tests (Files): Likewise.
67764         * modules/mkfifo-tests (Files): Likewise.
67765         * modules/mkfifoat-tests (Files): Likewise.
67766         * modules/mknod-tests (Files): Likewise.
67767         * modules/nanosleep-tests (Files): Likewise.
67768         * modules/nl_langinfo-tests (Files): Likewise.
67769         * modules/obstack-printf-tests (Files): Likewise.
67770         * modules/open-tests (Files): Likewise.
67771         * modules/openat-tests (Files): Likewise.
67772         * modules/perror-tests (Files): Likewise.
67773         * modules/pipe2-tests (Files): Likewise.
67774         * modules/poll-tests (Files): Likewise.
67775         * modules/popen-tests (Files): Likewise.
67776         * modules/posix_spawn-tests (Files): Likewise.
67777         * modules/posix_spawnp-tests (Files): Likewise.
67778         * modules/pread-tests (Files): Likewise.
67779         * modules/printf-posix-tests (Files): Likewise.
67780         * modules/pty-tests (Files): Likewise.
67781         * modules/random_r-tests (Files): Likewise.
67782         * modules/rawmemchr-tests (Files): Likewise.
67783         * modules/readlink-tests (Files): Likewise.
67784         * modules/remove-tests (Files): Likewise.
67785         * modules/rename-tests (Files): Likewise.
67786         * modules/renameat-tests (Files): Likewise.
67787         * modules/rmdir-tests (Files): Likewise.
67788         * modules/round-tests (Files): Likewise.
67789         * modules/roundf-tests (Files): Likewise.
67790         * modules/roundl-tests (Files): Likewise.
67791         * modules/select-tests (Files): Likewise.
67792         * modules/setenv-tests (Files): Likewise.
67793         * modules/sigaction-tests (Files): Likewise.
67794         * modules/sleep-tests (Files): Likewise.
67795         * modules/snprintf-posix-tests (Files): Likewise.
67796         * modules/snprintf-tests (Files): Likewise.
67797         * modules/sprintf-posix-tests (Files): Likewise.
67798         * modules/stat-tests (Files): Likewise.
67799         * modules/strcasestr-tests (Files): Likewise.
67800         * modules/strchrnul-tests (Files): Likewise.
67801         * modules/strerror-tests (Files): Likewise.
67802         * modules/strsignal-tests (Files): Likewise.
67803         * modules/strstr-tests (Files): Likewise.
67804         * modules/strtod-tests (Files): Likewise.
67805         * modules/strverscmp-tests (Files): Likewise.
67806         * modules/symlink-tests (Files): Likewise.
67807         * modules/symlinkat-tests (Files): Likewise.
67808         * modules/times-tests (Files): Likewise.
67809         * modules/trunc-tests (Files): Likewise.
67810         * modules/truncf-tests (Files): Likewise.
67811         * modules/truncl-tests (Files): Likewise.
67812         * modules/tsearch-tests (Files): Likewise.
67813         * modules/uname-tests (Files): Likewise.
67814         * modules/unlink-tests (Files): Likewise.
67815         * modules/unsetenv-tests (Files): Likewise.
67816         * modules/usleep-tests (Files): Likewise.
67817         * modules/utimensat-tests (Files): Likewise.
67818         * modules/vasprintf-tests (Files): Likewise.
67819         * modules/vdprintf-posix-tests (Files): Likewise.
67820         * modules/vfprintf-posix-tests (Files): Likewise.
67821         * modules/vprintf-posix-tests (Files): Likewise.
67822         * modules/vsnprintf-posix-tests (Files): Likewise.
67823         * modules/vsnprintf-tests (Files): Likewise.
67824         * modules/vsprintf-posix-tests (Files): Likewise.
67825         * modules/wcrtomb-tests (Files): Likewise.
67826         * modules/wcsnrtombs-tests (Files): Likewise.
67827         * modules/wcsrtombs-tests (Files): Likewise.
67828         * modules/wcwidth-tests (Files): Likewise.
67829         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
67830         * tests/test-isinf.c (isinf): Likewise.
67831         * tests/test-isnan.c (isnan): Likewise.
67832         * tests/test-signbit.c (signbit): Likewise.
67833         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
67834         declaration, either as macro or with correct signature.
67835         (select): Ensure function under test is declared with correct
67836         signature in correct header.
67837         * tests/test-atexit.c (atexit): Likewise.
67838         * tests/test-btowc.c (btowc): Likewise.
67839         * tests/test-canonicalize-lgpl.c (realpath)
67840         (canonicalize_file_name): Likewise.
67841         * tests/test-ceilf1.c (ceilf): Likewise.
67842         * tests/test-ceill.c (ceill): Likewise.
67843         * tests/test-chown.c (chown): Likewise.
67844         * tests/test-dprintf-posix.c (dprintf): Likewise.
67845         * tests/test-dup2.c (dup2): Likewise.
67846         * tests/test-dup3.c (dup3): Likewise.
67847         * tests/test-duplocale.c (duplocale): Likewise.
67848         * tests/test-fchdir.c (fchdir): Likewise.
67849         * tests/test-fchownat.c (fchownat): Likewise.
67850         * tests/test-fcntl.c (fcntl): Likewise.
67851         * tests/test-fdopendir.c (fdopendir): Likewise.
67852         * tests/test-fflush.c (fflush): Likewise.
67853         * tests/test-flock.c (flock): Likewise.
67854         * tests/test-floorf1.c (floorf): Likewise.
67855         * tests/test-floorl.c (floorl): Likewise.
67856         * tests/test-fnmatch.c (fnmatch): Likewise.
67857         * tests/test-fopen.c (fopen): Likewise.
67858         * tests/test-fprintf-posix.c (fprintf): Likewise.
67859         * tests/test-freopen.c (freopen): Likewise.
67860         * tests/test-frexp.c (frexp): Likewise.
67861         * tests/test-frexpl.c (frexpl): Likewise.
67862         * tests/test-fseek.c (fseek): Likewise.
67863         * tests/test-fseeko.c (fseeko): Likewise.
67864         * tests/test-fstatat.c (fstatat): Likewise.
67865         * tests/test-fsync.c (fsync): Likewise.
67866         * tests/test-ftell.c (ftell): Likewise.
67867         * tests/test-ftello.c (ftello): Likewise.
67868         * tests/test-futimens.c (futimens): Likewise.
67869         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
67870         (gai_strerror): Likewise.
67871         * tests/test-getcwd.c (getcwd): Likewise.
67872         * tests/test-getdelim.c (getdelim): Likewise.
67873         * tests/test-getdtablesize.c (getdtablesize): Likewise.
67874         * tests/test-getgroups.c (getgroups): Likewise.
67875         * tests/test-gethostname.c (gethostname): Likewise.
67876         * tests/test-getline.c (getline): Likewise.
67877         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
67878         Likewise.
67879         * tests/test-gettimeofday.c (gettimeofday): Likewise.
67880         * tests/test-glob.c (glob, globfree): Likewise.
67881         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
67882         * tests/test-inet_ntop.c (inet_ntop): Likewise.
67883         * tests/test-inet_pton.c (inet_pton): Likewise.
67884         * tests/test-isblank.c (isblank): Likewise.
67885         * tests/test-lchown.c (lchown): Likewise.
67886         * tests/test-ldexpl.c (ldexpl): Likewise.
67887         * tests/test-link.c (link): Likewise.
67888         * tests/test-linkat.c (linkat): Likewise.
67889         * tests/test-lseek.c (lseek): Likewise.
67890         * tests/test-lstat.c (lstat): Likewise.
67891         * tests/test-mbrtowc.c (mbrtowc): Likewise.
67892         * tests/test-mbsinit.c (mbsinit): Likewise.
67893         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
67894         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
67895         * tests/test-memchr.c (memchr): Likewise.
67896         * tests/test-memcmp.c (memcmp): Likewise.
67897         * tests/test-memmem.c (memmem): Likewise.
67898         * tests/test-memrchr.c (memrchr): Likewise.
67899         * tests/test-mkdir.c (mkdir): Likewise.
67900         * tests/test-mkdirat.c (mkdirat): Likewise.
67901         * tests/test-mkfifo.c (mkfifo): Likewise.
67902         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
67903         * tests/test-mknod.c (mknod): Likewise.
67904         * tests/test-nanosleep.c (nanosleep): Likewise.
67905         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
67906         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
67907         Likewise.
67908         * tests/test-open.c (open): Likewise.
67909         * tests/test-openat.c (openat): Likewise.
67910         * tests/test-perror.c (perror): Likewise.
67911         * tests/test-pipe2.c (pipe2): Likewise.
67912         * tests/test-poll.c (poll): Likewise.
67913         * tests/test-popen.c (popen, pclose): Likewise.
67914         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
67915         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
67916         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
67917         (posix_spawn_file_actions_destroy)
67918         (posix_spawn_file_actions_addclose)
67919         (posix_spawn_file_actions_addopen)
67920         (posix_spawn_file_actions_adddup2): Likewise.
67921         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
67922         * tests/test-pread.c (pread): Likewise.
67923         * tests/test-printf-posix.c (printf): Likewise.
67924         * tests/test-pty.c (openpty, forkpty): Likewise.
67925         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
67926         (random_r): Likewise.
67927         * tests/test-rawmemchr.c (rawmemchr): Likewise.
67928         * tests/test-readlink.c (readlink): Likewise.
67929         * tests/test-remove.c (remove): Likewise.
67930         * tests/test-rename.c (rename): Likewise.
67931         * tests/test-renameat.c (renameat): Likewise.
67932         * tests/test-rmdir.c (rmdir): Likewise.
67933         * tests/test-round1.c (round): Likewise.
67934         * tests/test-roundf1.c (roundf): Likewise.
67935         * tests/test-roundl.c (roundl): Likewise.
67936         * tests/test-setenv.c (setenv): Likewise.
67937         * tests/test-sigaction.c (sigaction): Likewise.
67938         * tests/test-sleep.c (sleep): Likewise.
67939         * tests/test-snprintf.c (snprintf): Likewise.
67940         * tests/test-sprintf-posix.c (sprintf): Likewise.
67941         * tests/test-stat.c (stat): Likewise.
67942         * tests/test-stpncpy.c (stpncpy): Likewise.
67943         * tests/test-strcasestr.c (strcasestr): Likewise.
67944         * tests/test-strchrnul.c (strchrnul): Likewise.
67945         * tests/test-strerror.c (strerror): Likewise.
67946         * tests/test-strsignal.c (strsignal): Likewise.
67947         * tests/test-strstr.c (strstr): Likewise.
67948         * tests/test-strtod.c (strtod): Likewise.
67949         * tests/test-strverscmp.c (strverscmp): Likewise.
67950         * tests/test-symlink.c (symlink): Likewise.
67951         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
67952         * tests/test-times.c (times): Likewise.
67953         * tests/test-trunc1.c (trunc): Likewise.
67954         * tests/test-truncf1.c (truncf): Likewise.
67955         * tests/test-truncl.c (truncl): Likewise.
67956         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
67957         Likewise.
67958         * tests/test-uname.c (uname): Likewise.
67959         * tests/test-unlink.c (unlink): Likewise.
67960         * tests/test-unlinkat.c (unlinkat): Likewise.
67961         * tests/test-unsetenv.c (unsetenv): Likewise.
67962         * tests/test-usleep.c (usleep): Likewise.
67963         * tests/test-utimensat.c (utimensat): Likewise.
67964         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
67965         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
67966         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
67967         * tests/test-vprintf-posix.c (vprintf): Likewise.
67968         * tests/test-vsnprintf.c (vsnprintf): Likewise.
67969         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
67970         * tests/test-wcrtomb.c (wcrtomb): Likewise.
67971         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
67972         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
67973         * tests/test-wcwidth.c (wcwidth): Likewise.
67975         build: pull in conditional headers during GNULIB_POSIXCHECK
67976         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
67977         definitions from any conditionally-included headers.
67978         * lib/stdlib.in.h (includes): Likewise.
67979         * lib/unistd.in.h (includes): Likewise.
67981 2009-12-24  Bruno Haible  <bruno@clisp.org>
67983         * tests/test-argv-iter.c: Include header file being tested immediately
67984         after config.h.
67985         * tests/test-base64.c: Likewise.
67986         * tests/test-flock.c: Likewise.
67987         * tests/test-fsync.c: Likewise.
67988         * tests/test-getdate.c: Likewise.
67989         * tests/test-getndelim2.c: Likewise.
67990         * tests/test-isfinite.c: Likewise.
67991         * tests/test-isinf.c: Likewise.
67992         * tests/test-strerror.c: Likewise.
67993         * tests/test-strsignal.c: Likewise.
67995 2009-12-23  Eric Blake  <ebb9@byu.net>
67997         unistd: work around cygwin bug
67998         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
67999         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
68000         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
68002 2009-12-23  Bruno Haible  <bruno@clisp.org>
68004         localename: More tests.
68005         * tests/test-localename.c (SIZEOF): New macro.
68006         (categories): New variable.
68007         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
68008         test_locale_name_default): Add test w.r.t. thread locale.
68009         (test_locale_name_thread): New function.
68010         (main): Invoke it.
68012         localename: Make aware of thread locale.
68013         * lib/localename.h (gl_locale_name_thread): New declaration.
68014         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
68015         behaviour with respect to thread locale.
68016         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
68017         <langinfo.h>, glthread/lock.h.
68018         (SIZE_BITS): New macro.
68019         (string_hash): New function.
68020         (struct hash_node): New type.
68021         (HASH_TABLE_SIZE): New macro.
68022         (struniq_hash_table, struniq_lock): New variables.
68023         (struniq): New function.
68024         (gl_locale_name_thread): New function.
68025         (gl_locale_name): Invoke it.
68026         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
68027         * modules/localename (Depends-on): Add lock.
68028         Reported by Mike Gran <spk121@yahoo.com>.
68030 2009-12-23  Eric Blake  <ebb9@byu.net>
68032         va-args: new module
68033         * modules/va-args: New file.
68034         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
68035         * MODULES.html.sh (Core language properties): Mention it.
68037         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
68038         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
68039         named alias for __attribute__((__unused__)).
68040         * lib/chown.c: Update client.
68041         * lib/fchmodat.c: Likewise.
68042         * lib/fts.c: Likewise.
68043         * lib/getdate.y: Likewise.
68044         * lib/getgroups.c: Likewise.
68045         * lib/getopt.c: Likewise.
68046         * lib/getugroups.c: Likewise.
68047         * lib/mkdir.c: Likewise.
68048         * lib/mkfifo.c: Likewise.
68049         * lib/mkfifoat.c: Likewise.
68050         * lib/mknod.c: Likewise.
68051         * lib/mknodat.c: Likewise.
68052         * lib/readlink.c: Likewise.
68053         * lib/se-context.in.h: Likewise.
68054         * lib/se-selinux.in.h: Likewise.
68055         * lib/sockets.c: Likewise.
68056         * lib/symlink.c: Likewise.
68057         * lib/symlinkat.c: Likewise.
68058         * lib/unicodeio.c: Likewise.
68059         * lib/unistr.h: Likewise.
68060         * tests/test-areadlink.c: Likewise.
68061         * tests/test-areadlinkat.c: Likewise.
68062         * tests/test-filenamecat.c: Likewise.
68063         * tests/test-fseeko.c: Likewise.
68064         * tests/test-ftello.c: Likewise.
68065         * tests/test-getdate.c: Likewise.
68066         * tests/test-getgroups.c: Likewise.
68067         * tests/test-gethostname.c: Likewise.
68068         * tests/test-quotearg.c: Likewise.
68069         * tests/test-version-etc.c: Likewise.
68070         * tests/test-xalloc-die.c: Likewise.
68071         * tests/test-xfprintf-posix.c: Likewise.
68072         * tests/test-xprintf-posix.c: Likewise.
68073         * tests/test-xvasprintf.c: Likewise.
68075         tests: avoid compiler warnings
68076         * tests/test-fcntl.c (main): Delete unused parameters.
68077         * tests/test-freopen-safer.c (main): Likewise.
68078         * tests/test-xalloc-die.c (main): Mark unused parameters.
68079         * tests/test-fseeko.c (main): Likewise.
68080         * tests/test-ftello.c (main): Likewise.
68081         * tests/test-nanosleep.c (main): Avoid declaration warning.
68082         * tests/test-sleep.c (main): Likewise.
68083         * tests/test-unsetenv.c (main): Silence warning about string
68084         literal.
68085         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
68087 2009-12-23  Bruno Haible  <bruno@clisp.org>
68089         * tests/test-localename.c (test_locale_name): New function, extracted
68090         from main. Also test mixed situations.
68091         (test_locale_name_posix, test_locale_name_environ,
68092         test_locale_name_default): New functions.
68093         (main): Invoke them all.
68094         * modules/localename-tests (configure.ac): Test for newlocale.
68096 2009-12-23  Bruno Haible  <bruno@clisp.org>
68098         unistd: Ensure getcwd gets declared before being overridden.
68099         * lib/unistd.in.h: Conditionally include <io.h>.
68101 2009-12-22  Bruno Haible  <bruno@clisp.org>
68103         wchar: Diagnose broken combination of glibc and gcc versions and flags.
68104         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
68105         (gl_WCHAR_H): Invoke it.
68106         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
68107         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
68108         Reported by Karl Berry <karl@freefriends.org>.
68110 2009-12-22  Eric Blake  <ebb9@byu.net>
68112         math, unistd: avoid redundant includes
68113         * lib/math.in.h (isnan): No need to re-include <math.h>.
68114         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
68116         getsubopt: work around cygwin bug
68117         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
68118         avoid conflicting with system getsubopt.
68119         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
68120         bug.
68122         getopt: synchronize from glibc
68123         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
68124         parameter order.  Adjust all callers.
68125         (_getopt_internal_r, main): Adjust quoting in error messages.
68126         Drop considerations for outdated POSIX 1003.2 error message.
68127         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
68128         callers.
68129         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
68131         test-getopt: test stderr behavior
68132         * modules/getopt-posix-tests (Depends-on): Add dup2.
68133         * tests/test-getopt.c (ASSERT): Avoid stderr.
68134         (main): Move stderr to a temporary file.
68135         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
68136         Instead, add parameter to inform caller if output occurred.
68137         (test_getopt): Adjust all existing tests to expect silence, and
68138         add new tests of leading ":".
68139         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
68140         glibc shortcomings with leading "-:" or "+:" in optstring.
68141         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
68142         Likewise.
68143         * doc/posix-functions/getopt.texi (getopt): Likewise.
68145         test-getopt: enhance test
68146         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
68147         supports optind=0.
68148         * tests/test-getopt.c (OPTIND_MIN): Move...
68149         * tests/test-getopt.h (OPTIND_MIN): ...here.
68150         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
68151         Require that optind=0 works, since modern BSD supports it in
68152         addition to optreset, and since coreutils expects it.
68153         (test_getopt_long_only): New test.
68154         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
68155         glibc shortcomings with 'W;', and enforcement of optind=0.
68156         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
68157         Likewise.
68159 2009-12-21  Bruno Haible  <bruno@clisp.org>
68161         localename: Improvements for MacOS X and Cygwin.
68162         * lib/localename.h (gl_locale_name_environ): New declaration.
68163         * lib/localename.c (gl_locale_name_environ): New function, extracted from
68164         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
68165         (gl_locale_name_posix): Invoke it.
68166         (gl_locale_name_default): Add comments. Use Windows native API also on
68167         Cygwin.
68169 2009-12-21  Bruno Haible  <bruno@clisp.org>
68171         Update list of Win32 locale ids.
68172         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
68173         (LANG_SAMI): Renamed from LANG_SAAMI.
68174         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
68175         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
68176         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
68177         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
68178         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
68179         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
68180         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
68181         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
68182         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
68183         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
68184         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
68185         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
68186         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
68187         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
68188         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
68189         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
68190         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
68191         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
68192         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
68193         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
68194         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
68195         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
68196         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
68197         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
68198         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
68199         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
68200         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
68201         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
68202         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
68203         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
68204         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
68205         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
68206         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
68207         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
68208         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
68209         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
68210         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
68211         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
68212         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
68213         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
68214         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
68215         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
68216         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
68217         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
68218         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
68219         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
68220         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
68221         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
68222         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
68223         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
68224         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
68225         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
68226         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
68227         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
68228         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
68229         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
68230         Add more languages and countries for Sami, Sorbian. Add more countries
68231         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
68232         for Pashto. Change country for Syriac, Tswana.
68234 2009-12-21  Eric Blake  <ebb9@byu.net>
68236         test-utimens: avoid spurious failure
68237         * tests/test-chown.h (nap): Factor...
68238         * tests/nap.h: ...into new file.
68239         * tests/test-lchown.h (nap): Avoid duplication.
68240         * tests/test-utimens-common.h (nap): Use shared implementation,
68241         necessary on file systems with 1-second resolution.
68242         * modules/chown-tests (Files): Include new file.
68243         * modules/fdutimensat-tests (Files): Likewise.
68244         * modules/futimens-tests (Files): Likewise.
68245         * modules/lchown-tests (Files): Likewise.
68246         * modules/openat-tests (Files): Likewise.
68247         * modules/utimens-tests (Files): Likewise.
68248         * modules/utimensat-tests (Files): Likewise.
68250 2009-12-19  Eric Blake  <ebb9@byu.net>
68252         futimens, utimensat: work around Linux bug
68253         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
68254         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
68255         * lib/utimensat.c (rpl_utimensat): Work around it.
68256         * lib/futimens.c (rpl_futimens): Adjust comment.
68258         utimens: work around Linux ctime bug
68259         * lib/utimens.c (detect_ctime_bug): New helper function.
68260         (update_timespec): Differentiate between workaround needed for
68261         this bug vs. what is needed for systems that lack utimensat.
68262         (fdutimens, lutimens): Work around bug.
68264         utimens: check for ctime update
68265         * tests/test-utimens-common.h (check_ctime): Define.
68266         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
68267         * tests/test-futimens.h (test_futimens): Likewise.
68268         * tests/test-lutimens.h (test_lutimens): Likewise.
68269         * doc/posix-functions/futimens.texi (futimens): Document the bug.
68270         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
68272 2009-12-19  Bruno Haible  <bruno@clisp.org>
68274         dprintf-posix: Check against memory leak fixed on 2009-12-15.
68275         * tests/test-dprintf-posix2.sh: New file.
68276         * tests/test-dprintf-posix2.c: New file.
68277         * modules/dprintf-posix-tests (Files): Add them.
68278         (configure.ac): Check for getrlimit and setrlimit.
68279         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
68281 2009-12-19  Bruno Haible  <bruno@clisp.org>
68283         fprintf-posix: Check against memory leak fixed on 2009-12-15.
68284         * tests/test-fprintf-posix3.sh: New file.
68285         * tests/test-fprintf-posix3.c: New file.
68286         * modules/fprintf-posix-tests (Files): Add them.
68287         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
68289 2009-12-19  Eric Blake  <ebb9@byu.net>
68291         dirfd: fix prototype
68292         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
68293         * lib/dirfd.c (dirfd): Likewise.
68295         canonicalize: reduce memory usage
68296         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
68297         allocation to size.
68298         Reported by Solar Designer <solar@openwall.com>.
68300 2009-12-19  Bruno Haible  <bruno@clisp.org>
68302         New module attribute 'Applicability'.
68303         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
68304         * gnulib-tool: New option --extract-applicability.
68305         (func_usage): Document it.
68306         (sed_extract_prog): Recognize it.
68307         (func_get_applicability): New function.
68308         (func_import): Generalize handling of 'link-warning' module.
68309         * modules/link-warning (Applicability): New section.
68310         * modules/arg-nonnull (Applicability): New section.
68311         Repoted by Simon Josefsson <simon@josefsson.org>.
68313 2009-12-19  Bruno Haible  <bruno@clisp.org>
68315         fflush: tweak
68316         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
68317         * lib/fseeko.c (rpl_fseeko): Likewise.
68319 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
68321         * lib/gl_list.h: Fix typo in comment.
68323 2009-12-16  Eric Blake  <ebb9@byu.net>
68325         fcntl: use to simplify other modules
68326         * modules/cloexec (Depends-on): Add fcntl.
68327         * modules/fchdir (Depends-on): Likewise.
68328         * modules/fd-safer-flag (Depends-on): Likewise.
68329         * modules/unistd-safer (Depends-on): Likewise.
68330         * modules/dup3 (configure.ac): Set module indicator.
68331         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
68332         missing.
68333         * lib/fchdir.c (_gl_register_dup): Fix comment.
68334         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
68335         * lib/dup-safer.c (dup_safer): Likewise.
68336         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
68337         * lib/dup3.c (dup3): Likewise.
68338         * tests/test-fchdir.c (main): Enhance test.
68339         Fixes a dup_cloexec bug reported by Ondřej Vašík.
68341         fcntl: port portions of fcntl to mingw
68342         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
68343         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
68344         replacement for mingw.
68345         * modules/fcntl (Description): Update.
68346         (Depends-on): Add dup2.
68347         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
68348         * modules/fcntl-h (Makefile.am): Substitute it.
68349         * lib/fcntl.in.h (fcntl): Update declaration.
68350         (F_DUPFD, F_GETFD): New macros, when needed.
68351         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
68352         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
68353         * tests/test-fcntl.c (check_flags, main): Enhance test for items
68354         we now guarantee.
68356         fcntl: work around cygwin bug in F_DUPFD
68357         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
68358         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
68359         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
68360         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
68361         * doc/posix-functions/fcntl.texi (fcntl): Document it.
68363         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
68364         * modules/fcntl (Files): List new files.
68365         (configure.ac): Run a test.
68366         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
68367         * lib/fcntl.c (rpl_fcntl): Likewise.
68368         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
68369         (gl_FCNTL_H): Always replace fcntl.h.
68370         * modules/fcntl-h (Makefile.am): Substitute witnesses.
68371         * lib/fcntl.in.h (fcntl): Declare replacement.
68372         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
68373         needed, plus a witness.
68374         * doc/posix-functions/fcntl.texi (fcntl): Document this.
68375         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
68376         * tests/test-fcntl.c: New file.
68377         * modules/fcntl-tests: Likewise.
68379         binary-io: avoid potential compilation warning
68380         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
68381         directives.
68383         fflush: avoid compilation error on NetBSD
68384         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
68385         between off_t and fpos_t, since the latter is sometimes a struct.
68386         * lib/fseeko.c (rpl_fseeko): Likewise.
68387         Reported by Alexander Nasonov <alnsn@yandex.ru>.
68389 2009-12-15  Eric Blake  <ebb9@byu.net>
68391         fcntl-h, stdio, sys_ioctl: fix declarations
68392         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
68393         function must not take arguments.
68394         * lib/sys_ioctl.in.h (ioctl): Likewise.
68395         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
68396         (open): Add a link warning.
68398 2009-12-15  Jim Meyering  <meyering@redhat.com>
68400         areadlink, areadlink-with-size: relax license to LGPLv2+
68401         * modules/areadlink (License): Relax to LGPLv2+.
68402         * modules/areadlink-with-size (License): Likewise.
68404 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
68405             Bruno Haible  <bruno@clisp.org>
68407         *printf: Fix memory leak.
68408         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
68409         * lib/vfprintf.c (vfprintf): Likewise.
68410         * lib/dprintf.c (dprintf): Likewise.
68411         * lib/vdprintf.c (vdprintf): Likewise.
68413 2009-12-14  Eric Blake  <ebb9@byu.net>
68415         accept4: adjust module dependencies
68416         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
68418         utimens: one more try at avoiding compiler warning
68419         * lib/utimens.c (lutimens): Lower scope of result.
68421 2009-12-13  Bruno Haible  <bruno@clisp.org>
68423         Move the malloc checking from module 'list' to new module 'xlist'.
68424         * modules/xlist: New file.
68425         * lib/gl_xlist.h: New file.
68426         * lib/gl_xlist.c: New file.
68427         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
68428         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
68429         gl_list_add_last, gl_list_add_before, gl_list_add_after,
68430         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
68431         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
68432         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
68433         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
68434         gl_sortedlist_nx_add): New declarations.
68435         (struct gl_list_implementation): Rename and change methods accordingly.
68436         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
68437         (gl_list_nx_create): Renamed from gl_list_create.
68438         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
68439         (gl_list_nx_set_at): Renamed from gl_list_set_at.
68440         (gl_list_nx_add_first): Renamed from gl_list_add_first.
68441         (gl_list_nx_add_last): Renamed from gl_list_add_last.
68442         (gl_list_nx_add_before): Renamed from gl_list_add_before.
68443         (gl_list_nx_add_after): Renamed from gl_list_add_after.
68444         (gl_list_nx_add_at): Renamed from gl_list_add_at.
68445         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
68446         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
68447         gl_list_create_empty.
68448         (gl_list_nx_create): Renamed from gl_list_create.
68449         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
68450         (gl_list_nx_set_at): Renamed from gl_list_set_at.
68451         (gl_list_nx_add_first): Renamed from gl_list_add_first.
68452         (gl_list_nx_add_last): Renamed from gl_list_add_last.
68453         (gl_list_nx_add_before): Renamed from gl_list_add_before.
68454         (gl_list_nx_add_after): Renamed from gl_list_add_after.
68455         (gl_list_nx_add_at): Renamed from gl_list_add_at.
68456         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
68457         * lib/gl_array_list.c: Don't include xalloc.h.
68458         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
68459         NULL upon out-of-memory.
68460         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
68461         out-of-memory.
68462         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
68463         Change return type to 'int'.
68464         (gl_array_nx_set_at): Renamed from gl_array_set_at.
68465         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
68466         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
68467         upon out-of-memory.
68468         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
68469         upon out-of-memory.
68470         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
68471         upon out-of-memory.
68472         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
68473         upon out-of-memory.
68474         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
68475         out-of-memory.
68476         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
68477         Update.
68478         (gl_array_list_implementation): Update.
68479         * lib/gl_carray_list.c: Don't include xalloc.h.
68480         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
68481         Return NULL upon out-of-memory.
68482         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
68483         out-of-memory.
68484         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
68485         Change return type to 'int'.
68486         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
68487         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
68488         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
68489         upon out-of-memory.
68490         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
68491         upon out-of-memory.
68492         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
68493         out-of-memory.
68494         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
68495         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
68496         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
68497         Update.
68498         (gl_carray_list_implementation): Update.
68499         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
68500         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
68501         gl_linked_create_empty. Return NULL upon out-of-memory.
68502         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
68503         out-of-memory.
68504         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
68505         Change return type to 'int'. Return -1 upon out-of-memory.
68506         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
68507         out-of-memory.
68508         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
68509         upon out-of-memory.
68510         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
68511         upon out-of-memory.
68512         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
68513         NULL upon out-of-memory.
68514         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
68515         upon out-of-memory.
68516         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
68517         out-of-memory.
68518         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
68519         Update.
68520         * lib/gl_linked_list.c: Don't include xalloc.h.
68521         (gl_linked_list_implementation): Update.
68522         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
68523         (add_to_bucket): Change return type to 'int'.
68524         (gl_linkedhash_list_implementation): Update.
68525         * lib/gl_anytree_list1.h (free_subtree): New function.
68526         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
68527         gl_tree_create_empty. Return NULL upon out-of-memory.
68528         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
68529         Change return type to 'int'. Return -1 upon out-of-memory.
68530         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
68531         out-of-memory.
68532         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
68533         (gl_tree_remove_node): New function, moved here from
68534         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
68535         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
68536         Update.
68537         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
68538         malloc, not xmalloc. Return NULL upon out-of-memory.
68539         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
68540         out-of-memory.
68541         (gl_tree_remove_node_from_tree): New function, extracted from
68542         gl_tree_remove_node.
68543         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
68544         upon out-of-memory.
68545         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
68546         out-of-memory.
68547         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
68548         upon out-of-memory.
68549         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
68550         upon out-of-memory.
68551         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
68552         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
68553         not xmalloc. Return NULL upon out-of-memory.
68554         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
68555         out-of-memory.
68556         (gl_tree_remove_node_from_tree): New function, extracted from
68557         gl_tree_remove_node.
68558         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
68559         upon out-of-memory.
68560         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
68561         out-of-memory.
68562         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
68563         upon out-of-memory.
68564         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
68565         upon out-of-memory.
68566         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
68567         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
68568         gl_anytree_list1.h before gl_anyavltree_list2.h.
68569         (gl_avltree_list_implementation): Update.
68570         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
68571         gl_anytree_list1.h before gl_anyavltree_list2.h.
68572         (gl_rbtree_list_implementation): Update.
68573         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
68574         Change return type to 'int'. Return -1 upon out-of-memory. Use
68575         __builtin_expect.
68576         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
68577         (gl_avltreehash_list_implementation): Update.
68578         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
68579         (gl_rbtreehash_list_implementation): Update.
68580         * modules/array-list (Depends-on): Remove xalloc.
68581         * modules/carray-list (Depends-on): Likewise.
68582         * modules/linked-list (Depends-on): Likewise.
68583         * modules/linkedhash-list (Depends-on): Likewise.
68584         * modules/avltree-list (Depends-on): Likewise.
68585         * modules/rbtree-list (Depends-on): Likewise.
68586         * modules/avltreehash-list (Depends-on): Likewise.
68587         * modules/rbtreehash-list (Depends-on): Likewise.
68589         * modules/xsublist: New file.
68590         * lib/gl_xsublist.h: New file.
68591         * lib/gl_xsublist.c: New file.
68592         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
68593         (gl_sublist_nx_create): New declaration.
68594         * lib/gl_sublist.c: Don't include xalloc.h.
68595         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
68596         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
68597         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
68598         Change return type to 'int'. Return -1 upon out-of-memory.
68599         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
68600         upon out-of-memory.
68601         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
68602         NULL upon out-of-memory.
68603         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
68604         upon out-of-memory.
68605         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
68606         NULL upon out-of-memory.
68607         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
68608         NULL upon out-of-memory.
68609         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
68610         upon out-of-memory.
68611         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
68612         (gl_sublist_list_implementation): Update.
68613         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
68614         upon out-of-memory.
68615         * modules/sublist (Depends-on): Remove xalloc.
68617         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
68618         * tests/test-carray_list.c: Likewise.
68619         * tests/test-linked_list.c: Likewise.
68620         * tests/test-linkedhash_list.c: Likewise.
68621         * tests/test-avltree_list.c: Likewise.
68622         * tests/test-rbtree_list.c: Likewise.
68623         * tests/test-avltreehash_list.c: Likewise.
68624         * tests/test-rbtreehash_list.c: Likewise.
68625         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
68626         * modules/carray-list-tests (Makefile.am): Likewise.
68627         * modules/linked-list-tests (Makefile.am): Likewise.
68628         * modules/linkedhash-list-tests (Makefile.am): Likewise.
68629         * modules/avltree-list-tests (Makefile.am): Likewise.
68630         * modules/rbtree-list-tests (Makefile.am): Likewise.
68631         * modules/avltreehash-list-tests (Makefile.am): Likewise.
68632         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
68634         * NEWS: Mention the changes.
68636         * lib/clean-temp.c: Include gl_xlist.h.
68637         * modules/clean-temp (Depends-on): Add xlist.
68639         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
68640         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
68642         * tests/test-array_oset.c: Include gl_xlist.h.
68643         * modules/array-oset-tests (Depends-on): Add xlist.
68645         Reported by José E. Marchesi <jemarch@gnu.org>.
68647 2009-12-13  Bruno Haible  <bruno@clisp.org>
68649         Move the malloc checking from module 'oset' to new module 'xoset'.
68650         * modules/xoset: New file.
68651         * lib/gl_xoset.h: New file.
68652         * lib/gl_xoset.c: New file.
68653         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
68654         declarations.
68655         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
68656         (struct gl_oset_implementation): Rename and change methods accordingly.
68657         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
68658         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
68659         'int'. Mark as __warn_unused_result__.
68660         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
68661         gl_oset_create_empty.
68662         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
68663         'int'.
68664         * lib/gl_array_oset.c: Don't include xalloc.h.
68665         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
68666         malloc, not xmalloc.
68667         (grow): Change return type to 'int'. Don't call xalloc_die.
68668         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
68669         to 'int'.
68670         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
68671         'int'.
68672         (gl_array_oset_implementation): Update.
68673         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
68674         gl_tree_create_empty.
68675         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
68676         'int'.
68677         * lib/gl_avltree_oset.c: Don't include xalloc.h.
68678         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
68679         xmalloc.
68680         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
68681         not xmalloc.
68682         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
68683         xmalloc.
68684         (gl_avltree_oset_implementation): Update.
68685         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
68686         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
68687         xmalloc.
68688         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
68689         not xmalloc.
68690         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
68691         xmalloc.
68692         (gl_rbtree_oset_implementation): Update.
68693         * modules/array-oset (Depends-on): Remove xalloc.
68694         * modules/avltree-oset (Depends-on): Likewise.
68695         * modules/rbtree-oset (Depends-on): Likewise.
68696         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
68697         * tests/test-avltree_oset.c: Likewise.
68698         * tests/test-rbtree_oset.c: Likewise.
68699         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
68700         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
68701         * modules/rbtree-oset-tests (Makefile.am): Likewise.
68702         * NEWS: Mention the change.
68704 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
68706         maint.mk: allow a project to override release-prep commands
68707         * top/maint.mk (alpha, beta, stable): Move release-preparatory
68708         commands into a new rule.
68709         (release-prep): New rule.
68710         (release-prep-hook): New overridable variable.
68712 2009-12-13  Bruno Haible  <bruno@clisp.org>
68714         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
68716 2009-12-13  Jim Meyering  <meyering@redhat.com>
68718         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
68719         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
68721 2009-12-12  Bruno Haible  <bruno@clisp.org>
68723         duplocale: Tweak.
68724         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
68726 2009-12-12  Karl Berry  <karl@gnu.org>
68728         * config/srclist.txt (strtoll.c): tab changes, no more sync.
68730 2009-12-12  Bruno Haible  <bruno@clisp.org>
68732         * m4/po.m4: Undo incorrect untabification.
68734 2009-12-12  Bruno Haible  <bruno@clisp.org>
68736         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
68737         * modules/c-strtod (Depends-on): Add locale.
68738         * modules/c-strtold (Depends-on): Likewise.
68740 2009-12-12  Bruno Haible  <bruno@clisp.org>
68742         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
68744 2009-12-11  Eric Blake  <ebb9@byu.net>
68746         setenv: relax requirement in light of POSIX ruling
68747         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
68748         not NULL.
68749         * tests/test-setenv.c (main): Relax test.
68750         * tests/test-unsetenv.c (main): Likewise.
68751         * doc/posix-functions/setenv.texi (setenv): Document this.
68752         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
68754 2009-12-11  Bruno Haible  <bruno@clisp.org>
68756         New module 'fd-safer-flag'.
68757         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
68758         * lib/dup-safer.c (dup_safer_flag): Remove function.
68759         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
68760         * lib/fd-safer.c (fd_safer_flag): Remove function.
68761         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
68762         * modules/cloexec (configure.ac): Drop indicator macro.
68763         * modules/fd-safer-flag: New file.
68764         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
68765         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
68766         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
68768 2009-12-11  Bruno Haible  <bruno@clisp.org>
68770         Tests for module 'nl_langinfo'.
68771         * modules/nl_langinfo-tests: New file.
68772         * tests/test-nl_langinfo.sh: New file.
68773         * tests/test-nl_langinfo.c: New file.
68775         New module 'nl_langinfo'.
68776         * lib/nl_langinfo.c: New file.
68777         * m4/nl_langinfo.m4: New file.
68778         * modules/nl_langinfo: New file.
68779         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
68781 2009-12-11  Bruno Haible  <bruno@clisp.org>
68783         Tests for module 'langinfo'.
68784         * modules/langinfo-tests: New file.
68785         * tests/test-langinfo.c: New file.
68787         New module 'langinfo'.
68788         * lib/langinfo.in.h: New file.
68789         * m4/langinfo_h.m4: New file.
68790         * modules/langinfo: New file.
68791         * doc/posix-headers/langinfo.texi: Mention the new module.
68793 2009-12-11  Bruno Haible  <bruno@clisp.org>
68795         * lib/config.charset: Untabify.
68797 2009-12-11  Bruno Haible  <bruno@clisp.org>
68799         * modules/unistd-safer (configure.ac): Drop indicator macro.
68801 2009-12-11  Bruno Haible  <bruno@clisp.org>
68803         Move pipe2-safer code to its own file.
68804         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
68805         * lib/pipe-safer.c (pipe2_safer): Remove function.
68806         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
68807         (Makefile.am): Add it to lib_SOURCES.
68809 2009-12-10  Bruno Haible  <bruno@clisp.org>
68811         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
68813 2009-12-10  Bruno Haible  <bruno@clisp.org>
68815         Declare which arguments expect non-NULL values, for GCC and clang.
68816         * build-aux/arg-nonnull.h: New file.
68817         * modules/arg-nonnull: New file.
68818         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
68819         (inet_ntop, inet_pton): Use it.
68820         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
68821         (closedir, dirfd, opendir, scandir, alphasort): Use it.
68822         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
68823         (open, openat): Use it.
68824         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
68825         (fnmatch): Use it.
68826         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
68827         (getopt, getopt_long, getopt_long_only): Use it.
68828         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
68829         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
68830         Use it.
68831         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
68832         (iconv_open): Use it.
68833         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
68834         (strtoimax, strtoumax): Use it.
68835         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
68836         (duplocale): Use it.
68837         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
68838         (frexp, frexpl): Use it.
68839         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
68840         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
68841         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
68842         (tsearch, tfind, tdelete, twalk): Use it.
68843         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
68844         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
68845         sigpending): Use it.
68846         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
68847         (posix_spawn, posix_spawnp, posix_spawnattr_init,
68848         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
68849         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
68850         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
68851         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
68852         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
68853         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
68854         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
68855         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
68856         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
68857         Use it.
68858         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
68859         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
68860         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
68861         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
68862         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
68863         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
68864         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
68865         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
68866         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
68867         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
68868         strtoull, unsetenv): Use it.
68869         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
68870         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
68871         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
68872         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
68873         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
68874         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
68875         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
68876         (strcasecmp, strncasecmp): Use it.
68877         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
68878         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
68879         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
68880         rpl_setsockopt): Use it.
68881         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
68882         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
68883         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
68884         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
68885         (gettimeofday): Use it.
68886         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
68887         (times): Use it.
68888         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
68889         (uname): Use it.
68890         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
68891         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
68892         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
68893         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
68894         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
68895         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
68896         unlinkat, write): Use it.
68897         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
68898         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
68899         * lib/argv-iter.h: Include arg-nonnull.h.
68900         (_ATTRIBUTE_NONNULL_): Remove macro.
68901         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
68902         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
68903         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
68904         optimization.
68905         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
68906         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
68907         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
68908         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
68909         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
68910         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
68911         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
68912         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
68913         * modules/arpa_inet (Depends-on): Add arg-nonnull.
68914         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
68915         * modules/dirent (Depends-on): Add arg-nonnull.
68916         (Makefile.am): Insert arg-nonnull.h into dirent.h.
68917         * modules/fcntl-h (Depends-on): Add arg-nonnull.
68918         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
68919         * modules/fnmatch (Depends-on): Add arg-nonnull.
68920         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
68921         * modules/getopt-posix (Depends-on): Add arg-nonnull.
68922         (Makefile.am): Insert arg-nonnull.h into getopt.h.
68923         * modules/glob (Depends-on): Add arg-nonnull.
68924         (Makefile.am): Insert arg-nonnull.h into glob.h.
68925         * modules/iconv_open (Depends-on): Add arg-nonnull.
68926         (Makefile.am): Insert arg-nonnull.h into iconv.h.
68927         * modules/inttypes (Depends-on): Add arg-nonnull.
68928         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
68929         * modules/locale (Depends-on): Add arg-nonnull.
68930         (Makefile.am): Insert arg-nonnull.h into locale.h.
68931         * modules/math (Depends-on): Add arg-nonnull.
68932         (Makefile.am): Insert arg-nonnull.h into math.h.
68933         * modules/netdb (Depends-on): Add arg-nonnull.
68934         (Makefile.am): Insert arg-nonnull.h into netdb.h.
68935         * modules/search (Depends-on): Add arg-nonnull.
68936         (Makefile.am): Insert arg-nonnull.h into search.h.
68937         * modules/signal (Depends-on): Add arg-nonnull.
68938         (Makefile.am): Insert arg-nonnull.h into signal.h.
68939         * modules/spawn (Depends-on): Add arg-nonnull.
68940         (Makefile.am): Insert arg-nonnull.h into spawn.h.
68941         * modules/stdio (Depends-on): Add arg-nonnull.
68942         (Makefile.am): Insert arg-nonnull.h into stdio.h.
68943         * modules/stdlib (Depends-on): Add arg-nonnull.
68944         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
68945         * modules/string (Depends-on): Add arg-nonnull.
68946         (Makefile.am): Insert arg-nonnull.h into string.h.
68947         * modules/strings (Depends-on): Add arg-nonnull.
68948         (Makefile.am): Insert arg-nonnull.h into strings.h.
68949         * modules/sys_socket (Depends-on): Add arg-nonnull.
68950         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
68951         * modules/sys_stat (Depends-on): Add arg-nonnull.
68952         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
68953         * modules/sys_time (Depends-on): Add arg-nonnull.
68954         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
68955         * modules/sys_times (Depends-on): Add arg-nonnull.
68956         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
68957         * modules/sys_utsname (Depends-on): Add arg-nonnull.
68958         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
68959         * modules/time (Depends-on): Add arg-nonnull.
68960         (Makefile.am): Insert arg-nonnull.h into time.h.
68961         * modules/unistd (Depends-on): Add arg-nonnull.
68962         (Makefile.am): Insert arg-nonnull.h into unistd.h.
68963         * modules/wchar (Depends-on): Add arg-nonnull.
68964         (Makefile.am): Insert arg-nonnull.h into wchar.h.
68965         * modules/argv-iter (Depends-on): Add arg-nonnull.
68966         * tests/test-canonicalize.c (null_ptr): New function.
68967         (main): Use it.
68968         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
68969         (main): Use it.
68970         * tests/test-memmem.c (null_ptr): New function.
68971         (main): Use it.
68972         Reported by Jim Meyering.
68974 2009-12-10  Bruno Haible  <bruno@clisp.org>
68976         Use spaces for indentation, not tabs.
68977         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
68978         * m4/*.m4: Untabify.
68979         * build-aux/*.h: Untabify.
68980         * tests/**/*.[hc]: Untabify.
68981         * README: New section "Indent with spaces, not TABs", based on
68982         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
68983         * NEWS: Mention the change.
68985 2009-12-10  Bruno Haible  <bruno@clisp.org>
68987         pty test: Fix link error.
68988         * modules/pty-tests (Makefile.am): Add the default LDADD value to
68989         test_pty_LDADD.
68991 2009-12-07  Simon Josefsson  <simon@josefsson.org>
68993         * modules/pty: New file.
68994         * modules/pty-tests: New file.
68995         * m4/pty.m4: New file.
68996         * tests/test-pty.c: New file.
68997         * doc/glibc-headers/pty.texi: Modified.
68998         * doc/glibc-functions/forkpty.texi: Modified.
68999         * doc/glibc-functions/openpty.texi: Modified.
69001 2009-12-10  Bruno Haible  <bruno@clisp.org>
69003         Avoid syntax error in C++ mode.
69004         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
69006 2009-12-10  Bruno Haible  <bruno@clisp.org>
69008         Use sed with option -e.
69009         * gnulib-tool (func_version, func_emit_copyright_notice,
69010         func_emit_initmacro_end, func_import, func_create_testdir): Pass
69011         option -e to sed.
69012         * modules/link-warning (Makefile.am): Likewise.
69014 2009-12-10  Jim Meyering  <meyering@redhat.com>
69016         mgetgroups: do not write bytes beyond end of malloc'd buffer
69017         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
69018         username, we call getgroups with a one-element-shorter buffer,
69019         but still told it the length was original, max_n_groups.
69021 2009-12-09  Eric Blake  <ebb9@byu.net>
69023         cloexec: relax license
69024         * modules/cloexec (Maintainer): Add myself.
69025         (License): Use LGPL, not GPL.
69027         link-warning: optimize generation
69028         * modules/link-warning (Makefile.am): Reduce process usage.
69030 2009-12-09  Bruno Haible  <bruno@clisp.org>
69032         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
69033         workaround was added on 2009-11-17.
69035 2009-12-09  Jim Meyering  <meyering@redhat.com>
69036             Bruno Haible  <bruno@clisp.org>
69038         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
69039         * modules/link-warning (Makefile.am): Make the comment-removing sed
69040         command more robust in the face of bootstrap-prepended comment lines.
69042 2009-12-09  Bruno Haible  <bruno@clisp.org>
69044         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
69045         most one group.
69047 2009-12-09  Simon Josefsson  <simon@josefsson.org>
69048             Bruno Haible  <bruno@clisp.org>
69050         * build-aux/link-warning.h: Add copyright notice.
69051         * modules/link-warning (Makefile.am): Generate link-warning.h from
69052         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
69053         * NEWS: Mention change in link-warning module.
69054         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
69055         * modules/dirent (Makefile.am): Add dependency to dirent.h.
69056         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
69057         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
69058         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
69059         * modules/math (Makefile.am): Add dependency to math.h.
69060         * modules/search (Makefile.am): Add dependency to search.h.
69061         * modules/signal (Makefile.am): Add dependency to signal.h.
69062         * modules/spawn (Makefile.am): Add dependency to spawn.h.
69063         * modules/stdio (Makefile.am): Add dependency to stdio.h.
69064         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
69065         * modules/string (Makefile.am): Add dependency to string.h.
69066         * modules/strings (Makefile.am): Add dependency to strings.h.
69067         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
69068         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
69069         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
69070         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
69071         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
69072         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
69073         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
69074         * modules/unistd (Makefile.am): Add dependency to unistd.h.
69075         * modules/wchar (Makefile.am): Add dependency to wchar.h.
69077 2009-12-09  Bruno Haible  <bruno@clisp.org>
69079         fchdir: Optimize away rpl_fstat when possible.
69080         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
69081         REPLACE_OPEN_DIRECTORY.
69082         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
69084 2009-12-09  Bruno Haible  <bruno@clisp.org>
69086         * lib/fchdir.c: Update comment.
69088 2009-12-09  Bruno Haible  <bruno@clisp.org>
69090         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
69092 2009-12-08  Eric Blake  <ebb9@byu.net>
69094         fchdir: avoid memory leak on re-registration.
69095         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
69097 2009-12-08  Jim Meyering  <meyering@redhat.com>
69099         init.sh: avoid Solaris 10 /bin/sh portability problem
69100         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
69101         sourced script:
69102           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
69103           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
69104           bar
69105         tests/init.sh relied on that, accepting a --set-path=DIR argument,
69106         and two tests used that idiom.
69107         * tests/init.sh: Update suggested usage comments.
69108         (path_prepend_): New function, to be used in place
69109         of the --src-path=DIR option.
69110         (setup_): Move PATH-prepending code into path_prepend_.
69111         * tests/test-pread.sh: Adapt to new usage.
69112         * tests/test-xalloc-die.sh: Likewise.
69114 2009-12-08  Simon Josefsson  <simon@josefsson.org>
69116         * doc/gnulib.texi (Glibc pty.h): Add.
69117         * doc/glibc-functions/forkpty.texi: Add.
69118         * doc/glibc-functions/openpty.texi: Add.
69119         Suggested by Bruno Haible.
69121 2009-12-08  Eric Blake  <ebb9@byu.net>
69123         fchdir: fix logic bugs
69124         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
69125         * tests/test-fchdir.c (main): Enhance test.
69126         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
69127         is in use.
69129         dup2: fix logic bugs
69130         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
69131         REPLACE_DUP2 to decide when rpl_dup2 is needed.
69132         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
69133         exists.
69134         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
69136 2009-12-07  Eric Blake  <ebb9@byu.net>
69138         unlink: fix m4 detection
69139         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
69141         unistd-safer: add unit test
69142         * modules/unistd-safer-tests: New file.
69143         * tests/test-dup-safer.c: Likewise.
69144         * tests/test-cloexec.c (setmode): Avoid compiler warning.
69145         * tests/test-dup2.c (setmode): Likewise.
69146         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
69148         cloexec: preserve text vs. binary across dup_cloexec
69149         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
69150         mode.
69151         * modules/dup2-tests (Depends-on): Add binary-io.
69152         * modules/cloexec-tests (Depends-on): Likewise.
69153         * tests/test-dup2.c (setmode, is_mode): New helpers.
69154         (main): Add tests that translation mode is preserved.
69155         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
69156         Reported by Bruno Haible.
69158         mgetgroups: reduce duplicate listings
69159         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
69160         resulting array.
69161         * tests/test-chown.h (test_chown): Simplify client.
69162         * tests/test-lchown.h (test_lchown): Likewise.
69164 2009-12-06  Bruno Haible  <bruno@clisp.org>
69166         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
69167         value.
69169 2009-12-06  Bruno Haible  <bruno@clisp.org>
69171         * lib/progname.c: Include stdio.h, stdlib.h.
69172         (set_program_name): Reject a NULL argument.
69174 2009-12-05  Eric Blake  <ebb9@byu.net>
69176         pipe2-safer: new module
69177         * modules/pipe2-safer: New file.
69178         * lib/unistd-safer.h (pipe2_safer): New prototype.
69179         * lib/unistd--.h (pipe2): New wrapper.
69180         * lib/pipe-safer.c (pipe2_safer): New function.
69181         * modules/pipe (Depends-on): Add pipe2-safer.
69182         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
69184         stdlib-safer: preserve cloexec flag for mkostemp[s]
69185         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
69186         fd_safer_flag.
69188         unistd-safer: allow preservation of cloexec status via flag
69189         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
69190         prototypes.
69191         * lib/dup-safer.c (dup_safer_flag): New function.
69192         * lib/fd-safer.c (fd_safer_flag): Likewise.
69193         * modules/cloexec (configure.ac): Set witness.
69195         test-dup2: enhance test
69196         * modules/dup2-tests (Depends-on): Add cloexec.
69197         * tests/test-dup2.c (main): Enhance test.
69199         cloexec: add dup_cloexec
69200         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
69201         header and comments.
69202         * lib/cloexec.c (set_cloexec_flag): Add comments.
69203         (dup_cloexec): New function, with mingw implementation borrowed
69204         from...
69205         * lib/w32spawn.h (dup_noinherit): ...here.
69206         * modules/execute (Depends-on): Add cloexec.
69207         * modules/pipe (Depends-on): Likewise.
69208         * modules/cloexec (Depends-on): Add dup2.
69209         * modules/cloexec-tests (Files): New file.
69210         * tests/test-cloexec.c: Likewise.
69212         test-xalloc-die: fix test for mingw
69213         * modules/xalloc-die-tests (Files): Add tests/init.sh.
69214         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
69215         directory and .exe suffix off argv[0] output.
69217         test-fseeko: fix test for mingw
69218         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
69219         than undefining fseek, so test will pass on mingw.
69221 2009-12-05  Bruno Haible  <bruno@clisp.org>
69223         * lib/progname.h (set_program_name): Clarify specification.
69224         * lib/progname.c (set_program_name): Likewise.
69225         Reported by Jim Meyering.
69227 2009-12-05  Jim Meyering  <meyering@redhat.com>
69229         maint.mk: backslash-escape parens in default regexp
69230         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
69231         backslash-escape the literal parentheses.
69233         maint.mk: news-date-check: use grep -E
69234         * top/maint.mk (today): Define a Make variable, not a...
69235         (news-date-check): ...shell variable.
69236         (news-date-regexp): Use the Make variable.
69237         Use grep's -E option.  Change the failing diagnostic to mention
69238         the variable, $(news-date-regexp).
69240 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
69242         maintainer-makefile: allow customization of NEWS entry format
69243         * top/maint.mk (news-date-regexp): New overridable variable.
69244         (news-date-check): Use it.
69246 2009-12-04  Eric Blake  <ebb9@byu.net>
69248         mgetgroups: add xgetgroups, and avoid ENOSYS failures
69249         * lib/mgetgroups.h (xgetgroups): New prototype.
69250         * lib/mgetgroups.c (xgetgroups): New wrapper.
69251         (mgetgroups): Handle ENOSYS.
69252         * modules/mgetgroups (Depends-on): Add realloc.
69253         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
69255         mgetgroups: avoid argument promotion issues with -1
69256         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
69257         for invalid gid_t.
69258         * tests/test-chown.h (getegid, test_chown): Likewise.
69259         * tests/test-lchown.h (getegid, test_lchown): Likewise.
69261 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
69263         exclude: Fix header file problems.
69264         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
69266 2009-12-01  Jim Meyering  <meyering@redhat.com>
69268         fts: fts_open: do not let an empty string cause immediate failure
69269         This is required in support of GNU rm, for which the command
69270         "rm A '' B" must process and remove both A and B, in spite of
69271         the empty string argument.
69272         * lib/fts.c (fts_open): Do not let the presence of an empty string
69273         cause fts_open to fail immediately.  Most fts-using tools must be
69274         able to process all arguments, in order, and can be expected to
69275         diagnose such arguments themselves.
69277 2009-11-30  Eric Blake  <ebb9@byu.net>
69279         utimens: fix compilation error
69280         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
69281         Declare variable at right scope.
69283 2009-11-29  Jim Meyering  <meyering@redhat.com>
69285         bootstrap: handle perl-5.11's changed --version output
69286         * build-aux/bootstrap (get_version): Handle perl separately,
69287         since perl-5.11's --version output is different.
69289 2009-11-28  Jim Meyering  <meyering@redhat.com>
69291         userspec: depend on the inttostr module, too
69292         * modules/userspec (Depends-on): Add inttostr.
69294         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
69295         * lib/userspec.c (parse_with_separator): Do not accept a user ID
69296         number of MAXUID when it evaluates to (uid_t) -1.
69297         Likewise for group ID.  Reported by Matt McCutchen in
69298         <http://savannah.gnu.org/bugs/?28113>
69300         userspec: reformat to use spaces, not TABs
69301         * lib/userspec.c: Expand TABs to spaces.
69302         Add Emacs' "indent-tabs-mode: nil" hint.
69304 2009-11-27  Eric Blake  <ebb9@byu.net>
69306         getopt-gnu: flush out another BSD bug
69307         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
69308         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
69309         flush out BSD bug.
69310         * tests/test-getopt.h (test_getopt): End lists with NULL.
69311         * tests/test-getopt_long.h (test_getopt_long): Likewise.
69312         (test_getopt_long_posix): Enhance test.
69313         * modules/getopt-posix-tests (Depends-on): Add stdbool.
69314         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
69315         getopt-gnu.
69316         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
69317         Likewise.
69319 2009-11-27  Simon Josefsson  <simon@josefsson.org>
69321         * modules/idpriv-droptemp-tests (Notice): Fix text.
69323 2009-11-27  Jim Meyering  <meyering@redhat.com>
69325         test-xalloc-die: avoid spurious failure due to libtool argv difference
69326         In a libtool-enabled project, this test would fail due to a difference
69327         in the emitted program name, e.g.,
69328         -test-xalloc-die: memory exhausted
69329         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
69330         Use program to avoid that.
69331         * modules/xalloc-die-tests (Depends-on): Add progname.
69332         * tests/test-xalloc-die.c: Include progname.h".
69333         (program_name): Remove decl.
69334         (main): Call set_program_name.
69335         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
69337 2009-11-26  Richard Jones  <rjones@redhat.com>
69339         w32sock: leave win32 error in place.
69340         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
69342 2009-11-26  Eric Blake  <ebb9@byu.net>
69344         init.sh: suggest to use skip_ and fail_ functions in comments
69345         * tests/init.sh: Add a sentence.
69347 2009-11-25  Bruno Haible  <bruno@clisp.org>
69349         init.sh: add documentation in comments
69350         * tests/init.sh: Add some developer and user documentation.
69352 2009-11-26  Jim Meyering  <meyering@redhat.com>
69354         init.sh: accommodate even those who specify bogus srcdir manually
69355         * tests/init.sh: Normally, srcdir is guaranteed by automake and
69356         configure-time tests to be sanitized, so that there is no need to
69357         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
69358         (with no double quotes) suffices.  However, since tests may be
69359         invoked manually, and since you may explicitly set srcdir to the
69360         name of a directory containing spaces, do quote its uses here.
69361         * tests/test-pread.sh: Likewise.
69362         Suggested by Bruno Haible.
69364         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
69365         * tests/test-pread.sh: Write no data into the pipe, because
69366         test-pread actually reads none.  This avoids a diagnostic,
69367         "bash: echo: write error: Broken pipe", that arises in the unusual
69368         event something is ignoring SIGPIPE, and might be interpreted
69369         as some sort of failure.  Reported by Bruno Haible.
69371 2009-11-25  Jim Meyering  <meyering@redhat.com>
69373         test-pread: cover failure with ESPIPE and EINVAL
69374         * tests/test-pread.c (main): Test for failure, too.
69375         * tests/test-pread.sh: Invoke with stdin on a pipe.
69376         Suggested by Eric Blake.
69378         pread: improvement and fix
69379         * modules/pread (Depends-on): Depend on lseek, for portability to
69380         e.g., mingw.  Suggested by Eric Blake.
69381         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
69383         unistd.in.h: correct declaration of pread
69384         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
69385         Reported by Richard W.M. Jones.
69387         test-pread.sh: distribute the test script
69388         * modules/pread-tests (Files): Include test-pread.sh.
69390         test-pread.sh: clean up
69391         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
69392         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
69393         That is unnecessary, since it's always ".".
69394         Suggestion from Eric Blake.
69396         test-pread.sh: make executable
69397         * tests/test-pread.sh: Set executable bit.
69398         Reported by Eric Blake.
69400         correct typo in test-pread.sh
69401         * tests/test-pread.sh: Add #! line.
69403         test pread
69404         * tests/test-pread.c: New file.
69405         * tests/test-pread.sh: Likewise.
69406         * modules/pread-tests: Likewise.
69408         pread: new module
69409         * modules/pread: New file.
69410         * lib/unistd.in.h (pread): Define/declare.
69411         * lib/pread.c (pread): New file.
69412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
69413         * modules/unistd (Makefile.am): Substitute witnesses.
69414         * doc/posix-functions/pread.texi (pread): Update.
69415         * MODULES.html.sh: Add pread.
69417 2009-11-25  Jim Meyering  <meyering@redhat.com>
69419         tests/init.sh: new file to be used via most *.sh tests
69420         * tests/init.sh: New file.
69422 2009-11-25  Eric Blake  <ebb9@byu.net>
69424         utimens: work around older Linux failure with symlinks
69425         * lib/utimens.c (lutimensat_works_really): New variable.
69426         (fdutimens, lutimens): Use it to manage kernels that support
69427         nanosecond times on files, but not on symlinks.
69428         Reported by Ondřej Vašík.
69430         utimes: fix configure grammar
69431         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
69433 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
69435         regex: Fix fastmap for multibyte character ranges.
69436         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
69437         characters when a multibyte character range is included.
69439 2009-11-22  Andy Wingo  <wingo@pobox.com>
69441         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
69442         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
69444 2009-11-24  Bruno Haible  <bruno@clisp.org>
69446         doc: Most *_l functions exist in MacOS X 10.5.
69447         * doc/posix-functions/duplocale.texi: Update platforms list.
69448         * doc/posix-functions/freelocale.texi: Likewise.
69449         * doc/posix-functions/newlocale.texi: Likewise.
69450         * doc/posix-functions/uselocale.texi: Likewise.
69451         * doc/posix-functions/isalnum_l.texi: Likewise.
69452         * doc/posix-functions/isalpha_l.texi: Likewise.
69453         * doc/posix-functions/isblank_l.texi: Likewise.
69454         * doc/posix-functions/iscntrl_l.texi: Likewise.
69455         * doc/posix-functions/isdigit_l.texi: Likewise.
69456         * doc/posix-functions/isgraph_l.texi: Likewise.
69457         * doc/posix-functions/islower_l.texi: Likewise.
69458         * doc/posix-functions/isprint_l.texi: Likewise.
69459         * doc/posix-functions/ispunct_l.texi: Likewise.
69460         * doc/posix-functions/isspace_l.texi: Likewise.
69461         * doc/posix-functions/isupper_l.texi: Likewise.
69462         * doc/posix-functions/iswalnum_l.texi: Likewise.
69463         * doc/posix-functions/iswalpha_l.texi: Likewise.
69464         * doc/posix-functions/iswblank_l.texi: Likewise.
69465         * doc/posix-functions/iswcntrl_l.texi: Likewise.
69466         * doc/posix-functions/iswctype_l.texi: Likewise.
69467         * doc/posix-functions/iswdigit_l.texi: Likewise.
69468         * doc/posix-functions/iswgraph_l.texi: Likewise.
69469         * doc/posix-functions/iswlower_l.texi: Likewise.
69470         * doc/posix-functions/iswprint_l.texi: Likewise.
69471         * doc/posix-functions/iswpunct_l.texi: Likewise.
69472         * doc/posix-functions/iswspace_l.texi: Likewise.
69473         * doc/posix-functions/iswupper_l.texi: Likewise.
69474         * doc/posix-functions/iswxdigit_l.texi: Likewise.
69475         * doc/posix-functions/isxdigit_l.texi: Likewise.
69476         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
69477         * doc/posix-functions/strcasecmp_l.texi: Likewise.
69478         * doc/posix-functions/strcoll_l.texi: Likewise.
69479         * doc/posix-functions/strfmon_l.texi: Likewise.
69480         * doc/posix-functions/strftime_l.texi: Likewise.
69481         * doc/posix-functions/strncasecmp_l.texi: Likewise.
69482         * doc/posix-functions/strxfrm_l.texi: Likewise.
69483         * doc/posix-functions/tolower_l.texi: Likewise.
69484         * doc/posix-functions/toupper_l.texi: Likewise.
69485         * doc/posix-functions/towctrans_l.texi: Likewise.
69486         * doc/posix-functions/towlower_l.texi: Likewise.
69487         * doc/posix-functions/towupper_l.texi: Likewise.
69488         * doc/posix-functions/wcscoll_l.texi: Likewise.
69489         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
69490         * doc/posix-functions/wctrans_l.texi: Likewise.
69491         * doc/posix-functions/wctype_l.texi: Likewise.
69492         * doc/glibc-functions/strptime_l.texi: Likewise.
69493         * doc/glibc-functions/strtod_l.texi: Likewise.
69494         * doc/glibc-functions/strtof_l.texi: Likewise.
69495         * doc/glibc-functions/strtol_l.texi: Likewise.
69496         * doc/glibc-functions/strtold_l.texi: Likewise.
69497         * doc/glibc-functions/strtoll_l.texi: Likewise.
69498         * doc/glibc-functions/strtoul_l.texi: Likewise.
69499         * doc/glibc-functions/strtoull_l.texi: Likewise.
69500         * doc/glibc-functions/wcsftime_l.texi: Likewise.
69501         * doc/glibc-functions/wcstod_l.texi: Likewise.
69502         * doc/glibc-functions/wcstof_l.texi: Likewise.
69503         * doc/glibc-functions/wcstol_l.texi: Likewise.
69504         * doc/glibc-functions/wcstold_l.texi: Likewise.
69505         * doc/glibc-functions/wcstoll_l.texi: Likewise.
69506         * doc/glibc-functions/wcstoul_l.texi: Likewise.
69507         * doc/glibc-functions/wcstoull_l.texi: Likewise.
69509 2009-11-24  Bruno Haible  <bruno@clisp.org>
69511         duplocale: Fix logic bug.
69512         * lib/duplocale.c: Don't include <langinfo.h>.
69513         (_NL_LOCALE_NAME): Remove macro.
69514         (rpl_duplocale): Use setlocale instead of nl_langinfo.
69515         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
69517 2009-11-23  Jim Meyering  <meyering@redhat.com>
69519         test-update-copyright: don't hard-code /usr/bin/perl
69520         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
69521         perl to print the current year.  Gilles Espinasse reported that
69522         the replaced use of perl was hard-coded as /usr/bin/perl.
69524 2009-11-23  Bruno Haible  <bruno@clisp.org>
69526         duplocale: Add support for glibc 2.3.x.
69527         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
69529 2009-11-22  Bruno Haible  <bruno@clisp.org>
69531         vasnprintf: Tiny optimization.
69532         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
69533         MacOS X.
69535 2009-11-22  Bruno Haible  <bruno@clisp.org>
69537         Tests for module 'duplocale'.
69538         * modules/duplocale-tests: New file.
69539         * tests/test-duplocale.c: New file.
69541         New module 'duplocale'.
69542         * m4/duplocale.m4: New file.
69543         * lib/locale.in.h (duplocale): New declaration.
69544         * lib/duplocale.c: New file.
69545         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
69546         gl_LOCALE_H_DEFAULTS): New macros.
69547         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
69548         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
69549         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
69550         REPLACE_DUPLOCALE.
69551         * modules/duplocale: New file.
69552         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
69554 2009-11-22  Bruno Haible  <bruno@clisp.org>
69556         * modules/locale-tests (configure.ac): Test for newlocale function.
69557         * tests/test-locale.c: When the system has extended locale functions,
69558         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
69560         locale: Make locale_t available when possible.
69561         * lib/locale.in.h: Include <xlocale.h> when it exists.
69562         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
69563         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
69564         * modules/locale (Depends-on): Add extensions.
69565         (Makefile.am): Also substitute HAVE_XLOCALE_H.
69566         * doc/posix-headers/locale.texi: Document the problem with locale_t.
69568 2009-11-22  Bruno Haible  <bruno@clisp.org>
69570         Add comments.
69571         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
69572         invocation.
69573         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
69574         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
69575         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69577 2009-11-22  Bruno Haible  <bruno@clisp.org>
69579         error: account for the possibility of freopen (stdout).
69580         * lib/error.c: Include <unistd.h>.
69581         (flush_stdout): New function, extracted from error and error_at_line.
69582         Determine stdout's fd dynamically.
69583         (error, error_at_line): Invoke flush_stdout.
69584         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
69585         * modules/error (Depends-on): Add unistd.
69587 2009-11-22  Bruno Haible  <bruno@clisp.org>
69589         diffseq: Add comment.
69590         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
69592 2009-11-22  Jim Meyering  <meyering@redhat.com>
69594         c-stack: avoid defining an unused static function
69595         * lib/c-stack.c (find_stack_direction): Do not define this function
69596         when it will not be used.
69598         diffseq: avoid spurious gcc warnings
69599         * lib/diffseq.h (IF_LINT2): Define.
69600         (compareseq): Use it to initialize two members of "part".
69601         This avoids two used-uninitialized warnings.
69603 2009-11-21  Jim Meyering  <meyering@redhat.com>
69605         c-stack: avoid "ignoring return value of `write'" warning
69606         * lib/c-stack.c: Include "ignore-value.h".
69607         (die): Explicitly ignore each write return value.
69608         * modules/c-stack (Depends-on): Add ignore-value.
69610 2009-11-21  Bruno Haible  <bruno@clisp.org>
69612         diffseq: reduce scope of variable 'best'.
69613         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
69614         variable, earlier used for two different purposes.
69616 2009-11-21  Jim Meyering  <meyering@redhat.com>
69618         diffseq: remove useless assignment to "best"
69619         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
69620         assignment.  At that point "best" is already guaranteed to be zero.
69622 2009-11-20  Eric Blake  <ebb9@byu.net>
69624         build: mention ftp redirector in release announcements
69625         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
69626         values that used to come from cfg.mk; mention FTP redirect URL.
69627         * build-aux/announce-gen: Mention the mirror list.
69628         Suggested by Karl Berry.
69630         nanosleep: improve port to mingw
69631         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
69632         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
69633         LIB_NANOSLEEP, but only when needed.
69634         * modules/select (Link): Document LIBSOCKET.
69635         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
69636         enough.
69638         nanosleep: work around cygwin bug
69639         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
69640         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
69641         bug.
69642         (getnow): Delete, not needed.
69643         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
69644         LIB_CLOCK_GETTIME.
69645         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
69646         clock-time, gettime.
69647         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
69648         bug.
69649         * modules/nanosleep-tests: New test.
69650         * tests/test-nanosleep.c: New file.
69652         sleep: work around cygwin bug
69653         * lib/sleep.c (rpl_sleep): Work around the bug.
69654         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
69655         (gl_PREREQ_SLEEP): Delete unused macro.
69656         * modules/sleep (Depends-on): Add verify.
69657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
69658         * modules/unistd (Makefile.am): Substitute witness.
69659         * lib/unistd.in.h (sleep): Update prototype.
69660         * doc/posix-functions/sleep.texi (sleep): Document the bug.
69661         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
69662         * modules/sleep-tests (Depends-on): Check for alarm.
69664 2009-11-20  Jim Meyering  <meyering@redhat.com>
69666         maint.mk: improve sc_prohibit_magic_number_exit
69667         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
69668         so it does not match uses like System.exit(1).
69669         Add comments showing how to correct all offenders.
69671 2009-11-19  Eric Blake  <ebb9@byu.net>
69673         xalloc-die-tests: add missing library
69674         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
69676         test-xvasprintf: silence compiler warnings
69677         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
69678         empty string from gcc.
69680 2009-11-19  Jim Meyering  <meyering@redhat.com>
69682         xfreopen: new module, from coreutils
69683         * modules/xfreopen: New module.
69684         * lib/xfreopen.c: New file.
69685         * lib/xfreopen.h: New file.
69686         * MODULES.html.sh (File stream based Input/Output"): Add it.
69688 2009-11-19  Eric Blake  <ebb9@byu.net>
69690         manywarnings: depend on warnings
69691         * modules/manywarnings (Depends-on): Add warnings.
69693         build: avoid compiler warnings
69694         * lib/select.c (rpl_select): Delete unused variable.
69695         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
69697 2009-11-18  Eric Blake  <ebb9@byu.net>
69699         tests: avoid false negative with --with-packager
69700         * tests/test-version-etc.sh: Discard packager information.
69701         * tests/test-argp-version-etc-1.sh: Likewise.
69702         Reported by Mike Frysinger.
69704         utimens: fix regression on Solaris
69705         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
69706         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
69707         can only change fd timestamps via futimesat.  Instead, use an
69708         additional witness macro to avoid BSD bug.
69709         Reported by Jim Meyering.
69711 2009-11-17  Eric Blake  <ebb9@byu.net>
69713         usleep: use it to simplify tests
69714         * modules/stat-time-tests (Depends-on): Add usleep.
69715         (configure.ac): Drop usleep check.
69716         * modules/chown-tests (Depends-on, configure.ac): Likewise.
69717         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
69718         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
69719         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
69720         * modules/openat-tests (Depends-on, configure.ac): Likewise.
69721         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
69722         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
69723         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
69724         Likewise.
69725         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
69726         * tests/test-lchown.h (nap): Likewise.
69727         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
69728         * tests/test-stat-time.c (nap): Likewise.
69729         * tests/test-utimens-common.h (nap): Update comments.
69731         usleep: new module
69732         * modules/usleep: New file.
69733         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
69734         * lib/usleep.c (usleep): Likewise.
69735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
69736         * modules/unistd (Makefile.am): Substitute witnesses.
69737         * lib/unistd.in.h (usleep): Add declaration.
69738         * doc/pastposix-functions/usleep.texi (usleep): Document this.
69739         * MODULES.html.sh (Date and time): Likewise.
69740         * modules/usleep-tests (Depends-on): New test.
69741         * tests/test-usleep.c: New file.
69743         chown: work around OpenBSD bug
69744         * lib/chown.c (rpl_chown): Work around the bug.
69745         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
69746         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
69747         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
69748         * modules/chown (Depends-on): Add stdbool.
69749         * modules/lchown (Depends-on): Likewise.
69750         * doc/posix-functions/chown.texi (chown): Document the bug.
69751         * doc/posix-functions/lchown.texi (lchown): Likewise.
69752         * tests/test-lchown.h (test_chown): Relax test.
69754         mkstemp: avoid conflict with C++ keyword template
69755         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
69756         * lib/mkostemp.c (mkostemp): Likewise.
69757         * lib/mkostemps.c (mkostemps): Likewise.
69758         * lib/mkstemp.c (mkstemp): Likewise.
69759         * lib/mkstemps.c (mkstemps): Likewise.
69761         xalloc-die-tests: optimize
69762         * tests/test-xalloc-die.sh: Reduce number of processes.
69764 2009-11-17  Simon Josefsson  <simon@josefsson.org>
69766         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
69767         patch from ludo@gnu.org (Ludovic Courtès).
69769 2009-11-17  Jim Meyering  <meyering@redhat.com>
69771         version-etc: use proper license string
69772         * modules/version-etc (License): Use LGPL, not LGPLv3+.
69773         * modules/version-etc-fsf: Likewise.
69775 2009-11-17  Simon Josefsson  <simon@josefsson.org>
69777         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
69778         printed to stdout.  Deal with EOL differences.
69780 2009-11-17  Eric Blake  <ebb9@byu.net>
69782         unsetenv: work around Solaris bug
69783         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
69784         * lib/unsetenv.c (rpl_unsetenv): Work around it.
69785         Reported by Jim Meyering.
69787         vasnprintf: avoid compiler warnings
69788         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
69789         variables.
69790         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
69792 2009-11-17  Simon Josefsson  <simon@josefsson.org>
69794         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
69795         settings since xalloc-die is no longer the self test,
69796         xalloc-die.sh is.
69798 2009-11-17  Jim Meyering  <meyering@redhat.com>
69800         test-xalloc-die.sh: make the code agree with the commit log
69801         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
69802         at the end, just in case you happen to have a test-xalloc-die
69803         program in some other PATH directory.
69805         test-xalloc-die.sh: fix a portability bug
69806         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
69807         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
69808         Otherwise, argv[0] (as often seen in diagnostics) would be too
69809         system-dependent, sometimes with, and sometimes without the leading "./".
69811         version-etc-fsf: relax license to LGPLv3+
69812         * modules/version-etc-fsf (License): Relax license.
69814 2009-11-16  Eric Blake  <ebb9@byu.net>
69816         xalloc-die-tests: avoid printing null pointer
69817         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
69818         shell script.
69819         * tests/test-xalloc-die.c (program_name): Declare.
69820         * tests/test-xalloc-die.sh (tmpfiles): New file.
69822         setenv, unsetenv: work around various bugs
69823         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
69824         (setenv) [HAVE_SETENV]: Work around bugs.
69825         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
69826         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
69827         for bugs.
69828         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
69829         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
69830         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
69831         * modules/stdlib (Makefile.am): Update substitutions.
69832         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
69833         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
69834         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
69835         * modules/setenv-tests: New test.
69836         * modules/unsetenv-tests: Likewise.
69837         * tests/test-setenv.c: New file.
69838         * tests/test-unsetenv.c: Likewise.
69840 2009-11-16  Jim Meyering  <meyering@redhat.com>
69842         version-etc: relax license to LGPLv3+
69843         * modules/version-etc (License): Relax license.
69845         better AC_REQUIRE expanded-before-required-warning avoidance
69846         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
69847         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
69848         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
69849         which is no longer needed.
69851 2009-11-16  Eric Blake  <ebb9@byu.net>
69853         test-freading: clean up temporary file
69854         * tests/test-freading.c (main): Remove file on success, and use
69855         ASSERT more liberally.
69856         Reported by Jim Meyering.
69858 2009-11-16  Jim Meyering  <meyering@redhat.com>
69860         avoid new AC_REQUIRE expanded-before-required warnings
69861         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
69862         merely using it.
69863         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
69864         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
69866 2009-11-15  Simon Josefsson  <simon@josefsson.org>
69868         * tests/test-xalloc-die.c: New file.
69869         * modules/xalloc-die-tests: New file.
69870         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
69871         XFAIL_TESTS so it can be appended by modules.
69873 2009-11-15  Simon Josefsson  <simon@josefsson.org>
69875         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
69876         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
69878 2009-11-14  Eric Blake  <ebb9@byu.net>
69880         fnmatch: avoid compiler warning
69881         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
69882         to silence compiler warning about mismatch signedness in ?:.
69883         Reported by Robert Millan.
69885         intprops: add double-inclusion guard
69886         * lib/intprops.h: Allow idempotent includes.
69887         Suggested by Bruce Korb.
69889         openat: detect Solaris fchownat bug
69890         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
69891         penalizing glibc chownat when only lchownat is broken.
69892         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
69893         trailing slash bugs.
69894         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
69895         * modules/openat-tests (Files): Include more files.
69896         (Depends-on): Add mgetgroups, sleep, stat-time.
69897         (configure.ac): Add additional checks.
69898         (Makefile.am): Build new test.
69899         * tests/test-fchownat.c: New file.
69901         lchown: detect Solaris and FreeBSD bug
69902         * lib/lchown.c (rpl_lchown): Work around bug.
69903         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
69904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
69905         * modules/unistd (Makefile.am): Populate it.
69906         * lib/unistd.in.h (lchown): Update declaration.
69907         * doc/posix-functions/lchown.texi (lchown): Document the bug.
69908         * modules/lchown-tests: New file.
69909         * tests/test-lchown.h (test_lchown): Likewise.
69910         * tests/test-lchown.c (main): Likewise.
69912         chown: detect Solaris and FreeBSD bug
69913         * lib/chown.c (rpl_chown): Work around bug.
69914         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
69915         (gl_PREREQ_CHOWN): Delete.
69916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
69917         * modules/unistd (Makefile.am): Populate it.
69918         * lib/unistd.in.h (chown): Update declaration.
69919         * lib/lchown.c (chown): Update client.
69920         * modules/lchown (Depends-on): Add lstat.
69921         * doc/posix-functions/chown.texi (chown): Document the bug.
69922         * doc/posix-functions/getgroups.texi (getgroups): Document
69923         getgroups pitfall.
69924         * modules/chown-tests: New file.
69925         * tests/test-chown.h (test_chown): Likewise.
69926         * tests/test-chown.c (main): Likewise.
69928 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
69930         gnulib-tool: correctly detect absence of m4 directories
69931         * gnulib-tool: Avoid extra newline on data passed to wc -l.
69933 2009-11-14  Jim Meyering  <meyering@redhat.com>
69935         maint.mk: Prohibit inclusion of "xalloc.h" without use.
69936         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
69938 2009-11-14  John W. Eaton  <jwe@gnu.org>
69940         strftime.h: wrap function declaration in extern "C" block
69941         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
69943 2009-11-13  Eric Blake  <ebb9@byu.net>
69945         getgroups: avoid compiler warning
69946         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
69948         getgroups: work around FreeBSD bug
69949         * lib/getgroups.c (rpl_getgroups): Work around the bug.
69950         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
69951         * doc/posix-functions/getgroups.texi (getgroups): Document it.
69952         * tests/test-getgroups.c (main): Fix buffer overrun.
69954         getgroups: avoid compilation failure
69955         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
69956         * modules/getgroups (Depends-on): Add stdint.
69958 2009-11-13  Jim Meyering  <meyering@redhat.com>
69960         test-getgroups: avoid compilation failure
69961         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
69963 2009-11-13  Eric Blake  <ebb9@byu.net>
69965         mgetgroups: new module, taken from coreutils
69966         * modules/mgetgroups: New file.
69967         * lib/mgetgroups.h: Likewise.
69968         * lib/mgetgroups.c (mgetgroups): Likewise.
69969         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
69970         * MODULES.html.sh (Users and groups): Mention it.
69972         getgroups: don't expose GETGROUPS_T to user
69973         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
69974         an element at a time if GETGROUPS_T is wrong size.
69975         * lib/getugroups.h (getugroups): Change signature.
69976         * lib/unistd.in.h (getgroups): Likewise.
69977         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
69978         signature needs fixing.
69979         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
69980         AC_TYPE_GETGROUPS.
69981         * modules/group-member (Depends-on): Add getgroups.
69982         * lib/group-member.c (group_info, get_group_info): Use gid_t.
69983         (group_member): Rely on getgroups replacement.
69984         * lib/getugroups.c (getugroups): Use gid_t.
69985         * tests/test-getgroups.c (main): Likewise.
69986         * NEWS: Mention the signature change.
69987         * doc/posix-functions/getgroups.texi (getgroups): Mention the
69988         problem with signature.
69989         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
69990         GETGROUPS_T is still useful for setgroups.
69992         getgroups, getugroups: provide stubs for mingw
69993         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
69994         * lib/getugroups.c (getugroups): Likewise.
69995         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
69996         function.  Modernize replacement scheme.
69997         (gl_PREREQ_GETGROUPS): Delete.
69998         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
69999         * modules/getgroups (configure.ac): Declare witness.
70000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
70001         * modules/unistd (Depends-on): Substitute witness.
70002         * lib/unistd.in.h (getgroups): Declare replacement.
70004         getgroups: avoid calling exit
70005         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
70006         drop xalloc.
70007         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
70008         dependencies.
70009         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
70010         exiting, in the rare case of malloc failure.
70012         getgroups: fix logic error
70013         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
70014         has more than 20 groups.
70015         * modules/getgroups-tests: New test.
70016         * tests/test-getgroups.c: New file.
70018 2009-11-13  Simon Josefsson  <simon@josefsson.org>
70020         * tests/test-base64.c: Improve.
70022 2009-11-13  Simon Josefsson  <simon@josefsson.org>
70024         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
70025         Blake <ebb9@byu.net>.
70027 2009-11-13  Simon Josefsson  <simon@josefsson.org>
70029         * tests/test-xvasprintf.c: Add %s%s related checks.
70031 2009-11-12  Eric Blake  <ebb9@byu.net>
70033         version-etc: match standards.texi style
70034         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
70035         and use <> only for URLs.
70037 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
70039         fts: do not fail on a submount during traversal
70040         * lib/fts.c (fts_build): Read the stat info again after opening
70041         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
70042         Original report at http://bugzilla.redhat.com/501848.
70044 2009-11-12  Jim Meyering  <meyering@redhat.com>
70046         bootstrap: sync from coreutils
70047         * build-aux/bootstrap (bootstrap_epilogue): New function.
70048         Use git_modules_config in one more place.  This make bootstrap's
70049         --gnulib-srcdir option more useful for testing.
70051         bootstrap: generalize autoheader check
70052         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
70053         AC_CONFIG_HEADERS.
70055 2009-11-11  Eric Blake  <ebb9@byu.net>
70057         mkfifoat: use new modules for Solaris and BSD bugs
70058         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
70059         * lib/mkfifoat.c (mknodat): Split...
70060         * lib/mknodat.c (mknodat): ...into new file.
70061         * modules/mkfifoat (Files): Ship new file.
70062         (Depends-on): Add mkfifo, mknod.
70063         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
70064         (Depends-on): Add symlink.
70065         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
70066         redundant with test_mkfifo.h.
70067         (do_mkfifoat, do_mknodat): New helpers.
70069         mknod: new module
70070         * modules/mknod: New file.
70071         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
70072         * lib/mknod.c (mknod): Likewise.
70073         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
70074         defaults.
70075         * modules/sys_stat (Makefile.am): Substitute them.
70076         * lib/sys_stat.in.h (mknod): Declare replacement.
70077         * MODULES.html.sh (Support for systems lacking POSIX:2008):
70078         Document it.
70079         * doc/posix-functions/mknod.texi (mknod): Likewise.
70080         * modules/mknod-tests: New test.
70081         * tests/test-mknod.c: Likewise.
70083         mkfifo: new module
70084         * modules/mkfifo: New file.
70085         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
70086         * lib/mkfifo.c (mkfifo): Likewise.
70087         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
70088         defaults.
70089         * modules/sys_stat (Makefile.am): Substitute them.
70090         * lib/sys_stat.in.h (mkfifo): Declare replacement.
70091         * MODULES.html.sh (Support for systems lacking POSIX:2008):
70092         Document it.
70093         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
70094         * modules/mkfifo-tests: New test.
70095         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
70096         from test-mkfifoat.c.
70097         * tests/test-mkfifo.c: New file.
70099         readlink: detect FreeBSD bug
70100         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
70101         slash on symlink.
70102         * doc/posix-functions/readlink.texi (readlink): Document the bug.
70103         * tests/test-readlink.h (test_readlink): Enhance test.
70105         symlink: detect FreeBSD bug
70106         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
70107         slash on symlink.
70108         * doc/posix-functions/symlink.texi (symlink): Document the bug.
70109         * tests/test-symlink.h (test_symlink): Enhance test.
70111 2009-11-10  Eric Blake  <ebb9@byu.net>
70113         link: detect FreeBSD bug
70114         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
70115         symlink.
70116         * doc/posix-functions/link.texi (link): Document the bug.
70117         * tests/test-link.h (test_link): Enhance test.
70118         * tests/test-linkat.c (main): Update caller.
70120         unlink, remove: detect FreeBSD bug
70121         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
70122         slash on symlink.
70123         * doc/posix-functions/unlink.texi (unlink): Document the bug.
70124         * doc/posix-functions/remove.texi (remove): Likewise.
70125         * tests/test-unlink.h (test_unlink): Enhance test.
70126         * tests/test-remove.c (main): Likewise.
70128 2009-11-09  Eric Blake  <ebb9@byu.net>
70130         rename: detect FreeBSD bug
70131         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
70132         slash on symlink.
70133         * modules/renameat-tests (Depends-on): Add filenamecat.
70134         * tests/test-rename.h (test_rename): Allow one more errno.
70135         * tests/test-renameat.c (main): Likewise.
70136         * doc/posix-functions/rename.texi (rename): Document the bug.
70138         open: detect FreeBSD bug
70139         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
70140         symlink.
70141         * doc/posix-functions/open.texi (open): Document the bug.
70142         * doc/posix-functions/utimes.texi (utimes): Likewise.
70143         * tests/test-open.h (test_open): Add parameters, and test symlink
70144         handling.
70145         * tests/test-open.c (main): Adjust caller.
70146         * tests/test-fcntl-safer.c (main): Likewise.
70147         * modules/open-tests (Depends-on): Add stdbool, symlink.
70148         * modules/fcntl-safer-tests (Depends-on): Likewise.
70149         * tests/test-openat.c (main): Add test-open tests.
70151         stat: detect FreeBSD bug
70152         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
70153         symlink.
70154         * doc/posix-functions/stat.texi (stat): Document the bug.
70155         * tests/test-stat.h (test_stat_func): Add argument.
70156         * tests/test-stat.c (main): Adjust caller.
70157         * tests/test-fstatat.c (main): Likewise.
70158         * modules/stat-tests (Depends-on): Add stdbool, symlink.
70159         Reported by Jim Meyering.
70161 2009-11-09  James Youngman  <jay@gnu.org>
70163         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
70164         * lib/strftime.c: Correct placement of #include "ignore-value.h".
70166 2009-11-08  Jim Meyering  <meyering@redhat.com>
70168         utimens: remove invalid futimesat call
70169         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
70170         It used the file descriptor of the target file as the DIR_FD
70171         parameter and NULL as the file name.  That caused failure with
70172         errno == EFAULT on FreeBSD-8.0-rc2
70174 2009-11-07  Eric Blake  <ebb9@byu.net>
70176         fflush, freadseek: use fseeko, not fseek
70177         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
70178         (clear_ungetc_buffer): Avoid potential problems on large files.
70179         * lib/freadseek.c (freadseek): Likewise.
70180         * modules/freadseek (Depends-on): Add fseeko.
70181         * modules/fseek (configure.ac): Set a witness.
70182         * tests/test-fflush.c (main): Use fseeko.
70183         * tests/test-fpurge.c (fseek): Disable link warning.
70184         * tests/test-freadable.c (fseek): Likewise.
70185         * tests/test-freading.c (fseek): Likewise.
70186         * tests/test-fseeko.c (fseek): Likewise.
70187         * tests/test-ftell.c (fseek): Likewise.
70188         * tests/test-ftello.c (fseek): Likewise.
70189         * tests/test-fwritable.c (fseek): Likewise.
70190         * tests/test-fwriting.c (fseek): Likewise.
70192 2009-11-06  Simon Josefsson  <simon@josefsson.org>
70194         * modules/memchr (Depends-on): Drop getpagesize dependency.
70196 2009-11-06  Simon Josefsson  <simon@josefsson.org>
70198         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
70199         Reported by Ludovic Courtès.
70200         * build-aux/pmccabe2html: Improve example usage.
70201         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
70203 2009-11-06  Jim Meyering  <meyering@redhat.com>
70205         do-release-commit-and-tag: New module.
70206         Automate the release-commit and tag process.
70207         * build-aux/do-release-commit-and-tag: New script, from coreutils.
70208         * modules/do-release-commit-and-tag: New file.
70209         * MODULES.html.sh (Support for maintaining and releasing): Add it.
70211 2009-11-06  Simon Josefsson  <simon@josefsson.org>
70213         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
70214         because test-select.c uses inet_pton.
70216 2009-11-06  Simon Josefsson  <simon@josefsson.org>
70218         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
70219         GETADDRINFO_LIB.  Bump serial number.
70220         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
70221         Suggested by Eric Blake <ebb9@byu.net>.
70223 2009-11-05  Eric Blake  <ebb9@byu.net>
70225         strtod: detect darwin bug
70226         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
70227         Reported by Leo Davis.
70229         freopen-safer: new module
70230         * modules/freopen-safer: New module.
70231         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
70232         * lib/freopen-safer.c (freopen_safer): New file.
70233         * lib/stdio-safer.h (freopen_safer): New declaration.
70234         * lib/stdio--.h (freopen): New override.
70235         * MODULES.html.sh (File stream based Input/Output): Mention it.
70236         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
70237         freopen-safer module.
70238         * doc/posix-functions/stderr.texi (stderr): Likewise.
70239         * doc/posix-functions/stdin.texi (stdin): Likewise.
70240         * doc/posix-functions/stdout.texi (stdout): Likewise.
70241         * modules/freopen-safer-tests: New test.
70242         * tests/test-reopen-safer.c: New file.
70244 2009-11-05  Jim Meyering  <meyering@redhat.com>
70246         maint.mk: Prohibit inclusion of "close-stream.h" without use.
70247         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
70249 2009-11-05  Simon Josefsson  <simon@josefsson.org>
70251         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
70253 2009-11-05  Simon Josefsson  <simon@josefsson.org>
70255         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
70257 2009-11-05  Simon Josefsson  <simon@josefsson.org>
70259         Fix link error.
70260         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
70261         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
70263 2009-11-05  Simon Josefsson  <simon@josefsson.org>
70265         * tests/test-func.c: Also test value of __func__.
70267 2009-11-05  Simon Josefsson  <simon@josefsson.org>
70269         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
70270         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
70272 2009-11-05  Bruno Haible  <bruno@clisp.org>
70274         Fix link error.
70275         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
70276         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
70277         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
70279 2009-11-05  Bruno Haible  <bruno@clisp.org>
70281         Tests for module 'inet_pton'.
70282         * modules/inet_pton-tests: New file.
70283         * tests/test-inet_pton.c: New file.
70285 2009-11-05  Bruno Haible  <bruno@clisp.org>
70287         Tests for module 'inet_ntop'.
70288         * modules/inet_ntop-tests: New file.
70289         * tests/test-inet_ntop.c: New file.
70291 2009-11-04  Eric Blake  <ebb9@byu.net>
70293         stdlib-safer: wrap all mkstemp variants
70294         * modules/mkostemp (configure.ac): Set witness.
70295         * modules/mkostemps (configure.ac): Likewise.
70296         * modules/mkstemps (configure.ac): Likewise.
70297         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
70298         (mkstemps_safer): Wrap more functions.
70299         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
70300         wrapping.
70301         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
70302         (mkstemps_safer): Implement the wrappers.
70304         mkstemps, mkostemps: new modules
70305         * modules/mkostemps: New module.
70306         * modules/mkstemps: Likewise.
70307         * lib/mkostemps.c (mkostemps): New file.
70308         * lib/mkstemps.c (mkstemps): Likewise.
70309         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
70310         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
70311         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
70312         * modules/stdlib (Makefile.am): Substitute them.
70313         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
70314         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
70315         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
70316         * doc/gnulib.texi (Glibc stdlib.h): Include them.
70317         * MODULES.html.sh (File system functions): Mention them.
70319         tempname: resync from glibc
70320         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
70321         same values for __GT_FILE as glibc.  Abort even when assertions
70322         are disabled.
70323         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
70324         match its value otherwise.  Allow idempotent inclusion.
70325         * lib/mkdtemp.c (mkdtemp): Adjust caller.
70326         * lib/mkostemp.c (mkostemp): Likewise.
70327         * lib/mkstemp.c (mkstemp): Likewise.
70328         * lib/tmpfile.c (tmpfile): Likewise.
70329         * NEWS: Document this.
70331         utimens: fix use of futimens on older Linux
70332         * lib/utimens.c (fdutimens): Use updated, rather than original,
70333         timespec to avoid bug in older Linux kernel.
70334         Reported by Simon Josefsson.
70336 2009-11-04  Bruno Haible  <bruno@clisp.org>
70338         Make num_processors more flexible and consistent.
70339         * lib/nproc.h (enum nproc_query): New type.
70340         (num_processors): Add a 'query' argument.
70341         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
70342         (num_processors): Add a 'query' argument. Test the value of the
70343         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
70344         mingw, count the number of CPUs available for the current process.
70345         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
70346         Check for sched_getaffinity and sched_getaffinity_np.
70347         * modules/nproc (Depends-on): Add c-ctype, extensions.
70348         * NEWS: Mention the change.
70350 2009-11-03  Bruno Haible  <bruno@clisp.org>
70352         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
70354 2009-11-03  Jim Meyering  <meyering@redhat.com>
70356         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
70357         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
70358         if it is defined.
70360 2009-11-02  Eric Blake  <ebb9@byu.net>
70362         mktime, timegm: share common declaration
70363         * lib/mktime-internal.h: New file.
70364         * lib/mktime.c: Use it rather than open-coding a declaration.
70365         * lib/timegm.c: Likewise.
70366         * modules/mktime (Files): Ship it.
70367         * modules/timegm (Files): Likewise.
70368         Suggested by Bruno Haible.
70370         test-update-copyright: update test to match script changes
70371         * tests/test-update-copyright.sh: Avoid hard-coding perl
70372         location.  Don't update *.bak created by earlier runs.
70374 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70375             Simon Josefsson  <simon@josefsson.org>
70376             Bruno Haible  <bruno@clisp.org>
70378         Fix link error on Solaris 8.
70379         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
70380         also in libnsl. Define also INET_PTON_LIB.
70381         * modules/inet_pton (Link): New section.
70383 2009-11-02  Simon Josefsson  <simon@josefsson.org>
70384             Bruno Haible  <bruno@clisp.org>
70386         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
70387         * modules/inet_ntop (Link): New section.
70388         Reported by Boyan Kasarov <bkasarov@gmail.com>.
70390 2009-11-02  Eric Blake  <ebb9@byu.net>
70392         maint: avoid compiler warnings in m4 macros
70393         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
70394         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
70396 2009-11-02  Simon Josefsson  <simon@josefsson.org>
70398         * m4/pmccabe2html.m4: Remove file.
70399         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
70400         function.  Change maintainer.
70401         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
70402         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
70403         Courtès).
70405 2009-10-31  Eric Blake  <ebb9@byu.net>
70407         fseeko: fix m4 regression
70408         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
70409         regression from 2009-10-27.
70410         Reported by Ralf Wildenhues.
70412 2009-10-31  Jim Meyering  <meyering@redhat.com>
70414         inttostr: aesthetics and improved (compile-time) safety
70415         Define inttype_is_signed rather than inttype_is_unsigned,
70416         since the sole use is via "#if inttype_is_signed".
70417         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
70418         inttype_is_unsigned.
70419         * lib/offtostr.c (inttype_is_signed): Likewise.
70420         * lib/uinttostr.c (inttype_is_signed): Likewise.
70421         * lib/umaxtostr.c (inttype_is_signed): Likewise.
70422         * lib/inttostr.c (inttostr): Use verify to cross-check the
70423         inttype_is_signed value and the signedness of the actual type.
70424         * modules/inttostr (Depends-on): Add verify.
70426 2009-10-30  Eric Blake  <ebb9@byu.net>
70428         build: avoid compiler warnings
70429         * lib/fchmodat.c (lchmod): Mark unused variables.
70430         * lib/getopt.c (_getopt_initialize): Likewise.
70431         * lib/mktime.c (__mktime_internal): Provide prototype.
70432         * lib/inttostr.c (inttostr): Avoid compiler warning even with
70433         older gcc that do not understand #pragma GCC diagnostic.
70434         * lib/uinttostr.c (inttype_is_unsigned): Define.
70435         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
70437 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
70439         stat: fix compilation on AIX
70440         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
70441         only see struct stat64.
70443 2009-10-30  Eric Blake  <ebb9@byu.net>
70445         exclude: make more robust
70446         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
70447         rather than masking a coding bug.
70448         Suggested by Bruno Haible.
70450 2009-10-30  Jim Meyering  <meyering@redhat.com>
70452         perl scripts: remove #!/usr/bin/perl in favor of more portable...
70453         Rather than putting #!/usr/bin/perl on the first line,
70454         start with a variant of what's recommended by "man perlrun" that
70455         invokes the first "perl" program from your shell's search path.
70456         * build-aux/gitlog-to-changelog: Replace #!... as above.
70457         Add a "Local Variables" perl mode setting.
70458         Prompted by a patch from Ludovic Courtès.
70459         Improved by Eric Blake.
70460         * build-aux/useless-if-before-free: Likewise.
70461         * build-aux/announce-gen: Likewise.
70462         * build-aux/update-copyright: Likewise.
70464 2009-10-29  Eric Blake  <ebb9@byu.net>
70466         filenamecat-lgpl: adjust clients
70467         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
70468         filenamecat.
70469         * modules/renameat (Depends-on): Likewise.
70471         filenamecat: split into filenamecat-lgpl
70472         * modules/filenamecat-lgpl: New module.
70473         * modules/filenamecat (Files): Move library-safe files into
70474         filenamecat-lgpl.
70475         (Depends-on): Add filenamecat-lgpl.
70476         (configure.ac): Declare witness.
70477         * lib/filenamecat.h (file_name_concat): Only declare when using
70478         GPL module.
70479         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
70480         Move...
70481         * lib/filenamecat-lgpl.c: ...into new file.
70482         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
70483         (gl_FILE_NAME_CONCAT): Use it.
70484         * MODULES.html.sh (File system functions): Mention new module.
70486         argp: avoid memory leak
70487         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
70488         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
70489         base_name, since the latter malloc()s and can call exit().
70490         Leak introduced 2006-07-03.
70492         dirname-lgpl: adjust clients that don't need full dirname
70493         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
70494         * modules/filenamecat (Depends-on): Likewise.
70495         * modules/linkat (Depends-on): Likewise.
70496         * modules/mkancesdirs (Depends-on): Likewise.
70497         * modules/mkdir (Depends-on): Likewise.
70498         * modules/openat (Depends-on): Likewise.
70499         * modules/savewd (Depends-on): Likewise.
70500         * modules/rename (Depends-on): Likewise.
70501         (License): Relax license.
70502         * modules/mkdir-tests (Depends-on): Drop progname.
70503         (Makefile.am): Delete unneeded LDADD.
70504         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
70506         dirname: split into dirname-lgpl
70507         * modules/dirname-lgpl: New module.
70508         * modules/dirname (Files): Move library-safe files into
70509         dirname-lgpl.
70510         (Depends-on): Add dirname-lgpl.
70511         (configure.ac): Declare witness.
70512         * modules/double-slash-root (License): Relax license.
70513         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
70514         module.
70515         * lib/dirname.c (dir_len, mdir_name): Move...
70516         * lib/dirname-lgpl.c: ...into new file.
70517         * lib/basename.c (last_component, base_len): Move...
70518         * lib/basename-lgpl.c: ...into new file.
70519         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
70520         (gl_DIRNAME): Use it.
70521         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
70522         Mention new module.
70523         * modules/dirname-tests (Depends-on): Add progname.
70524         * tests/test-dirname.c (program_name): Delete.
70526         mkdir: make safe for libraries
70527         * modules/mkdir (Depends-on): Drop xalloc.
70528         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
70529         exit.
70531         tests: avoid some compiler warnings
70532         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
70533         literals.
70534         * tests/test-memchr.c (main): Avoid type mismatch.
70535         * tests/test-arpa_inet.c (main): Avoid unused parameters.
70536         * tests/test-base64.c (main): Likewise.
70537         * tests/test-getdelim.c (main): Likewise.
70538         * tests/test-gethostname.c (main): Likewise.
70539         * tests/test-getline.c (main): Likewise.
70540         * tests/test-netinet_in.c (main): Likewise.
70541         * tests/test-select.c (open_server_socket, main): Likewise.
70542         * tests/test-select-stdin.c (main): Likewise.
70543         * tests/test-sockets.c (main): Likewise.
70544         * tests/test-strsignal.c (main): Likewise.
70545         * tests/test-sys_select.c (main): Likewise.
70546         * tests/test-sys_socket.c (main): Likewise.
70547         * tests/test-u64.c (main): Likewise.
70548         * tests/test-xfprintf-posix.c (main): Likewise.
70549         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
70551         sockets: avoid compiler warning
70552         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
70554         maint: detect usage(1) and other suspicious exits
70555         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
70557 2009-10-29  Jim Meyering  <meyering@redhat.com>
70559         timespec: long-to-int truncation could make timespec_cmp malfunction
70560         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
70561         a multiple of 2^32 nanoseconds as no difference.
70563 2009-10-28  Jim Meyering  <meyering@redhat.com>
70565         fprintftime: wrap macro code argument in "do {...} while(0)"
70566         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
70567         cpy macro must be a statement that can be followed by a semicolon.
70568         Now that the else clause contains a comment and is hence longer
70569         than one line, I require curly braces.  That in turn requires
70570         that we wrap this code block in the standard do...while(0).
70572         fprintftime: remove stray semicolon from previous change
70573         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
70575         fprintftime: avoid a warning about ignored fwrite return value
70576         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
70577         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
70578         that is unsafe.
70579         * modules/fprintftime (Depends-on): Add ignore-value.
70581         exclude: avoid an unwarranted warning
70582         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
70584 2009-10-27  Eric Blake  <ebb9@byu.net>
70586         fseek: avoid compilation failure when fflush is replaced
70587         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
70588         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
70589         module is in use.
70590         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
70591         module is not in use; since REPLACE_FSEEK worked otherwise.
70592         (GNULIB_FTELLO): Likewise for ftell.
70593         Reported by Ian Beckwith and others.
70595 2009-10-27  Bruno Haible  <bruno@clisp.org>
70597         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
70598         Reported by Jim Meyering.
70600 2009-10-27  Jim Meyering  <jim@meyering.net>
70601             Bruno Haible  <bruno@clisp.org>
70603         Avoid warning despite dropping the return value of fwrite.
70604         * lib/unicodeio.c: Include ignore-value.h.
70605         (fwrite_success_callback): Explicitly ignore fwrite's return value.
70606         * modules/unicodeio (Depends-on): Add ignore-value.
70608 2009-10-26  Eric Blake  <ebb9@byu.net>
70610         areadlinkat: fix fallback path
70611         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
70612         pointer and zero.
70614 2009-10-22  Pádraig Brady  <P@draigBrady.com>
70616         Use a better IO block size for modern systems
70617         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
70618         * lib/md2.c: Likewise.
70619         * lib/md4.c: Likewise.
70620         * lib/md5.c: Likewise.
70621         * lib/sha1.c: Likewise.
70622         * lib/sha256.c: Likewise.
70623         * lib/sha512.c: Likewise.
70625 2009-10-22  Eric Blake  <ebb9@byu.net>
70627         tests: avoid several compiler warnings
70628         * tests/test-getcwd.c (main): Avoid buffer underflow.
70629         * tests/test-getdate.c (main): String literals are not safe with
70630         putenv, so use setenv.  Declare unused argument.
70631         * modules/getdate-tests (Depends-on): Add setenv.
70632         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
70633         problems with string literals in char *.
70634         * tests/test-hash.c (main): Avoid shadowing declaration.
70635         (insert_new): Treat string literals as char const *.
70636         * tests/test-getopt.h (test_getopt): Likewise.
70637         (getopt_loop): Alter types to minimize casting elsewhere.
70638         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
70639         (test_getopt_long_posix): Likewise.
70640         (do_getopt_long): Add wrapper to minimize casting.
70641         * tests/test-atexit.c (clear_temp_file): Use void.
70642         * tests/test-areadlink-with-size.c (main): Declare unused
70643         arguments.
70644         * tests/test-areadlink.c (main): Likewise.
70645         * tests/test-areadlinkat-with-size.c (main): Likewise.
70646         * tests/test-areadlinkat.c (main): Likewise.
70647         * tests/test-canonicalize-lgpl.c (main): Likewise.
70648         * tests/test-canonicalize.c (main): Likewise.
70649         * tests/test-dirent-safer.c (main): Likewise.
70650         * tests/test-dirname.c (main): Likewise.
70651         * tests/test-dup2.c (main): Likewise.
70652         * tests/test-fchdir.c (main): Likewise.
70653         * tests/test-fcntl-h.c (main): Likewise.
70654         * tests/test-fcntl-safer.c (main): Likewise.
70655         * tests/test-fdopendir.c (main): Likewise.
70656         * tests/test-fdutimensat.c (main): Likewise.
70657         * tests/test-fflush.c (main): Likewise.
70658         * tests/test-filenamecat.c (main): Likewise.
70659         * tests/test-filevercmp.c (main): Likewise.
70660         * tests/test-fopen-safer.c (main): Likewise.
70661         * tests/test-fopen.c (main): Likewise.
70662         * tests/test-fpending.c (main): Likewise.
70663         * tests/test-fpurge.c (main): Likewise.
70664         * tests/test-freading.c (main): Likewise.
70665         * tests/test-fstatat.c (main): Likewise.
70666         * tests/test-fsync.c (main): Likewise.
70667         * tests/test-futimens.c (main): Likewise.
70668         * tests/test-getndelim2.c (main): Likewise.
70669         * tests/test-gettimeofday.c (main): Likewise.
70670         * tests/test-getopt.c (main): Likewise.
70671         * tests/test-i-ring.c (main): Likewise.
70672         * tests/test-inttypes.c (main): Likewise.
70673         * tests/test-link.c (main): Likewise.
70674         * tests/test-lstat.c (main): Likewise.
70675         * tests/test-math.c (main): Likewise.
70676         * tests/test-md5.c (main): Likewise.
70677         * tests/test-memchr2.c (main): Likewise.
70678         * tests/test-memrchr.c (main): Likewise.
70679         * tests/test-mkdir.c (main): Likewise.
70680         * tests/test-mkdirat.c (main): Likewise.
70681         * tests/test-mkfifoat.c (main): Likewise.
70682         * tests/test-open.c (main): Likewise.
70683         * tests/test-openat-safer.c (main): Likewise.
70684         * tests/test-openat.c (main): Likewise.
70685         * tests/test-quotearg.c (main): Likewise.
70686         * tests/test-rawmemchr.c (main): Likewise.
70687         * tests/test-readlink.c (main): Likewise.
70688         * tests/test-remove.c (main): Likewise.
70689         * tests/test-rename.c (main): Likewise.
70690         * tests/test-renameat.c (main): Likewise.
70691         * tests/test-rmdir.c (main): Likewise.
70692         * tests/test-sha1.c (main): Likewise.
70693         * tests/test-signal.c (main): Likewise.
70694         * tests/test-sigaction.c (main): Likewise.
70695         * tests/test-stat.c (main): Likewise.
70696         * tests/test-stat-time.c (main): Likewise.
70697         * tests/test-stddef.c (main): Likewise.
70698         * tests/test-stdint.c (main): Likewise.
70699         * tests/test-stdio.c (main): Likewise.
70700         * tests/test-stdlib.c (main): Likewise.
70701         * tests/test-strchrnul.c (main): Likewise.
70702         * tests/test-strerror.c (main): Likewise.
70703         * tests/test-string.c (main): Likewise.
70704         * tests/test-strtod.c (main): Likewise.
70705         * tests/test-strverscmp.c (main): Likewise.
70706         * tests/test-symlink.c (main): Likewise.
70707         * tests/test-symlinkat.c (main): Likewise.
70708         * tests/test-sys_stat.c (main): Likewise.
70709         * tests/test-sys_time.c (main): Likewise.
70710         * tests/test-time.c (main): Likewise.
70711         * tests/test-unistd.c (main): Likewise.
70712         * tests/test-unlink.c (main): Likewise.
70713         * tests/test-unlinkat.c (main): Likewise.
70714         * tests/test-utimens.c (main): Likewise.
70715         * tests/test-utimensat.c (main): Likewise.
70716         * tests/test-version-etc.c (main): Likewise.
70717         * tests/test-wchar.c (main): Likewise.
70718         * tests/test-wctype.c (main): Likewise.
70719         * tests/test-xprintf-posix.c (main): Likewise.
70720         * tests/test-posixtm.c (main): Likewise.
70721         (STREQ): Delete unused macro.
70722         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
70723         shadowed variables.
70724         * tests/test-memchr.c (main): Likewise.
70726 2009-10-21  Eric Blake  <ebb9@byu.net>
70728         areadlinkat: avoid failure on older glibc
70729         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
70730         rather than mis-comparing 0 against FUNC_RESULT of char*.
70732 2009-10-21  Bruno Haible  <bruno@clisp.org>
70734         * modules/stpncpy (License): Relicense under LGPLv2+.
70735         Reported by David Lutterkort <lutter@redhat.com>.
70737 2009-10-20  Eric Blake  <ebb9@byu.net>
70739         utimensat: work around Solaris 9 bug
70740         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
70741         has trailing slash bugs.
70742         * tests/test-lutimens.h (test_lutimens): Enhance test.
70743         * tests/test-utimens.h (test_utimens): Likewise.
70744         * doc/posix-functions/utime.texi (utime): Enhance documentation.
70745         * doc/posix-functions/utimes.texi (utimes): Likewise.
70746         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
70747         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
70748         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
70749         * doc/posix-functions/futimens.texi (futimens): Likewise.
70751         fdutimensat: new module
70752         * modules/fdutimensat: New file.
70753         * lib/fdutimensat.c (fdutimensat): Likewise.
70754         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
70755         * MODULES.html.sh (File system functions): Mention module.
70756         * modules/fdutimensat-tests: New test.
70757         * tests/test-fdutimensat.c: Likewise.
70759         doc: regenerate INSTALL
70760         * doc/INSTALL: Reflect recent autoconf update.
70761         * doc/INSTALL.ISO: Likewise.
70762         * doc/INSTALL.UTF-8: Likewise.
70764 2009-10-20  Pádraig Brady  <P@draigBrady.com>
70766         acl: warn if ACL support is not detected
70767         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
70769 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
70771         * lib/nproc.h: Add extern "C" block for C++.
70773 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
70774             Bruno Haible  <bruno@clisp.org>
70776         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
70777         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
70778         * doc/posix-functions/isalpha.texi: Likewise.
70779         * doc/posix-functions/isblank.texi: Likewise.
70780         * doc/posix-functions/iscntrl.texi: Likewise.
70781         * doc/posix-functions/isdigit.texi: Likewise.
70782         * doc/posix-functions/isgraph.texi: Likewise.
70783         * doc/posix-functions/islower.texi: Likewise.
70784         * doc/posix-functions/isprint.texi: Likewise.
70785         * doc/posix-functions/ispunct.texi: Likewise.
70786         * doc/posix-functions/isspace.texi: Likewise.
70787         * doc/posix-functions/isupper.texi: Likewise.
70788         * doc/posix-functions/isxdigit.texi: Likewise.
70790 2009-10-18  Bruno Haible  <bruno@clisp.org>
70792         Tests for module 'isblank'.
70793         * modules/isblank-tests: New file.
70794         * tests/test-isblank.c: New file.
70796         New module 'isblank'.
70797         * lib/isblank.c: New file.
70798         * m4/isblank.m4: New file.
70799         * modules/isblank: New file.
70800         * doc/posix-functions/isblank.texi: Mention the new module.
70802 2009-10-18  Bruno Haible  <bruno@clisp.org>
70804         New module 'ctype'.
70805         * lib/ctype.in.h: New file.
70806         * m4/ctype.m4: New file.
70807         * modules/ctype: New file.
70808         * doc/posix-headers/ctype.texi: Mention the new module.
70810 2009-10-18  Jim Meyering  <meyering@redhat.com>
70812         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
70813         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
70814         right after its initialization, rather than farther down.
70815         Keeping these in close proximity makes it easier to ensure
70816         that each such variable is initialized.  E.g.,
70818             LIB_CLOCK_GETTIME=
70819             AC_SUBST([LIB_CLOCK_GETTIME])
70821         This change also increments these serial numbers.
70822         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
70823         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
70824         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70826 2009-10-18  Bruno Haible  <bruno@clisp.org>
70828         Don't let environment variables perturb build.
70829         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
70830         (gl_PREREQ_GETHRXTIME): ... not here.
70832 2009-10-18  Bruno Haible  <bruno@clisp.org>
70834         Avoid symlink attack in localcharset module.
70835         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
70836         (O_NOFOLLOW): Define fallback.
70837         (get_charset_aliases): Don't open the file if it is a symbolic link.
70838         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
70839         gl_FCNTL_H.
70840         (gl_FCNTL_H): Require it.
70841         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
70842         * modules/localcharset (Files): Add m4/fcntl_h.m4.
70843         Reported by Fergal Glynn <fglynn@veracode.com>.
70845 2009-10-18  Bruno Haible  <bruno@clisp.org>
70847         Implement nproc for mingw.
70848         * lib/nproc.c: Include <windows.h>
70849         (num_processors): On native Windows platforms, try GetSystemInfo.
70851 2009-10-18  Bruno Haible  <bruno@clisp.org>
70853         Implement nproc for IRIX.
70854         * lib/nproc.c: Include <sys/sysmp.h>.
70855         (num_processors): On IRIX systems, try sysmp.
70856         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
70858 2009-10-18  Bruno Haible  <bruno@clisp.org>
70860         Implement nproc for HP-UX.
70861         * lib/nproc.c: Include <sys/pstat.h>
70862         (num_processors): On HP-UX systems, try pstat_getdynamic.
70863         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
70864         pstat_getdynamic.
70866 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
70867             Bruno Haible  <bruno@clisp.org>
70869         Implement nproc for NetBSD, OpenBSD.
70870         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
70871         (ARRAY_SIZE): New macro.
70872         (num_processors): On BSD systems, try sysctl of HW_NCPU.
70873         * m4/nproc.m4: New file.
70874         * modules/nproc (Files): Add m4/nproc.m4.
70875         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
70876         (Makefile.am): Instead, augment lib_SOURCES.
70878 2009-10-18  Bruno Haible  <bruno@clisp.org>
70880         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
70881         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
70882         sys/param.h.
70884 2009-10-16  Eric Blake  <ebb9@byu.net>
70886         utimensat: new module
70887         * modules/utimensat: New file.
70888         * lib/utimensat.c (utimensat): Likewise.
70889         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
70890         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
70891         so we can work around Linux bugs.
70892         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
70893         * modules/sys_stat (Makefile.am): Substitute them.
70894         * lib/sys_stat.in.h (utimensat): Declare it.
70895         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
70896         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
70897         * modules/utimensat-tests: New test.
70898         * tests/test-utimensat.c: Likewise.
70900         utimens: let lutimens work on non-symlinks
70901         * lib/utimens.c (lutimens): Fall back to utimens rather than
70902         failing with ENOSYS, when file is not a symlink.
70903         (utimens): Reduce redirection.
70904         * tests/test-lutimens.h (test_lutimens): Update test to cover
70905         non-symlinks.
70906         * tests/test-utimens.h (test_utimens): Update test to cover
70907         symlinks.
70908         * tests/test-utimens.c (main): Update caller.
70910         utimens: cache whether utimensat syscall works
70911         * lib/utimens.c (utimensat_works_really): New cache variable.
70912         (fdutimens, lutimens): Use it to avoid failing syscall.
70914         test-stat-time, test-utimens: improve portability
70915         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
70916         ext4 on alpha, and for cygwin.
70917         * tests/test-utimens-common.h: New file.
70918         (nap): Factor delays into single function.
70919         * tests/test-lutimens.h (test_lutimens): Use new header.
70920         * tests/test-futimens.h (test_futimens): Likewise.
70921         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
70922         timestamps to occur from same machine, as was done previously for
70923         test_utimens.
70924         * modules/utimens-tests (Files): Ship new file.
70925         * modules/futimens-tests (Files): Likewise.
70926         Reported in part by Jim Meyering.
70928         sys_stat: sort replacement declarations
70929         * lib/sys_stat.in.h: Sort declarations.
70930         * lib/futimens.c (futimens): Fix typo.
70932 2009-10-15  Jim Meyering  <meyering@redhat.com>
70934         don't let environment settings perturb build
70935         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
70936         could cause a configure-time and/or build-time malfunction.
70937         Typically, a configure-time function-in-library test is performed
70938         via code like this:
70940           LIB_VAR=
70941           AC_SUBST([LIB_VAR])
70942           prefix_saved_LIBS=$LIBS
70943             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
70944                        [test "$ac_cv_search_FUNC" = "none required" ||
70945                         LIB_VAR=$ac_cv_search_FUNC])
70946           LIBS=$prefix_saved_LIBS
70948         However, in each of the files affected by this change, the LIB_VAR=
70949         initialization was omitted.  Thus, when set in the environment, its
70950         value would propagate into generated Makefiles when FUNC is not found
70951         in LIB_NAME.
70952         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
70953         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
70954         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70956 2009-10-14  Eric Blake  <ebb9@byu.net>
70958         fchdir: avoid infinite recursion in mingw
70959         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
70960         recursing.
70962         test-stat-time: port to mingw
70963         * tests/test-stat-time.c (force_unlink): Return a value.
70964         (test_ctime) [W32]: Fix compilation error.
70965         (nap): Don't call usleep with too large an argument.  Use
70966         force_unlink.
70967         * doc/pastposix-functions/usleep.texi (usleep): Document the
70968         portability issue.
70970 2009-10-13  Jim Meyering  <meyering@redhat.com>
70972         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
70973         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
70974         * modules/pipe-filter-ii: Likewise.
70975         * modules/sys_socket-tests: Likewise.
70976         * modules/tsearch-tests: Likewise.
70977         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
70978         (check): Depend on it.
70980 2009-10-12  Eric Blake  <ebb9@byu.net>
70982         utimens-tests: port to NFS file systems
70983         * tests/test-utimens.h (test_utimens): Refactor utimecmp
70984         comparisons to avoid spurious failures from timestamp drift
70985         between NFS machines.
70987 2009-10-12  Eric Blake  <ebb9@byu.net>
70989         stat-time-tests: minor cleanups
70990         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
70991         * tests/test-stat-time.c (nap): Separate assignment from call.
70992         Suggested by Paolo Bonzini and Bruno Haible.
70994         sys_stat: guarantee struct timespec
70995         * lib/sys_stat.in.h (includes): Always include <time.h>
70996         * modules/sys_stat (Depends-on): Add time.
70997         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
70998         mode_t permission values.
70999         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
71000         get at subsecond timestamps.
71002 2009-10-10  Eric Blake  <ebb9@byu.net>
71004         futimens: new module
71005         * modules/futimens: New file.
71006         * lib/futimens.c (futimens): Likewise.
71007         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
71008         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
71009         we can work around Linux bugs.
71010         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
71011         * modules/sys_stat (Makefile.am): Substitute them.
71012         * lib/sys_stat.in.h (futimens): Declare it.
71013         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
71014         * doc/posix-functions/futimens.texi (futimens): Likewise.
71015         * modules/futimens-tests: New test.
71016         * tests/test-futimens.c: Likewise.
71018         utimens: introduce fdutimens
71019         * lib/utimens.h (fdutimens): New prototype.
71020         * lib/utimens.c (gl_futimens): Move guts...
71021         (fdutimens): ...to new interface.
71022         * tests/test-utimens.c (do_fdutimens): Use it.
71024         utimens: add UTIME_NOW and UTIME_OMIT support
71025         * lib/utimens.c (validate_timespec, update_timespec): New helper
71026         functions.
71027         (gl_futimens, lutimens): Use them.
71028         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
71029         stdbool, sys_stat.
71030         (Link): Mention resulting library dependency.
71031         * modules/utimecmp (Link): Likewise.
71032         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
71033         (Makefile.am): Pick up library dependency.
71034         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
71035         definition.
71036         * tests/test-sys_stat.c: Test the definitions.
71037         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
71038         * NEWS: Document library dependency.
71040         utimecmp: support symlink timestamps
71041         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
71042         hashing when possible.  Use pathconf when available.
71043         (SYSCALL_RESOLUTION): Recognize tighter resolution.
71044         * modules/utimecmp (Depends-on): Add lstat.
71046         utimens: add lutimens interface
71047         * lib/utimens.c (lutimens): New function.
71048         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
71049         * lib/utimens.h (lutimens): Declare new interface.
71050         * tests/test-utimens.c (main): Enhance test.
71051         * tests/test-lutimens.h (test_lutimens): New file.
71052         * modules/utimens-tests (Files): Distribute it.
71053         (Depends-on): Add symlink.
71054         (configure.ac): Check for usleep.
71056         utimens: validate futimens usage
71057         * lib/utimens.c (gl_futimens): Require valid fd up front, using
71058         fewer syscalls on failure later on.  Avoid compiler warning on
71059         mingw.
71060         * modules/utimens (Depends-on): Add dup2.
71062         utimens: add test
71063         * modules/utimens-tests: New test.
71064         * tests/test-utimens.h: New file.
71065         * tests/test-futimens.h: Likewise.
71066         * tests/test-utimens.c: Likewise.
71068         doc: mention timestamp portability issues
71069         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
71070         instead.
71071         * doc/posix-functions/utime.texi (utime): Likewise.
71072         * doc/posix-functions/utimes.texi (utimes): Likewise.
71073         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
71074         instead.
71075         * doc/posix-functions/futimens.texi (futimens): Mention utimens
71076         module.
71077         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
71078         Mention weakness with symlink timestamps.
71079         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
71080         to utimensat/futimens instead.
71081         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
71083         test-dup2: enhance test
71084         * tests/test-dup2.c (main): Also check AT_FDCWD.
71086         test-stat-time: avoid more spurious failures
71087         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
71088         xfs; and avoid race if the two timestamps cross quantization edge.
71090         relocatable: prefer 'file system' over 'filesystem'
71091         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
71092         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
71093         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
71094         * doc/relocatable.texi (Enabling Relocatability): Likewise.
71095         * lib/relocatable.c (compute_curr_prefix): Likewise.
71097 2009-10-10  Jim Meyering  <meyering@redhat.com>
71099         stat-time-tests: check for the usleep function
71100         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
71102 2009-10-10  Bruno Haible  <bruno@clisp.org>
71104         * modules/xnanosleep: Put the Link section after the Include section.
71106 2009-10-09  Eric Blake  <ebb9@byu.net>
71108         dup2: work around FreeBSD 6.1 bug
71109         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
71110         * doc/posix-functions/dup2.texi (dup2): Document it.
71111         Reported by Nelson H. F. Beebe and Jim Meyering.
71113         test-stat-time: port to buggy NFS clients
71114         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
71115         (test_ctime): Also skip test if mtime and ctime are skewed.
71117         maint: prefer 'file system' over 'filesystem'
71118         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
71119         * doc/posix-functions/lstat.texi (lstat): Likewise.
71120         * lib/file-has-acl.c (file_has_acl): Likewise.
71121         * lib/fwriteerror.c [TEST]: Likewise.
71122         * tests/test-areadlink.h (test_areadlink): Likewise.
71123         * tests/test-areadlinkat-with-size.c (main): Likewise.
71124         * tests/test-areadlinkat.c (main): Likewise.
71125         * tests/test-canonicalize-lgpl.c (main): Likewise.
71126         * tests/test-canonicalize.c (main): Likewise.
71127         * tests/test-fstatat.c (main): Likewise.
71128         * tests/test-linkat.c (main): Likewise.
71129         * tests/test-lstat.h (test_lstat_func): Likewise.
71130         * tests/test-mkdir.h (test_mkdir): Likewise.
71131         * tests/test-readlink.h (test_readlink): Likewise.
71132         * tests/test-remove.c (main): Likewise.
71133         * tests/test-rename.h (test_rename): Likewise.
71134         * tests/test-renameat.c (main): Likewise.
71135         * tests/test-rmdir.h (test_rmdir_func): Likewise.
71136         * tests/test-symlink.h (test_symlink): Likewise.
71137         * tests/test-symlinkat.c (main): Likewise.
71138         * tests/test-unlink.h (test_unlink_func): Likewise.
71139         * tests/test-unlinkat.c (main): Likewise.
71141         maint: make realtime library usage explicit
71142         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
71143         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
71144         * modules/settime (Link): Likewise.
71145         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
71147         test-stat-time: speed up execution
71148         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
71149         warning on mingw.
71150         (nap): New helper function.
71151         (prepare_test): Use it to reduce sleep time.
71152         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
71153         execution.
71154         * modules/stat-time-tests (configure.ac): Check for usleep.
71156 2009-10-09  Jim Meyering  <meyering@redhat.com>
71158         selinux-h: always use getfilecon wrappers
71159         * lib/getfilecon.c: New file.
71160         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
71161         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
71162         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
71163         (fgetfilecon): Provide a stub.
71164         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
71165         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
71166         file unconditionally.
71167         When <selinux/selinux.h> is found, arrange to use wrappers.
71168         * modules/selinux-h (Files): Add getfilecon.c.
71169         (Makefile.am): Substitute include-next-related bits
71170         into the now-always-generated selinux/selinux.h file.
71171         * doc/glibc-functions/lgetfilecon.texi: New file.
71172         * doc/glibc-functions/fgetfilecon.texi: New file.
71173         * doc/glibc-functions/getfilecon.texi: New file.
71174         * doc/glibc-functions/getfilecon-desc.texi: New file.
71175         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
71176         which to pull in the new files.
71177         * MODULES.html.sh (Misc): Add selinux-h.
71179 2009-10-08  Jim Meyering  <meyering@redhat.com>
71181         unistd: fix comment typo
71182         * lib/unistd.in.h (euidaccess): Fix a comment typo.
71184 2009-10-08  Eric Blake  <ebb9@byu.net>
71186         areadlink: use SIZE_MAX consistently
71187         * modules/areadlink (Depends-on): Add stdint.
71188         * modules/areadlink-with-size (Depends-on): Likewise.
71189         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
71190         gives NULL; drop sys/types, since unistd gives size_t; and add
71191         stdint for SIZE_MAX.
71192         (SIZE_MAX): Rely on headers.
71193         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
71194         and add stdint.
71195         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
71196         (SIZE_MAX): Likewise.
71197         (INITIAL_BUF_SIZE): Turn into enum.
71198         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
71200 2009-10-08  Jim Meyering  <meyering@redhat.com>
71202         areadlinkat: avoid compilation failure
71203         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
71204         Fix typo in comment.
71206 2009-10-07  Eric Blake  <ebb9@byu.net>
71208         areadlinkat-with-size: new module
71209         * modules/areadlinkat-with-size: New module.
71210         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
71211         * lib/areadlink.h (areadlinkat): Declare it.
71212         * MODULES.html.sh (File system functions): Mention it.
71213         * modules/areadlinkat-with-size-tests: New test.
71214         * tests/test-areadlinkat-with-size.c: New file.
71216         xreadlinkat: new module
71217         * modules/xreadlinkat: New module.
71218         * lib/xreadlinkat.c (xreadlinkat): New file.
71219         * lib/xreadlink.h (xreadlinkat): Declare it.
71220         * MODULES.html.sh (File system functions): Mention it.
71222         areadlinkat: new module
71223         * lib/at-func.c (FUNC_FAIL): New define.
71224         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
71225         * modules/areadlinkat: New module.
71226         * lib/linkat.c (areadlinkat): Move...
71227         * lib/areadlinkat.c (areadlinkat): ...to new file.
71228         * lib/areadlink.h (areadlinkat): Declare it.
71229         * modules/linkat (Depends-on): Add areadlinkat.
71230         * MODULES.html.sh (File system functions): Mention it.
71231         * modules/areadlinkat-tests: New test.
71232         * tests/test-areadlinkat.c: New file.
71234         areadlink, areadlink-with-size: add tests
71235         * modules/areadlink-tests: New test.
71236         * modules/areadlink-with-size-tests: Likewise.
71237         * tests/test-areadlink.h: New file.
71238         * tests/test-areadlink.c: Likewise.
71239         * tests/test-areadlink-with-size.c: Likewise.
71241         maint: minor cleanups
71242         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
71243         _UNUSED_PARAMETER_ instead.
71244         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
71245         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
71246         * modules/linkat-tests (Files): Distribute test-link.h.
71248         openat, utimens: whitespace cleanup
71249         * lib/openat.c: Prefer space throughout, rather than mix of 8
71250         spaces vs. tabs.
71251         * lib/at-func.c: Likewise.
71252         * lib/utimens.c: Likewise.
71254         openat: avoid using wrong fd
71255         * lib/openat.c (openat_permissive): Reject user's fd if saving the
71256         working directory chooses same fd.
71257         * lib/at-func.c (AT_FUNC_NAME): Likewise.
71259         mkdir, mkdirat: fix cygwin 1.5.x bug
71260         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
71261         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
71262         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
71263         bug.
71264         (gl_PREREQ_MKDIR): Delete unused macro.
71265         * modules/mkdir (Files): Track file rename.
71266         (configure.ac): Update macro name.
71267         * modules/openat (Depends-on): Add mkdir.
71268         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
71270         mkdir, mkdirat: add tests
71271         * modules/mkdir-tests: New test.
71272         * tests/test-mkdir.h: New file.
71273         * tests/test-mkdir.c: Likewise.
71274         * tests/test-mkdirat.c: Likewise.
71275         * modules/openat-tests (Files): Add new files.
71276         (Makefile.am): Run new test.
71278 2009-10-06  Eric Blake  <ebb9@byu.net>
71280         doc: tweak *at function documentation
71281         * doc/posix-functions/faccessat.texi (faccessat): Mention
71282         known issue with replacement.
71283         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
71284         * doc/posix-functions/linkat.texi (linkat): Likewise.
71285         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
71286         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
71287         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
71288         * doc/posix-functions/renameat.texi (renameat): Likewise.
71289         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
71291         openat: fix GNU/Hurd bug in unlinkat
71292         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
71293         broken.
71294         * doc/posix-functions/unlink.texi (unlink): Document this.
71295         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
71297         fdopendir: fix GNU/Hurd bug
71298         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
71299         allowing non-directory fds.
71300         * lib/fdopendir.c (rpl_fdopendir): Work around it.
71301         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
71302         * modules/dirent (Makefile.am): Substitute it.
71303         * lib/dirent.in.h (fdopendir): Declare replacement.
71304         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
71305         * tests/test-fdopendir.c (main): Test something other than
71306         /dev/null, since on Hurd that behaves like a directory.
71308         test-symlink: port to GNU/Hurd
71309         * tests/test-symlink.h (test_symlink): Relax expected errno.
71311         doc: tweak more cygwin information
71312         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
71313         now compatible with glibc.
71314         * doc/posix-functions/getopt.texi (getopt): Likewise.
71316         getopt-gnu: add another test
71317         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
71318         guarantee behavior relied on by m4.
71319         * tests/test-getopt.c (main): Use it.
71320         * modules/getopt-posix-tests (Depends-on): Add setenv.
71321         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
71323         getopt: fix compilation on darwin
71324         * lib/getopt.in.h (includes): Leave breadcrumbs during system
71325         include.
71326         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
71327         Reported by Ludovic Courtès.
71329 2009-10-06  Bruno Haible  <bruno@clisp.org>
71331         * modules/size_max (Description): Discourage its use.
71332         Reported by Simon Josefsson.
71334 2009-10-06  Jim Meyering  <meyering@redhat.com>
71336         linkat: avoid compilation failure
71337         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
71339 2009-10-05  Eric Blake  <ebb9@byu.net>
71341         linkat: support Linux 2.6.17
71342         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
71343         linkat on Linux, but allow cache variable override.
71344         * lib/linkat.c (rpl_linkat): Define override.
71345         * modules/linkat (Depends-on): Add symlinkat.
71346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
71347         * modules/unistd (Makefile.am): Substitute it.
71348         * lib/unistd.in.h (linkat): Declare replacement.
71349         Reported by Pádraig Brady.
71351         quotearg: port test to systems with C.UTF-8 locale
71352         * tests/test-quotearg.c (struct result_strings): Add another
71353         member, differentiating between C.ASCII and C.UTF-8 handling.
71354         (compare_strings): Add parameter.
71355         (main): Adjust all callers.
71357         getopt: avoid clash with FreeBSD _getopt_internal
71358         * lib/getopt.in.h (_getopt_internal): Override the name.
71359         * lib/getopt_int.h (includes): Pick up any overrides.
71360         Reported by Reuben Thomas.
71362         hash: allow C89 compilation
71363         * lib/hash.c (check_tuning): Move declaration before statement.
71364         Reported by Reuben Thomas.
71366 2009-10-05  Karl Berry  <karl@gnu.org>
71368         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
71370 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
71371             Bruno Haible  <bruno@clisp.org>
71373         * lib/uname.c (uname): Use a table-driven algorithm to compute
71374         Windows NT versions.
71376 2009-10-04  Bruno Haible  <bruno@clisp.org>
71378         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
71379         program_invocation_short_name.
71380         * modules/progname (configure.ac): Test for presence of
71381         program_invocation_short_name.
71382         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
71384 2009-10-04  Bruno Haible  <bruno@clisp.org>
71386         * lib/progname.c (set_program_name): Fix comment.
71387         Reported by Jim Meyering.
71389 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
71390             Bruno Haible  <bruno@clisp.org>
71392         * lib/uname.c: Include <string.h>.
71393         (uname): Do only one call to GetVersionEx in the common case.
71395 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
71396             Bruno Haible  <bruno@clisp.org>
71398         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
71399         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
71400         (uname): Add support for Windows CE and various non-x86 CPU types.
71402 2009-10-03  Bruno Haible  <bruno@clisp.org>
71404         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
71405         invocation to tests/configure.ac.
71406         Reported by Ian Beckwith <ianb@erislabs.net>.
71408 2009-10-02  Eric Blake  <ebb9@byu.net>
71410         fchdir: avoid compiler warning
71411         * lib/fchdir.c (canonicalize_file_name)
71412         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
71414         test-open: support mingw errno values
71415         * tests/test-open.h (test_open): Relax test.
71416         * tests/test-fopen.h (test_fopen): Likewise.
71417         * tests/test-openat-safer.c (main): Likewise.
71419         open: fix opening directory on mingw
71420         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
71422         test-open: on GNU/Hurd, /dev/null is a directory
71423         * tests/test-fopen.h (main): Rename...
71424         (test_fopen): ...to this.  Use a guaranteed non-directory when
71425         confirming open behavior on trailing slash.
71426         * tests/test-openat-safer.c (main): Likewise.
71427         * tests/test-open.h (main): Likewise....
71428         (test_open): ...to this.
71429         * tests/test-fopen.c (main): Adjust caller.
71430         * tests/test-fopen-safer.c (main): Likewise.
71431         * tests/test-open.c (main): Likewise.
71432         * tests/test-fcntl-safer.c (main): Likewise.
71433         Reported by Samuel Thibault.
71435         rename, fchdir: don't ignore chdir failure
71436         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
71437         * lib/rename.c (rpl_rename) [W32]: Likewise.
71438         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
71439         an empty destination directory if source cannot be renamed,
71440         although there is still possibility for failure.
71441         * doc/posix-functions/rename.texi (rename): Document the race.
71442         Reported by Jim Meyering.
71444         maint: cleanup whitespace in recent commits
71445         * lib/rename.c (rpl_rename): Remove tabs.
71446         * tests/test-link.h (test_link): Likewise.
71447         * lib/fchdir.c (get_name): Likewise.
71448         Reported by Jim Meyering.
71450 2009-10-02  Ben Pfaff  <blp@gnu.org>
71452         relocatable-prog-wrapper: Add missing dependency on
71453         double-slash-root.
71454         * modules/relocatable-prog-wrapper: Add dependency.
71455         Reported by Ian Beckwith <ianb@erislabs.net>.
71457 2009-10-02  Eric Blake  <ebb9@byu.net>
71459         renameat: fix Solaris bugs
71460         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
71461         needed fixing.
71462         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
71463         * modules/stdio (Makefile.am): Substitute it.
71464         * lib/stdio.in.h (renameat): Declare replacement.
71465         * lib/renameat.c (rpl_renameat): Implement fix.
71467         renameat: new module
71468         * modules/renameat: New file.
71469         * lib/renameat.c (renameat): Likewise.
71470         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
71471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
71472         * modules/stdio (Makefile.am): Substitute them.
71473         * lib/stdio.in.h (renameat): Declare it.
71474         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
71475         * doc/posix-functions/renameat.texi (renameat): Likewise.
71476         * modules/renameat-tests: New test.
71477         * tests/test-renameat.c: Likewise.
71479         rename: fix mingw bugs
71480         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
71481         directory overwrite bugs.
71483         rename: fix another cygwin 1.5 bug
71484         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
71485         checks.
71486         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
71487         unnecessary cygwin workarounds.  Also work around bug with moving
71488         full directory onto an empty one.
71489         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
71491         rename-dest-slash: merge into rename module
71492         * modules/rename-dest-slash (Status): Mark obsolete.
71493         (Depends-on): Add rename.
71494         (Files): Let rename do it all.
71495         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
71496         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
71497         * m4/rename-dest-slash.m4: ...so this file can be deleted.
71498         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
71499         * lib/rename.c (rpl_rename): Update comments.
71501         rename: fix cygwin 1.5.x bugs
71502         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
71503         * lib/rename.c (rpl_rename): Work around them.
71504         * modules/rename (Depends-on): Add same-inode.
71506         rename: fix Solaris 10 bug
71507         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
71508         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
71509         was the only bug.
71511         rename: fix Solaris 9 bug
71512         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
71513         on non-directory.  Avoid calling exit.
71514         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
71515         strdup.
71516         * modules/rename-tests (Depends-on): Drop lstat.
71517         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
71518         (gl_PREREQ_RENAME): Delete unused macro.
71520         rename-dest-slash: fix NetBSD bug
71521         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
71522         links.
71523         * modules/rename-dest-slash (Depends-on): Add same-inode.
71525         rename-tests: new test, exposes several platform bugs
71526         * modules/rename-tests: New file.
71527         * tests/test-rename.h: Likewise.
71528         * tests/test-rename.c: Likewise.
71529         * doc/posix-functions/rename.texi (rename): Improve documentation,
71530         including bugs that will eventually be fixed in gnulib.
71532 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
71534         * lib/uname.c: Include <stdlib.h>
71535         (uname): Assume version info is available.
71537 2009-10-02  Jim Meyering  <meyering@redhat.com>
71539         gnu-web-doc-update: correct --help output
71540         * build-aux/gnu-web-doc-update: Make --help output relevant.
71542         gnu-web-doc-update: add standard options
71543         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
71545         gnu-web-doc-update: New module.
71546         Use this script to automatically update the on-line web documentation
71547         for your GNU project at http://www.gnu.org/software/$pkg/manual/
71548         * modules/gnu-web-doc-update: New file, from coreutils.
71549         * build-aux/gnu-web-doc-update: New script.
71551 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
71553         link: LoadLibrary is not needed.
71554         * lib/link.c: Use GetModuleHandle.
71556 2009-10-01  Eric Blake  <ebb9@byu.net>
71558         getopt: bump serial number
71559         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
71560         change.
71562         tests: tighten link, rmdir, and remove tests
71563         * tests/test-link.h (includes): No need to use <config.h> here.
71564         Clean up if directory hard link was created, otherwise test for
71565         trailing '.'.
71566         * tests/test-linkat.c (main): Simplify.
71567         * tests/test-remove.c (main): Enhance test for trailing '.'.
71568         * tests/test-rmdir.h (test_rmdir_func): Likewise.
71570 2009-10-01  Jim Meyering  <meyering@redhat.com>
71572         maint.mk: requiring "make major" was annoying, for a "minor" release.
71573         What is intended is "stable", to contrast with alpha and beta,
71574         so require "make stable", not "make major".
71575         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
71576         (get_tool_versions): Likewise.
71577         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
71579 2009-09-30  Ben Pfaff  <blp@gnu.org>
71581         Fix broken build of replacement for Windows tmpfile().
71582         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
71583         flags argument added along with the 'mkostemp' module.
71585 2009-09-28  Bruno Haible  <bruno@clisp.org>
71587         Avoid identifier clash with POSIX function 'remove' defined as a macro.
71588         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
71589         to 'remove_elt'.
71590         (gl_list_remove): Update.
71591         * lib/gl_list.c (gl_list_remove): Update.
71592         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
71593         to 'remove_elt'.
71594         (gl_oset_remove): Update.
71595         * lib/gl_list.c (gl_oset_remove): Update.
71596         Reported by Eric Blake.
71598 2009-09-28  Eric Blake  <ebb9@byu.net>
71600         doc: mention yet more cygwin 1.7 status
71601         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
71602         cygwin.
71603         * doc/glibc-functions/execvpe.texi (execvpe): New file.
71604         * doc/gnulib.texi (Glibc unistd.h): Mention it.
71606         argp: fix test failure
71607         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
71608         that are not upper-case.  Pass correct range to tolower.
71610 2009-09-27  Jim Meyering  <meyering@redhat.com>
71612         test-yesno: work around sparc-dash here-document infelicity
71613         Without this change, the literal \177 byte in a here document
71614         would make dash 0.5.5.1-3 access uninitialized memory.
71615         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
71616         Instead, use a marker, "@", and filter through tr to create the desired
71617         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
71619 2009-09-27  Bruno Haible  <bruno@clisp.org>
71621         Disable untested support for new flavours of ACLs on AIX.
71622         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
71623         progress.
71624         * lib/set-mode-acl.c (qset_acl): Likewise.
71626 2008-12-07  Bruno Haible  <bruno@clisp.org>
71628         Add support for new flavours of ACLs on AIX. (Untested.)
71629         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
71630         (file_has_acl): Add support for newer AIX.
71631         * lib/set-mode-acl.c (qset_acl): Likewise.
71632         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
71633         Rainer Tammer <tammer@tammer.net>.
71635 2009-09-26  Eric Blake  <ebb9@byu.net>
71637         argp: fix compilation of getopt
71638         * lib/getopt.in.h (includes): Use different guard than glibc.
71639         Reported by Sergey Poznyakoff.
71641         doc: mention more cygwin 1.7 status
71642         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
71643         bug.
71644         * doc/posix-functions/execl.texi (execl): Likewise.
71645         * doc/posix-functions/execle.texi (execle): Likewise.
71646         * doc/posix-functions/execlp.texi (execlp): Likewise.
71647         * doc/posix-functions/execv.texi (execv): Likewise.
71648         * doc/posix-functions/execve.texi (execve): Likewise.
71649         * doc/posix-functions/execvp.texi (execvp): Likewise.
71650         * doc/glibc-functions/canonicalize_file_name.texi
71651         (canonicalize_file_name): Cygwin 1.7 now provides this.
71652         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
71653         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
71654         on AT_SYMLINK_NOFOLLOW.
71656 2009-09-24  Eric Blake  <ebb9@byu.net>
71658         test-linkat: make test more robust
71659         * tests/test-linkat.c (main): Avoid collision with EEXIST.
71661         getopt: fix inclusion guards for cygwin
71662         * modules/getopt-posix (Depends-on): Add include-next.
71663         (Makefile.am): Substitute more items in replacement header.
71664         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
71665         <getopt.h>.
71666         * lib/getopt.in.h (includes): Use split inclusion guard, and
71667         prefer <getopt.h> over include <unistd.h> when one is present.
71668         (option): Also override name of 'struct option'.
71670         same-inode: revert prior change; it is not yet ready
71671         * NEWS: Undo mention of this change.
71672         * lib/same-inode.h (same-inode.h): Undo tri-state change.
71673         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
71674         * lib/cycle-check.c (cycle_check): Likewise.
71675         * lib/same.c (same_name): Likewise.
71676         * lib/at-func2.c (at_func2): Likewise.
71678 2009-09-23  Eric Blake  <ebb9@byu.net>
71680         linkat: new module
71681         * modules/linkat: New file.
71682         * lib/at-func2.c (at_func2): Likewise.
71683         * lib/linkat.c (linkat): Likewise.
71684         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
71685         * lib/openat-priv.h (at_func2): Add declaration.
71686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
71687         * modules/unistd (Makefile.am): Substitute them.
71688         * lib/unistd.in.h (linkat): Declare it.
71689         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
71690         * doc/posix-functions/linkat.texi (linkat): Likewise.
71691         * doc/posix-functions/link.texi (link): Tweak wording.
71692         * tests/test-link.c (main): Move guts...
71693         * tests/test-link.h (test_link): ...into new file.
71694         * modules/linkat-tests: New test.
71695         * tests/test-linkat.c: Likewise.
71696         * modules/link-tests (Files): Ship new file.
71697         (Depends-on): Add stdbool.
71699         dirname: add library-safe mdir_name
71700         * lib/dirname.h (mdir_name): New prototype.
71701         * lib/dirname.c (dir_name): Move guts...
71702         (mdir_name): ...to new function that avoids xalloc_die.
71704         fchdir: another mingw fix
71705         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
71706         * lib/fchdir.c (get_name): New helper method; skips canonicalize
71707         on mingw (where it has not yet been ported), and make it optional
71708         elsewhere.
71709         (_gl_register_fd): Use it.
71711         same-inode: make SAME_INODE tri-state, to port to mingw
71712         * NEWS: Mention this change.
71713         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
71714         st_ino always being 0.
71715         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
71716         * lib/cycle-check.c (cycle_check): Likewise.
71717         * lib/same.c (same_name): Likewise.
71719         lstat: avoid mingw compilation error
71720         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
71721         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
71722         lstat ourselves.
71723         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
71724         was adequate.
71725         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
71726         the checks for lstat.
71727         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
71729         link: fix test failure on Solaris 9
71730         * lib/link.c (rpl_link): Don't assume link will catch bogus
71731         trailing slash on source.
71733         test-symlinkat: enhance test
71734         * tests/test-readlink.c (main): Move guts...
71735         * tests/test-readlink.h (test_readlink): ...into new file.
71736         * tests/test-symlink.c (main): Move guts...
71737         * tests/test-symlink.h (test_symlink): ...into new file.
71738         * tests/test-symlinkat.c (main): Use new files for further
71739         coverage.
71740         (do_symlink, do_readlink): New helper functions.
71741         * modules/symlink-tests (Files): Ship new file.
71742         (Depends-on): Add stdbool.
71743         * modules/readlink-tests (Files): Ship new file.
71744         (Depends-on): Add stdbool.
71745         * modules/symlinkat-tests (Files): Use new files.
71747 2009-09-23  Eric Blake  <ebb9@byu.net>
71749         readlink: document portability issue with symlink length
71750         * doc/posix-functions/lstat.texi (lstat): Mention that some file
71751         systems have bogus st_size on symlinks, and mention the
71752         areadlink-with-size module.
71753         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
71754         * doc/posix-functions/readlink.texi (readlink): Mention the
71755         areadlink module, and ERANGE failure.
71756         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
71757         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
71759         readlink: fix Solaris 9 bug with trailing slash
71760         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
71761         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
71762         * doc/posix-functions/readlink.texi (readlink): Document this.
71763         * modules/readlink-tests: New test.
71764         * tests/test-readlink.c: Likewise.
71766         readlink: fix cygwin 1.5.x bug with return type
71767         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
71768         * lib/unistd.in.h (readlink): Use ssize_t.
71769         * lib/readlink.c (readlink): Likewise.
71770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
71771         * modules/unistd (Makefile.am): Substitute it.
71772         * lib/unistd.in.h (readlink): Declare replacement.
71773         * doc/posix-functions/readlink.texi (readlink): Document this.
71775         symlink: use throughout gnulib
71776         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
71777         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
71778         symlink is not used.
71779         * modules/symlinkat (Depends-on): Add symlink.
71780         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
71781         * modules/canonicalize-tests (Depends-on): Likewise.
71782         * modules/lstat-tests (Depends-on): Likewise.
71783         * modules/openat-tests (Depends-on): Likewise.
71784         * modules/remove-tests (Depends-on): Likewise.
71785         * modules/rmdir-tests (Depends-on): Likewise.
71786         * modules/unlink-tests (Depends-on): Likewise.
71787         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
71788         * tests/test-canonicalize.c (symlink): Likewise.
71789         * tests/test-fstatat.c (symlink): Likewise.
71790         * tests/test-lstat.c (symlink): Likewise.
71791         * tests/test-remove.c (symlink): Likewise.
71792         * tests/test-rmdir.c (symlink): Likewise.
71793         * tests/test-unlink.c (symlink): Likewise.
71794         * tests/test-unlinkat.c (symlink): Likewise.
71796         symlink: new module, for Solaris 9 bug
71797         * modules/symlink: New file.
71798         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
71799         * lib/symlink.c: Likewise.
71800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
71801         * modules/unistd (Makefile.am): Substitute them.
71802         * lib/unistd.in.h (symlink): Declare replacement.
71803         * MODULES.html.sh (File system functions): Mention it.
71804         * doc/posix-functions/symlink.texi (symlink): Likewise.
71805         * modules/symlink-tests: New test.
71806         * tests/test-symlink.c: Likewise.
71808 2009-09-23  Bruno Haible  <bruno@clisp.org>
71810         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
71811         when needed.
71812         Test case: gnulib-tool --import --with-tests atexit inttypes.
71813         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
71815 2009-09-23  Bruno Haible  <bruno@clisp.org>
71817         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
71818         subcommand, not in a subshell.
71820 2009-09-22  Eric Blake  <ebb9@byu.net>
71822         unistd: sort replacement declarations
71823         * lib/unistd.in.h: Sort declarations.
71825         open, openat: minor optimization
71826         * lib/open.c (open): If open succeeded, len is non-zero.
71827         * lib/openat.c (rpl_openat): Likewise.
71829         link-follow: ensure correct result
71830         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
71831         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
71832         distinguish between possible failures.
71834 2009-09-21  Eric Blake  <ebb9@byu.net>
71836         fts: avoid compiler warning
71837         * lib/fts.c (dirent_inode_sort_may_be_useful)
71838         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
71840 2009-09-19  Bruno Haible  <bruno@clisp.org>
71842         * lib/progreloc.c (canonicalize_file_name): New declaration.
71844 2009-09-19  Eric Blake  <ebb9@byu.net>
71846         link: fix quoting
71847         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
71849         openat: fix openat bugs on Solaris 9
71850         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
71851         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
71852         * modules/openat (Depends-on): Add open.
71853         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
71854         * modules/fcntl-h (Makefile.am): Substitute it.
71855         * lib/fcntl.in.h (openat): Declare replacement.
71856         * doc/posix-functions/openat.texi (openat): Document this.
71858         openat: move fstatat and unlinkat into correct files
71859         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
71860         compiled.
71861         * lib/openat.c (fstatat, unlinkat): Move...
71862         * lib/fstatat.c (fstatat): ...into correct files.
71863         * lib/unlinkat.c (unlinkat): Likewise.
71865         openat: fix unlinkat bugs on Solaris 9
71866         * lib/unlinkat.c (unlinkat): New file.
71867         * modules/openat (Depends-on): Add unlink.
71868         (Files): Distribute it.
71869         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
71870         trailing slash behavior is broken.
71871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
71872         * modules/unistd (Makefile.am): Substitute it.
71873         * lib/unistd.in.h (unlinkat): Declare replacement.
71874         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
71876         openat: fix fstatat bugs on Solaris 9
71877         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
71878         stat.
71879         * doc/posix-functions/fstatat.texi (fstatat): Document this.
71881         test-unlinkat: enhance test, to expose Solaris 9 bug
71882         * tests/test-unlink.c (main): Factor guts...
71883         * tests/test-unlink.h (test_rmdir_func): ...into new file.
71884         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
71885         * tests/test-rmdir.c (main): Adjust caller.
71886         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
71887         (unlinker): New helper function.
71888         (rmdirat): Enhance check.
71889         * modules/rmdir-tests (Depends-on): Add stdbool.
71890         * modules/unlink-tests (Depends-on): Likewise.
71891         (Files): Add test-unlink.h.
71892         * modules/openat-tests (Files): Likewise.
71893         (Depends-on): Add unlinkdir.
71895         test-fstatat: new test, to expose Solaris 9 bugs
71896         * tests/test-stat.c (main): Factor guts...
71897         * tests/test-stat.h (test_stat_func): ...into new file.
71898         * tests/test-lstat.c (main): Factor guts...
71899         * tests/test-lstat.h (test_lstat_func): ...into new file.
71900         * tests/test-fstatat.c: New file.
71901         * modules/stat-tests (Files): Add test-stat.h.
71902         * modules/lstat-tests (Files): Add test-lstat.h.
71903         (Depends-on): Add stdbool.
71904         * modules/openat-tests (Depends-on): Add pathmax.
71905         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
71906         (Makefile.am): Run new test.
71908         remove: new module, for mingw and Solaris 9 bugs
71909         * modules/remove: New file.
71910         * lib/remove.c: Likewise.
71911         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
71912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
71913         * modules/stdio (Makefile.am): Use them.
71914         * lib/stdio.in.h (remove): Declare replacement.
71915         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
71916         * doc/posix-functions/remove.texi (remove): Likewise.
71917         * modules/remove-tests: New test.
71918         * tests/test-remove.c: Likewise.
71920         unlink: new module, for Solaris 9 bug
71921         * modules/unlink: New file.
71922         * lib/unlink.c: Likewise.
71923         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
71924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
71925         * modules/unistd (Makefile.am): Use them.
71926         * lib/unistd.in.h (stat): Declare replacement.
71927         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
71928         * doc/posix-functions/unlink.texi (unlink): Likewise.
71929         * modules/unlink-tests: New test.
71930         * tests/test-unlink.c: Likewise.
71932         lstat: fix Solaris 9 bug
71933         * lib/lstat.c (lstat): Also check for trailing slash on
71934         non-symlink, non-directories.  Use stat module to simplify logic.
71935         * doc/posix-functions/lstat.texi (lstat): Document it.
71936         * modules/lstat-tests (Depends-on): Add errno, same-inode.
71937         (configure.ac): Check for symlink.
71938         * tests/test-lstat.c (main): Add more tests.
71940         stat: add as dependency to other modules
71941         * modules/chown (Depends-on): Add stat.
71942         * modules/euidaccess (Depends-on): Likewise.
71943         * modules/fchdir (Depends-on): Likewise.
71944         * modules/isdir (Depends-on): Likewise.
71945         * modules/link (Depends-on): Likewise.
71946         * modules/lstat (Depends-on): Likewise.
71947         * modules/mkdir-p (Depends-on): Likewise.
71948         * modules/modechange (Depends-on): Likewise.
71949         * modules/open (Depends-on): Likewise.
71950         * modules/readlink (Depends-on): Likewise.
71951         * modules/same (Depends-on): Likewise.
71953         stat: fix Solaris 9 bug
71954         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
71955         slash.
71956         * lib/stat.c (rpl_stat): Work around it.
71957         * doc/posix-functions/stat.texi (stat): Update documentation.
71959         stat: new module, for mingw bug
71960         * modules/stat: New file.
71961         * lib/stat.c: Likewise.
71962         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
71963         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
71964         * modules/sys_stat (Makefile.am): Use them.
71965         * lib/sys_stat.in.h (stat): Declare replacement.
71966         * lib/openat.c (fstatat): Deal with lstat and stat being function
71967         macros.
71968         * modules/openat (Depends-on): Add inline.
71969         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
71970         * doc/posix-functions/stat.texi (stat): Likewise.
71971         * modules/stat-tests: New test.
71972         * tests/test-stat.c: Likewise.
71974 2009-09-19  Jim Meyering  <meyering@redhat.com>
71976         syntax-check: detect unnecessary inclusion of canonicalize.h
71977         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
71979 2009-09-19  Eric Blake  <ebb9@byu.net>
71981         canonicalize-lgpl: adjust clients to use correct header
71982         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
71983         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
71984         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
71985         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
71986         * lib/progreloc.c (includes): Likewise.
71988 2009-09-19  Jim Meyering  <meyering@redhat.com>
71990         test-posixtm.c: correct a comment
71991         * tests/test-posixtm.c: Correct first-line comment.
71992         Spotted by Eric Blake.
71994 2009-09-16  Jim Meyering  <meyering@redhat.com>
71996         posixtm-tests: make T const-correct; add a test case
71997         * tests/test-posixtm.c (T): Declare const.
71998         Add a test for -(2^31+1).
71999         Remove useless can-succeed-only-in-2002 test.
72001         posixtm-tests: adjust the sole failing test
72002         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
72003         expected output matches what mktime now produces.  Cross-checked via
72004         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
72006         posixtm: move #ifdef'd tests into a new module
72007         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
72008         * tests/test-posixtm.c: ... this new file.
72009         * modules/posixtm-tests: New module.
72011 2009-09-19  Eric Blake  <ebb9@byu.net>
72013         openat: simplify use of at-func.c
72014         * lib/at-func.c (includes): Include prerequisites here, to
72015         simplify requirements on client files.
72016         * lib/openat-priv.h: Add double-inclusion guard.
72017         * lib/faccessat.c (includes): Simplify.
72018         * lib/fchmodat.c (includes): Likewise.
72019         * lib/fchownat.c (includes): Likewise.
72020         * lib/mkdirat.c (includes): Likewise.
72021         * lib/mkfifoat.c (includes): Likewise.
72022         * lib/symlinkat.c (includes): Likewise.
72024         openat: allow return of fd 0
72025         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
72026         * modules/save-cwd (Depends-on): Replace fcntl-safer with
72027         unistd-safer.
72028         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
72029         <fcntl.h>; this module does not leak fds.
72030         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
72031         must be allowed to return 0, leaving openat_safer to add the
72032         safety.
72033         (openat_permissive): Avoid writing to just-opened fd 2 if
72034         restoring the current directory fails.
72035         * lib/openat-die.c (openat_restore_fail): Add comment.
72036         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
72037         (save_cwd): Guarantee safe fd, but without use of open_safer.
72038         * tests/test-openat.c: New test.
72039         * modules/openat-tests (Files, Makefile.am): Distribute and build
72040         new file.
72042         relocatable-prog-wrapper: fix build
72043         * modules/relocatable-prog-wrapper (Files): Update name of
72044         canonicalize m4 file, broken on 2009-09-17.
72045         Reported by emad hajjar <aleppos@hotmail.com>.
72047 2009-09-19  Bruno Haible  <bruno@clisp.org>
72049         * lib/safe-alloc.h: Use the standard header with GPL copyright.
72050         * lib/safe-alloc.c: Likewise.
72051         Reported by Ian Beckwith <ianb@erislabs.net>.
72053 2009-09-18  Bruno Haible  <bruno@clisp.org>
72055         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
72056         Reported by <erobles@sensacd.com.mx>.
72058 2009-09-17  Eric Blake  <ebb9@byu.net>
72060         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
72061         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
72062         slashes when checking if last component is missing.
72063         * tests/test-canonicalize.c (main): Test this.
72065         canonicalize, canonicalize-lgpl: honor // if distinct from /
72066         * modules/canonicalize (Files): Add double-slash-root.m4.
72067         * modules/canonicalize-lgpl (Files): Likewise.
72068         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
72069         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
72070         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
72071         fallback definition.
72072         (canonicalize_filename_mode): Use it to protect //.
72073         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
72074         (__realpath): Likewise.
72075         * tests/test-canonicalize.c (main): Test this.
72076         * tests/test-canonicalize-lgpl.c (main): Likewise.
72077         * modules/canonicalize-tests (Depends-on): Add same-inode.
72078         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
72080         canonicalize-lgpl: fix glibc bug with trailing slash
72081         * m4/canonicalize-lgpl.m4: Move contents...
72082         * m4/canonicalize.m4: ...here.
72083         (gl_CANONICALIZE_LGPL): Factor realpath check...
72084         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
72085         glibc 2.3.5 bug, fixed 2005-04-27.
72086         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
72087         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
72088         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
72089         * modules/canonicalize-lgpl (Files): Manage file rename.
72090         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
72091         * modules/stdlib (Makefile.am): Substitute witness.
72092         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
72093         is needed.
72094         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
72095         replacement is required.
72096         * lib/canonicalize.c (canonicalize_file_name): Likewise.
72097         * doc/glibc-functions/canonicalize_file_name.texi
72098         (canonicalize_file_name): Document this.
72099         * doc/posix-functions/realpath.texi (realpath): Likewise.
72101         canonicalize-lgpl: reject non-directory with trailing slash
72102         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
72103         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
72104         catches failures in glibc 2.3.5.
72105         * tests/test-canonicalize.c (main): Likewise.
72107         canonicalize-lgpl: use native realpath if it works
72108         * lib/canonicalize-lgpl.c (realpath): Guard with
72109         FUNC_REALPATH_WORKS.
72110         * lib/stdlib.in.h (realpath): Make declaration optional based on
72111         HAVE_REALPATH.
72112         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
72113         native realpath works.
72114         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
72115         * modules/stdlib (Makefile.am): Substitute witness.
72117         canonicalize, canonicalize-lgpl: use <stdlib.h>
72118         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
72119         (Include): Mention <stdlib.h>.
72120         (configure.ac): Mention functions we provide.
72121         * modules/canonicalize (configure.ac): Likewise.
72122         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
72123         realpath if canonicalize_file_name is missing.
72124         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
72125         * modules/stdlib (Makefile.am): Substitute witnesses.
72126         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
72127         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
72128         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
72129         * NEWS: Document this.
72130         * doc/glibc-functions/canonicalize_file_name.texi
72131         (canonicalize_file_name): Likewise.
72132         * doc/posix-functions/realpath.texi (realpath): Likewise.
72133         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
72135         test-canonicalize: consolidate into single C program
72136         * tests/test-canonicalize.sh: Delete; move setup into...
72137         * tests/test-canonicalize.c (main): ...the program, making it
72138         easier to run in debugger.  Add some tests.
72139         * modules/canonicalize-tests (Files): Remove unused file.
72140         (Depends-on): Add progname.
72141         (configure.ac, Makefile.am): Simplify.
72143         test-canonicalize-lgpl: consolidate into single C program
72144         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
72145         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
72146         easier to run in debugger.  Add some tests.
72147         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
72148         (configure.ac, Makefile.am): Simplify.
72150         canonicalize: avoid resolvepath
72151         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
72152         unnecessary checks.
72153         * lib/canonicalize.c (includes): Simplify.
72154         (canonicalize_file_name): Drop resolvepath implementation.
72155         * modules/canonicalize (Depends-on): Drop filenamecat.
72157         canonicalize: don't lose errno
72158         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
72159         over calls to free.
72161         canonicalize: simplify errno handling
72162         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
72163         assignment.
72165         canonicalize, canonicalize-lgpl: update module dependencies
72166         * modules/canonicalize (Depends-on): Add extensions, lstat,
72167         pathmax, stdlib.
72168         (Files): Drop pathmax.h.
72169         (configure.ac): Adjust macro name.
72170         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
72171         lstat, stdlib, sys_stat.
72172         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
72173         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
72174         extensions.
72175         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
72176         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
72177         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
72178         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
72179         declaration, if available.
72180         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
72181         we can rely on the readlink module.
72182         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
72183         (includes): Use <unistd.h> unconditionally.
72185 2009-09-17  Eric Blake  <ebb9@byu.net>
72187         maint: make Include sections of modules consistent
72188         * modules/alloca: Use only header name; no need to list #include.
72189         * modules/alloca-opt: Likewise.
72190         * modules/arpa_inet: Likewise.
72191         * modules/canon-host: Likewise.
72192         * modules/configmake: Likewise.
72193         * modules/dirent: Likewise.
72194         * modules/eealloc: Likewise.
72195         * modules/environ: Likewise.
72196         * modules/fchdir: Likewise.
72197         * modules/fcntl: Likewise.
72198         * modules/fcntl-h: Likewise.
72199         * modules/gethrxtime: Likewise.
72200         * modules/gettime: Likewise.
72201         * modules/ignore-value: Likewise.
72202         * modules/inet_ntop: Likewise.
72203         * modules/inet_pton: Likewise.
72204         * modules/inttypes: Likewise.
72205         * modules/isnand-nolibm: Likewise.
72206         * modules/isnanf-nolibm: Likewise.
72207         * modules/mbchar: Likewise.
72208         * modules/mbfile: Likewise.
72209         * modules/mbiter: Likewise.
72210         * modules/mbuiter: Likewise.
72211         * modules/netdb: Likewise.
72212         * modules/netinet_in: Likewise.
72213         * modules/nproc: Likewise.
72214         * modules/pagealign_alloc: Likewise.
72215         * modules/poll: Likewise.
72216         * modules/printf-frexp: Likewise.
72217         * modules/pthread: Likewise.
72218         * modules/putenv: Likewise.
72219         * modules/random_r: Likewise.
72220         * modules/relocatable-prog: Likewise.
72221         * modules/search: Likewise.
72222         * modules/select: Likewise.
72223         * modules/selinux-h: Likewise.
72224         * modules/settime: Likewise.
72225         * modules/signal: Likewise.
72226         * modules/size_max: Likewise.
72227         * modules/socklen: Likewise.
72228         * modules/ssize_t: Likewise.
72229         * modules/stdarg: Likewise.
72230         * modules/stdbool: Likewise.
72231         * modules/stddef: Likewise.
72232         * modules/stdint: Likewise.
72233         * modules/stdio: Likewise.
72234         * modules/stdlib: Likewise.
72235         * modules/string: Likewise.
72236         * modules/strings: Likewise.
72237         * modules/sys_file: Likewise.
72238         * modules/sys_ioctl: Likewise.
72239         * modules/sys_select: Likewise.
72240         * modules/sys_socket: Likewise.
72241         * modules/sys_stat: Likewise.
72242         * modules/sys_time: Likewise.
72243         * modules/sys_times: Likewise.
72244         * modules/sys_utsname: Likewise.
72245         * modules/sys_wait: Likewise.
72246         * modules/sysexits: Likewise.
72247         * modules/time: Likewise.
72248         * modules/times: Likewise.
72249         * modules/tmpfile: Likewise.
72250         * modules/trim: Likewise.
72251         * modules/unistd: Likewise.
72252         * modules/wchar: Likewise.
72253         * modules/wctype: Likewise.
72255 2009-09-17  Bruno Haible  <bruno@clisp.org>
72257         Make getdate.y compile on QNX and NetBSD 5 / i386.
72258         * m4/getdate.m4 (gl_GETDATE): Conditionally define
72259         TIME_T_FITS_IN_LONG_INT.
72260         * lib/getdate.y (long_time_t): New type.
72261         (relative_time): Change type of 'seconds' field to long_time_t.
72262         (get_date): Update types of local variables. Check against overflow
72263         during conversion from long_time_t to time_t.
72264         Reported by Matt Kraai <kraai@ftbfs.org>
72265         and Hasso Tepper <hasso@netbsd.org>.
72267 2009-09-17  Bruno Haible  <bruno@clisp.org>
72269         * modules/COPYING: Update copyright years.
72270         * modules/README: Likeiwse.
72271         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
72272         Reported by Ian Beckwith <ianb@erislabs.net>.
72274 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
72276         * users.txt: Update references for gnuit package.
72278 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
72280         * m4/getdelim.m4: Fix typo in copyright line.
72282 2009-09-17  Bruno Haible  <bruno@clisp.org>
72284         * lib/atoll.c: Use the standard header with GPL copyright.
72285         * lib/argz.in.h: Likewise.
72286         * lib/glob.c: Likewise.
72287         * lib/glob-libc.h: Likewise.
72288         * lib/random_r.c: Likewise.
72289         * lib/siglist.h: Likewise.
72290         * lib/strsignal.c: Likewise.
72291         Reported by Ian Beckwith <ianb@erislabs.net>.
72293 2009-09-17  Eric Blake  <ebb9@byu.net>
72295         rmdir: ensure correct dependency order
72296         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
72298 2009-09-17  Bruno Haible  <bruno@clisp.org>
72300         Disable assertion that fails on NetBSD 5 / i386.
72301         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
72302         Reported by Sam Steingold <sds@gnu.org>
72303         and Hasso Tepper <hasso@netbsd.org>.
72305 2009-09-16  Eric Blake  <ebb9@byu.net>
72307         unlinkdir: port to mingw
72308         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
72309         on which no one can unlink a directory.
72311         stdlib: sort witness names
72312         * modules/stdlib (Makefile.am): Sort replacements.
72313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
72314         * lib/stdlib.in.h: Likewise.
72316         parse-duration-tests: avoid link failure
72317         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
72318         LIBINTL.
72319         Reported by Tom G. Christensen.
72321         openat-tests: ensure unlinkat behaves like rmdir
72322         * tests/test-rmdir.c (main): Factor guts...
72323         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
72324         * modules/rmdir-tests (Files): Ship new file.
72325         * modules/openat-tests: New test.
72326         * tests/test-unlinkat.c: Likewise.
72328         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
72329         * modules/rmdir-errno (Status, Notice): Now obsolete.
72331         rmdir: work around cygwin 1.5.x and mingw bugs
72332         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
72333         * lib/rmdir.c (rmdir): Work around it.
72334         * modules/rmdir (Status, Notice): No longer obsolete.
72335         (Files): Add dos.m4.
72336         (Depends-on): Add unistd.
72337         (configure.ac): Set witnesses.
72338         (License): Relax to LGPLv2+.
72339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
72340         * modules/unistd (Makefile.am): Substitute witnesses.
72341         * lib/unistd.in.h (rmdir): Declare replacement.
72342         * doc/posix-functions/rmdir.texi (rmdir): Document this.
72343         * modules/rmdir-tests: New tests.
72344         * tests/test-rmdir.c: Likewise.
72346 2009-09-15  Eric Blake  <ebb9@byu.net>
72348         fchdir: improve use of replacement functions
72349         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
72350         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
72351         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
72352         REPLACE_CLOSEDIR.
72353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
72354         * modules/sys_stat (Makefile.am): Substitute correct witness.
72355         * modules/dirent (Makefile.am): Likewise.
72356         * modules/unistd (Makefile.am): Likewise.
72357         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
72358         * lib/unistd.in.h (dup): Likewise.
72359         * lib/sys_stat.in.h (fstat): Likewise.
72361         maint: ignore gnulib-tool temp files
72362         * .gitignore: Ignore files created during gnulib-tool --test.
72364 2009-09-13  Jim Meyering  <meyering@redhat.com>
72366         posixtm: don't reject a time that specify "60" as the number of seconds
72367         * lib/posixtm.c (posixtime): The code to reject invalid dates
72368         would also reject a time specified with the .60 suffix.
72369         But POSIX allows that, in order to accommodate leap seconds.
72370         So don't reject it.
72371         (main): Adjust tests accordingly.
72372         * modules/posixtm (Depends-on): Add stpcpy.
72374 2009-09-11  Jim Meyering  <meyering@redhat.com>
72376         announce-gen: include [$release_type] in emitted Subject:
72377         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
72378         e.g., [stable] in the emitted Subject: line.
72380 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72382         Remove obsolete macros from several modules.
72383         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
72384         obsolete Autoconf macros with their modern counterparts.
72385         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
72386         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
72387         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
72388         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
72389         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
72390         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
72391         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
72392         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
72393         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
72394         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
72395         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
72396         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
72397         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
72398         * m4/sockets.m4 (gl_SOCKETS): Likewise.
72399         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
72400         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
72401         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
72402         * m4/time_r.m4 (gl_TIME_R): Likewise.
72403         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
72404         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
72405         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
72407         Fix copyright header in build-aux scripts.
72408         * build-aux/git-version-gen: Fix copyright header to match GPLv3
72409         recommendation.
72410         * build-aux/ncftpput-ftp: Likewise.
72411         * build-aux/update-copyright: Likewise.
72413 2009-09-09  Eric Blake  <ebb9@byu.net>
72415         test-link: allow Linux choice of errno
72416         * tests/test-link.c (main): Relax test for alternate error.
72418         strndup: fix improper m4 caching
72419         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
72420         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
72421         (gl_PREREQ_STRNDUP): Delete.
72422         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
72423         * modules/string (Makefile.am): Substitute it.
72424         * lib/string.in.h (strndup): Modernize prototype.
72426         getcwd: port to mingw
72427         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
72428         different from the POSIX assumptions made throughout the getcwd
72429         module; fortunately, the mingw getcwd does not need replacement.
72430         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
72431         * modules/getcwd-tests: New test.
72432         * tests/test-getcwd.c: Likewise.
72434         link: fix platform bugs
72435         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
72436         * lib/link.c (link): Work around them.  Fix related mingw bug.
72437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
72438         * modules/unistd (Makefile.am): Substitute it.
72439         * lib/unistd.in.h (link): Declare replacement.
72440         * doc/posix-functions/link.texi (link): Document this.
72441         * modules/link (Depends-on): Add strdup-posix, sys_stat.
72443         test-link: consolidate into single C program, test more cases
72444         * tests/test-link.sh: Delete.
72445         * tests/test-link.c: Test more error conditions.  Exposes bugs on
72446         at least Cygwin and Solaris.
72447         * modules/link-tests (Files): Remove unused file.
72448         (Depends-on): Add errno, sys_stat.
72449         (Makefile.am): Simplify.
72451 2009-09-08  Bruno Haible  <bruno@clisp.org>
72453         Work around towlower, towupper bug on mingw.
72454         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
72455         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
72456         * doc/posix-functions/towlower.texi: Mention the mingw bug.
72457         * doc/posix-functions/towupper.texi: Likewise.
72458         Reported by Eric Blake.
72460 2009-09-08  Jim Meyering  <meyering@redhat.com>
72462         build: don't try to run autoheader if we don't use it
72463         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
72464         is not used in configure.ac.
72466 2009-09-08  Eric Blake  <ebb9@byu.net>
72468         euidaccess: fix compilation error
72469         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
72471         rawmemchr: relax license
72472         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
72473         okay.
72474         Reported by Jim Meyering.
72476         mkfifoat: new module
72477         * modules/mkfifoat: New file.
72478         * lib/mkfifoat.c: Likewise.
72479         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
72480         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
72481         * modules/sys_stat (Makefile.am): Use them.
72482         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
72483         * MODULES.html.sh (File system functions): Mention module.
72484         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
72485         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
72486         * modules/mkfifoat-tests: New test.
72487         * tests/test-mkfifoat.c: Likewise.
72489         strchrnul: relax license
72490         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
72491         okay.
72492         Reported by Jim Meyering.
72494 2009-09-08  Eric Blake  <ebb9@byu.net>
72496         fstatat: fix compilation on Solaris
72497         * lib/fstatat.c (includes): Add fcntl.h.
72498         Reported by Pádraig Brady.
72500 2009-09-07  Eric Blake  <ebb9@byu.net>
72502         rename: modernize replacement
72503         * modules/rename (Depends-on): Add stdio.
72504         (configure.ac): Declare witness.
72505         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
72506         stdio take care of replacement.
72507         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
72508         * modules/stdio (Makefile.am): Substitute them.
72509         * lib/stdio.in.h (rename): Declare replacement.
72510         * lib/rename.c (includes): Allow cross-compilation to non-windows
72511         machines.
72512         * doc/posix-functions/rename.texi (rename): Improve
72513         documentation.
72515         stdio: sort witness names
72516         * modules/stdio (Makefile.am): Sort replacements.
72517         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
72518         * lib/stdio.in.h: Likewise.
72520         getcwd: minor cleanups
72521         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
72522         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
72524         openat: provide more convenience names
72525         * modules/faccessat (configure.ac): Add C witness.
72526         * lib/unistd.in.h (readlinkat): Fix typo.
72527         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
72528         convenience wrappers.
72529         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
72530         wrappers in syntax checks.
72532 2009-09-06  Eric Blake  <ebb9@byu.net>
72534         doc: fix comments in recent patches
72535         * lib/faccessat.c: Mention correct function.
72536         * lib/fchmodat.c: Likewise.
72537         * lib/fchownat.c: Likewise.
72538         * lib/symlinkat.c: Likewise.
72539         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
72540         constants.
72542         faccessat, symlinkat: continue cleanup of previous patch
72543         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
72544         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
72545         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
72546         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
72547         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
72548         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
72549         set.
72551 2009-09-06  Bruno Haible  <bruno@clisp.org>
72553         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
72554         (fstatat): Declare if GNULIB_FSTATAT is set.
72555         (mkdirat): Declare if GNULIB_MKDIRAT is set.
72556         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
72557         (unlinkat): Declare if GNULIB_UNLINKAT is set.
72558         * modules/fcntl-h (Files): Remove m4/openat.m4.
72559         * modules/sys_stat (Files): Remove m4/openat.m4.
72560         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
72561         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
72562         * modules/unistd (Files): Remove m4/openat.m4.
72563         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
72564         GNULIB_OPENAT.
72565         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
72566         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
72567         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
72568         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
72569         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
72570         gl_OPENAT_DEFAULTS.
72571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
72572         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
72573         Don't require gl_OPENAT_DEFAULTS.
72574         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
72575         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
72576         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
72577         (gl_OPENAT_DEFAULTS): Remove macro.
72579 2009-09-06  Bruno Haible  <bruno@clisp.org>
72581         * modules/openat (configure.ac): Remove unneeded witness.
72583 2009-09-06  Bruno Haible  <bruno@clisp.org>
72585         Set errno to ENOSYS when a function is entirely unsupported.
72586         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
72587         EOPNOTSUPP.
72588         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
72589         * modules/chown (Depends-on): Remove errno.
72591 2009-09-06  Bruno Haible  <bruno@clisp.org>
72593         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
72595 2009-09-06  Bruno Haible  <bruno@clisp.org>
72597         * lib/sys_stat.in.h: Fix preprocessor command indentation.
72599 2009-09-06  Ben Pfaff  <blp@gnu.org>
72600             Bruno Haible  <bruno@clisp.org>
72602         Work around a glibc bug in strtok_r.
72603         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
72604         Undefine if UNDEFINE_STRTOK_R is set.
72605         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
72606         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72607         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
72608         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
72609         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
72610         UNDEFINE_STRTOK_R.
72611         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
72613 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
72615         exclude: minor fix
72616         * lib/exclude.c: Include wctype.h
72618 2009-09-06  Akim Demaille  <demaille@gostai.com>
72620         bootstrap: improve error message
72621         * build-aux/bootstrap (find_tool): Upon failure, report the list
72622         of candidates.
72623         Honor the initial value of the envvar.
72625 2009-09-05  Eric Blake  <ebb9@byu.net>
72627         symlinkat: new module
72628         * modules/symlinkat: New file.
72629         * lib/symlinkat.c: Likewise.
72630         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
72631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
72632         * modules/unistd (Makefile.am): Use them.
72633         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
72634         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
72635         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
72636         * MODULES.html.sh (File system functions): Mention module.
72637         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
72638         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
72639         * modules/symlinkat-tests: New test.
72640         * tests/test-symlinkat.c: Likewise.
72642         test-openat-safer: add more checks
72643         * tests/test-openat-safer.c (main): Check more code paths.
72645 2009-09-05  Jim Meyering  <meyering@redhat.com>
72647         syntax-check: detect unnecessary inclusion of openat.h
72648         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
72650 2009-09-05  Bruno Haible  <bruno@clisp.org>
72652         Support towlower, towupper.
72653         * doc/posix-functions/towlower.texi: Mention module wctype.
72654         * doc/posix-functions/towupper.texi: Likewise.
72655         * lib/wctype.in.h (towlower, towupper): New functions.
72656         * tests/test-wctype.c: Include stdio.h, stdlib.h.
72657         (ASSERT): New macro.
72658         (e): New variable.
72659         (main): Test also towlower, towupper. Test WEOF argument.
72660         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
72662 2009-09-05  Bruno Haible  <bruno@clisp.org>
72664         Fix conversion behaviour when the input is invalid.
72665         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
72666         mark occurring in first pass of indirect conversion.
72667         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
72668         input.
72669         Found by clang's static analyzer.
72671 2009-09-05  Bruno Haible  <bruno@clisp.org>
72673         * tests/test-striconveh.c (main): Test indirect conversion on platforms
72674         where direct conversion is possible.
72676 2009-09-04  Eric Blake  <ebb9@byu.net>
72678         openat: fail with ENOENT on empty name
72679         * lib/openat-proc.c (openat_proc_name): Special-case the empty
72680         buffer.
72682         link-follow: fix logic bug in prior patch
72683         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
72684         reversed sense of yes and no in prior patch.  Avoid confusing
72685         compilation failure with desired semantics.
72687         link-follow: accommodate mingw and cross-compilation
72688         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
72689         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
72690         cross-compilation results to -1, to make linkat easier to
72691         implement when cross-compiling.  Trivially support mingw.
72692         * modules/link-follow (configure.ac): Call new name.
72693         * NEWS: Mention this.
72695 2009-09-03  Eric Blake  <ebb9@byu.net>
72697         faccessat: compile replacement
72698         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
72699         needed.
72701         fts: fix compilation error
72702         * lib/fts.c (includes): Re-add "openat.h", for
72703         openat_needs_fchdir.
72705         faccessat: new module
72706         * modules/faccessat: New file.
72707         * lib/faccessat.c: Likewise.
72708         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
72709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
72710         * modules/unistd (Makefile.am): Use it.
72711         * lib/unistd.in.h (faccessat): Declare it.
72712         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
72713         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
72714         * MODULES.html.sh (File system functions): Mention it.
72715         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
72716         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
72718         euidaccess: prefer POSIX over non-standard implementation
72719         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
72720         * lib/euidaccess.c (euidaccess): Use it if available.
72722         openat: make template easier to use
72723         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
72724         AT_FUNC_F2 to be undefined.
72725         (VALIDATE_FLAG): New macro; use it to reject bad flags.
72726         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
72727         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
72728         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
72729         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
72730         Likewise.
72731         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
72732         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
72733         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
72734         Likewise.
72736         openat: declare in POSIX headers
72737         * NEWS: Mention this.
72738         * modules/openat (configure.ac): Declare witnesses.
72739         (Depends-on): Add fcntl-h, sys_stat, unistd.
72740         (Include): Mention correct headers.
72741         * modules/fcntl-h (Depends-on): Add link-warning.
72742         (Files): Add openat.m4.
72743         (Makefile.am): Substitute witnesses.
72744         * modules/sys_stat (Files, Makefile.am): Likewise.
72745         * modules/unistd (Files, Makefile.am): Likewise.
72746         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
72747         (gl_OPENAT_DEFAULTS): New macro.
72748         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
72749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
72750         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
72751         (SYS_STAT_H): Remove unused variable.
72752         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
72753         * lib/fcntl--.h (includes): Remove unneeded header.
72754         * lib/openat-safer.c (includes): Likewise.
72755         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
72756         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
72757         appropriate headers.
72758         (__OPENAT_PREFIX): Delete.
72759         * lib/fcntl.in.h (openat): Provide declaration.
72760         (AT_FDCWD): Fix Solaris bug.
72761         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
72762         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
72763         * lib/fchmodat.c (includes):  Adjust to find declaration.
72764         * lib/fchownat.c (includes): Likewise.
72765         * lib/mkdirat.c (includes): Likewise.
72766         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
72767         still visible.
72769 2009-09-02  Eric Blake  <ebb9@byu.net>
72771         errno: use consistently
72772         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
72773         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
72774         * lib/canonicalize.c (ELOOP): Likewise.
72775         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
72776         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
72777         * lib/lchown.c (EOPNOTSUPP): Likewise.
72778         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
72779         * lib/savewd.c (ESTALE): Likewise.
72780         * lib/settime.c (ENOSYS): Likewise.
72781         * lib/utimens.c (ENOSYS): Likewise.
72782         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
72783         * lib/chdir-safer.c (ELOOP): Likewise.
72784         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
72785         * modules/c-stack (Depends-on): Add errno.
72786         * modules/canonicalize (Depends-on): Likewise.
72787         * modules/chdir-safer (Depends-on): Likewise.
72788         * modules/fdopendir (Depends-on): Likewise.
72789         * modules/inet_ntop (Depends-on): Likewise.
72790         * modules/inet_pton (Depends-on): Likewise.
72791         * modules/lchown (Depends-on): Likewise.
72792         * modules/openat (Depends-on): Likewise.
72793         * modules/savewd (Depends-on): Likewise.
72794         * modules/settime (Depends-on): Likewise.
72795         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
72797         fts: avoid leaking fds
72798         * modules/fts (Depends-on): Add cloexec.
72799         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
72800         flag.
72802         fts: make directory fds more robust
72803         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
72804         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
72806         backupfile, chdir-long, fts, savedir: make safer
72807         * lib/backupfile.c (includes): Use "dirent--.h", since
72808         numbered_backup can write to stderr during readdir.
72809         * lib/savedir.c (includes): Likewise.
72810         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
72811         emulation can write to stderr on failure.
72812         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
72813         * lib/getcwd.c: Document why opendir_safer is unused.
72814         * lib/glob.c: Likewise.
72815         * lib/scandir.c: Likewise.
72816         * lib/openat-proc.c: Likewise, for open_safer.
72817         * modules/backupfile (Depends-on): Add dirent-safer.
72818         * modules/savedir (Depends-on): Likewise.
72819         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
72820         * modules/chdir-long (Depends-on): Add openat-safer.
72822         openat-safer: new module
72823         * modules/openat-safer: New file.
72824         * lib/openat-safer.c: Likewise.
72825         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
72826         * lib/fcntl-safer.h (openat_safer): Declare.
72827         * lib/fcntl--.h (openat): Override.
72828         * MODULES.html.sh (File descriptor based I/O): Mention it.
72829         * lib/openat.h: Add double-inclusion guards.
72830         * lib/openat.c (includes): Only include "fcntl-safer.h", not
72831         "fcntl--.h", so we can implement openat.
72832         * modules/openat-safer-tests: New test.
72833         * tests/test-openat-safer.c: New file.
72835         dirent-safer: new module
72836         * modules/dirent-safer: New file.
72837         * lib/dirent--.h: Likewise.
72838         * lib/dirent-safer.h: Likewise.
72839         * lib/opendir-safer.c: Likewise.
72840         * m4/dirent-safer.m4: Likewise.
72841         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
72842         * modules/dirent-safer-tests: New test.
72843         * tests/test-dirent-safer.c: New file.
72844         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
72846         fdopendir: optimize on mingw
72847         * lib/unistd.in.h (_gl_directory_name): New prototype.
72848         * lib/fchdir.c (_gl_directory_name): Implement it.
72849         (fchdir): Use it to simplify implementation.
72850         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
72851         fchdir, when available, to avoid calling [f]chdir().
72853         fdopendir: split into its own module
72854         * lib/openat.c (fdopendir): Move...
72855         * lib/fdopendir.c: ...into new file.
72856         * modules/fdopendir: New module.
72857         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
72858         * modules/openat (Depends-on): Add fdopendir.
72859         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
72860         fdopendir here.
72861         * modules/savedir (Depends-on): Only need fdopendir, not full
72862         openat.
72863         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
72864         * lib/openat.h (fdopendir): Drop prototype.
72865         * lib/dirent.in.h (fdopendir): Provide prototype.
72866         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
72867         * modules/dirent (Makefile.am): Substitute them.
72868         * MODULES.html.sh (File system functions): Mention it.
72869         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
72870         * modules/fdopendir-tests: New file.
72871         * tests/test-fdopendir.c: Likewise.
72873         fchdir: use more consistent macro convention
72874         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
72875         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
72876         REPLACE_FCHDIR, rather than relying on config.h macros.
72877         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
72878         inside a single make-time REPLACE_FCHDIR block, rather than using
72879         the config.h FCHDIR_REPLACEMENT.
72880         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
72881         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
72882         Manage fstat replacement.
72883         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
72884         REPLACE_FCHDIR.
72885         * modules/sys_stat (Files): Add m4/unistd_h.m4.
72886         (Makefile.am): Substitute REPLACE_FCHDIR.
72887         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
72888         FCHDIR_REPLACEMENT.
72889         * lib/dup-safer.c (dup_safer): Likewise.
72890         * lib/dup2.c (rpl_dup2): Likewise.
72891         * lib/dup3.c (rpl_dup3): Likewise.
72892         * lib/open.c (rpl_open): Likewise.
72894         fchdir: simplify error handling, and support dup3
72895         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
72896         stdbool, malloc-posix, realloc-posix.
72897         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
72898         (ensure_dirs_slot): Return false on allocation failure.
72899         (rpl_dup2): Delete.
72900         (_gl_register_dup): New function.
72901         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
72902         (_gl_register_fd): Close fd on allocation failure.
72903         * lib/fcntl.in.h (_gl_register_fd): Update signature.
72904         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
72905         prototype.
72906         (rpl_dup2_fchdir): Delete prototype.
72907         * lib/open.c (open): Update caller.
72908         * lib/dup2.c (dup2): Track fchdir metadata.
72909         * lib/dup3.c (dup3): Likewise.
72910         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
72911         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
72913 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72915         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
72916         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
72917         don't pass arguments to AC_OUTPUT.
72919 2009-09-02  Bruno Haible  <bruno@clisp.org>
72921         * modules/mkdtemp (License): Relicense under LGPLv2+.
72922         Reported by Paolo Bonzini.
72924 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72926         Replace uses of obsolete autoconf macros in Jim's modules.
72927         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
72928         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
72929         can evoke a warning from autoconf when run with -Wobsolete
72930         enabled.  They were declared obsolete for good reasons (see
72931         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
72932         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
72933         should not continue using the deprecated macros.
72934         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
72935         obsolete Autoconf macros with modern counterparts.
72936         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
72937         * m4/dos.m4 (gl_AC_DOS): Likewise.
72938         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
72939         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
72940         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
72941         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
72942         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
72943         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
72944         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
72945         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
72946         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72947         Likewise.
72948         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
72949         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72950         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
72951         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
72952         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
72953         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72955 2009-09-01  Eric Blake  <ebb9@byu.net>
72957         fchdir: fix off-by-one bug in previous patch
72958         * lib/fchdir.c (rpl_fstat): Use correct bounds.
72959         (_gl_unregister_fd): Delete useless if.
72961 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
72963         maint.mk: sort the list of syntax-check rules
72964         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
72965         easier to get a sense of progress when the rules are run sequentially
72966         and take a long time.
72968 2009-09-01  Simon Josefsson  <simon@josefsson.org>
72970         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
72971         * modules/netinet_in: Likewise.
72972         * modules/sys_file: Likewise.
72973         * modules/sys_ioctl: Likewise.
72974         * modules/sys_select: Likewise.
72975         * modules/sys_socket: Likewise.
72976         * modules/sys_stat: Likewise.
72977         * modules/sys_time: Likewise.
72978         * modules/sys_times: Likewise.
72979         * modules/sys_utsname: Likewise.
72980         * modules/sys_wait: Likewise.
72982 2009-09-01  Jim Meyering  <meyering@redhat.com>
72984         fts: help ensure that return values are not ignored
72985         * lib/fts_.h (__GNUC_PREREQ): Define.
72986         (__attribute_warn_unused_result__): Define.
72987         (fts_children, fts_close, fts_open, fts_read): Declare with
72988         __attribute_warn_unused_result__.
72990         fts: fts_close now fails also when closing a dir file descriptor fails
72991         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
72992         and propagate to caller, along with errno.
72994         announce-gen: correct formatting in --help output
72995         * build-aux/announce-gen (usage): Move the one-line description in
72996         --help output "up", to where it belongs, just after Usage:.
72998 2009-08-31  Eric Blake  <ebb9@byu.net>
73000         fchdir: port to mingw
73001         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
73002         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
73003         opened, then use a substitute.
73004         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
73005         replacement.
73006         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
73007         (_gl_register_fd): No need to check stat if open already filters
73008         all directories.
73009         (fchdir): Fix error condition to match POSIX.
73010         * modules/fchdir (Depends-on): Add sys_stat.
73011         * doc/posix-functions/open.texi (open): Document the limitation.
73012         * modules/fchdir-tests: New file.
73013         * tests/test-fchdir.c: Likewise.
73015         canonicalize: allow cross-testing from cygwin to mingw
73016         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
73017         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
73018         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
73019         Likewise.
73020         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
73021         target does not support symlinks.
73022         * tests/test-canonicalize-lgpl.sh: Likewise.
73024         chown: avoid compilation warning on mingw
73025         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
73026         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
73027         mingw.
73028         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
73029         * modules/chown (Depends-on): Add errno.
73031 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
73033         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
73034         command.
73036 2009-08-31  Jim Meyering  <meyering@redhat.com>
73038         canonicalize: remove useless initialization
73039         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
73040         initialization of local, "end".
73042 2009-08-30  Bruno Haible  <bruno@clisp.org>
73044         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
73045         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
73046         ENOSYS.
73048 2009-08-30  Bruno Haible  <bruno@clisp.org>
73050         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
73051         /usr/xpg4/bin/tr when it exists.
73052         * tests/test-pipe-filter-gi1.sh: Likewise.
73054 2009-08-30  Bruno Haible  <bruno@clisp.org>
73056         Work around deficient /usr/bin/id program on Solaris.
73057         * tests/test-file-has-acl.sh (ID): New variable.
73058         * tests/test-set-mode-acl.sh (ID): Likewise.
73059         * tests/test-copy-acl.sh (ID): Likewise.
73060         * tests/test-copy-file.sh (ID): Likewise.
73062 2009-08-30  Bruno Haible  <bruno@clisp.org>
73064         New module 'xstriconveh'.
73065         * lib/xstriconveh.h: New file.
73066         * lib/xstriconveh.c: New file.
73067         * modules/xstriconveh: New file.
73069 2009-08-30  Bruno Haible  <bruno@clisp.org>
73071         Make it easier to use mem_cd_iconveh.
73072         * lib/striconveh.h (iconveh_t): New type.
73073         (iconveh_open, iconveh_close): New declarations.
73074         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
73075         with a single 'const iconveh_t *' argument.
73076         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
73077         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
73078         with a single 'const iconveh_t *' argument.
73079         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
73080         * tests/test-striconveh.c (main): Update.
73081         * NEWS: Mention the change.
73083 2009-08-30  Bruno Haible  <bruno@clisp.org>
73085         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
73086         problem.
73088 2009-08-30  Bruno Haible  <bruno@clisp.org>
73090         Work around iconv_open problem on Solaris.
73091         * lib/iconv_open-solaris.gperf: New file.
73092         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
73093         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
73094         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
73095         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
73096         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
73097         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
73099 2009-08-29  Jim Meyering  <meyering@redhat.com>
73101         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
73102         * top/maint.mk (cvs-check): Remove target; it was just an alias
73103         to the better-named vc-diff-check.
73104         (maintainer-distcheck): Remove rule.  It was used only from
73105         the (alpha/beta/major) target, and all of its commands but one
73106         were coreutils-specific.
73107         (vc-dist): Remove rule.
73108         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
73109         Run vc-diff-check, not vc-dist.
73110         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
73112 2009-08-27  Bruno Haible  <bruno@clisp.org>
73114         * tests/test-bitrotate.c (main): Remove test that uses a shift count
73115         of 0.
73117 2009-08-27  Bruno Haible  <bruno@clisp.org>
73119         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
73120         compilers.
73121         * doc/func.texi: Document the SunPRO C bug.
73123 2009-08-27  Bruno Haible  <bruno@clisp.org>
73125         Fix link error on Solaris.
73126         * tests/test-parse-duration.c (xstrdup): Remove function.
73128 2009-08-26  Pádraig Brady  <P@draigbrady.com>
73130         ignore-value: handle pointer types, too
73131         * lib/ignore-value.h (__attribute__): Remove definition.
73132         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
73133         of a more concise and more-often effective "(void) i" statement.
73134         (ignore_ptr): New function to suppress warnings from functions that
73135         return pointers, and to make it explicit that one function doesn't
73136         handle all cases.
73138 2009-08-25  Bruno Haible  <bruno@clisp.org>
73140         dup2: work around a Linux bug.
73141         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
73142         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
73143         * doc/posix-functions/dup2.texi: Mention the Linux bug.
73144         Reported by Simon Josefsson.
73146 2009-08-25  Jim Meyering  <meyering@redhat.com>
73148         libguestfs uses gnulib
73149         * users.txt: Add libguestfs.
73151 2009-08-24  Eric Blake  <ebb9@byu.net>
73153         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
73154         * lib/pipe2.c (includes): Add binary-io.h.
73155         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
73157 2009-08-24  Bruno Haible  <bruno@clisp.org>
73159         Tolerate declared but missing accept4 syscall.
73160         * lib/accept4.c (accept4): Invoke original accept4 function first, if
73161         available.
73162         * lib/sys_socket.in.h (accept4): If the function is already present,
73163         override it.
73164         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
73165         * modules/accept4 (Makefile.am): Compile accept4.c always.
73166         Reported by Paolo Bonzini and Eric Blake.
73168 2009-08-23  Bruno Haible  <bruno@clisp.org>
73170         New module 'accept4'.
73171         * lib/sys_socket.in.h (accept4): New declaration.
73172         * lib/accept4.c: New file.
73173         * m4/accept4.m4: New file.
73174         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
73175         GNULIB_ACCEPT4, HAVE_ACCEPT4.
73176         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
73177         HAVE_ACCEPT4.
73178         * modules/accept4: New file.
73179         * doc/glibc-functions/accept4.texi: Mention the new module.
73181 2009-08-24  Jim Meyering  <meyering@redhat.com>
73183         progname: also set global program_invocation_name, when possible
73184         Before this change, a libtool-enabled program that calls glibc's
73185         error function would report the program name as
73186         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
73187         * modules/progname (configure.ac): Check for a declaration of
73188         program_invocation_name.
73189         * lib/progname.c:  Include <errno.h>.
73190         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
73191         Set program_invocation_name.
73193 2009-08-23  Bruno Haible  <bruno@clisp.org>
73195         * lib/dup3.c: Include <string.h>.
73197 2009-08-23  Bruno Haible  <bruno@clisp.org>
73199         * lib/dup3.c (dup3): Test only once whether the system actually exists.
73200         * lib/pipe2.c (pipe2): Likewise.
73201         Suggested by Eric Blake.
73203 2009-08-23  Bruno Haible  <bruno@clisp.org>
73205         Tolerate declared but missing dup3 syscall.
73206         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
73207         * lib/unistd.in.h (dup3): If the function is already present,
73208         override it.
73209         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
73210         * modules/dup3 (Makefile.am): Compile dup3.c always.
73211         Reported by Paolo Bonzini.
73213 2009-08-23  Bruno Haible  <bruno@clisp.org>
73215         Tolerate declared but missing pipe2 syscall.
73216         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
73217         available.
73218         * lib/unistd.in.h (pipe2): If the function is already present,
73219         override it.
73220         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
73221         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
73222         Reported by Paolo Bonzini.
73224 2009-08-23  Bruno Haible  <bruno@clisp.org>
73226         * lib/pipe2.c (pipe2): Move #ifs inside function.
73228 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
73230         quotearg: document limitations of quote_these_too
73231         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
73232         those limitations are created.
73233         * lib/quotearg.h (set_char_quoting): Document that digits and
73234         letters that are special after backslash are not permitted.
73235         (quotearg_char): Cross-reference set_char_quoting documentation.
73237 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
73239         quotearg: implement custom_quoting_style
73240         * lib/quotearg.c: (struct quoting_options): Add left_quote and
73241         right_quote fields.
73242         (set_custom_quoting): New public function.
73243         (quotearg_buffer_restyled): Add left_quote and right_quote
73244         arguments, handle them very much like locale quoting, and update
73245         all uses.
73246         (quotearg_n_custom): New public function.
73247         (quotearg_n_custom_mem): New public function.
73248         (quotearg_custom): New public function.
73249         (quotearg_custom_mem): New public function.
73250         * lib/quotearg.h: Prototype and document new public functions.
73251         (enum quoting_style): For escape_quoting_style and
73252         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
73253         ignored even though they're otherwise like c_quoting_style.
73254         Add custom_quoting_style member and document with comparison to
73255         clocale_quoting_style.
73256         * tests/test-quotearg.c (custom_quotes): New array.
73257         (custom_results): New array.
73258         (main): Extend to test custom quoting.
73260 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
73262         quotearg: fix right quote escaping when it's in quote_these_too
73263         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
73264         quote, be sure to prepend only one backslash.
73265         * tests/test-quotearg.c (use_quote_double_quotes): New function.
73266         (main): Test it.
73268 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
73270         quotearg-tests: test escaping of embedded locale quotes
73271         * tests/test-quotearg.c (struct result_strings): Add member for
73272         new input.
73273         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
73274         (inputs): Add new input.
73275         (results_g): Add expected results.
73276         (flag_results): Likewise.
73277         (locale_results): Likewise.
73278         (compare_strings): Check those.
73280 2009-08-23  Bruno Haible  <bruno@clisp.org>
73282         Tests for module 'dup3'.
73283         * modules/dup3-tests: New file.
73284         * tests/test-dup3.c: New file.
73286         New module 'dup3'.
73287         * lib/unistd.in.h (dup3): New declaration.
73288         * lib/dup3.c: New file.
73289         * m4/dup3.m4: New file.
73290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
73291         HAVE_DUP3.
73292         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
73293         * modules/dup3: New file.
73294         * doc/glibc-functions/dup3.texi: Mention the new module.
73296 2009-08-23  Bruno Haible  <bruno@clisp.org>
73298         Tweak the dup2 test.
73299         * tests/test-dup2.c (main): Create the test file empty. Verify that an
73300         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
73301         the test file is still empty. Fix argument order of lseek.
73303 2009-08-23  Bruno Haible  <bruno@clisp.org>
73305         Avoid test link errors when the modules getopt-gnu, gettext are used.
73306         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
73307         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
73309 2009-08-23  Bruno Haible  <bruno@clisp.org>
73311         Fix getdtablesize() on mingw.
73312         * lib/getdtablesize.c (getdtablesize): Implement differently.
73313         * lib/unistd.in.h (getdtablesize): Improve comment.
73315 2009-08-23  Bruno Haible  <bruno@clisp.org>
73317         New module 'mkostemp'.
73318         Based on Ulrich Drepper's 2007-08-10 change in glibc.
73319         * lib/stdlib.in.h (mksotemp): New declaration.
73320         * lib/mkostemp.c: New file, from glibc with modifications.
73321         * lib/tempname.h (GT_FILE): Remove outdated comment.
73322         (gen_tempname): Add flags argument.
73323         * lib/tempname.c (__GT_BIGFILE): Remove macro.
73324         (__GT_FILE): Map to 1.
73325         (small_open, large_open): Remove macros.
73326         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
73327         * lib/mkstemp.c (mkstemp): Update.
73328         * lib/mkdtemp.c (mkdtemp): Likewise.
73329         * m4/mkostemp.m4: New file.
73330         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
73331         HAVE_MKOSTEMP.
73332         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
73333         HAVE_MKOSTEMP.
73334         * modules/mkostemp: New file, based on modules/mkstemp.
73335         * doc/glibc-functions/mkostemp.texi: Mention the new module.
73336         * NEWS: Mention the change.
73338 2009-08-23  Bruno Haible  <bruno@clisp.org>
73340         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
73341         Reported by Eric Blake.
73343 2009-08-23  Bruno Haible  <bruno@clisp.org>
73345         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
73346         Reported by Eric Blake.
73348 2009-08-23  Bruno Haible  <bruno@clisp.org>
73350         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
73351         * modules/pipe2 (Depends-on): Likewise.
73353 2009-08-23  Eric Blake  <ebb9@byu.net>
73355         fcntl-h: add O_TTY_INIT support
73356         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
73357         * tests/test-fcntl-h.c (o): Test it.
73358         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
73360         fcntl-h: rename from fcntl, in preparation for fcntl(2)
73361         * modules/fcntl: Move <fcntl.h> header replacement...
73362         * modules/fcntl-h: ...to new name, so as not to collide with
73363         like-named function.
73364         * tests/test-fcntl.c: Rename...
73365         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
73366         * modules/fcntl-tests: Rename...
73367         * modules/fcntl-h-tests: ...to this.  Update test file name.
73368         * modules/chdir-long (Depends-on): Update clients.
73369         * modules/chdir-safer (Depends-on): Likewise.
73370         * modules/fcntl-safer (Depends-on): Likewise.
73371         * modules/fts (Depends-on): Likewise.
73372         * modules/mkancesdirs (Depends-on): Likewise.
73373         * modules/mkdir-p (Depends-on): Likewise.
73374         * modules/open (Depends-on): Likewise.
73375         * modules/savewd (Depends-on): Likewise.
73376         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
73377         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
73379 2009-08-22  Bruno Haible  <bruno@clisp.org>
73381         * modules/binary-io (License): Relicense under LGPL.
73382         * modules/pipe2 (License): Likewise.
73384 2009-08-22  Bruno Haible  <bruno@clisp.org>
73386         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
73387         return value.
73388         * lib/pipe-filter-gi.c (filter_init): Likewise.
73389         Reported by Eric Blake.
73391 2009-08-22  Bruno Haible  <bruno@clisp.org>
73393         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
73394         * modules/pipe (Depends-on): Add pipe2.
73396 2009-08-22  Bruno Haible  <bruno@clisp.org>
73398         Tests for module 'pipe2'.
73399         * modules/pipe2-tests: New file.
73400         * tests/test-pipe2.c: New file.
73402         New module 'pipe2'.
73403         * lib/unistd.in.h (pipe2): New declaration.
73404         * lib/pipe2.c: New file.
73405         * m4/pipe2.m4: New file.
73406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
73407         HAVE_PIPE2.
73408         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
73409         * modules/pipe2: New file.
73410         * doc/glibc-functions/pipe2.texi: Mention the new module.
73412 2009-08-22  Bruno Haible  <bruno@clisp.org>
73414         Reference some new glibc functions.
73415         * doc/glibc-functions/accept4.texi: New file.
73416         * doc/glibc-functions/dup3.texi: New file.
73417         * doc/glibc-functions/mkostemp.texi: New file.
73418         * doc/glibc-functions/pipe2.texi: New file.
73419         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
73420         (Glibc sys/socket.h): Refer to accept4.
73421         (Glibc unistd.h): Refer to dup3, pipe2.
73422         Reported by Eric Blake.
73424 2009-08-22  Jim Meyering  <meyering@redhat.com>
73425             Bruno Haible  <bruno@clisp.org>
73427         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
73428         This makes it so packages using automake-1.11's silent-rules option
73429         can print e.g., a single "GEN    configmake.h" line, rather than
73430         the 30+ statements that perform the job.  If you want to see the
73431         actual commands, you can still run "make V=1".
73432         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
73433         so that make output is abbreviated when those variables are defined
73434         appropriately.
73435         * modules/argz: Likewise.
73436         * modules/arpa_inet: Likewise.
73437         * modules/byteswap: Likewise.
73438         * modules/configmake: Likewise.
73439         * modules/dirent: Likewise.
73440         * modules/errno: Likewise.
73441         * modules/fcntl: Likewise.
73442         * modules/float: Likewise.
73443         * modules/fnmatch: Likewise.
73444         * modules/getopt-posix: Likewise.
73445         * modules/glob: Likewise.
73446         * modules/iconv_open: Likewise.
73447         * modules/inttypes: Likewise.
73448         * modules/localcharset: Likewise.
73449         * modules/locale: Likewise.
73450         * modules/math: Likewise.
73451         * modules/netdb: Likewise.
73452         * modules/netinet_in: Likewise.
73453         * modules/poll: Likewise.
73454         * modules/posix_spawnp-tests: Likewise.
73455         * modules/sched: Likewise.
73456         * modules/search: Likewise.
73457         * modules/selinux-h: Likewise.
73458         * modules/signal: Likewise.
73459         * modules/spawn: Likewise.
73460         * modules/stdarg: Likewise.
73461         * modules/stdbool: Likewise.
73462         * modules/stddef: Likewise.
73463         * modules/stdint: Likewise.
73464         * modules/stdio: Likewise.
73465         * modules/stdlib: Likewise.
73466         * modules/string: Likewise.
73467         * modules/strings: Likewise.
73468         * modules/sys_file: Likewise.
73469         * modules/sys_ioctl: Likewise.
73470         * modules/sys_select: Likewise.
73471         * modules/sys_socket: Likewise.
73472         * modules/sys_stat: Likewise.
73473         * modules/sys_time: Likewise.
73474         * modules/sys_times: Likewise.
73475         * modules/sys_utsname: Likewise.
73476         * modules/sys_wait: Likewise.
73477         * modules/sysexits: Likewise.
73478         * modules/time: Likewise.
73479         * modules/unistd: Likewise.
73480         * modules/wchar: Likewise.
73481         * modules/wctype: Likewise.
73483 2009-08-22  Jim Meyering  <meyering@redhat.com>
73485         announce-gen: detect write failure
73486         * build-aux/announce-gen: Add Coda at end.
73487         Remove equivalent-but-more-verbose block at top.
73489 2009-08-19  Akim Demaille  <demaille@gostai.com>
73491         bootstrap: --help to stdout.
73492         * bootstrap (usage): Don't send --help to stderr.
73493         Use a here doc instead of a long string.
73495 2009-08-21  Eric Blake  <ebb9@byu.net>
73497         test-popen-safer: split from test-popen
73498         * tests/test-popen.c (main): Move...
73499         * tests/test-popen.h: ...into new file.
73500         * tests/test-popen-safer2.c: New file.
73501         * modules/popen-tests (Files): Add test-popen.h.
73502         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
73503         Suggested by Bruno Haible.
73505         test-fcntl-safer: split from test-open
73506         * tests/test-open.c (main): Move...
73507         * tests/test-open.h: ...into new file.
73508         * tests/test-fcntl-safer.c: New file.
73509         * modules/open-tests (Files): Add test-open.h.
73510         * modules/fcntl-safer-tests: New file.
73511         Suggested by Bruno Haible.
73513         test-fopen-safer: split from test-fopen
73514         * tests/test-fopen.c (main): Move...
73515         * tests/test-fopen.h: ...into new file.
73516         * tests/test-fopen-safer.c: New file.
73517         * modules/fopen-tests (Files): Add test-fopen.h.
73518         * modules/fopen-safer-tests: New file.
73519         Suggested by Bruno Haible.
73521 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
73523         popen-safer: test O_CLOEXEC at run-time.
73524         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
73526 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
73528         fcntl: move more flags to the header
73529         * lib/cloexec.c: Do not define FD_CLOEXEC here.
73530         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
73531         * lib/fcntl.in.h: Do both things here.
73533 2009-08-21  Jim Meyering  <meyering@redhat.com>
73535         consistently remove $@-t before redirecting to it
73536         * modules/argz: Remove $@-t and $@ before redirecting to the former.
73537         * modules/alloca-opt: Likewise.
73538         * modules/byteswap: Likewise.
73539         * modules/fnmatch: Likewise.
73540         * modules/getopt-posix: Likewise.
73541         * modules/glob: Likewise.
73542         * modules/poll: Likewise.
73543         * modules/posix_spawnp-tests: Likewise.
73544         * modules/sys_socket: Likewise.
73545         * modules/sysexits: Likewise.
73547 2009-08-21  Eric Blake  <ebb9@byu.net>
73549         popen: simplify access to original popen
73550         * lib/popen.c (rpl_popen): No need to worry about popen being a
73551         macro.
73552         Reported by Bruno Haible.
73554 2009-08-20  Eric Blake  <ebb9@byu.net>
73556         build: avoid some compiler warnings
73557         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
73558         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
73559         type.
73560         (new_exclude_segment, excluded_file_pattern_p)
73561         (excluded_file_name_p): Reduce scope.
73562         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
73563         old-style declaration.
73565 2009-08-20  Simon Josefsson  <simon@josefsson.org>
73567         * tests/test-exclude1.sh: Handle Windows EOL.
73568         * tests/test-exclude2.sh: Likewise.
73569         * tests/test-exclude3.sh: Likewise.
73570         * tests/test-exclude4.sh: Likewise.
73571         * tests/test-exclude5.sh: Likewise.
73572         * tests/test-exclude6.sh: Likewise.
73573         * tests/test-exclude7.sh: Likewise.
73575 2009-08-19  Akim Demaille  <demaille@gostai.com>
73577         bootstrap: find sha1sum when named gsha1sum.
73578         * bootstrap (find_tool): New.
73579         ($SHA1SUM): New.
73580         Use it.
73582 2009-08-20  Jim Meyering  <meyering@redhat.com>
73584         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
73585         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
73586         expression that converts "." in a file name to "\." in the resulting
73587         regexp.  Start with a dummy statement, so that prior shell variable
73588         definitions are expanded portably.  Reported by Simon Josefsson.
73590 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
73592         Fix polling for writeability of a screen buffer.
73593         * lib/poll.c: Distinguish input and screen buffers for the
73594         Win32 implementation.
73595         * lib/select.c: Likewise.
73597 2009-08-19  Eric Blake  <ebb9@byu.net>
73599         popen-safer: prevent popen from clobbering std descriptors
73600         * modules/popen-safer: New file.
73601         * lib/popen-safer.c: Likewise.
73602         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
73603         * lib/stdio--.h (popen): Provide override.
73604         * lib/stdio-safer.h (popen_safer): Provide declaration.
73605         * tests/test-popen.c (includes): Partially test this.
73606         * modules/popen-safer-tests: New file, for more tests.
73607         * tests/test-popen-safer.c: Likewise.
73608         * MODULES.html.sh (file stream based Input/Output): Mention it.
73610         tests: test some of the *-safer modules
73611         * modules/fopen-safer (Depends-on): Add fopen.
73612         * modules/fcntl-safer (Depends-on): Add fcntl.
73613         * modules/stdlib-safer (Depends-on): Add stdlib.
73614         (configure.ac): Set indicator.
73615         * modules/unistd-safer (configure.ac): Likewise.
73616         * modules/tmpfile-safer (configure.ac): Likewise.
73617         (Depends-on): Add tmpfile.
73618         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
73619         active.
73620         * tests/test-fopen.c (includes): Test safer versions when they are
73621         in use.
73622         * tests/test-open.c (includes): Likewise.
73624         popen: fix cygwin 1.5 bug when stdin closed
73625         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
73626         * modules/popen: New file.
73627         * modules/popen-tests: Likewise.
73628         * tests/test-popen.c: Likewise.
73629         * m4/popen.m4: Likewise.
73630         * lib/popen.c: Likewise.
73631         * lib/stdio.in.h (popen): New declaration.
73632         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
73633         * modules/stdio (Makefile.am): Likewise.
73634         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
73636 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
73638         maint.mk: give full control over update-copyright exclusions
73639         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
73640         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
73641         (update-copyright): Don't force inclusion of top-level
73642         ChangeLog.  Don't force exclusion of all COPYING files, but make
73643         them the default exclusion instead.
73645 2009-08-16  Bruno Haible  <bruno@clisp.org>
73647         Fix test failures on Solaris 10.
73648         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
73649         tests when Solaris iconv() is used.
73650         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
73651         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
73652         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
73653         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
73654         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
73656 2009-08-16  Bruno Haible  <bruno@clisp.org>
73658         Fix test failures on Solaris 10.
73659         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
73660         'tr' program and pass it as first argument.
73661         * tests/test-pipe-filter-gi1.sh: Likewise.
73662         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
73663         program as first argument.
73664         * tests/test-pipe-filter-gi1.c (main): Likewise.
73666 2009-08-16  Eric Blake  <ebb9@byu.net>
73668         fpurge: fix previous commits
73669         * modules/fpurge (Makefile.am): Make replacement conditional,
73670         partially reverting 2007-04-29 change; missed in previous
73671         attempt.
73672         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
73673         is missing.
73675 2009-08-16  Bruno Haible  <bruno@clisp.org>
73677         Clarify fpurge's effect on the file position.
73678         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
73679         * tests/test-fpurge.c (main): Make a second pass for checking the file
73680         position.
73682 2009-08-16  Bruno Haible  <bruno@clisp.org>
73684         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
73685         declaration of fpurge is missing.
73686         * tests/test-fpurge.c (main): Check that the file has not more contents
73687         than expected. Close the file before removing it.
73689 2009-08-15  Eric Blake  <ebb9@byu.net>
73691         fpurge: don't wrap working cygwin implementation
73692         * lib/fpurge.c (fpurge): Fix comment typo.
73693         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
73694         1.7 to avoid replacement.
73695         * tests/test-fpurge.c (main): Enhance test.
73697 2009-08-15  Eric Blake  <ebb9@byu.net>
73698         and Jim Meyering  <meyering@redhat.com>
73700         test-update-copyright: skip if perl is insufficient
73701         * tests/test-update-copyright.sh: Failure to run maintainer tool
73702         should not cause testsuite failure on cygwin 1.5.
73704 2009-08-14  Eric Blake  <ebb9@byu.net>
73706         doc: mention more functions added in cygwin 1.7.0
73707         * doc/posix-headers/limits.texi (limits.h): Update for recent
73708         cygwin additions.
73709         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
73710         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
73711         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
73712         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
73713         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
73715 2009-08-14  Eric Blake  <ebb9@byu.net>
73717         maint.mk: simplify update-copyright rule
73718         * top/maint.mk (update-copyright-local): Delete, and document how
73719         to do it in cfg.mk instead.
73720         (update-copyright-exclude-regexp): Delete, and document how to do
73721         it in .x-update-copyright instead.
73722         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
73723         exclude ChangeLog.
73725 2009-08-14  Bruno Haible  <bruno@clisp.org>
73727         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
73729 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
73731         maint.mk: support update-copyright-env
73732         * top/maint.mk (update-copyright-env): Define place-holder.
73733         (update-copyright): Expand $(update-copyright-env) before
73734         invoking update-copyright.
73736 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
73738         update-copyright: implement forced reformatting
73739         * build-aux/update-copyright: Implement and document
73740         UPDATE_COPYRIGHT_FORCE.
73741         * tests/test-update-copyright.sh: Test it.
73743 2009-08-14  Eric Blake  <ebb9@byu.net>
73744         and Bruno Haible  <bruno@clisp.org>
73746         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
73747         * tests/test-locale.c: Revert previous patch related to NULL.
73748         * tests/test-stdio.c: Likewise.
73749         * tests/test-stdlib.c: Likewise.
73750         * tests/test-string.c: Likewise.
73751         * tests/test-unistd.c: Likewise.
73752         * modules/time-tests (Depends-on): Add verify.
73753         * modules/wchar-tests (Depends-on): Likewise.
73754         * tests/test-time.c: Test for NULL compliance.
73755         * tests/test-wchar.c: Likewise.
73756         * modules/locale (Depends-on): Add stddef.
73757         * modules/stdio (Depends-on): Likewise.
73758         * modules/stdlib (Depends-on): Likewise.
73759         * modules/string (Depends-on): Likewise.
73760         * modules/time (Depends-on): Likewise.
73761         * modules/unistd (Depends-on): Likewise.
73762         * modules/wchar (Depends-on): Likewise.
73763         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
73764         * lib/stdlib.in.h (includes): Likewise.
73765         * lib/string.in.h (includes): Likewise.
73766         * lib/time.in.h (includes): Likewise.
73767         * lib/unistd.in.h (includes): Likewise.
73768         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
73769         replaced.
73770         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
73771         * m4/stddef_h.m4: New file.
73772         * modules/stddef: Likewise.
73773         * lib/stddef.in.h: Likewise.
73774         * modules/stddef-tests: Likewise.
73775         * tests/test-stddef.c: Likewise.
73776         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
73777         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
73778         * doc/posix-headers/locale.texi (locale.h): Likewise.
73779         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
73780         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
73781         * doc/posix-headers/string.texi (string.h): Likewise.
73782         * doc/posix-headers/time.texi (time.h): Likewise.
73783         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
73784         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
73786 2009-08-14  Eric Blake  <ebb9@byu.net>
73788         doc: improve git diff of texinfo files
73789         * .gitattributes: Add rule for *.texi files, with hint on how to
73790         use it.
73791         Copied from m4, and based on a report by Bruno Haible.
73793 2009-08-14  Bruno Haible  <bruno@clisp.org>
73795         Disable multithread support by default on Cygwin 1.5.x for real.
73796         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
73798 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
73800         update-copyright: much ado about intervals
73801         * build-aux/update-copyright: Implement and document
73802         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
73803         of copyright year intervals.
73804         Also, document UPDATE_COPYRIGHT_YEAR.
73805         * tests/test-update-copyright.sh: Test it.
73807         update-copyright: convert 2-digit to 4-digit years
73808         * build-aux/update-copyright: Implement and document.
73809         * tests/test-update-copyright.sh: Update.
73811 2009-08-14  Jim Meyering  <meyering@redhat.com>
73813         test-exclude: avoid coreutils "make check" failure
73814         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
73815         just as in test-argmatch.c.
73817 2009-08-13  Eric Blake  <ebb9@byu.net>
73819         test-dup2: fix bad assumption
73820         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
73821         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
73823         test-version-etc: fix CRLF portability issue
73824         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
73825         recognize \r.
73826         * tests/test-argp-version-etc-1.sh: Likewise.
73828         getopt: update client modules
73829         * modules/argp (Depends-on): Use getopt-gnu.
73830         * modules/git-merge-changelog (Depends-on): Likewise.
73831         * modules/long-options (Depends-on): Likewise.
73832         * modules/xstrtol (Depends-on): Likewise.
73834 2009-08-13  Simon Josefsson  <simon@josefsson.org>
73836         * tests/test-version-etc.sh: Don't fail on different
73837         project/version.  Don't fail on CRLF differences.  Rewrite to use
73838         multiple -e instead of multiple sed forks, suggested by Eric Blake
73839         <ebb9@byu.net>.
73840         * tests/test-argp-version-etc-1.sh: Likewise.
73842 2009-08-13  Simon Josefsson  <simon@josefsson.org>
73844         * tests/test-version-etc.sh: Don't fail on different
73845         project/version.
73847 2009-08-12  Bruno Haible  <bruno@clisp.org>
73849         Tests for modules 'getopt-posix', 'getopt-gnu'.
73850         * modules/getopt-posix-tests: New file.
73851         * tests/test-getopt.c: New file.
73852         * tests/test-getopt.h: New file.
73853         * tests/test-getopt_long.h: New file.
73855         New modules 'getopt-posix', 'getopt-gnu'.
73856         * modules/getopt-gnu: New file, renamed from modules/getopt.
73857         * modules/getopt-posix: New file.
73858         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
73859         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
73860         (gl_GETOPT): Remove macro.
73861         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
73862         Disable the test against BSD systems that declare optreset. Test
73863         against mingw bug. Test against lack of support of optional arguments
73864         on many platforms.
73865         * doc/glibc-headers/getopt.texi: Update module name and list of
73866         relevant platforms.
73867         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
73868         'getopt-gnu' and more portability problems.
73869         * NEWS: Mention the changes.
73871 2009-08-12  Bruno Haible  <bruno@clisp.org>
73873         Ensure that optarg etc. get declared by <unistd.h>.
73874         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
73875         AC_USE_SYSTEM_EXTENSIONS.
73876         * modules/getopt (Depends-on): Add 'extensions'.
73878 2009-08-12  Bruno Haible  <bruno@clisp.org>
73880         Avoid test link errors.
73881         * modules/pipe-filter-ii-tests (Makefile.am): Define
73882         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
73883         * modules/pipe-filter-gi-tests (Makefile.am): Define
73884         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
73885         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
73887 2009-08-12  Bruno Haible  <bruno@clisp.org>
73889         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
73890         gl_GETOPT_SUBSTITUTE before.
73891         (gl_GETOPT): Use it.
73892         * m4/argp.m4 (gl_ARGP): Update.
73893         Reported by Sergey Poznyakoff.
73895         * m4/getopt.m4: Reorder macros.
73896         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
73897         (gl_GETOPT_SUBSTITUTE): Remove macro.
73899 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73901         Minor improvement in gitlog-to-changelog
73903         * build-aux/gitlog-to-changelog: New option `--format' makes
73904         output format string configurable.
73906 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73908         Optimize exclude: use hash tables for non-wildcard patterns.
73910         * lib/exclude.c: Include hash.h and mbuiter.h
73911         (struct exclude_pattern, exclude_segment): New data types.
73912         (struct exclude): Rewrite.
73913         (fnmatch_pattern_has_wildcards): New function.
73914         (new_exclude_segment, free_exclude_segment): New functions.
73915         (excluded_file_pattern_p, excluded_file_name_p): New functions.
73916         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
73917         * lib/exclude.h (is_fnmatch_pattern): New prototype.
73918         * modules/exclude: Depend on hash and mbuiter.
73920         * modules/exclude-tests: New file.
73921         * tests/test-exclude.c: New file.
73922         * tests/test-exclude1.sh: New file.
73923         * tests/test-exclude2.sh: New file.
73924         * tests/test-exclude3.sh: New file.
73925         * tests/test-exclude4.sh: New file.
73926         * tests/test-exclude5.sh: New file.
73927         * tests/test-exclude6.sh: New file.
73928         * tests/test-exclude7.sh: New file.
73930 2009-08-12  Bruno Haible  <bruno@clisp.org>
73932         Ensure that getopt() gets declared by <unistd.h>.
73933         * lib/unistd.in.h: Conditionally include getopt.h.
73934         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
73935         Set GNULIB_UNISTD_H_GETOPT.
73936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
73937         GNULIB_UNISTD_H_GETOPT.
73938         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
73940 2009-08-12  Bruno Haible  <bruno@clisp.org>
73942         Clarify logic.
73943         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
73944         gl_replace_getopt instead of GETOPT_H.
73946 2009-08-12  Bruno Haible  <bruno@clisp.org>
73948         * m4/getopt.m4: Add comments.
73950 2009-08-12  Bruno Haible  <bruno@clisp.org>
73952         Disable multithread support by default on Cygwin 1.5.x.
73953         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
73954         set gl_use_threads=no if not specified otherwise.
73956 2009-08-11  Bruno Haible  <bruno@clisp.org>
73958         Avoid compilation error on NetBSD 5.0.
73959         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
73960         * tests/test-stdio.c: Likewise.
73961         * tests/test-stdlib.c: Likewise.
73962         * tests/test-string.c: Likewise.
73963         * tests/test-unistd.c: Likewise.
73964         Reported by Greg Troxel <gdt@ir.bbn.com>
73965         at <https://savannah.gnu.org/support/?106973>.
73967 2009-08-11  Bruno Haible  <bruno@clisp.org>
73969         * modules/dup2-tests (Depends-on): Remove close.
73971         Undo 2009-07-19 commit.
73972         * modules/acl-tests (Depends-on): Remove close.
73973         * modules/binary-io-tests (Depends-on): Likewise.
73974         * modules/closein-tests (Depends-on): Likewise.
73975         * modules/flock-tests (Depends-on): Likewise.
73976         * modules/fsync-tests (Depends-on): Likewise.
73977         * modules/lseek-tests (Depends-on): Likewise.
73978         * modules/pipe-tests (Depends-on): Likewise.
73979         * modules/posix_spawn-tests (Depends-on): Likewise.
73980         * modules/posix_spawnp-tests (Depends-on): Likewise.
73981         * modules/stat-time-tests (Depends-on): Likewise.
73982         * modules/yesno-tests (Depends-on): Likewise.
73984 2009-08-10  Bruno Haible  <bruno@clisp.org>
73986         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
73988 2009-08-10  Bruno Haible  <bruno@clisp.org>
73990         Fix a gcc warning.
73991         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
73993 2009-08-10  Bruno Haible  <bruno@clisp.org>
73995         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
73996         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
73997         not only the first time.
73998         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
73999         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
74000         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
74001         is 1, not only the first time.
74003 2009-08-10  Bruno Haible  <bruno@clisp.org>
74005         Make it possible to use module 'gethostname' without module 'close'.
74006         * lib/unistd.in.h (close): Evoke a link error only if
74007         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
74008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74009         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
74010         * modules/unistd (Makefile.am): Substitute
74011         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
74012         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
74013         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
74014         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
74015         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
74016         * modules/sys_ioctl (Makefile.am): Substitute
74017         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
74018         * modules/socket (configure.ac): On native Windows, set
74019         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
74020         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
74021         Reported by Sam Steingold <sds@gnu.org>.
74023 2009-08-10  Bruno Haible  <bruno@clisp.org>
74025         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
74026         * modules/ioctl (configure.ac): Likewise.
74028 2009-08-10  Bruno Haible  <bruno@clisp.org>
74030         Avoid collision between gnulib wrapper and libintl wrapper.
74031         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
74032         already defined in intl/printf.c.
74033         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
74034         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
74036 2009-08-09  Bruno Haible  <bruno@clisp.org>
74038         Make <sys/select.h> really self-contained, also on Solaris 10.
74039         * lib/sys_select.in.h: Include <string.h>.
74040         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
74041         Solaris 10 problem.
74042         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
74043         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
74044         Reported by Jim Meyering.
74046 2009-08-09  Bruno Haible  <bruno@clisp.org>
74048         Avoid warnings from 'aclocal' that are due to a use of macro name
74049         AM_XGETTEXT_OPTION that is not defined in automake.
74050         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
74051         automake.
74052         * modules/error (configure.ac): Likewise.
74053         * modules/propername (configure.ac): Likewise.
74054         * modules/vasprintf (configure.ac): Likewise.
74055         * modules/verror (configure.ac): Likewise.
74056         * modules/xprintf (configure.ac): Likewise.
74057         * modules/xvasprintf (configure.ac): Likewise.
74059 2009-08-08  Bruno Haible  <bruno@clisp.org>
74061         Avoid compilation error in C++ mode.
74062         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
74063         Reported by Sam Steingold <sds@gnu.org>.
74065 2009-08-08  Bruno Haible  <bruno@clisp.org>
74067         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
74068         for the various Unix platforms.
74069         * doc/posix-headers/limits.texi: Update platforms list regarding
74070         HOST_NAME_MAX.
74071         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
74073 2009-08-07  Jim Meyering  <meyering@redhat.com>
74075         selinux-at: fix typo in a comment
74076         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
74077         Spotted by Paolo Bonzini.
74079         selinux-at: remove redundant m4 code, add documentation
74080         * modules/selinux-at (configure.ac): Remove redundant code.
74081         LIB_SELINUX is already set via the dependent module, selinux-h.
74082         (Include): Add quotes around selinux-at.h.
74083         * lib/selinux-at.h: Add documentation.
74084         Reported by Bruno Haible in
74085         http://marc.info/?l=gnulib-bug&m=124958988300749
74087 2009-08-07  Bruno Haible  <bruno@clisp.org>
74089         Avoid link error on MacOS X 10.3 and 10.4.
74090         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
74091         on non-ELF systems.
74092         * lib/argp-pv.c (argp_program_version): Likewise.
74093         Reported by Simon Josefsson.
74095 2009-08-07  Simon Josefsson  <simon@josefsson.org>
74097         * tests/test-version-etc.sh: Use $EXEEXT.
74099 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
74101         update-copyright: update documentation to point to maint.mk
74102         * build-aux/update-copyright: Here.
74104 2009-08-06  Jim Meyering  <meyering@redhat.com>
74106         maint.mk: support update-copyright-local
74107         * top/maint.mk (update-copyright-local): Define place-holder.
74108         (update-copyright): Depend on $(update-copyright-local).
74110 2009-08-06  Jim Meyering  <meyering@redhat.com>
74112         selinux-at: new module
74113         Initially written for coreutils, this module will soon be
74114         used by findutils, too.
74115         * MODULES.html.sh [Misc]: Add selinux-at.
74116         * lib/selinux-at.h: New file, from coreutils.
74117         * lib/selinux-at.c: Likewise.
74118         * modules/selinux-at: Likewise.
74119         (License): Change from LGPL to GPL, since it depends
74120         on the GPL'd openat module.
74122         doc: update README
74123         * README: Remove references to cogito.
74124         Remove cvs-repo-updating instructions from 2007.
74125         Don't imply that CVS is better if you have limited disk space.
74127 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
74129         update-copyright: support C-style comments
74130         * build-aux/update-copyright: Implement and document.
74131         * tests/test-update-copyright.sh: Test.
74133 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
74135         update-copyright: support omitted "(C)"
74136         * build-aux/update-copyright: Implement and document.  Also,
74137         allow variable whitespace before "(C)".
74138         * tests/test-update-copyright.sh: Test.
74140 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
74142         update-copyright: don't trip on non-FSF copyright statements
74143         * build-aux/update-copyright: Fix so that the first correctly
74144         formatted FSF copyright statement is recognized no matter what
74145         appears before it.  Update documentation.
74146         * tests/test-update-copyright.sh: Test that.
74148 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
74150         update-copyright: clean up code a little
74151         * build-aux/update-copyright: Append "_re" to the name of any
74152         variable holding a regular expression.
74153         Replace "old" and "new" with "stmt" in variable names.
74154         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
74155         handled correctly.
74156         Format code more consistently.
74158 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
74160         update-copyright-tests: improve portability
74161         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
74162         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
74164 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
74166         update-copyright: support @copyright{} and &copy;
74167         * build-aux/update-copyright: Implement and document.
74168         * tests/test-update-copyright.sh: Test.
74170 2009-08-04  Jim Meyering  <meyering@redhat.com>
74172         update-copyright-tests: correctly test EOL=\r\n handling
74173         * tests/test-update-copyright.sh: Put \r at the end of some lines
74174         for the dos-eol tests.  Based on a patch by Joel E. Denny.
74176         maint.mk: make update-copyright exclusion list more configurable
74177         * top/maint.mk (update-copyright): Default to excluding COPYING,
74178         but allow an override, in case someone does want to update that file.
74180         maint.mk: don't update copyright date in COPYING
74181         * top/maint.mk (update-copyright): Exclude COPYING.
74183         maint.mk: add a copyright-updating rule
74184         * top/maint.mk (update-copyright): New rule.
74185         Derived from coreutils/Makefile.am.
74187         update-copyright: rename some variables
74188         * build-aux/update-copyright: Rename a few variables for clarity.
74189         Tweak syntax.  List Joel E. Denny as coauthor.
74191 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
74193         update-copyright: fix bug for 2-digit last year and add tests
74194         * build-aux/update-copyright: Fix bug.
74195         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
74196         specified.
74197         * modules/update-copyright-tests: New
74198         * tests/test-update-copyright.sh: New.
74200 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
74202         update-copyright: handle leading tabs in line prefix
74203         * build-aux/update-copyright: Count leading tabs as 8 spaces
74204         when computing margin.  This helps with the formatting of
74205         ChangeLogs, for example.
74206         Fix documentation a little.
74208 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
74210         update-copyright: support EOL=\r\n
74211         * build-aux/update-copyright: Implement that.
74213 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
74215         update-copyright: automatically format copyright statements
74216         * build-aux/update-copyright: Implement that.
74217         Also, be a little more predictable and safer by always failing
74218         when the full copyright format is not perfectly recognized as an
74219         unbroken whole.  Discussed at
74220         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
74221         Rewrite documentation.
74223 2009-08-03  Bruno Haible  <bruno@clisp.org>
74225         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
74227 2009-08-02  Bruno Haible  <bruno@clisp.org>
74229         Tests for module 'uname'.
74230         * modules/uname-tests: New file.
74231         * tests/test-uname.c: New file.
74233         New module 'uname'.
74234         * lib/uname.c: New file.
74235         * m4/uname.m4: New file.
74236         * modules/uname: New file.
74237         * doc/posix-functions/uname.texi: Mention the new module.
74239 2009-08-02  Bruno Haible  <bruno@clisp.org>
74241         Tests for module 'sys_utsname'.
74242         * modules/sys_utsname-tests: New file.
74243         * tests/test-sys_utsname.c: New file.
74245         New module 'sys_utsname'.
74246         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
74247         * m4/sys_utsname_h.m4: New file.
74248         * modules/sys_utsname: New file.
74249         * doc/posix-headers/sys_utsname.texi: Mention the new module.
74251 2009-08-02  Bruno Haible  <bruno@clisp.org>
74253         Implicitly initialize the sockets library.
74254         * lib/gethostname.c: Include sockets.h.
74255         (rpl_gethostname): Invoke gl_sockets_startup.
74256         * lib/socket.c: Include sockets.h.
74257         (rpl_socket): Invoke gl_sockets_startup.
74258         * modules/gethostname (Depends-on): Add sockets.
74259         * modules/socket (Depends-on): Likewise.
74260         * tests/test-poll.c: Don't include sockets.h.
74261         (main): Don't invoke gl_sockets_startup.
74262         * tests/test-select.c: Don't include sockets.h.
74263         (main): Don't invoke gl_sockets_startup.
74265 2009-08-02  Bruno Haible  <bruno@clisp.org>
74267         Allow multiple calls to gl_sockets_startup.
74268         * lib/sockets.c (initialized_sockets_version): New variable.
74269         (gl_sockets_startup): Do nothing if already called for this or a higher
74270         version.
74271         (gl_sockets_cleanup): Reset initialized_sockets_version.
74273 2009-08-03  Simon Josefsson  <simon@josefsson.org>
74275         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
74276         different project/version.
74278 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
74279             Bruno Haible  <bruno@clisp.org>
74281         Tests for module 'pipe-filter-gi'.
74282         * modules/pipe-filter-gi-tests: New file.
74283         * tests/test-pipe-filter-gi1.sh: New file.
74284         * tests/test-pipe-filter-gi1.c: New file.
74285         * tests/test-pipe-filter-gi2.sh: New file.
74286         * tests/test-pipe-filter-gi2-main.c: New file.
74287         * tests/test-pipe-filter-gi2-child.c: New file.
74289         New module 'pipe-filter-gi'.
74290         * lib/pipe-filter-gi.c: New file.
74291         * modules/pipe-filter-gi: New file.
74293 2009-08-02  Bruno Haible  <bruno@clisp.org>
74294             Paolo Bonzini  <bonzini@gnu.org>
74296         Tests for module 'pipe-filter-ii'.
74297         * modules/pipe-filter-ii-tests: New file.
74298         * tests/test-pipe-filter-ii1.sh: New file.
74299         * tests/test-pipe-filter-ii1.c: New file.
74300         * tests/test-pipe-filter-ii2.sh: New file.
74301         * tests/test-pipe-filter-ii2-main.c: New file.
74302         * tests/test-pipe-filter-ii2-child.c: New file.
74304         New module 'pipe-filter-ii'.
74305         * lib/pipe-filter.h: New file.
74306         * lib/pipe-filter-ii.c: New file.
74307         * lib/pipe-filter-aux.h: New file.
74308         * modules/pipe-filter-ii: New file.
74310 2009-08-02  Simon Josefsson  <simon@josefsson.org>
74312         * lib/gc-libgcrypt.c: Change copyright to FSF.
74313         * lib/gc-gnulib.c: Likewise.
74315 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
74317         * lib/gethostname.c: Include limits.h.
74319 2009-08-02  Simon Josefsson  <simon@josefsson.org>
74320             Bruno Haible  <bruno@clisp.org>
74322         Ensure HOST_NAME_MAX as part of the gethostname module.
74323         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
74324         define also HOST_NAME_MAX.
74325         * tests/test-gethostname.c: Include <limits.h>.
74326         (main): Check also HOST_NAME_MAX.
74327         * doc/posix-headers/limits.texi: Document the mingw problem.
74329 2009-08-02  Bruno Haible  <bruno@clisp.org>
74331         * lib/gethostname.c (gethostname): Fix handling of large len argument.
74332         Add comments.
74334 2009-03-31  Simon Josefsson  <simon@josefsson.org>
74336         * lib/gethostname.c: Add Windows wrapper.
74337         * m4/gethostname.m4: Look for gethostname in -lws2_32.
74338         * modules/gethostname: Depend on sys_socket & errno, for also
74339         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
74340         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
74342 2009-07-31  Jim Meyering  <meyering@redhat.com>
74344         getloadavg: fix symbol name in comment
74345         * lib/getloadavg.c: Correct a typo I introduced when adding
74346         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
74347         Matt Kraai spotted the problem.
74349 2009-07-29  Matt Kraai  <mkraai@beckman.com>
74351         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
74352         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
74353         code also if ! defined N_NAME_POINTER.
74354         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
74355         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
74356         but the n_name member is a 12-byte array.
74358 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
74360         update-copyright: generalize comment handling
74361         * build-aux/update-copyright: Handle copyright statements
74362         within more comment styles.
74363         Document usage.
74364         Report any file with an external copyright holder or parse failure.
74366 2009-07-29  Jim Meyering  <meyering@redhat.com>
74368         mktime: correct setting of REPLACE_MKTIME
74369         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
74371         update-copyright: new module
74372         * modules/update-copyright: New file.
74373         * build-aux/update-copyright: New file.
74374         * MODULES.html.sh (maint+release support): Add update-copyright.
74376 2009-07-27  Bruno Haible  <bruno@clisp.org>
74378         Fix compilation error when <ctime> is used and mktime is replaced.
74379         * lib/time.in.h (mktime): New declaration.
74380         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
74381         REPLACE_MKTIME instead of defining mktime in config.h.
74382         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
74383         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
74384         Reported by Ross McFarland <rwmcfa1@neces.com>.
74386 2009-07-27  Bruno Haible  <bruno@clisp.org>
74388         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
74389         Reported by Matt Kraai <mkraai@beckman.com>.
74391 2009-07-25  Jim Meyering  <meyering@redhat.com>
74393         maint.mk: avoid warnings about missing files
74394         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
74395         diagnostic when .prev-version does not exist.
74396         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
74397         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
74398         nonexistent cfg.mk.
74399         Suggestions from Simon Josefsson.
74401 2009-07-25  Bruno Haible  <bruno@clisp.org>
74403         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
74404         defined as macros. Needed on QNX 6.4.1.
74405         Reported by Matt Kraai <mkraai@beckman.com>.
74407 2009-07-23  Jim Meyering  <meyering@redhat.com>
74409         maint.mk: invoke "make dist" with a working value of XZ_OPT
74410         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
74412 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
74414         Make fseeko.c compile on QNX.
74415         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
74417 2009-07-22  Peter Simons  <simons@cryp.to>
74419         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
74420         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
74421         * lib/md4.h: Likewise.
74422         * lib/md5.h: Likewise.
74423         * lib/sha1.h: Likewise.
74424         * lib/sha256.h: Likewise.
74425         * lib/sha512.h: Likewise.
74427         tests-sha1: don't assign literal string to 'char *' variable
74428         * tests/test-sha1.c (main): Declare locals with "const" to match
74429         attributes of the right hand side.
74431 2009-07-21  Eric Blake  <ebb9@byu.net>
74433         dup2: fix more mingw problems
74434         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
74435         fd to itself.
74436         * doc/posix-functions/dup2.texi (dup2): Document the bug.
74437         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
74438         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
74439         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
74440         care of mingw bugs.
74442 2009-07-21  Jim Meyering  <meyering@redhat.com>
74444         vc-list-files: avoid failure when /bin/sh is dash
74445         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
74446         On some Debian based systems, /bin/sh is a symlink to dash, and running
74447         this command would omit the "/" following each 'tests' prefix:
74448           dash -x build-aux/vc-list-files -C . tests
74449         That is because bash and dash work differently:
74450           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
74451           bash ok
74452           dash odd
74454 2009-07-21  Eric Blake  <ebb9@byu.net>
74456         dup2-tests: test previous patch
74457         * modules/dup2-tests: New file.
74458         * tests/test-dup2.c: Likewise.
74459         * tests/test-open.c (main): Avoid unspecified behavior.
74460         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
74461         test.
74463         dup2: work around mingw and cygwin 1.5 bug
74464         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
74465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
74466         * modules/unistd (Makefile.am): Substitute it.
74467         * lib/unistd.in.h (dup2): Declare the replacement.
74468         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
74469         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
74470         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
74471         * modules/execute (Depends-on): Add dup2.
74472         * modules/fseterr (Depends-on): Likewise.
74473         * modules/pipe (Depends-on): Likewise.
74474         * modules/posix_spawn-internal (Depends-on): Likewise.
74476 2009-07-21  Bruno Haible  <bruno@clisp.org>
74478         * modules/.gitattributes: New file.
74480 2009-07-20  Bruno Haible  <bruno@clisp.org>
74482         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
74483         (main): Use it.
74485 2009-07-20  Eric Blake  <ebb9@byu.net>
74487         test-pipe: make a bit more robust.
74488         * tests/test-pipe.c (myerr): Allow error messages regardless of
74489         what we do to stderr.
74490         (test_pipe): Rearrange to avoid deadlock.
74491         (child_main): Try a larger read, to ensure we avoided deadlock.
74492         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
74493         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
74494         if misused.
74496 2009-07-19  Jim Meyering  <meyering@redhat.com>
74498         fts: avoid false-positive cycle-detection
74499         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
74500         for each new command line argument.
74502 2009-07-19  Bruno Haible  <bruno@clisp.org>
74504         Fix build error on mingw with the modules sys_select and unistd.
74505         * modules/acl-tests (Depends-on): Add close.
74506         * modules/binary-io-tests (Depends-on): Likewise.
74507         * modules/closein-tests (Depends-on): Likewise.
74508         * modules/flock-tests (Depends-on): Likewise.
74509         * modules/fsync-tests (Depends-on): Likewise.
74510         * modules/lseek-tests (Depends-on): Likewise.
74511         * modules/pipe-tests (Depends-on): Likewise.
74512         * modules/posix_spawn-tests (Depends-on): Likewise.
74513         * modules/posix_spawnp-tests (Depends-on): Likewise.
74514         * modules/stat-time-tests (Depends-on): Likewise.
74515         * modules/yesno-tests (Depends-on): Likewise.
74517 2009-07-19  Bruno Haible  <bruno@clisp.org>
74519         Unify conditionals.
74520         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
74521         macros, not at the compiler macros.
74522         * lib/pipe.c: Likewise.
74523         * lib/execute.c: Likewise.
74524         * lib/spawni.c: Likewise.
74526 2009-07-19  Bruno Haible  <bruno@clisp.org>
74528         Fix handling of closed stdin/stdout/stderr on mingw.
74529         * lib/w32spawn.h: Include unistd.h.
74530         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
74531         file descriptor with O_NOINHERIT flag.
74532         (fd_safer_noinherit): New function, based on fd-safer.c.
74533         (dup_safer_noinherit): New function, based on dup-safer.c.
74534         (undup_safer_noinherit): New function.
74535         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
74536         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
74537         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
74538         instead of fd_safer.
74539         * tests/test-pipe.c: Include <windows.h>.
74540         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
74541         result.
74543         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
74544         from main.
74545         (test_pipe): Pass an extra argument for disambiguation.
74546         (main): Invoke parent_main or child_main.
74548         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
74549         consistently.
74551 2009-07-18  Eric Blake  <ebb9@byu.net>
74553         test-pipe: fix mingw build
74554         * tests/test-pipe.c (main): Avoid fcntl on mingw.
74556 2009-07-18  Bruno Haible  <bruno@clisp.org>
74558         * modules/pipe-tests (Makefile.am): Fix typo.
74560 2009-07-18  Eric Blake  <ebb9@byu.net>
74562         error: fix mingw build
74563         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
74564         Reported by Bruno Haible.
74566         error: avoid undefined use of stdout
74567         * lib/error.c (error, error_at_line): Check that fd 1 is open
74568         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
74569         is handling faults and the close_stdout module wants to report the
74570         detection of closed stdout as an error.
74572 2009-07-17  Eric Blake  <ebb9@byu.net>
74574         pipe: be robust in face of closed fds
74575         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
74576         should cause child to misbehave.
74577         * modules/pipe-tests: New module.
74578         * tests/test-pipe.c: New file.
74579         * tests/test-pipe.sh: New file.
74580         Reported by Akim Demaille.
74582 2009-07-14  Bruno Haible  <bruno@clisp.org>
74584         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
74585         Reported by anonymous kc.
74587 2009-07-07  Jim Meyering  <meyering@redhat.com>
74589         maint.mk: don't look for translatable strings in *.m4 or *.mk
74590         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
74591         when searching for translatable strings.
74593 2009-07-05  Jim Meyering  <meyering@redhat.com>
74595         remove superfluous parentheses in STREQ definition
74596         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
74597         * lib/getugroups.c (STREQ): Likewise.
74598         * lib/fnmatch.c (STREQ): Likewise.
74599         Spotted by Bruno Haible.
74601 2009-07-04  Jim Meyering  <meyering@redhat.com>
74603         argv-iter: new module
74604         * MODULES.html.sh: Add argv-iter.
74605         * lib/argv-iter.c, lib/argv-iter.h: New files.
74606         * modules/argv-iter: New file.
74607         * modules/argv-iter-tests: New file.
74608         * tests/test-argv-iter.c: Test it.
74610 2009-07-04  Bruno Haible  <bruno@clisp.org>
74612         Fix assertion.
74613         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
74614         contains more exact copies of a given entry than file2, leave the extra
74615         copies unpaired rather than aborting.
74616         Reported by Eric Blake.
74618 2009-07-02  Bruno Haible  <bruno@clisp.org>
74620         Speedup git-merge-changelog for git cherry-pick.
74621         * lib/git-merge-changelog.c (struct entries_mapping): New type.
74622         (entries_mapping_get): New function, extracted from compute_mapping.
74623         (entries_mapping_reverse_get): New function.
74624         (compute_mapping): Add a 'full' argument. Return the result in a
74625         'struct entries_mapping'.
74626         (main): Update. Access the mappings through entries_mapping_get.
74627         Reported by Eric Blake.
74629 2009-07-02  Bruno Haible  <bruno@clisp.org>
74631         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
74632         best_i.
74634 2009-07-02  Bruno Haible  <bruno@clisp.org>
74636         Speed up approximate search for matching ChangeLog entries.
74637         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
74638         argument. Call fstrcmp_bounded instead of fstrcmp.
74639         (compute_mapping, try_split_merged_entry, main): Update callers.
74641 2009-07-02  Bruno Haible  <bruno@clisp.org>
74643         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
74645 2009-06-30  Bruno Haible  <bruno@clisp.org>
74647         Reduce the number of uc_is_cased calls.
74648         * lib/unicase.h (casing_suffix_context_t): Add
74649         'first_char_except_ignorable' field.
74650         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
74651         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
74652         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
74653         Update initializer.
74654         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
74655         case-ignorable characters.
74656         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
74657         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
74658         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
74659         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
74660         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
74662 2009-06-30  Bruno Haible  <bruno@clisp.org>
74664         Tests for module 'unicase/ignorable'.
74665         * modules/unicase/ignorable-tests: New file.
74666         * tests/unicase/test-ignorable.c: New file, generated by
74667         gen-uni-tables.
74669         Tests for module 'unicase/cased'.
74670         * modules/unicase/cased-tests: New file.
74671         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
74672         * tests/unicase/test-predicate-part1.h: New file, derived from
74673         tests/unictype/test-predicate-part1.h.
74674         * tests/unicase/test-predicate-part2.h: New file, same as
74675         tests/unictype/test-predicate-part2.h.
74677         Fix evaluation of "Before C" condition of FINAL_SIGMA.
74678         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
74679         (output_casing_properties): New function.
74680         (main): Call it.
74681         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
74682         * lib/unicase/cased.c: Include unictype/bitmap.h.
74683         (uc_is_cased): Define through a bitmap lookup.
74684         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
74685         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
74686         (uc_is_case_ignorable): Define through a bitmap lookup.
74687         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
74688         lib/unictype/bitmap.h.
74689         (Depends-on): Add inline. Clean up.
74690         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
74691         lib/unictype/bitmap.h.
74692         (Depends-on): Add inline. Clean up.
74693         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
74694         recognition.
74695         * tests/unicase/test-u16-tolower.c (main): Likewise.
74696         * tests/unicase/test-u32-tolower.c (main): Likewise.
74698 2009-06-30  Bruno Haible  <bruno@clisp.org>
74700         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
74701         * lib/unicase/u16-casemap.c: Likewise.
74702         * lib/unicase/u32-casemap.c: Likewise.
74704 2009-06-29  Bruno Haible  <bruno@clisp.org>
74706         Define u32_casefold as a wrapper around u32_ct_casefold.
74707         * lib/unicase/u32-casefold.c: Update.
74708         * modules/unicase/u32-casefold (Depends-on): Add
74709         unicase/u32-ct-casefold, unicase/empty-prefix-context,
74710         unicase/empty-suffix-context. Clean up.
74712         Define u16_casefold as a wrapper around u16_ct_casefold.
74713         * lib/unicase/u16-casefold.c: Update.
74714         * modules/unicase/u16-casefold (Depends-on): Add
74715         unicase/u16-ct-casefold, unicase/empty-prefix-context,
74716         unicase/empty-suffix-context. Clean up.
74718         Define u8_casefold as a wrapper around u8_ct_casefold.
74719         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
74720         * lib/unicase/u8-casefold.c: Update.
74721         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
74722         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
74724         Define u32_totitle as a wrapper around u32_ct_totitle.
74725         * lib/unicase/u32-totitle.c: Update.
74726         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
74727         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
74729         Define u16_totitle as a wrapper around u16_ct_totitle.
74730         * lib/unicase/u16-totitle.c: Update.
74731         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
74732         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
74734         Define u8_totitle as a wrapper around u8_ct_totitle.
74735         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
74736         functions.
74737         (FUNC): Delegate to U_CT_TOTITLE.
74738         * lib/unicase/u8-totitle.c: Update.
74739         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
74740         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
74742         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
74743         invocation.
74744         * modules/unicase/u32-tolower (Depends-on): Add
74745         unicase/empty-prefix-context, unicase/empty-suffix-context.
74747         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
74748         invocation.
74749         * modules/unicase/u16-tolower (Depends-on): Add
74750         unicase/empty-prefix-context, unicase/empty-suffix-context.
74752         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
74753         * modules/unicase/u8-tolower (Depends-on): Add
74754         unicase/empty-prefix-context, unicase/empty-suffix-context.
74756         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
74757         invocation.
74758         * modules/unicase/u32-toupper (Depends-on): Add
74759         unicase/empty-prefix-context, unicase/empty-suffix-context.
74761         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
74762         invocation.
74763         * modules/unicase/u16-toupper (Depends-on): Add
74764         unicase/empty-prefix-context, unicase/empty-suffix-context.
74766         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
74767         * modules/unicase/u8-toupper (Depends-on): Add
74768         unicase/empty-prefix-context, unicase/empty-suffix-context.
74770         New module 'unicase/u32-ct-casefold'.
74771         * lib/unicase/u32-ct-casefold.c: New file.
74772         * modules/unicase/u32-ct-casefold: New file.
74774         New module 'unicase/u16-ct-casefold'.
74775         * lib/unicase/u16-ct-casefold.c: New file.
74776         * modules/unicase/u16-ct-casefold: New file.
74778         New module 'unicase/u8-ct-casefold'.
74779         * lib/unicase/u8-ct-casefold.c: New file.
74780         * lib/unicase/u-ct-casefold.h: New file, derived from
74781         lib/unicase/u-casefold.h.
74782         * modules/unicase/u8-ct-casefold: New file.
74784         New module 'unicase/u32-ct-totitle'.
74785         * lib/unicase/u32-ct-totitle.c: New file.
74786         * modules/unicase/u32-ct-totitle: New file.
74788         New module 'unicase/u16-ct-totitle'.
74789         * lib/unicase/u16-ct-totitle.c: New file.
74790         * modules/unicase/u16-ct-totitle: New file.
74792         New module 'unicase/u8-ct-totitle'.
74793         * lib/unicase/u8-ct-totitle.c: New file.
74794         * lib/unicase/u-ct-totitle.h: New file, derived from
74795         lib/unicase/u-totitle.h.
74796         * modules/unicase/u8-ct-totitle: New file.
74798         New module 'unicase/u32-ct-tolower'.
74799         * lib/unicase/u32-ct-tolower.c: New file.
74800         * modules/unicase/u32-ct-tolower: New file.
74802         New module 'unicase/u16-ct-tolower'.
74803         * lib/unicase/u16-ct-tolower.c: New file.
74804         * modules/unicase/u16-ct-tolower: New file.
74806         New module 'unicase/u8-ct-tolower'.
74807         * lib/unicase/u8-ct-tolower.c: New file.
74808         * modules/unicase/u8-ct-tolower: New file.
74810         New module 'unicase/u32-ct-toupper'.
74811         * lib/unicase/u32-ct-toupper.c: New file.
74812         * modules/unicase/u32-ct-toupper: New file.
74814         New module 'unicase/u16-ct-toupper'.
74815         * lib/unicase/u16-ct-toupper.c: New file.
74816         * modules/unicase/u16-ct-toupper: New file.
74818         New module 'unicase/u8-ct-toupper'.
74819         * lib/unicase/u8-ct-toupper.c: New file.
74820         * modules/unicase/u8-ct-toupper: New file.
74822         Add context arguments to u*_casemap functions.
74823         * lib/unicase/unicasemap.h: Include unicase.h.
74824         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
74825         suffix_context arguments.
74826         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
74827         functions.
74828         (FUNC): Add prefix_context and suffix_context arguments. Use
74829         uc_is_cased and uc_is_case_ignorable.
74830         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
74831         * lib/unicase/u16-casemap.c: Likewise.
74832         * lib/unicase/u32-casemap.c: Likewise.
74833         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
74834         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
74835         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
74836         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
74837         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
74838         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
74840         New module 'unicase/u32-suffix-context'.
74841         * lib/unicase/u32-suffix-context.c: New file.
74842         * modules/unicase/u32-suffix-context: New file.
74844         New module 'unicase/u16-suffix-context'.
74845         * lib/unicase/u16-suffix-context.c: New file.
74846         * modules/unicase/u16-suffix-context: New file.
74848         New module 'unicase/u8-suffix-context'.
74849         * lib/unicase/u8-suffix-context.c: New file.
74850         * lib/unicase/u-suffix-context.h: New file.
74851         * modules/unicase/u8-suffix-context: New file.
74853         New module 'unicase/empty-suffix-context'.
74854         * lib/unicase/empty-suffix-context.c: New file.
74855         * modules/unicase/empty-suffix-context: New file.
74857         New module 'unicase/u32-prefix-context'.
74858         * lib/unicase/u32-prefix-context.c: New file.
74859         * modules/unicase/u32-prefix-context: New file.
74861         New module 'unicase/u16-prefix-context'.
74862         * lib/unicase/u16-prefix-context.c: New file.
74863         * modules/unicase/u16-prefix-context: New file.
74865         New module 'unicase/u8-prefix-context'.
74866         * lib/unicase/u8-prefix-context.c: New file.
74867         * lib/unicase/u-prefix-context.h: New file.
74868         * lib/unicase/context.h: New file.
74869         * modules/unicase/u8-prefix-context: New file.
74871         New module 'unicase/empty-prefix-context'.
74872         * lib/unicase/empty-prefix-context.c: New file.
74873         * modules/unicase/empty-prefix-context: New file.
74875         New module 'unicase/ignorable'.
74876         * lib/unicase/ignorable.c: New file.
74877         * modules/unicase/ignorable: New file.
74879         New module 'unicase/cased'.
74880         * lib/unicase/caseprop.h: New file.
74881         * lib/unicase/cased.c: New file.
74882         * modules/unicase/cased: New file.
74884         New functions for case mapping of substrings.
74885         * lib/unicase.h (casing_prefix_context_t): New type.
74886         (unicase_empty_prefix_context): New variable.
74887         (u8_casing_prefix_context, u16_casing_prefix_context,
74888         u32_casing_prefix_context, u8_casing_prefixes_context,
74889         u16_casing_prefixes_context, u32_casing_prefixes_context): New
74890         declarations.
74891         (casing_suffix_context_t): New type.
74892         (unicase_empty_suffix_context): New variable.
74893         (u8_casing_suffix_context, u16_casing_suffix_context,
74894         u32_casing_suffix_context, u8_casing_suffixes_context,
74895         u16_casing_suffixes_context, u32_casing_suffixes_context,
74896         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
74897         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
74898         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
74899         declarations.
74901 2009-06-28  Jim Meyering  <meyering@redhat.com>
74903         boostrap: indent only with spaces
74904         * build-aux/bootstrap: Indent only with spaces, never TABs.
74906         bootstrap: split long lines
74907         * build-aux/bootstrap: Keep line length < 80.
74909         bootstrap: sync from coreutils
74910         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
74911         just as autoreconf does.  Verify a list of prerequisite
74912         package-name,version-number pairs if defined in bootstrap.conf.
74913         Refer to README-prereq, if prerequisites are not satisfied.
74915 2009-06-27  Eric Blake  <ebb9@byu.net>
74917         tests: add test for bogus NULL definition
74918         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
74919         * tests/test-stdlib.c: Likewise.
74920         * tests/test-string.c: Likewise.
74921         * tests/test-locale.c: Likewise.
74922         * tests/test-unistd.c: Likewise.
74923         * modules/stdio-tests (Depends-on): Add verify.
74924         * modules/stdlib-tests (Depends-on): Likewise.
74925         * modules/string-tests (Depends-on): Likewise.
74926         * modules/locale-tests (Depends-on): Likewise.
74927         * modules/unistd-tests (Depends-on): Likewise.
74929 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
74931         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
74932         self-explaining comment.
74933         * m4/selinux-selinux-h: Update serial.
74934         (gl_LIBSELINUX): New macro, adding a warning for missing development
74935         packages to code extracted from...
74936         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
74937         Add warning for missing development packages here, too.
74939 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
74941         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
74943 2009-06-25  Eric Blake  <ebb9@byu.net>
74945         version-etc: fix regression
74946         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
74947         gcc.
74948         (version_etc): Use it, to catch bugs with trailing NULL.
74949         * lib/version-etc.c (version_etc_arn): Delete unused argument.
74950         (version_etc_va): Fix logic bug.
74951         * modules/version-etc-tests: Add test.
74952         * tests/test-version-etc.c: New file.
74953         * tests/test-version-etc.sh: Likewise.
74955 2009-06-25  Sam Steingold  <sds@gnu.org>
74957         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
74958         mbtowc declaration.
74960 2009-06-25  Eric Blake  <ebb9@byu.net>
74962         fpurge: migrate into <stdio.h>
74963         * lib/fpurge.h: Delete...
74964         * lib/stdio.in.h (fpurge): ...and declare here, instead.
74965         * lib/fpurge.c (fpurge): Change declaring header.
74966         * modules/fpurge (Files): Drop deleted file.
74967         (Depends-on): Add stdio.
74968         (configure.ac): Set witness.
74969         * modules/stdio (Makefile.am): Support fpurge macros.
74970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
74971         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
74972         * lib/fflush.c: Update client.
74973         * tests/test-fpurge.c: Likewise.
74974         * NEWS: Mention the change.
74976 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74978         * lib/argp-version-etc.c (program_authors): Add const
74979         qualifier.
74980         * lib/version-etc.c: Fix typos in the comments.
74981         * modules/argp-version-etc: Depends on version-etc.
74983 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74985         argp-version-etc: new module.
74987         * lib/argp-version-etc.c: New file.
74988         * lib/argp-version-etc.h: New file.
74989         * modules/argp-version-etc: New file.
74990         * modules/argp-version-etc-tests: New file.
74991         * tests/test-argp-version-etc.c: New test.
74992         * tests/test-argp-version-etc-1.sh: New test.
74994 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74996         Provide additional interfaces and documentation for version-etc
74997         module.
74999         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
75000         interfaces.
75001         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
75002         prototypes.
75004 2009-06-24  Bruno Haible  <bruno@clisp.org>
75006         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
75007         HAVE_LIB${NAME} macro.
75008         Reported by Sam Steingold <sds@gnu.org>.
75010 2009-06-23  Simon Josefsson  <simon@josefsson.org>
75012         * modules/hash-tests (test_hash_LDADD): Link to libintl when
75013         needed.
75015 2009-06-21  Bruno Haible  <bruno@clisp.org>
75017         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
75018         work.
75019         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
75020         together with LIB${NAME}, LTLIB${NAME}.
75021         Reported by Sam Steingold <sds@gnu.org>.
75023 2009-06-20  Jim Meyering  <meyering@redhat.com>
75025         tests: make sc_require_test_exit_idiom more generic
75026         * top/maint.mk (Exit_witness_file): New overridable variable.
75027         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
75028         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
75030 2009-06-19  Jim Meyering  <meyering@redhat.com>
75032         hash: reverse order of src/dst parameters in an internal interface
75033         * lib/hash.c (transfer_entries): Reverse order of parameters to
75034         put DST before SRC.  Adjust callers.
75036         tests: test-hash: avoid wholesale duplication
75037         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
75038         Instead, use a loop and add a single conditional.
75040         tests: test-hash: allow seed selection via a command line argument
75041         * tests/test-hash.c (get_seed): New function.
75042         (main): Use it.
75044 2009-06-19  Eric Blake  <ebb9@byu.net>
75046         hash: avoid memory leak on allocation failure
75047         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
75048         failure.  Factor repeated algorithm...
75049         (transfer_entries): ...into new helper routine.
75050         (hash_delete): React to hash_rehash return value.
75052         hash: reduce memory pressure in hash_rehash no-op case
75053         * lib/hash.c (next_prime): Avoid overflow.
75054         (hash_initialize): Factor bucket size computation...
75055         (compute_bucket_size): ...into new helper function.
75056         (hash_rehash): Use new function and open coding to reduce memory
75057         pressure, and avoid a memory leak in USE_OBSTACK code.
75058         Reported by Jim Meyering.
75060 2009-06-18  Eric Blake  <ebb9@byu.net>
75062         hash: make rotation more obvious
75063         * modules/hash (Depends-on): Add bitrotate and stdint.
75064         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
75065         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
75066         (SIZE_MAX): Rely on headers for definition.
75067         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
75068         (raw_hasher): Use rotr_sz.
75069         Suggested by Jim Meyering.
75071         hash: fix memory leak in last patch
75072         * lib/hash.c (hash_rehash): Avoid memory leak.
75074         hash: avoid no-op rehashing
75075         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
75077         hash: provide default callback functions
75078         * lib/hash.c (raw_hasher, raw_comparator): New functions.
75079         (hash_initialize): Use them as defaults.
75080         * tests/test-hash.c (main): Test this.
75082         hash: minor optimization
75083         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
75084         when possible.
75085         (hash_initialize): Document this promise.
75086         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
75087         * tests/test-hash.c (hash_compare_strings): Test this.
75089 2009-06-18  Bruno Haible  <bruno@clisp.org>
75091         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
75092         going to be replaced anyway.
75094 2009-06-18  Bruno Haible  <bruno@clisp.org>
75096         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
75097         in one place.
75098         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
75099         be replaced anyway.
75101 2009-06-18  Eric Blake  <ebb9@byu.net>
75103         hash: check for resize before insertion
75104         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
75105         threshold before insertion, so that a pathological hash_rehash
75106         that fills every bucket can still trigger another rehash.
75108 2009-06-18  Jim Meyering  <meyering@redhat.com>
75110         hash-tests: add a loop around the small tests
75111         * tests/test-hash.c (main): Repeat small tests with selected
75112         small initial table sizes.
75114 2009-06-17  Eric Blake  <ebb9@byu.net>
75116         hash: minor cleanups
75117         * lib/hash.h (hash_entry): Make opaque, by moving...
75118         * lib/hash.c (hash_entry): ...here.
75119         (hash_insert): Clarify restrictions on what can be inserted.
75120         (hash_get_next): Clarify when it is safe to remove an element
75121         during traversal.
75122         (check_tuning): Skip verification when tuning is known safe.
75123         (hash_initialize): Clarify restrictions on tuning.
75125 2009-06-17  Jim Meyering  <jim@meyering.net>
75126         and Eric Blake  <ebb9@byu.net>
75128         hash-tests: new module
75129         * modules/hash-tests: New file.
75130         * tests/test-hash.c: New file.
75132 2009-06-17  Eric Blake  <ebb9@byu.net>
75134         strstr-simple: document new module
75135         * MODULES.html.sh: Document new module.
75137         strstr, strcasestr: replace on platforms with broken memchr
75138         * modules/strstr: Split into...
75139         * modules/strstr-simple: ...new module that does not care about
75140         performance, but does care about glibc bug.
75141         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
75142         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
75143         if platform memchr is broken, per Debian bug 521737.
75144         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
75145         memchr.
75146         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
75147         * doc/posix-functions/strstr.texi (strstr): Document the fix.
75148         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
75149         * modules/mountlist (Depends-on): Add strstr-simple.
75150         * modules/gen-uni-tables (Depends-on): Likewise.
75151         * modules/argz (Depends-on): Add strstr.
75153 2009-06-17  Bruno Haible  <bruno@clisp.org>
75155         * modules/posix_spawn-internal (Depends-on): Add errno.
75157 2009-06-17  Bruno Haible  <bruno@clisp.org>
75159         Define missing ESTALE on Interix 3.5.
75160         * lib/errno.in.h (ESTALE): Assign a value if missing.
75161         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
75162         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
75163         missing.
75164         * doc/posix-headers/errno.texi: Mention the Interix bug.
75165         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
75167 2009-06-15  Eric Blake  <ebb9@byu.net>
75169         memchr, memchr2: add valgrind exception
75170         * lib/memchr.valgrind: New file.
75171         * lib/memchr2.valgrind: New file.
75172         * modules/memchr (Files): Distribute valgrind file.
75173         * modules/memchr2 (Files): Likewise.
75175         docs: memchr is no longer obsolete
75176         * MODULES.html.sh: Move memchr from obsolete to string.h section.
75177         * lib/string.in.h (memchr): Simplify logic.
75179 2009-06-14  Jim Meyering  <meyering@redhat.com>
75181         link-follow: fix the "checking..." message to not mention trailing slash
75182         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
75183         never considered trailing slashes.
75185 2009-06-14  Bruno Haible  <bruno@clisp.org>
75187         * m4/memchr.m4: Mention also the bug on IA-64.
75188         * doc/posix-functions/memchr.texi: Likewise.
75190 2009-06-12  Eric Blake  <ebb9@byu.net>
75192         memchr: detect broken x86_64 and alpha implementations
75193         * modules/memchr-tests (Depends-on): Move mmap detection...
75194         * modules/memchr (Depends-on): ...here.
75195         (configure.ac): Set indicator.
75196         * lib/string.in.h (memchr): Declare replacement.
75197         * modules/string (Makefile.am): Trigger replacement.
75198         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
75199         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
75200         bugs.
75201         * doc/posix-functions/memchr.texi (memchr): Document the bug.
75202         * modules/getpagesize (License): Relax license.
75204 2009-06-11  Bruno Haible  <bruno@clisp.org>
75206         * lib/idpriv.h: Add more references.
75208 2009-06-08  Bruno Haible  <bruno@clisp.org>
75210         Tests for module 'idpriv-droptemp'.
75211         * modules/idpriv-droptemp-tests: New file.
75212         * tests/test-idpriv-droptemp.sh: New file.
75213         * tests/test-idpriv-droptemp.su.sh: New file.
75214         * tests/test-idpriv-droptemp.c: New file.
75216         New module 'idpriv-droptemp'.
75217         * lib/idpriv-droptemp.c: New file.
75218         * modules/idpriv-droptemp: New file.
75220 2009-06-08  Bruno Haible  <bruno@clisp.org>
75222         Tests for module 'idpriv-drop'.
75223         * modules/idpriv-drop-tests: New file.
75224         * tests/test-idpriv-drop.sh: New file.
75225         * tests/test-idpriv-drop.su.sh: New file.
75226         * tests/test-idpriv-drop.c: New file.
75228         New module 'idpriv-drop'.
75229         * lib/idpriv.h: New file.
75230         * lib-idpriv-drop.c: New file.
75231         * m4/idpriv.m4: New file.
75232         * modules/idpriv-drop: New file.
75234 2009-06-08  Bruno Haible  <bruno@clisp.org>
75236         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
75237         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
75238         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
75239         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
75240         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
75241         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
75242         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
75244 2009-06-08  Eric Blake  <ebb9@byu.net>
75246         test-strstr: use memory fence, when possible
75247         * tests/test-strstr.c (main): Use memory fence, in order to be
75248         more likely to trigger Debian bug 521737.
75249         * modules/strstr-tests (Files): Pull in additional files.
75251         memchr: no longer obsolete, for wider field testing
75252         * modules/memchr (Status, Notice): Delete, this module is no
75253         longer obsolete.
75254         * modules/vasnprintf (Depends-on): Add memchr.
75256 2009-06-07  Jim Meyering  <meyering@redhat.com>
75258         hash: declare some functions with the warn_unused_result attribute
75259         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
75261 2009-06-07  Bruno Haible  <bruno@clisp.org>
75263         * tests/test-alignof.c: Don't test int64_t if it does not exist.
75264         Reported by Eric Blake.
75266 2009-06-06  Eric Blake  <ebb9@byu.net>
75268         test-alignof: fix typo with long double
75269         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
75270         compiler error.
75272 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
75274         Escape non-texinfo { and }s.
75275         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
75276         markup error.
75278 2009-06-04  Jim Meyering  <meyering@redhat.com>
75280         gitlog-to-changelog: don't infloop on an empty commit log
75281         * build-aux/gitlog-to-changelog: Warn about an empty log message.
75282         Reported by Boris Petersen <transacid@centerim.org>.
75284 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
75286         version-etc: extend for packagers
75287         Add three new configure options, intended for packagers:
75288           --with-packager="packager name"
75289           --with-packager-version="packager-specific version"
75290           --with-packager-bug-reports="packager bug reporting"
75291         An example with coreutils:
75292           $ ./configure \
75293             --with-packager=Gentoo \
75294             --with-packager-bug-report=http://bugs.gentoo.org/ \
75295             --with-packager-version="patchset 1.6"
75296           $ ./src/ls --version | head -n2
75297           ls (GNU coreutils) 7.1-dirty
75298           Packaged by Gentoo (patchset 1.6)
75299         Note that the bug reporting info via --help doesn't show up because
75300         coreutils uses its own custom emit_bug_reporting_address() implementation
75301         in src/system.h.  If it didn't, it'd look like:
75302           $ ./src/ls --help | tail -n4
75303           Report bugs to <bug-coreutils@gnu.org>.
75304           Report Gentoo bugs to <http://bugs.gentoo.org/>.
75305           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
75306           General help using GNU software: <http://www.gnu.org/gethelp/>.
75307         * lib/version-etc.c: Print new information, if provided.
75308         * m4/version-etc.m4: New file.
75309         * modules/version-etc (Files): Add m4/version-etc.m4.
75310         (configure.ac): Add gl_VERSION_ETC.
75312 2009-05-31  Bruno Haible  <bruno@clisp.org>
75314         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
75315         and 'int64_t'.
75316         * modules/alignof-tests (Dependencies): Add stdint.
75317         Reported by Eric Blake.
75319 2009-05-31  Bruno Haible  <bruno@clisp.org>
75321         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
75322         restriction due to compiler bugs.
75323         Reported by Eric Blake.
75325 2009-05-31  Simon Josefsson  <simon@josefsson.org>
75326             Bruno Haible  <bruno@clisp.org>
75328         Fix test-alignof failure.
75329         * lib/alignof.h (alignof_slot): New macro.
75330         (alignof_type): New macro, with the same semantics as the previous
75331         'alignof'.
75332         (alignof): Alias to alignof_slot.
75333         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
75334         check that the results are usable as constant expressions.
75336 2009-05-31  Bruno Haible  <bruno@clisp.org>
75338         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
75339         * tests/test-memchr.c (main): Check that memchr does not read past the
75340         first occurrence of the byte.
75341         * tests/test-strstr.c (main): Update comment.
75342         Suggested by Eric Blake.
75344 2009-05-30  Bruno Haible  <bruno@clisp.org>
75346         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
75347         detail how to use dumpbin.
75348         Reported by David Byron <dbyron@dbyron.com>.
75350 2009-06-02  Simon Josefsson  <simon@josefsson.org>
75352         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
75354 2009-06-02  Simon Josefsson  <simon@josefsson.org>
75356         * m4/manywarnings.m4: Add GCC 4.4 warnings.
75358 2009-05-28  Bruno Haible  <bruno@clisp.org>
75360         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
75361         build-aux/ files.
75363 2009-05-28  Simon Josefsson  <simon@josefsson.org>
75365         * gnulib-tool (func_import): Transform license on build-aux/ files too.
75367 2009-05-27  Simon Josefsson  <simon@josefsson.org>
75369         * gnulib-tool (sed_transform_main_lib_file)
75370         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
75371         regexps.
75373 2009-05-26  Simon Josefsson  <simon@josefsson.org>
75375         * tests/test-strstr.c: Add another self-test.
75376         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
75377         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
75379 2009-05-23  Bruno Haible  <bruno@clisp.org>
75381         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
75382         change.
75384 2009-05-21  Bruno Haible  <bruno@clisp.org>
75386         Simplify use of mode_t varargs.
75387         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
75388         uses 'mode_t' or 'int'.
75389         * lib/openat.c (openat): Likewise.
75390         * lib/open-safer.c (open_safer): Likewise.
75391         * m4/mode_t.m4: New file.
75392         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
75393         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
75394         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
75395         * modules/open (Files): Add m4/mode_t.m4.
75396         * modules/openat (Files): Likewise.
75397         * modules/fcntl-safer (Files): Likewise.
75398         Suggested by Eric Blake.
75400 2009-05-21  Pádraig Brady  <P@draigbrady.com>
75402         * doc/glibc-functions/fallocate.texi: New file.
75403         * doc/gnulib.texi: Include it.
75405 2009-05-21  Eric Blake  <ebb9@byu.net>
75406             Bruno Haible  <bruno@clisp.org>
75408         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
75409         invocations.
75410         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
75412 2009-05-21  Eric Blake  <ebb9@byu.net>
75413             Bruno Haible  <bruno@clisp.org>
75415         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
75416         include_next. Fix of 2008-11-20 commit.
75417         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
75418         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
75419         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
75420         NEXT_MATH_H.
75421         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
75422         instead of NEXT_MATH_H.
75424 2009-05-21  Bruno Haible  <bruno@clisp.org>
75426         Avoid redefinition warnings for SIZE_MAX.
75427         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
75428         Reported by Simon Josefsson.
75430 2009-05-21  Bruno Haible  <bruno@clisp.org>
75432         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
75433         AC_CACHE_VAL.
75435 2009-05-20  Bruno Haible  <bruno@clisp.org>
75437         Make zeroptr.h work on mingw.
75438         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
75439         mprotect.
75440         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
75441         * modules/memchr2-tests (configure.ac): Likewise.
75442         * modules/memcmp-tests (configure.ac): Likewise.
75443         * modules/memmem-tests (configure.ac): Likewise.
75444         * modules/memrchr-tests (configure.ac): Likewise.
75445         Reported by Simon Josefsson.
75447 2009-05-20  Simon Josefsson  <simon@josefsson.org>
75449         * tests/test-glob.c: Include string.h for strcmp prototype.
75451 2009-05-20  Simon Josefsson  <simon@josefsson.org>
75453         * modules/getdelim (Depends-on): Add explicit stdint, although it
75454         was implicitly already pulled in via realloc-posix.
75455         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
75457 2009-05-20  Simon Josefsson  <simon@josefsson.org>
75459         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
75460         G. Christensen" <tgc@jupiterrise.com>.
75461         * m4/sys_socket_h.m4: Check for sa_family_t.
75462         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
75463         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
75464         * tests/test-sys_socket.c: Check that sa_family_t works.
75466 2009-05-18  Eric Blake  <ebb9@byu.net>
75468         maint.mk: allow gnulib_dir in VPATH build
75469         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
75471 2009-05-15  Jim Meyering  <meyering@redhat.com>
75473         maint.mk: Give gnulib_dir a default definition.
75474         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
75475         Thus, most packages no longer need to specify this variable in cfg.mk
75477 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
75479         rename.m4: fix typos that would make non-mingw cross-configure fail
75480         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
75482 2009-05-13  Eric Blake  <ebb9@byu.net>
75484         mmap-anon: avoid out-of-order autoconf expansion
75485         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
75486         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
75487         * modules/memchr-tests (Depends-on): Add extensions.
75488         * modules/memchr2-tests (Depends-on): Add extensions.
75489         * modules/memcmp-tests (Depends-on): Add extensions.
75490         * modules/memmem-tests (Depends-on): Add extensions.
75491         * modules/memrchr-tests (Depends-on): Add extensions.
75493 2009-05-13  Bruno Haible  <bruno@clisp.org>
75495         Make some tests ISO C 99 compliant.
75496         * tests/zerosize-ptr.h: New file.
75497         * tests/test-memchr.c: Include zerosize-ptr.h.
75498         (main): Use a zero-size object pointer instead of NULL.
75499         * tests/test-memchr2.c: Include zerosize-ptr.h.
75500         (main): Use a zero-size object pointer instead of NULL.
75501         * tests/test-memcmp.c: Include zerosize-ptr.h.
75502         (main): Use a zero-size object pointer instead of NULL.
75503         * tests/test-memmem.c: Include zerosize-ptr.h.
75504         (main): Use a zero-size object pointer instead of NULL.
75505         * tests/test-memrchr.c: Include zerosize-ptr.h.
75506         (main): Use a zero-size object pointer instead of NULL.
75507         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
75508         m4/mmap-anon.m4.
75509         (Depends-on): Add getpagesize.
75510         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
75511         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
75512         m4/mmap-anon.m4.
75513         (Depends-on): Add getpagesize.
75514         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
75515         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
75516         m4/mmap-anon.m4.
75517         (Depends-on): Add getpagesize.
75518         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
75519         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
75520         m4/mmap-anon.m4.
75521         (Depends-on): Add getpagesize.
75522         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
75523         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
75524         m4/mmap-anon.m4.
75525         (Depends-on): Add getpagesize.
75526         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
75528 2009-05-12  Bruno Haible  <bruno@clisp.org>
75530         Tests for module 'alignof'.
75531         * modules/alignof-tests: New file.
75532         * tests/test-alignof.c: New file.
75534 2009-05-12  Bruno Haible  <bruno@clisp.org>
75536         Fix alignof macro.
75537         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
75538         vendor compilers that are always correct.
75540 2009-05-12  Bruno Haible  <bruno@clisp.org>
75542         Make the MAP_ANONYMOUS detection work on HP-UX 11.
75543         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
75544         not whether its fully works.
75546 2009-05-12  Bruno Haible  <bruno@clisp.org>
75548         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
75550 2009-05-12  Jim Meyering  <meyering@redhat.com>
75552         * top/maint.mk: Adjust backslash alignment.
75554 2009-05-11  Simon Josefsson  <simon@josefsson.org>
75556         * top/maint.mk: Make $(srcdir)/build-aux configurable.
75558 2009-05-11  Eric Blake  <ebb9@byu.net>
75560         argp: avoid undefined behavior
75561         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
75562         macros.
75564 2009-05-08  Simon Josefsson  <simon@josefsson.org>
75566         * tests/test-vc-list-files-git.sh: Do git config of user.email and
75567         user.name to prevent git commit from complaining.
75569 2009-05-10  Bruno Haible  <bruno@clisp.org>
75571         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
75572         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
75573         it rewrites every file name only once.
75574         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
75576 2009-05-08  Bruno Haible  <bruno@clisp.org>
75578         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
75579         instead of 'max'.
75581 2009-05-08  Simon Josefsson  <simon@josefsson.org>
75583         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
75584         sockaddr_storage test.
75586 2009-05-07  Simon Josefsson  <simon@josefsson.org>
75588         * modules/sys_socket (Makefile.am): Substitute
75589         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
75590         * m4/sys_socket_h.m4: Check for sockaddr_storage.
75591         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
75592         * tests/test-sys_socket.c: Check sockaddr_storage.
75594 2009-05-08  Bruno Haible  <bruno@clisp.org>
75596         New module 'alignof'.
75597         * lib/alignof.h: New file.
75598         * modules/alignof: New file.
75600 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
75601             Bruno Haible  <bruno@clisp.org>
75603         Fix test-file-has-acl on FreeBSD.
75604         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
75605         mask is implicitly added.
75606         * tests/test-file-has-acl.c: Include <signal.h>.
75607         (main): Terminate the test after 5 seconds.
75608         * modules/acl-tests (configure.ac): Check for alarm function.
75610 2009-05-04  Bruno Haible  <bruno@clisp.org>
75612         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
75613         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
75614         * modules/errno (configure.ac): Drop AC_REQUIRE.
75615         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
75616         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
75618 2009-05-04  Simon Josefsson  <simon@josefsson.org>
75620         * modules/glob-tests: New module.
75621         * tests/test-glob.c: Add.
75623 2009-05-04  Simon Josefsson  <simon@josefsson.org>
75625         * modules/fnmatch-tests: New module.
75626         * tests/test-fnmatch.c: Add.
75628 2009-05-04  Eric Blake  <ebb9@byu.net>
75630         maint: make the new no-submodule-changes rule VPATH-safe
75631         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
75633 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
75634             Bruno Haible  <bruno@clisp.org>
75636         acl: Fix infinite loop on FreeBSD.
75637         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
75638         of return value from acl_get_entry.
75639         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
75640         Likewise.
75642 2009-05-03  Bruno Haible  <bruno@clisp.org>
75644         * lib/acl-internal.h (acl_entries): Clarify return value.
75645         * lib/acl_entries.c (acl_entries): Likewise.
75647 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
75649         Bug fix in acl module.
75650         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
75652 2009-05-03  Bruno Haible  <bruno@clisp.org>
75654         Create gperf-generated file in the source dir, not in the build dir.
75655         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
75656         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
75657         * modules/unicase/locale-language (unicase/locale-languages.h):
75658         Likewise.
75659         * modules/unicase/special-casing (unicase/special-casing-table.h):
75660         Likewise.
75661         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
75662         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
75663         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
75664         Reported by Ralf Wildenhues.
75666 2009-05-03  Bruno Haible  <bruno@clisp.org>
75668         * modules/fnmatch (Description, configure.ac): Taken from
75669         fnmatch-posix.
75670         * modules/fnmatch-posix: Turn into a symbolic reference to the
75671         'fnmatch' module, and deprecate.
75672         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
75674 2009-05-03  Bruno Haible  <bruno@clisp.org>
75676         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
75677         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
75678         Reported by Ralf Wildenhues.
75680 2009-05-04  Simon Josefsson  <simon@josefsson.org>
75682         * m4/fnmatch.m4: Fix fnmatch re-define.
75684 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
75686         priv-set: new module and tests; adapt write-any-file
75687         * lib/priv-set.c: New file.
75688         * lib/priv-set.h: New file.
75689         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
75690         * lib/write-any-file.c: Simplify by using priv-set module.
75691         * m4/priv-set.m4: New file.
75692         * modules/priv-set: New file.
75693         * modules/unlinkdir: Add dependency on priv-set module.
75694         * modules/write-any-file: Likewise.
75696         Tests for module 'priv-set'.
75697         * modules/priv-set-tests: New file.
75698         * tests/test-priv-set.c: New file.
75700 2009-05-03  Jim Meyering  <meyering@redhat.com>
75701             Bruno Haible  <bruno@clisp.org>
75703         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
75704         use the converted UTF-8 variant of the name instead.
75706 2009-05-03  Jim Meyering  <meyering@redhat.com>
75708         tests: tighten some getdate tests
75709         * tests/test-getdate.c (main): Tighten tests: require equality,
75710         not just greater than.  Set TZ envvar to UTC0.
75712 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
75714         getdate: correctly interpret "next monday" when run on a Monday
75715         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
75716         that e.g., "next tues" (when run on a tuesday) results in a date
75717         that is one week in the future, and not today's date.
75718         I.e., add a week when the wday is the same as the current one.
75719         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
75720         and earlier by Martin Bernreuther and Jan Minář.
75721         * tests/test-getdate.c (main): Check that "next DAY" is always in
75722         the future and that "last DAY" is always in the past.
75724 2009-05-02  Jim Meyering  <meyering@redhat.com>
75726         build: ensure that a release build fails when a submodule is unclean
75727         * top/maint.mk (no-submodule-changes): New rule.
75728         (alpha beta major): Depend on it.
75730 2009-05-02  Bruno Haible  <bruno@clisp.org>
75732         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
75733         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
75734         shell variable gl_fnmatch_required to detect which variant is
75735         requested.
75736         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
75737         gl_FUNC_FNMATCH_POSIX.
75738         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
75739         exclude fnmatch-posix.
75741 2009-05-02  Bruno Haible  <bruno@clisp.org>
75743         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
75744         * modules/mbsrtowcs (License): Change to LGPLv2+.
75745         * modules/strnlen1 (License): Likewise.
75746         Reported by Simon Josefsson.
75748 2009-05-02  Bruno Haible  <bruno@clisp.org>
75750         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
75751         "cross".
75752         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
75753         gnulib-tool was called with option --source-base=lib.
75755 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75757         Use automake *-local hooks without commands, for extensibility.
75758         * modules/localcharset (Makefile.am): Rename install-exec-local
75759         rule to install-exec-localcharset, and make it a prerequisite of
75760         install-exec-local.  Likewise, rename the uninstall-local rule to
75761         uninstall-localcharset, and make it a prerequisite of the former.
75763 2009-05-01  Bruno Haible  <bruno@clisp.org>
75765         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
75766         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
75767         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
75768         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
75769         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
75770         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
75771         m4/locale-zh.m4, m4/codeset.m4.
75773         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
75774         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
75775         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
75776         m4/locale-zh.m4.
75778         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
75779         REPLACE_WCRTOMB if mbstate_t must be replaced.
75780         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
75781         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
75783 2009-05-01  Bruno Haible  <bruno@clisp.org>
75785         Avoid compiler warnings when redefining macros defined by <libintl.h>.
75786         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
75787         dngettext, dcngettext, textdomain, bindtextdomain,
75788         bind_textdomain_codeset): Undefine before redefining.
75790 2009-04-30  Bruno Haible  <bruno@clisp.org>
75792         Fix bug introduced on 2009-04-25.
75793         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
75794         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
75795         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
75796         is defined.
75797         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
75798         is defined.
75799         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
75800         is defined.
75801         Reported by Elbert_Pol <elbert.pol@gmail.com>.
75803 2009-04-28  Bruno Haible  <bruno@clisp.org>
75805         Comment tweaks.
75806         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
75807         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
75808         * lib/unicase.h (u*_casexfrm): Likewise.
75809         Reported by Paolo Bonzini.
75811 2009-04-28  Bruno Haible  <bruno@clisp.org>
75813         Fix a compilation error.
75814         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
75815         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
75816         Reported by Jim Meyering.
75818 2009-04-27  Bruno Haible  <bruno@clisp.org>
75820         New module 'libunistring'.
75821         * modules/libunistring: New file.
75822         * m4/libunistring.m4: New file.
75823         * MODULES.html.sh (Unicode string functions): Add it.
75825 2009-04-27  Eric Blake  <ebb9@byu.net>
75827         maint.mk: allow package-specific header to provide <config.h>
75828         * top/maint.mk (sc_require_config_h): New variable.
75829         (sc_require_config_h, sc_require_config_h_first): Use it.
75831 2009-04-27  Simon Josefsson  <simon@josefsson.org>
75833         * top/maint.mk (sc_avoid_if_before_free): Except
75834         useless-if-before-free script.
75836 2009-04-27  Eric Blake  <ebb9@byu.net>
75838         maintainer-makefile: depend on all required helper scripts
75839         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
75840         useless-if-before-free.
75841         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
75842         version, rather than assuming gnulib checkout is available.
75843         Reported by Simen Josefsson.
75845 2009-04-26  Bruno Haible  <bruno@clisp.org>
75847         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
75848         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
75849         "../" or "..".
75851 2009-04-26  Bruno Haible  <bruno@clisp.org>
75853         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
75854         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
75855         AC_LIB_HAVE_LINKFLAGS.
75857 2009-04-26  Bruno Haible  <bruno@clisp.org>
75859         Simplify calling convention of u*_conv_from_encoding.
75860         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
75861         u32_conv_from_encoding): Expect a resultbuf argument and return the
75862         result directly as a pointer.
75863         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
75864         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
75865         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
75866         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
75867         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
75868         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
75869         Update.
75870         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
75871         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
75872         * lib/vasnprintf.c (VASNPRINTF): Update.
75873         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
75874         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
75875         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
75876         * NEWS: Mention the change.
75878 2009-04-26  Bruno Haible  <bruno@clisp.org>
75880         Simplify calling convention of u*_conv_to_encoding.
75881         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
75882         u32_conv_to_encoding): Expect a resultbuf argument and return the
75883         result directly as a pointer.
75884         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
75885         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
75886         freeing scaled_offsets if mem_iconveha failed.
75887         * lib/unicase/u-casexfrm.h (FUNC): Update.
75888         * lib/uninorm/u-normxfrm.h (FUNC): Update.
75889         * lib/vasnprintf.c (VASNPRINTF): Update.
75890         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
75891         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
75892         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
75893         * NEWS: Mention the change.
75895 2009-04-26  Bruno Haible  <bruno@clisp.org>
75897         Avoid test failures on AIX and OSF/1.
75898         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
75899         malloc(0).
75900         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
75901         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
75902         Likewise.
75903         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
75904         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
75905         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
75906         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
75907         * doc/posix-functions/malloc.texi: Document the portability problem
75908         related to malloc(0).
75910 2009-04-26  Bruno Haible  <bruno@clisp.org>
75912         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
75913         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
75914         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
75916 2009-04-25  Bruno Haible  <bruno@clisp.org>
75918         Avoid link error when creating a namespace clean library.
75919         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
75920         as macro with arguments if already defined as an alias.
75921         * lib/signbitf.c (gl_signbitf): Don't undefine.
75922         * lib/signbitd.c (gl_signbitd): Don't undefine.
75923         * lib/signbitl.c (gl_signbitl): Don't undefine.
75925 2009-04-25  Jim Meyering  <meyering@redhat.com>
75927         vc-list-files: fix another quoting bug
75928         * build-aux/vc-list-files: Avoid sed backslash expansion
75929         of pathological directory names.
75931 2009-04-25  Eric Blake  <ebb9@byu.net>
75933         vc-list-files: fix shell quoting error
75934         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
75935         timestamp.
75937 2009-04-25  Jim Meyering  <meyering@redhat.com>
75939         vc-list-files: restore lost functionality with subdir argument
75940         * build-aux/vc-list-files: When given a non-"." sub-directory
75941         argument, substitute the $dir/ prefix back onto each resulting name.
75942         Otherwise, coreutils' root_tests check would fail.
75944 2009-04-24  Eric Blake  <ebb9@byu.net>
75946         vc-list-files: ignore git symlinks
75947         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
75948         than ls-files, to ignore git symlinks.
75950         maint.mk: import improvements from m4
75951         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
75952         (move_if_change): Delete unused macro.
75953         (news-date-check, vc-diff-check): Support VPATH builds.
75954         (announcement): Likewise.  Split --bootstrap-tools list...
75955         (boostrap-tools): ...into separate list, which can be overridden
75956         in cfg.mk.
75957         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
75958         requiring dependency on useless-if-before-free module.
75959         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
75960         Support VPATH builds.
75962 2009-04-24  Jim Meyering  <meyering@redhat.com>
75964         maint.mk: remove coreutils-specific rules and variables
75965         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
75966         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
75967         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
75969         maint.mk: remove obsolete rule
75970         * top/maint.mk (rel-check): Remove rule.
75971         (WGET, WGETFLAGS): Remove now-unused variables.
75973 2009-04-24  Simon Josefsson  <simon@josefsson.org>
75975         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
75976         consistency.
75978         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
75979         '$(PATH_SEPARATOR)' instead of ':'.
75981 2009-04-24  Simon Josefsson  <simon@josefsson.org>
75983         * lib/getopt1.c (main): Use 'const' for static array.
75985 2009-04-24  Simon Josefsson  <simon@josefsson.org>
75987         * top/maint.mk: Sync with coreutils.
75988         * NEWS: Explain incompatibilities.
75990 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75991             Bruno Haible  <bruno@clisp.org>
75993         Fix cross-compilation results.
75994         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
75995         statement, as third argument of AC_TRY_RUN.
75996         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
75997         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
75998         Likewise.
75999         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
76000         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
76001         Likewise.
76002         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
76003         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
76004         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
76006 2009-04-20  Bruno Haible  <bruno@clisp.org>
76008         Avoid test failure on mingw.
76009         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
76011 2009-04-20  Bruno Haible  <bruno@clisp.org>
76013         Avoid compilation error on mingw.
76014         * modules/localename-tests (Depends-on): Add locale.
76016 2009-04-19  Bruno Haible  <bruno@clisp.org>
76018         Support for building a shared library on Windows platforms.
76019         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
76020         (main): Test the presence of UNINORM_NFC here.
76021         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
76022         (main): Test the presence of UNINORM_NFD here.
76023         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
76024         (main): Test the presence of UNINORM_NFKC here.
76025         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
76026         (main): Test the presence of UNINORM_NFKD here.
76028 2009-04-19  Bruno Haible  <bruno@clisp.org>
76030         Avoid a compiler warning.
76031         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
76032         Change type of variable 'sequence'.
76034 2009-04-19  Bruno Haible  <bruno@clisp.org>
76036         * modules/configmake (Makefile.am): When the contents of configmake.h
76037         does not change, arrange to preserve its modification time.
76039 2009-04-17  Simon Josefsson  <simon@josefsson.org>
76041         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
76042         gettext domain.
76044 2009-04-16  Jim Meyering  <meyering@redhat.com>
76046         useless-if-before-free: improve conversion code
76047         * build-aux/useless-if-before-free: Adjust code-in-comment to match
76048         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
76050 2009-04-14  Bruno Haible  <bruno@clisp.org>
76052         * modules/fcntl (Depends-on): Add extensions.
76053         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
76055 2009-04-12  Ben Pfaff  <blp@gnu.org>
76057         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
76058         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
76060 2009-03-20  Ben Pfaff  <blp@gnu.org>
76062         Make rename replace existing destinations on Windows.
76063         * m4/rename.m4: Add test for Mingw.
76064         * lib/rename.c: Add rename replacement that uses MoveFileEx with
76065         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
76066         * doc/posix-functions/rename.texi: Document.
76068 2009-04-10  Bruno Haible  <bruno@clisp.org>
76070         New include file "iconveh.h".
76071         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
76072         * lib/striconveh.h: Include it.
76073         (enum iconv_ilseq_handler): Remove definition.
76074         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
76075         striconveh.h.
76076         * lib/striconveha.c: Include striconveh.h.
76077         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
76078         * modules/striconveh (Files): Add lib/iconveh.h.
76079         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
76080         lib/striconveh.h.
76082 2009-04-10  Bruno Haible  <bruno@clisp.org>
76084         * lib/uniconv.h: Update comment.
76086 2009-04-10  Bruno Haible  <bruno@clisp.org>
76088         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
76089         always.
76090         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
76091         * lib/unistr/u16-mbtouc-aux.c: Likewise.
76092         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
76093         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
76094         "unistring-notinline.h", so that the function gets defined always.
76095         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
76096         * lib/unistr/u8-uctomb.c: Likewise.
76097         * lib/unistr/u16-mbtouc.c: Likewise.
76098         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
76099         * lib/unistr/u16-uctomb.c: Likewise.
76100         * lib/unistr/u32-mbtouc.c: Likewise.
76101         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
76102         * lib/unistr/u32-uctomb.c: Likewise.
76104 2009-04-10  Bruno Haible  <bruno@clisp.org>
76106         Mark 'utime' obsolete.
76107         * modules/utime (Status, Notice): New sections.
76108         Suggested by Jim Meyering.
76110         Fix cross-compile guess for utime test.
76111         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
76112         autoconf.
76113         * doc/posix-functions/utime.texi: Give more precisions.
76114         Reported by Jan <ipif@ymail.com>.
76116 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
76118         filevercmp: correct today's change
76119         * lib/filevercmp.c: Also handle coreutils' test inputs.
76120         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
76122         Fix regression in 'filevercmp' module. Thanks Sven Joachim
76123         for reporting it.
76124         * lib/filevercmp.c: Special handle for "", "." and "..".
76125         * tests/test-filevercmp.c: Enlarge the set suite.
76127 2009-04-07  Jim Meyering  <meyering@redhat.com>
76129         useless-if-before-free: show how to remove braced useless free, too
76130         * build-aux/useless-if-before-free: still only in a comment, though.
76132 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
76134         maint.mk: import changes to syntax-check macros from coreutils
76135         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
76136         Use them in the relevant macros.
76138 2009-04-06  Bruno Haible  <bruno@clisp.org>
76140         Fix unportable use of bit-fields.
76141         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
76142         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
76143         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
76145 2009-04-06  Bruno Haible  <bruno@clisp.org>
76147         Avoid test failures on AIX and OSF/1.
76148         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
76149         that malloc(0) = NULL.
76150         * tests/unicase/test-u8-tolower.c (check): Likewise.
76151         * tests/unicase/test-u8-totitle.c (check): Likewise.
76152         * tests/unicase/test-u8-toupper.c (check): Likewise.
76153         * tests/unicase/test-u16-casefold.c (check): Likewise.
76154         * tests/unicase/test-u16-tolower.c (check): Likewise.
76155         * tests/unicase/test-u16-totitle.c (check): Likewise.
76156         * tests/unicase/test-u16-toupper.c (check): Likewise.
76157         * tests/unicase/test-u32-casefold.c (check): Likewise.
76158         * tests/unicase/test-u32-tolower.c (check): Likewise.
76159         * tests/unicase/test-u32-totitle.c (check): Likewise.
76160         * tests/unicase/test-u32-toupper.c (check): Likewise.
76161         * tests/uninorm/test-u8-nfc.c (check): Likewise.
76162         * tests/uninorm/test-u8-nfd.c (check): Likewise.
76163         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
76164         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
76165         * tests/uninorm/test-u16-nfc.c (check): Likewise.
76166         * tests/uninorm/test-u16-nfd.c (check): Likewise.
76167         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
76168         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
76169         * tests/uninorm/test-u32-nfc.c (check): Likewise.
76170         * tests/uninorm/test-u32-nfd.c (check): Likewise.
76171         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
76172         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
76174 2009-04-05  Bruno Haible  <bruno@clisp.org>
76176         Work around an autoconf limitation.
76177         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
76178         comment line if it would be longer than 3 KB.
76180 2009-04-05  Bruno Haible  <bruno@clisp.org>
76182         Avoid test failure with libiconv-1.13.
76183         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
76184         of the expected test results.
76186 2009-04-05  Bruno Haible  <bruno@clisp.org>
76188         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
76189         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
76190         that it should be installed.
76192 2009-04-05  Bruno Haible  <bruno@clisp.org>
76194         * gnulib-tool: New option --copy-file.
76195         (func_usage): Document it.
76196         (func_dest_tmpfilename): Moved out of func_import.
76197         (func_add_file, func_update_file): New functions, extracted from
76198         func_import.
76199         (func_import): Update.
76201 2009-04-05  Karl Berry  <karl@gnu.org>
76203         * README: prominently mention gnulib-tool.
76204         Rearrange sections so getting the code is near the top.
76206 2009-04-05  Bruno Haible  <bruno@clisp.org>
76208         * lib/unicase.h: Mention u*_cmp2.
76209         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
76210         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
76211         * lib/unicase/ulc-casecmp.c: Likewise.
76212         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
76213         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
76214         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
76215         unistr/u8-cmp.
76216         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
76217         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
76218         unistr/u16-cmp.
76219         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
76220         unistr/u32-cmp.
76222         * lib/uninorm.h: Mention u*_cmp2.
76223         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
76224         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
76225         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
76226         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
76227         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
76228         unistr/u8-cmp.
76229         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
76230         unistr/u16-cmp.
76231         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
76232         unistr/u32-cmp.
76234         New module 'unistr/u32-cmp2'.
76235         * lib/unistr/u32-cmp2.c: New file.
76236         * modules/unistr/u32-cmp2: New file.
76238         New module 'unistr/u16-cmp2'.
76239         * lib/unistr/u16-cmp2.c: New file.
76240         * modules/unistr/u16-cmp2: New file.
76242         New module 'unistr/u8-cmp2'.
76243         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
76244         * lib/unistr/u8-cmp2.c: New file.
76245         * lib/unistr/u-cmp2.h: New file.
76246         * modules/unistr/u8-cmp2: New file.
76248 2009-04-05  Bruno Haible  <bruno@clisp.org>
76250         * lib/unictype.h (uc_property_is_valid): New macro.
76251         * tests/unictype/test-pr_byname.c (main): Use it.
76253         * lib/unistr.h: Doc fixes.
76254         * lib/uniconv.h: Doc fixes.
76255         * lib/unictype.h: Doc fixes.
76257 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
76259         Port coreutils 7.2 to Solaris 8.
76261         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
76262         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
76263         for Solaris 8.  This is a bit of a hack, as it means it's the
76264         caller's responsibility to add -lnsl if needed, but most likely it
76265         won't be needed since only getaddrinfo uses this and getaddrinfo
76266         isn't needed on Solaris 8.
76268         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
76269         problem to Solaris 8 encountered with coreutils 7.2, which
76270         resulted in a message "fnmatch.c:292: warning: passing argument 4
76271         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
76272         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
76274 2009-04-03  Simon Josefsson  <simon@josefsson.org>
76276         * m4/ld-version-script.m4: Add FIXME comment.
76278 2009-04-02  Simon Josefsson  <simon@josefsson.org>
76280         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
76281         SOVERSION variable.
76283 2009-04-02  Bruno Haible  <bruno@clisp.org>
76285         * Makefile (info, html, dvi, pdf): Combine the rules.
76286         Suggested by Jim Meyering.
76288 2009-04-01  Bruno Haible  <bruno@clisp.org>
76290         * Makefile (info, html, dvi, pdf): New targets.
76291         Reported by Reuben Thomas <rrt@sc3d.org>.
76293 2009-04-01  Bruno Haible  <bruno@clisp.org>
76295         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
76296         can be put into PATH.
76297         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
76299 2009-04-01  Bruno Haible  <bruno@clisp.org>
76301         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
76303 2009-04-01  Bruno Haible  <bruno@clisp.org>
76305         Rename module 'visibility'.
76306         * modules/lib-symbol-visibility: Renamed from modules/visibility.
76307         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
76308         * doc/gnulib.texi: Update.
76309         * MODULES.html.sh (Misc): Update.
76310         * NEWS: Mention the change.
76312 2009-04-01  Simon Josefsson  <simon@josefsson.org>
76314         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
76315         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
76316         Eric Blake <ebb9@byu.net> for review.
76317         * MODULES.html.sh: Add lib-msvc-compat.
76318         * doc/gnulib.texi: Link to new section.
76319         * m4/ld-output-def.m4: New file.
76320         * doc/ld-output-def.texi: New file.
76322 2009-04-01  Simon Josefsson  <simon@josefsson.org>
76324         Rename ld-version-script to lib-symbol-versions.  Suggested by
76325         Bruno Haible <bruno@clisp.org>.
76326         * modules/ld-version-script: Renamed to lib-symbol-versions.
76327         * doc/ld-version-script.texi: Fix module name.
76328         * MODULES.html.sh: Add lib-symbol-versions.
76330 2009-03-31  Simon Josefsson  <simon@josefsson.org>
76332         * modules/u64-tests: New file.
76333         * tests/test-u64.c: New file.
76335 2009-03-04  Simon Josefsson  <simon@josefsson.org>
76337         * MODULES.html.sh: Mention u64.
76338         * modules/u64: New module.
76339         * modules/crypto/sha512: Depend on u64 module instead of providing
76340         u64.h.
76342 2009-03-27  Eric Blake  <ebb9@byu.net>
76344         test-strerror: make debugging EAI_SYSTEM easier
76345         * modules/getaddrinfo-tests (Depends-on): Add strerror.
76346         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
76347         failure was EAI_SYSTEM.
76349 2009-03-25  Bruno Haible  <bruno@clisp.org>
76351         Fix a problem with --enable-relocatable on Solaris 7.
76352         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
76353         since 2008-02-24.
76355 2009-03-25  Eric Blake  <ebb9@byu.net>
76357         test-sockets: avoid gcc warning
76358         * tests/test-sockets.c (main): Silence compiler warning.
76360 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
76362         New modules nproc, pthread, contributed by Glen Lenker.
76364         * MODULES.html.sh: Add pthread, nproc.
76365         * lib/nproc.c: New file.
76366         * lib/nproc.h: New file.
76367         * lib/pthread.in.h: New file.
76368         * m4/pthread.m4: New file.
76369         * modules/nproc: New file.
76370         * modules/pthread: New file.
76372 2009-03-24  Simon Josefsson  <simon@josefsson.org>
76374         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
76375         New variable.
76377 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
76379         filevercmp: handle simple~ and numbered.~3~ backup suffixes
76380         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
76381         * tests/test-filevercmp.c: Add tests for backup suffixes.
76383 2009-03-24  Simon Josefsson  <simon@josefsson.org>
76385         * modules/stdlib (Depends-on): Add stdint, needed when defining
76386         struct random_data on, for example, HP-UX 10.20.  Reported by
76387         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
76389 2009-03-24  Simon Josefsson  <simon@josefsson.org>
76391         * lib/readline.c (readline): Call fflush on stdout after printing
76392         prompt.
76394 2009-03-20  Bruno Haible  <bruno@clisp.org>
76396         Remove dependency from 'close' module to -lws2_32 on native Windows.
76397         * lib/close-hook.h: New file.
76398         * lib/close-hook.c: New file.
76399         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
76400         w32sock.h.
76401         (_gl_close_fd_maybe_socket): Remove function.
76402         (rpl_close): Invoke execute_all_close_hooks instead of
76403         _gl_close_fd_maybe_socket.
76404         * lib/sockets.c: Include close-hook.h, w32sock.h.
76405         (close_fd_maybe_socket): New function, essentially from lib/close.c.
76406         (close_sockets_hook): New variable.
76407         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
76408         (gl_sockets_cleanup): Unregister it.
76409         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
76410         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
76411         * modules/close-hook: New file.
76412         * modules/close (Files): Remove lib/w32sock.h.
76413         (Depends-on): Add close-hook.
76414         (Link): Remove section.
76415         * modules/sockets (Files): Add lib/w32sock.h.
76416         (Depends-on): Add close-hook.
76417         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
76418         invocation.
76419         * NEWS: Mention that LIB_CLOSE is gone.
76421 2009-03-23  Eric Blake  <ebb9@byu.net>
76423         signal-tests: test previous patch
76424         * tests/test-signal.c: New file.
76425         * modules/signal-tests: Likewise.
76427         signal.h: always support 'volatile sig_atomic_t'
76428         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
76429         (gl_SIGNAL_H_DEFAULTS): Add a default.
76430         * modules/signal (Makefile.am): Substitute if needed.
76431         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
76432         users can blindly add volatile.
76433         * doc/posix-headers/signal.texi (signal.h): Document it.
76434         Reported by Matthew Woehlke.
76436 2009-03-23  Jim Meyering  <meyering@redhat.com>
76438         pathmax: PATH_MAX: use pathconf only when available
76439         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
76440         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
76441         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
76442         This avoids a link failure in a PSP cross-compilation environment
76443         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
76445         * lib/vasnprintf.c (divide): Fix typo in comment.
76447 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76449         * gnulib-tool (func_filter_filelist): Fix comment.
76451 2009-03-20  Bruno Haible  <bruno@clisp.org>
76453         Make sockets.h self-contained.
76454         * lib/sockets.c: Include sockets.h first.
76455         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
76457 2009-03-19  Eric Blake  <ebb9@byu.net>
76459         doc: mention more functions added in cygwin 1.7.0
76460         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
76461         addition.
76462         * doc/posix-functions/log2f.texi: Likewise.
76464 2009-03-19  Jim Meyering  <meyering@redhat.com>
76466         fsusage: avoid syntax error due to statement-before-declaration
76467         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
76468         after all declarations.  Reported by Matthew Woehlke in
76469         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
76471 2009-03-18  Eric Blake  <ebb9@byu.net>
76473         build-aux/compile: sync from automake
76474         * build-aux/compile: New file, from automake.
76475         * config/srclist.txt: Mention build-aux/compile.
76477 2009-03-17  Bruno Haible  <bruno@clisp.org>
76479         * lib/git-merge-changelog.c: Fix typo in comment.
76480         Reported by Reuben Thomas <rrt@sc3d.org>.
76482 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
76484         * m4/regex.m4: update and improve help for
76485         --without-included-regex.
76487 2009-03-17  Simon Josefsson  <simon@josefsson.org>
76489         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
76490         failure on missing include files.
76492 2009-03-17  Eric Blake  <ebb9@byu.net>
76494         doc: mention more functions added in cygwin 1.7.0
76495         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
76496         addition.
76497         * doc/posix-functions/fwscanf.texi: Likewise.
76498         * doc/posix-functions/swprintf.texi: Likewise.
76499         * doc/posix-functions/swscanf.texi: Likewise.
76500         * doc/posix-functions/vfwprintf.texi: Likewise.
76501         * doc/posix-functions/vfwscanf.texi: Likewise.
76502         * doc/posix-functions/vswprintf.texi: Likewise.
76503         * doc/posix-functions/vswscanf.texi: Likewise.
76504         * doc/posix-functions/vwprintf.texi: Likewise.
76505         * doc/posix-functions/vwscanf.texi: Likewise.
76506         * doc/posix-functions/wcscasecmp.texi: Likewise.
76507         * doc/posix-functions/wcsdup.texi: Likewise.
76508         * doc/posix-functions/wcsftime.texi: Likewise.
76509         * doc/posix-functions/wcsncasecmp.texi: Likewise.
76510         * doc/posix-functions/wprintf.texi: Likewise.
76511         * doc/posix-functions/wscanf.texi: Likewise.
76512         * doc/glibc-functions/gethostbyname2.texi: Likewise.
76514 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76516         maint.mk: really add $(AM_MAKEFLAGS)
76517         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
76518         was inadvertently omitted in the last commit.
76519         Spotted by Bruno Haible.
76521         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
76522         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
76523         $(AM_MAKEFLAGS)' rather than plain `make'.
76525         gnulib-tool: execute $MAKE not make
76526         * gnulib-tool: Default $MAKE to 'make'.
76527         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
76528         than make.  Initialize $MAKE in the do-autobuild script.
76530         gnulib-tool: use $MAKE not make in generated files
76531         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
76532         make, in generated files.  Initialize $MAKE in the do-autobuild
76533         script.
76535         * top/GNUmakefile (_have-git-version-gen): Fix typo.
76537         GNUmakefile: disable parallelism only for multiple, recursive targets
76538         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
76539         additions in the Makefile.
76540         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
76541         by Automake.
76542         (.NOTPARALLEL): Only disable parallel builds if multiple targets
76543         are listed on the command line and at least one of them is
76544         listed in $(ALL_RECURSIVE_TARGETS).
76546 2009-03-14  Bruno Haible  <bruno@clisp.org>
76548         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
76549         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
76550         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
76551         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
76552         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
76553         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
76554         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
76555         unistr/u8-uctomb.
76556         * modules/unistr/u8-strchr (Depends-on): Likewise.
76557         * modules/unistr/u8-strrchr (Depends-on): Likewise.
76558         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
76559         unistr/u16-uctomb.
76560         * modules/unistr/u16-strchr (Depends-on): Likewise.
76561         * modules/unistr/u16-strrchr (Depends-on): Likewise.
76563 2009-03-12  Bruno Haible  <bruno@clisp.org>
76565         Work around select() bug on Interix 3.5.
76566         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
76567         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
76568         * m4/select.m4: New file.
76569         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
76570         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
76571         * modules/select (Files): Add m4/select.m4.
76572         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
76573         * modules/nanosleep (Depends-on): Add select.
76574         * modules/poll (Depends-on): Likewise.
76575         * doc/posix-functions/select.texi: Mention the Interix bug.
76576         Reported by Markus Duft <mduft@gentoo.org>.
76578         * lib/select.c: Renamed from lib/winsock-select.c.
76579         * modules/select (Files): Add lib/select.c, remove
76580         lib/winsock-select.c.
76581         (configure.ac): Update.
76583 2009-03-12  Jim Meyering  <meyering@redhat.com>
76585         avoid gcc warnings about unused macro definitions
76586         * lib/readtokens.c (STREQ): Remove unused definition.
76587         * lib/xmalloc.c (SIZE_MAX): Likewise.
76588         * lib/openat-die.c (N_): Likewise.
76589         * lib/mountlist.c (SIZE_MAX): Remove definition.
76590         Instead, include <stdint.h>.
76591         * lib/readutmp.c: Likewise.
76592         * modules/readutmp (Depends-on): Add stdint.
76593         * modules/mountlist (Depends-on): Add stdint.
76594         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
76596 2009-03-10  Bruno Haible  <bruno@clisp.org>
76598         Tests for module 'mbmemcasecoll'.
76599         * modules/mbmemcasecoll-tests: New file.
76600         * tests/test-mbmemcasecoll1.sh: New file.
76601         * tests/test-mbmemcasecoll2.sh: New file.
76602         * tests/test-mbmemcasecoll3.sh: New file.
76603         * tests/test-mbmemcasecoll.c: New file.
76605         New module 'mbmemcasecoll'.
76606         * lib/mbmemcasecoll.h: New file.
76607         * lib/mbmemcasecoll.c: New file.
76608         * modules/mbmemcasecoll: New file.
76610         * tests/test-mbmemcasecmp.h: New file, extracted from
76611         tests/test-mbmemcasecmp.c.
76612         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
76613         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
76614         (main): Update.
76615         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
76617 2009-03-09  Bruno Haible  <bruno@clisp.org>
76619         Tests for module 'mbmemcasecmp'.
76620         * modules/mbmemcasecmp-tests: New file.
76621         * tests/test-mbmemcasecmp1.sh: New file.
76622         * tests/test-mbmemcasecmp2.sh: New file.
76623         * tests/test-mbmemcasecmp3.sh: New file.
76624         * tests/test-mbmemcasecmp.c: New file.
76626         New module 'mbmemcasecmp'.
76627         * lib/mbmemcasecmp.h: New file.
76628         * lib/mbmemcasecmp.c: New file.
76629         * modules/mbmemcasecmp: New file.
76631 2009-03-09  Bruno Haible  <bruno@clisp.org>
76633         Tests for module 'unicase/ulc-casecoll'.
76634         * modules/unicase/ulc-casecoll-tests: New file.
76635         * tests/unicase/test-ulc-casecoll1.sh: New file.
76636         * tests/unicase/test-ulc-casecoll2.sh: New file.
76637         * tests/unicase/test-ulc-casecoll.c: New file.
76639         New module 'unicase/ulc-casecoll'.
76640         * lib/unicase.h (ulc_casecoll): New declaration.
76641         * lib/unicase/ulc-casecoll.c: New file.
76642         * modules/unicase/ulc-casecoll: New file.
76644         New module 'unicase/ulc-casexfrm'.
76645         * lib/unicase.h (ulc_casexfrm): New declaration.
76646         * lib/unicase/ulc-casexfrm.c: New file.
76647         * modules/unicase/ulc-casexfrm: New file.
76649 2009-03-09  Bruno Haible  <bruno@clisp.org>
76651         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
76652         invocations.
76654         * m4/mbscasecmp.m4: Remove file.
76655         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
76656         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
76658         * m4/mbscasestr.m4: Remove file.
76659         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
76660         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
76662         * m4/mbschr.m4: Remove file.
76663         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
76664         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
76666         * m4/mbscspn.m4: Remove file.
76667         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
76668         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
76670         * m4/mbslen.m4: Remove file.
76671         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
76672         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
76674         * m4/mbsncasecmp.m4: Remove file.
76675         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
76676         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
76678         * m4/mbsnlen.m4: Remove file.
76679         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
76680         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
76682         * m4/mbspbrk.m4: Remove file.
76683         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
76684         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
76686         * m4/mbspcasecmp.m4: Remove file.
76687         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
76688         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
76690         * m4/mbsrchr.m4: Remove file.
76691         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
76692         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
76694         * m4/mbssep.m4: Remove file.
76695         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
76696         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
76698         * m4/mbsspn.m4: Remove file.
76699         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
76700         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
76702         * m4/mbsstr.m4: Remove file.
76703         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
76704         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
76706         * m4/mbstok_r.m4: Remove file.
76707         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
76708         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
76710         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
76712         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
76713         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
76715         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
76717 2009-03-08  Bruno Haible  <bruno@clisp.org>
76719         Tests for module 'unicase/ulc-casecmp'.
76720         * modules/unicase/ulc-casecmp-tests: New file.
76721         * tests/unicase/test-ulc-casecmp1.sh: New file.
76722         * tests/unicase/test-ulc-casecmp2.sh: New file.
76723         * tests/unicase/test-ulc-casecmp.c: New file.
76725         New module 'unicase/ulc-casecmp'.
76726         * lib/unicase.h (ulc_casecmp): New declaration.
76727         * lib/unicase/ulc-casecmp.c: New file.
76728         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
76729         'const SRC_UNIT *'.
76730         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
76731         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
76732         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
76733         * modules/unicase/ulc-casecmp: New file.
76735         Tests for module 'unicase/u32-is-cased'.
76736         * modules/unicase/u32-is-cased-tests: New file.
76737         * tests/unicase/test-u32-is-cased.c: New file.
76739         Tests for module 'unicase/u16-is-cased'.
76740         * modules/unicase/u16-is-cased-tests: New file.
76741         * tests/unicase/test-u16-is-cased.c: New file.
76743         Tests for module 'unicase/u8-is-cased'.
76744         * modules/unicase/u8-is-cased-tests: New file.
76745         * tests/unicase/test-u8-is-cased.c: New file.
76746         * tests/unicase/test-is-cased.h: New file.
76748         New module 'unicase/u32-is-cased'.
76749         * lib/unicase/u32-is-cased.c: New file.
76750         * modules/unicase/u32-is-cased: New file.
76752         New module 'unicase/u16-is-cased'.
76753         * lib/unicase/u16-is-cased.c: New file.
76754         * modules/unicase/u16-is-cased: New file.
76756         New module 'unicase/u8-is-cased'.
76757         * lib/unicase/u8-is-cased.c: New file.
76758         * lib/unicase/u-is-cased.h: New file.
76759         * modules/unicase/u8-is-cased: New file.
76761         Tests for module 'unicase/u32-is-casefolded'.
76762         * modules/unicase/u32-is-casefolded-tests: New file.
76763         * tests/unicase/test-u32-is-casefolded.c: New file.
76765         Tests for module 'unicase/u16-is-casefolded'.
76766         * modules/unicase/u16-is-casefolded-tests: New file.
76767         * tests/unicase/test-u16-is-casefolded.c: New file.
76769         Tests for module 'unicase/u8-is-casefolded'.
76770         * modules/unicase/u8-is-casefolded-tests: New file.
76771         * tests/unicase/test-u8-is-casefolded.c: New file.
76772         * tests/unicase/test-is-casefolded.h: New file.
76774         New module 'unicase/u32-is-casefolded'.
76775         * lib/unicase/u32-is-casefolded.c: New file.
76776         * modules/unicase/u32-is-casefolded: New file.
76778         New module 'unicase/u16-is-casefolded'.
76779         * lib/unicase/u16-is-casefolded.c: New file.
76780         * modules/unicase/u16-is-casefolded: New file.
76782         New module 'unicase/u8-is-casefolded'.
76783         * lib/unicase/u8-is-casefolded.c: New file.
76784         * modules/unicase/u8-is-casefolded: New file.
76786         Tests for module 'unicase/u32-is-titlecase'.
76787         * modules/unicase/u32-is-titlecase-tests: New file.
76788         * tests/unicase/test-u32-is-titlecase.c: New file.
76790         Tests for module 'unicase/u16-is-titlecase'.
76791         * modules/unicase/u16-is-titlecase-tests: New file.
76792         * tests/unicase/test-u16-is-titlecase.c: New file.
76794         Tests for module 'unicase/u8-is-titlecase'.
76795         * modules/unicase/u8-is-titlecase-tests: New file.
76796         * tests/unicase/test-u8-is-titlecase.c: New file.
76797         * tests/unicase/test-is-titlecase.h: New file.
76799         New module 'unicase/u32-is-titlecase'.
76800         * lib/unicase/u32-is-titlecase.c: New file.
76801         * modules/unicase/u32-is-titlecase: New file.
76803         New module 'unicase/u16-is-titlecase'.
76804         * lib/unicase/u16-is-titlecase.c: New file.
76805         * modules/unicase/u16-is-titlecase: New file.
76807         New module 'unicase/u8-is-titlecase'.
76808         * lib/unicase/u8-is-titlecase.c: New file.
76809         * modules/unicase/u8-is-titlecase: New file.
76811         Tests for module 'unicase/u32-is-lowercase'.
76812         * modules/unicase/u32-is-lowercase-tests: New file.
76813         * tests/unicase/test-u32-is-lowercase.c: New file.
76815         Tests for module 'unicase/u16-is-lowercase'.
76816         * modules/unicase/u16-is-lowercase-tests: New file.
76817         * tests/unicase/test-u16-is-lowercase.c: New file.
76819         Tests for module 'unicase/u8-is-lowercase'.
76820         * modules/unicase/u8-is-lowercase-tests: New file.
76821         * tests/unicase/test-u8-is-lowercase.c: New file.
76822         * tests/unicase/test-is-lowercase.h: New file.
76824         New module 'unicase/u32-is-lowercase'.
76825         * lib/unicase/u32-is-lowercase.c: New file.
76826         * modules/unicase/u32-is-lowercase: New file.
76828         New module 'unicase/u16-is-lowercase'.
76829         * lib/unicase/u16-is-lowercase.c: New file.
76830         * modules/unicase/u16-is-lowercase: New file.
76832         New module 'unicase/u8-is-lowercase'.
76833         * lib/unicase/u8-is-lowercase.c: New file.
76834         * modules/unicase/u8-is-lowercase: New file.
76836         Tests for module 'unicase/u32-is-uppercase'.
76837         * modules/unicase/u32-is-uppercase-tests: New file.
76838         * tests/unicase/test-u32-is-uppercase.c: New file.
76840         Tests for module 'unicase/u16-is-uppercase'.
76841         * modules/unicase/u16-is-uppercase-tests: New file.
76842         * tests/unicase/test-u16-is-uppercase.c: New file.
76844         Tests for module 'unicase/u8-is-uppercase'.
76845         * modules/unicase/u8-is-uppercase-tests: New file.
76846         * tests/unicase/test-u8-is-uppercase.c: New file.
76847         * tests/unicase/test-is-uppercase.h: New file.
76849         New module 'unicase/u32-is-uppercase'.
76850         * lib/unicase/u32-is-uppercase.c: New file.
76851         * modules/unicase/u32-is-uppercase: New file.
76853         New module 'unicase/u16-is-uppercase'.
76854         * lib/unicase/u16-is-uppercase.c: New file.
76855         * modules/unicase/u16-is-uppercase: New file.
76857         New module 'unicase/u8-is-uppercase'.
76858         * lib/unicase/u8-is-uppercase.c: New file.
76859         * modules/unicase/u8-is-uppercase: New file.
76861         New module 'unicase/u32-is-invariant'.
76862         * lib/unicase/u32-is-invariant.c: New file.
76863         * modules/unicase/u32-is-invariant: New file.
76865         New module 'unicase/u16-is-invariant'.
76866         * lib/unicase/u16-is-invariant.c: New file.
76867         * modules/unicase/u16-is-invariant: New file.
76869         New module 'unicase/u8-is-invariant'.
76870         * lib/unicase/u8-is-invariant.c: New file.
76871         * lib/unicase/invariant.h: New file.
76872         * lib/unicase/u-is-invariant.h: New file.
76873         * modules/unicase/u8-is-invariant: New file.
76875         Tests for module 'unicase/u32-casecoll'.
76876         * modules/unicase/u32-casecoll-tests: New file.
76877         * tests/unicase/test-u32-casecoll.c: New file.
76879         Tests for module 'unicase/u16-casecoll'.
76880         * modules/unicase/u16-casecoll-tests: New file.
76881         * tests/unicase/test-u16-casecoll.c: New file.
76883         Tests for module 'unicase/u8-casecoll'.
76884         * modules/unicase/u8-casecoll-tests: New file.
76885         * tests/unicase/test-u8-casecoll.c: New file.
76887         New module 'unicase/u32-casecoll'.
76888         * lib/unicase/u32-casecoll.c: New file.
76889         * modules/unicase/u32-casecoll: New file.
76891         New module 'unicase/u16-casecoll'.
76892         * lib/unicase/u16-casecoll.c: New file.
76893         * modules/unicase/u16-casecoll: New file.
76895         New module 'unicase/u8-casecoll'.
76896         * lib/unicase/u8-casecoll.c: New file.
76897         * lib/unicase/u-casecoll.h: New file.
76898         * modules/unicase/u8-casecoll: New file.
76900         New module 'unicase/u32-casexfrm'.
76901         * lib/unicase/u32-casexfrm.c: New file.
76902         * modules/unicase/u32-casexfrm: New file.
76904         New module 'unicase/u16-casexfrm'.
76905         * lib/unicase/u16-casexfrm.c: New file.
76906         * modules/unicase/u16-casexfrm: New file.
76908         New module 'unicase/u8-casexfrm'.
76909         * lib/unicase/u8-casexfrm.c: New file.
76910         * lib/unicase/u-casexfrm.h: New file.
76911         * modules/unicase/u8-casexfrm: New file.
76913         Tests for module 'unicase/u32-casecmp'.
76914         * modules/unicase/u32-casecmp-tests: New file.
76915         * tests/unicase/test-u32-casecmp.c: New file.
76917         Tests for module 'unicase/u16-casecmp'.
76918         * modules/unicase/u16-casecmp-tests: New file.
76919         * tests/unicase/test-u16-casecmp.c: New file.
76921         Tests for module 'unicase/u8-casecmp'.
76922         * modules/unicase/u8-casecmp-tests: New file.
76923         * tests/unicase/test-u8-casecmp.c: New file.
76924         * tests/unicase/test-casecmp.h: New file.
76926         New module 'unicase/u32-casecmp'.
76927         * lib/unicase/u32-casecmp.c: New file.
76928         * modules/unicase/u32-casecmp: New file.
76930         New module 'unicase/u16-casecmp'.
76931         * lib/unicase/u16-casecmp.c: New file.
76932         * modules/unicase/u16-casecmp: New file.
76934         New module 'unicase/u8-casecmp'.
76935         * lib/unicase/u8-casecmp.c: New file.
76936         * lib/unicase/u-casecmp.h: New file.
76937         * modules/unicase/u8-casecmp: New file.
76939         Tests for module 'unicase/u32-casefold'.
76940         * modules/unicase/u32-casefold-tests: New file.
76941         * tests/unicase/test-u32-casefold.c: New file.
76943         Tests for module 'unicase/u16-casefold'.
76944         * modules/unicase/u16-casefold-tests: New file.
76945         * tests/unicase/test-u16-casefold.c: New file.
76947         Tests for module 'unicase/u8-casefold'.
76948         * modules/unicase/u8-casefold-tests: New file.
76949         * tests/unicase/test-u8-casefold.c: New file.
76951         New module 'unicase/u32-casefold'.
76952         * lib/unicase/u32-casefold.c: New file.
76953         * modules/unicase/u32-casefold: New file.
76955         New module 'unicase/u16-casefold'.
76956         * lib/unicase/u16-casefold.c: New file.
76957         * modules/unicase/u16-casefold: New file.
76959         New module 'unicase/u8-casefold'.
76960         * lib/unicase/u8-casefold.c: New file.
76961         * lib/unicase/u-casefold.h: New file.
76962         * modules/unicase/u8-casefold: New file.
76964         New module 'unicase/tocasefold'.
76965         * lib/unicase/casefold.h: New file.
76966         * lib/unicase/tocasefold.c: New file.
76967         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
76968         * modules/unicase/tocasefold: New file.
76970         Tests for module 'unicase/u32-totitle'.
76971         * modules/unicase/u32-totitle-tests: New file.
76972         * tests/unicase/test-u32-totitle.c: New file.
76974         Tests for module 'unicase/u16-totitle'.
76975         * modules/unicase/u16-totitle-tests: New file.
76976         * tests/unicase/test-u16-totitle.c: New file.
76978         Tests for module 'unicase/u8-totitle'.
76979         * modules/unicase/u8-totitle-tests: New file.
76980         * tests/unicase/test-u8-totitle.c: New file.
76982         New module 'unicase/u32-totitle'.
76983         * lib/unicase/u32-totitle.c: New file.
76984         * modules/unicase/u32-totitle: New file.
76986         New module 'unicase/u16-totitle'.
76987         * lib/unicase/u16-totitle.c: New file.
76988         * modules/unicase/u16-totitle: New file.
76990         New module 'unicase/u8-totitle'.
76991         * lib/unicase/u8-totitle.c: New file.
76992         * lib/unicase/u-totitle.h: New file.
76993         * modules/unicase/u8-totitle: New file.
76995         Tests for module 'unicase/u32-tolower'.
76996         * modules/unicase/u32-tolower-tests: New file.
76997         * tests/unicase/test-u32-tolower.c: New file.
76999         Tests for module 'unicase/u16-tolower'.
77000         * modules/unicase/u16-tolower-tests: New file.
77001         * tests/unicase/test-u16-tolower.c: New file.
77003         Tests for module 'unicase/u8-tolower'.
77004         * modules/unicase/u8-tolower-tests: New file.
77005         * tests/unicase/test-u8-tolower.c: New file.
77007         New module 'unicase/u32-tolower'.
77008         * lib/unicase/u32-tolower.c: New file.
77009         * modules/unicase/u32-tolower: New file.
77011         New module 'unicase/u16-tolower'.
77012         * lib/unicase/u16-tolower.c: New file.
77013         * modules/unicase/u16-tolower: New file.
77015         New module 'unicase/u8-tolower'.
77016         * lib/unicase/u8-tolower.c: New file.
77017         * modules/unicase/u8-tolower: New file.
77019         Tests for module 'unicase/u32-toupper'.
77020         * modules/unicase/u32-toupper-tests: New file.
77021         * tests/unicase/test-u32-toupper.c: New file.
77023         Tests for module 'unicase/u16-toupper'.
77024         * modules/unicase/u16-toupper-tests: New file.
77025         * tests/unicase/test-u16-toupper.c: New file.
77027         Tests for module 'unicase/u8-toupper'.
77028         * modules/unicase/u8-toupper-tests: New file.
77029         * tests/unicase/test-u8-toupper.c: New file.
77031         New module 'unicase/u32-toupper'.
77032         * lib/unicase/u32-toupper.c: New file.
77033         * modules/unicase/u32-toupper: New file.
77035         New module 'unicase/u16-toupper'.
77036         * lib/unicase/u16-toupper.c: New file.
77037         * modules/unicase/u16-toupper: New file.
77039         New module 'unicase/u8-toupper'.
77040         * lib/unicase/u8-toupper.c: New file.
77041         * modules/unicase/u8-toupper: New file.
77043         New module 'unicase/u32-casemap'.
77044         * lib/unicase/u32-casemap.c: New file.
77045         * modules/unicase/u32-casemap: New file.
77047         New module 'unicase/u16-casemap'.
77048         * lib/unicase/u16-casemap.c: New file.
77049         * modules/unicase/u16-casemap: New file.
77051         New module 'unicase/u8-casemap'.
77052         * lib/unicase/unicasemap.h: New file.
77053         * lib/unicase/u8-casemap.c: New file.
77054         * lib/unicase/u-casemap.h: New file.
77055         * modules/unicase/u8-casemap: New file.
77057         New module 'unicase/special-casing'.
77058         * lib/unicase/special-casing.h: New file.
77059         * lib/unicase/special-casing.c: New file.
77060         * lib/unicase/special-casing-table.gperf: New file, generated by
77061         gen-uni-tables.c.
77062         * modules/unicase/special-casing: New file.
77064         Tests for module 'unicase/locale-language'.
77065         * modules/unicase/locale-language-tests: New file.
77066         * tests/unicase/test-locale-language.sh: New file.
77067         * tests/unicase/test-locale-language.c: New file.
77069         New module 'unicase/locale-language'.
77070         * lib/unicase/locale-language.c: New file.
77071         * lib/unicase/locale-languages.gperf: New file.
77072         * modules/unicase/locale-language: New file.
77074         Generate more tables for case conversion and case folding.
77075         * lib/gen-uni-tables.c (SCC_*): New enum items.
77076         (struct special_casing_rule): New type.
77077         (casing_rules, num_casing_rules, allocated_casing_rules): New
77078         variables.
77079         (add_casing_rule, fill_casing_rules): New functions.
77080         (struct casefold_rule): New type.
77081         (casefolding_rules, num_casefolding_rules,
77082         allocated_casefolding_rules): New variables.
77083         (fill_casefolding_rules): New function.
77084         (unicode_casefold): New variable.
77085         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
77086         sort_casing_rules, output_casing_rules): New functions.
77087         (main): Accept to more arguments: SpecialCasing.txt and
77088         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
77089         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
77090         Output mapping for casefolding.
77092         * lib/unicase.h: Include stdbool.h, uninorm.h.
77093         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
77094         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
77095         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
77096         arguments.
77097         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
77098         resultp arguments.
77099         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
77100         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
77101         resultp arguments.
77102         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
77103         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
77104         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
77105         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
77106         declarations.
77107         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
77109 2009-03-08  Bruno Haible  <bruno@clisp.org>
77111         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
77112         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
77113         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
77114         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
77116 2009-03-07  Bruno Haible  <bruno@clisp.org>
77118         Adjust u*_normcmp, u*_normcoll API.
77119         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
77120         u16_normcoll, u32_normcoll): Change failure conventions.
77121         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
77122         errno and return -1.
77123         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
77125 2009-03-07  Bruno Haible  <bruno@clisp.org>
77127         Tests for module 'uninorm/u32-normcoll'.
77128         * modules/uninorm/u32-normcoll-tests: New file.
77129         * tests/uninorm/test-u32-normcoll.c: New file.
77131         Tests for module 'uninorm/u16-normcoll'.
77132         * modules/uninorm/u16-normcoll-tests: New file.
77133         * tests/uninorm/test-u16-normcoll.c: New file.
77135         Tests for module 'uninorm/u8-normcoll'.
77136         * modules/uninorm/u8-normcoll-tests: New file.
77137         * tests/uninorm/test-u8-normcoll.c: New file.
77139 2009-03-07  Bruno Haible  <bruno@clisp.org>
77141         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
77142         tests/uninorm/test-u32-normcmp.c.
77143         * tests/uninorm/test-u32-normcmp.c: Include it.
77144         (test_nonascii): New function, extracted from main. Add some more
77145         tests.
77146         (main): Invoke test_ascii and test_nonascii.
77147         * modules/uninorm/u32-normcmp-tests (Files): Add
77148         tests/uninorm/test-u32-normcmp.h.
77149         (Depends-on): Remove uninorm/u32-normcmp.
77151         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
77152         tests/uninorm/test-u16-normcmp.c.
77153         * tests/uninorm/test-u16-normcmp.c: Include it.
77154         (test_nonascii): New function, extracted from main. Add some more
77155         tests.
77156         (main): Invoke test_ascii and test_nonascii.
77157         * modules/uninorm/u16-normcmp-tests (Files): Add
77158         tests/uninorm/test-u16-normcmp.h.
77159         (Depends-on): Remove uninorm/u16-normcmp.
77161         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
77162         tests/uninorm/test-u8-normcmp.c.
77163         * tests/uninorm/test-u8-normcmp.c: Include it.
77164         (test_nonascii): New function, extracted from main. Add some more
77165         tests.
77166         (main): Invoke test_ascii and test_nonascii.
77167         * modules/uninorm/u8-normcmp-tests (Files): Add
77168         tests/uninorm/test-u8-normcmp.h.
77169         (Depends-on): Remove uninorm/u8-normcmp.
77171 2009-03-07  Bruno Haible  <bruno@clisp.org>
77173         New module 'uninorm/u32-normcoll'.
77174         * lib/uninorm/u32-normcoll.c: New file.
77175         * modules/uninorm/u32-normcoll: New file.
77177         New module 'uninorm/u16-normcoll'.
77178         * lib/uninorm/u16-normcoll.c: New file.
77179         * modules/uninorm/u16-normcoll: New file.
77181         New module 'uninorm/u8-normcoll'.
77182         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
77183         declarations.
77184         * lib/uninorm/u8-normcoll.c: New file.
77185         * lib/uninorm/u-normcoll.h: New file.
77186         * modules/uninorm/u8-normcoll: New file.
77188         New module 'uninorm/u32-normxfrm'.
77189         * lib/uninorm/u32-normxfrm.c: New file.
77190         * modules/uninorm/u32-normxfrm: New file.
77192         New module 'uninorm/u16-normxfrm'.
77193         * lib/uninorm/u16-normxfrm.c: New file.
77194         * modules/uninorm/u16-normxfrm: New file.
77196         New module 'uninorm/u8-normxfrm'.
77197         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
77198         declarations.
77199         * lib/uninorm/u8-normxfrm.c: New file.
77200         * lib/uninorm/u-normxfrm.h: New file.
77201         * modules/uninorm/u8-normxfrm: New file.
77203 2009-03-07  Bruno Haible  <bruno@clisp.org>
77205         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
77206         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
77207         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
77209 2009-03-07  Bruno Haible  <bruno@clisp.org>
77211         New module 'memxfrm'.
77212         * lib/memxfrm.h: New file.
77213         * lib/memxfrm.c: New file.
77214         * modules/memxfrm: New file.
77216 2009-03-07  Bruno Haible  <bruno@clisp.org>
77218         New module 'memcmp2'.
77219         * lib/memcmp2.h: New file.
77220         * lib/memcmp2.c: New file.
77221         * modules/memcmp2: New file.
77223 2009-03-07  Bruno Haible  <bruno@clisp.org>
77225         Tests for module 'uninorm/decomposing-form'.
77226         * modules/uninorm/decomposing-form-tests: New file.
77227         * tests/uninorm/test-decomposing-form.c: New file.
77229         New module 'uninorm/decomposing-form'.
77230         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
77231         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
77232         Add 'decomposing_variant' field.
77233         * lib/uninorm/decomposing-form.c: New file.
77234         * lib/uninorm/nfc.c (uninorm_nfc): Update.
77235         * lib/uninorm/nfd.c (uninorm_nfd): Update.
77236         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
77237         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
77238         * modules/uninorm/decomposing-form: New file.
77239         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
77240         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
77242 2009-03-07  Bruno Haible  <bruno@clisp.org>
77244         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
77245         strings.
77247 2009-03-06  Bruno Haible  <bruno@clisp.org>
77249         Tests for module 'uninorm/u32-normcmp'.
77250         * tests/uninorm/test-u32-normcmp.c: New file.
77251         * modules/uninorm/u32-normcmp-tests: New file.
77253         Tests for module 'uninorm/u16-normcmp'.
77254         * tests/uninorm/test-u16-normcmp.c: New file.
77255         * modules/uninorm/u16-normcmp-tests: New file.
77257         Tests for module 'uninorm/u8-normcmp'.
77258         * tests/uninorm/test-u8-normcmp.c: New file.
77259         * modules/uninorm/u8-normcmp-tests: New file.
77261         New module 'uninorm/u32-normcmp'.
77262         * lib/uninorm/u32-normcmp.c: New file.
77263         * modules/uninorm/u32-normcmp: New file.
77265         New module 'uninorm/u16-normcmp'.
77266         * lib/uninorm/u16-normcmp.c: New file.
77267         * modules/uninorm/u16-normcmp: New file.
77269         New module 'uninorm/u8-normcmp'.
77270         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
77271         declarations.
77272         * lib/uninorm/u8-normcmp.c: New file.
77273         * lib/uninorm/u-normcmp.h: New file.
77274         * modules/uninorm/u8-normcmp: New file.
77276 2009-03-06  Bruno Haible  <bruno@clisp.org>
77278         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
77279         Reported by Eric Blake.
77281 2009-03-06  Eric Blake  <ebb9@byu.net>
77282             Bruno Haible  <bruno@clisp.org>
77284         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
77285         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
77286         condition.
77287         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
77288         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
77289         condition.
77290         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
77292 2009-03-06  Eric Blake  <ebb9@byu.net>
77294         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
77295         to avoid compiler warnings.
77296         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
77298 2009-03-05  Bruno Haible  <bruno@clisp.org>
77300         * tests/test-ftell.c (main): Disable test beyond end of file on
77301         FreeMiNT.
77302         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
77304 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
77306         * lib/filevercmp.c: Move hidden files up in ordering.
77307         * tests/test-filevercmp.c: Add tests for hidden files.
77309 2009-03-04  Bruno Haible  <bruno@clisp.org>
77311         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
77312         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
77313         AM_CFLAGS.
77314         Reported by Simon Josefsson.
77316 2009-03-03  Bruno Haible  <bruno@clisp.org>
77318         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
77319         Reported by Simon Josefsson.
77321         * doc/ld-version-script.texi: Update node reference.
77323 2009-03-03  Bruno Haible  <bruno@clisp.org>
77325         * modules/visibility (License): Change to 'unlimited'.
77326         Suggested by Simon Josefsson.
77328 2009-03-03  Jim Meyering  <meyering@redhat.com>
77330         unlinkdir: cannot_unlink_dir may modify process state
77331         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
77332         it's neither thread-safe nor appropriate for use in a library.
77334 2009-03-03  Eric Blake  <ebb9@byu.net>
77336         test-closein: silence test under Darwin
77337         * tests/test-closein.sh: Ignore stderr from cat, since we don't
77338         care if it dies from EPIPE or EBADF.
77340 2009-03-03  Bruno Haible  <bruno@clisp.org>
77342         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
77343         earlier.
77344         * doc/visibility.texi: Fix @node and @section.
77346 2009-03-03  Simon Josefsson  <simon@josefsson.org>
77348         * doc/gnulib.texi: Link to sections for ld version script and
77349         visibility.
77350         * doc/visibility.texi: Add @node and @section.
77351         * modules/ld-version-script: New module.
77352         * m4/ld-version-script.m4: New file.
77353         * doc/ld-version-script.texi: New file.
77355 2009-03-02  David Lutterkort  <lutter@redhat.com>
77357         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
77358         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77360 2009-03-02  Bruno Haible  <bruno@clisp.org>
77362         * doc/visibility.texi: Mention libtool's -export-symbols option.
77364 2009-03-02  Jim Meyering  <meyering@redhat.com>
77366         announce-gen: new option: --no-print-checksums
77367         * build-aux/announce-gen (usage): Describe it.
77368         (print_checksums): Print a newline here, not in the [*] footnote.
77369         (main): Honor it.
77371 2009-03-01  Bruno Haible  <bruno@clisp.org>
77373         Use socklen_t in the native Windows replacements prototypes.
77374         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
77375         instead of 'int'.
77376         * lib/getsockopt.c (rpl_getsockopt): Likewise.
77377         * lib/setsockopt.c (rpl_setsockopt): Likewise.
77378         * modules/getsockopt (Depends-on): Add socklen.
77379         * modules/setsockopt (Depends-on): Add socklen.
77381 2009-03-01  Bruno Haible  <bruno@clisp.org>
77383         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
77384         least 4.2.
77386 2009-03-01  Eric Blake  <ebb9@byu.net>
77387             Bruno Haible  <bruno@clisp.org>
77389         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
77390         error messages.
77391         * lib/wait-process.c (wait_subprocess): Omit error message about
77392         deadly signal sent to the child of termsigp != NULL.
77394 2009-03-01  Eric Blake  <ebb9@byu.net>
77396         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
77398 2009-03-01  Bruno Haible  <bruno@clisp.org>
77400         Avoid a gcc warning.
77401         * tests/test-sched.c (b): Make global.
77402         Reported by Eric Blake.
77404 2009-01-19  Martin Lambers  <marlam@marlam.de>
77406         Provide POSIX semantics for socket timeout options on W32.
77407         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
77408         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
77409         * modules/setsockopt: Depend on sys_time module for struct timeval.
77410         * modules/getsockopt: Depend on sys_time module for struct timeval.
77412 2009-03-01  Simon Josefsson  <simon@josefsson.org>
77414         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
77415         __USE_GNU, for consistency with netdb.in.h.
77416         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
77418 2009-03-01  Bruno Haible  <bruno@clisp.org>
77420         More support for FreeMiNT.
77421         * lib/fseeko.c (rpl_fseeko): Complete last commit.
77422         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
77424 2009-03-01  Bruno Haible  <bruno@clisp.org>
77426         More support for FreeMiNT.
77427         * lib/fpurge.c (fpurge): Correct last commit.
77428         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
77430 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77432         Fix unportable awk script in vc-list-files.
77433         * build-aux/vc-list-files: In the replacement awk script, use
77434         substr with a second argument of 1, not zero.
77435         Report by Simon Josefsson.
77437 2009-02-28  Bruno Haible  <bruno@clisp.org>
77439         More support for FreeMiNT.
77440         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
77441         to FreeMiNT today.
77442         * lib/fwriting.c (fwriting): Likewise.
77443         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
77445 2009-02-28  Bruno Haible  <bruno@clisp.org>
77447         * tests/test-freadseek.c (main): Disable test beyond end of file on
77448         FreeMiNT.
77449         * tests/test-ftello.c (main): Likewise.
77450         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
77452 2009-02-28  Bruno Haible  <bruno@clisp.org>
77454         Add tentative support for FreeMiNT.
77455         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
77456         * lib/fpurge.c (fpurge): Likewise.
77457         * lib/freadable.c (freadable): Likewise.
77458         * lib/freading.c (freading): Likewise.
77459         * lib/freadptr.c (freadptr): Likewise.
77460         * lib/freadseek.c (freadptrinc): Likewise.
77461         * lib/fseeko.c (rpl_fseeko): Likewise.
77462         * lib/fseterr.c (fseterr): Likewise.
77463         * lib/fwritable.c (fwritable): Likewise.
77464         * lib/fwriting.c (fwriting): Likewise.
77465         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
77466         Hourihane.
77467         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
77469 2009-02-28  Bruno Haible  <bruno@clisp.org>
77471         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
77472         SIGCHLD.
77473         Reported by Jim Meyering.
77475 2009-02-28  Bruno Haible  <bruno@clisp.org>
77477         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
77478         Mention the results of these tests on various platforms.
77479         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
77480         order.
77481         * doc/posix-functions/printf.texi: Likewise.
77482         * doc/posix-functions/snprintf.texi: Likewise.
77483         * doc/posix-functions/sprintf.texi: Likewise.
77484         * doc/posix-functions/vfprintf.texi: Likewise.
77485         * doc/posix-functions/vprintf.texi: Likewise.
77486         * doc/posix-functions/vsnprintf.texi: Likewise.
77487         * doc/posix-functions/vsprintf.texi: Likewise.
77488         * doc/glibc-functions/obstack_printf.texi: Likewise.
77489         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
77491 2009-02-28  Bruno Haible  <bruno@clisp.org>
77493         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
77494         Reported by Loïc Minier <lool@dooz.org>.
77496 2009-02-27  Bruno Haible  <bruno@clisp.org>
77498         * gnulib-tool (func_import): Make the sed expression used to create the
77499         sed script for updating the .gitignore file POSIX compliant.
77500         Reported by Eric Blake.
77502 2009-02-27  Bruno Haible  <bruno@clisp.org>
77504         * gnulib-tool (sed): Don't alias as "sed --posix".
77505         Reported by Eric Blake.
77507 2009-02-27  Bruno Haible  <bruno@clisp.org>
77509         Avoid test link errors.
77510         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
77511         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
77512         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
77513         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
77514         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77516 2009-02-27  Bruno Haible  <bruno@clisp.org>
77518         Avoid spurious "(cached)" in configure output.
77519         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
77520         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
77521         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
77522         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
77523         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
77524         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
77525         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
77526         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
77527         Reported by Eric Blake.
77529 2009-02-27  Eric Blake  <ebb9@byu.net>
77531         printf: fix regression in previous patch
77532         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
77534 2009-02-27  Bruno Haible  <bruno@clisp.org>
77536         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
77537         value.
77538         * lib/stdint.in.h: Likewise.
77539         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
77541 2009-02-27  Eric Blake  <ebb9@byu.net>
77543         doc: mention more functions added in cygwin 1.7.0
77544         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
77545         addition.
77546         * doc/posix-functions/open_wmemstream.texi: Likewise.
77547         * doc/posix-functions/wcsnlen.texi: Likewise.
77548         * doc/posix-functions/wcsnrtombs.texi: Likewise.
77549         * doc/posix-functions/wcstod.texi: Likewise.
77550         * doc/posix-functions/wcstof.texi: Likewise.
77551         * doc/posix-functions/wcstoimax.texi: Likewise.
77552         * doc/posix-functions/wcstok.texi: Likewise.
77553         * doc/posix-functions/wcstoumax.texi: Likewise.
77555         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
77556         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
77557         * doc/posix-functions/fprintf.texi: Update.
77558         * doc/posix-functions/printf.texi: Update.
77559         * doc/posix-functions/snprintf.texi: Update.
77560         * doc/posix-functions/sprintf.texi: Update.
77561         * doc/posix-functions/vfprintf.texi: Update.
77562         * doc/posix-functions/vprintf.texi: Update.
77563         * doc/posix-functions/vsnprintf.texi: Update.
77564         * doc/posix-functions/vsprintf.texi: Update.
77565         * doc/glibc-functions/obstack_printf.texi: Update.
77566         * doc/glibc-functions/obstack_vprintf.texi: Update.
77568 2009-02-26  Eric Blake  <ebb9@byu.net>
77570         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
77571         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
77572         compilation bug by using runtime conversion.
77573         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
77574         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
77575         * modules/ceill-tests (Files): Use nan.h.
77576         * modules/floorl-tests (Files): Likewise.
77577         * modules/frexpl-tests (Files): Likewise.
77578         * modules/isnanl-tests (Files): Likewise.
77579         * modules/ldexpl-tests (Files): Likewise.
77580         * modules/roundl-tests (Files): Likewise.
77581         * modules/truncl-tests (Files): Likewise.
77582         * tests/test-ceill.c (main): Use a working NaN.
77583         * tests/test-floorl.c (main): Likewise.
77584         * tests/test-frexpl.c (main): Likewise.
77585         * tests/test-isnan.c (test_long_double): Likewise.
77586         * tests/test-isnanl.h (main): Likewise.
77587         * tests/test-ldexpl.h (main): Likewise.
77588         * tests/test-roundl.h (main): Likewise.
77589         * tests/test-truncl.h (main): Likewise.
77590         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
77592 2009-02-26  Eric Blake  <ebb9@byu.net>
77593             Bruno Haible  <bruno@clisp.org>
77595         Work around a *printf bug with %ls on Solaris.
77596         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
77597         precision is specified, sprintf stops converting the wide string
77598         argument when the number of bytes that have been produced by this
77599         conversion equals or exceeds the precision.
77600         * doc/posix-functions/fprintf.texi: Update.
77601         * doc/posix-functions/printf.texi: Update.
77602         * doc/posix-functions/snprintf.texi: Update.
77603         * doc/posix-functions/sprintf.texi: Update.
77604         * doc/posix-functions/vfprintf.texi: Update.
77605         * doc/posix-functions/vprintf.texi: Update.
77606         * doc/posix-functions/vsnprintf.texi: Update.
77607         * doc/posix-functions/vsprintf.texi: Update.
77608         * doc/glibc-functions/obstack_printf.texi: Update.
77609         * doc/glibc-functions/obstack_vprintf.texi: Update.
77611 2009-02-26  Eric Blake  <ebb9@byu.net>
77613         stdlib: favor compiler check of random.h
77614         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
77615         to avoid an ObjC random.h installed by Swarm.
77617 2009-02-26  Bruno Haible  <bruno@clisp.org>
77619         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
77620         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
77621         Reported by Gary V. Vaughan <gary@gnu.org>.
77623 2009-02-26  Bruno Haible  <bruno@clisp.org>
77625         Fix *printf behaviour regarding the %ls directive.
77626         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
77627         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
77628         NEED_PRINTF_DIRECTIVE_LS.
77629         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
77630         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
77631         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
77632         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
77633         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
77634         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
77635         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
77636         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
77637         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
77638         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
77639         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
77640         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
77641         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
77642         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
77643         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
77644         * doc/posix-functions/fprintf.texi: Update.
77645         * doc/posix-functions/printf.texi: Update.
77646         * doc/posix-functions/snprintf.texi: Update.
77647         * doc/posix-functions/sprintf.texi: Update.
77648         * doc/posix-functions/vfprintf.texi: Update.
77649         * doc/posix-functions/vprintf.texi: Update.
77650         * doc/posix-functions/vsnprintf.texi: Update.
77651         * doc/posix-functions/vsprintf.texi: Update.
77652         * doc/glibc-functions/obstack_printf.texi: Update.
77653         * doc/glibc-functions/obstack_vprintf.texi: Update.
77654         Reported by Eric Blake.
77656 2009-02-25  Bruno Haible  <bruno@clisp.org>
77658         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
77659         with known value.
77660         Reported by Gary V. Vaughan <gary@gnu.org>.
77662 2009-02-25  Bruno Haible  <bruno@clisp.org>
77664         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
77665         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
77666         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
77667         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
77668         Reported by Gary V. Vaughan <gary@gnu.org>.
77670 2009-02-25  Bruno Haible  <bruno@clisp.org>
77672         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
77673         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
77674         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
77675         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
77676         Reported by Gary V. Vaughan <gary@gnu.org>.
77678 2009-02-25  Eric Blake  <ebb9@byu.net>
77680         tests: skip fseek/ftell tests if ungetc is broken
77681         * m4/ungetc.m4: New file.
77682         * modules/fseek-tests: Split test, so ungetc dependency is
77683         separate from rest of test.
77684         * modules/fseeko-tests: Likewise.
77685         * modules/ftell-tests: Likewise.
77686         * modules/ftello-tests: Likewise.
77687         * tests/test-fseek.c (main): Isolate ungetc dependency.
77688         * tests/test-fseeko.c (main): Likewise.
77689         * tests/test-ftell.c (main): Likewise.
77690         * tests/test-ftello.c (main): Likewise.
77691         * tests/test-fseek2.sh: New file.
77692         * tests/test-fseeko2.sh: Likewise.
77693         * tests/test-ftell2.sh: Likewise.
77694         * tests/test-ftello2.sh: Likewise.
77696 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
77698         test-getaddrinfo: fix usage of skip return code 77
77699         * tests/test-gettaddrinfo.c: Return skip code 77 only
77700         for first occurrence of skip (4x77 is not 77)
77702 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
77704         strtod: avoid C99 decl-after-statement
77705         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
77707 2009-02-24  Eric Blake  <ebb9@byu.net>
77709         strtod: detect HP-UX 11.31 bug
77710         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
77711         Reported by Gary V. Vaughan.
77713 2009-02-23  Bruno Haible  <bruno@clisp.org>
77715         Fix invalid read past end of memory block.
77716         * lib/vasnprintf.c (DCHAR_SET): Define.
77717         (local_wcslen): Define only when needed.
77718         (local_strnlen, local_wcsnlen): New functions.
77719         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
77720         directives that involve a conversion ourselves.
77721         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
77722         wcsnlen, mbrtowc, wcrtomb.
77723         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
77724         * tests/test-vasprintf-posix.c (test_function): Likewise.
77725         * tests/test-snprintf-posix.h (test_function): Likewise.
77726         * tests/test-sprintf-posix.h (test_function): Likewise.
77727         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77729 2009-02-22  Bruno Haible  <bruno@clisp.org>
77731         Implement new clarified decomposition of Hangul syllables.
77732         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
77733         of type LTV, return only a pairwise decomposition.
77734         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
77735         Likewise.
77736         * tests/uninorm/test-decomposition.c (main): Updated expected result.
77737         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
77738         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
77740 2009-02-22  Bruno Haible  <bruno@clisp.org>
77742         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
77743         zero-length results and shrink excess allocated memory.
77744         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
77745         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
77746         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
77747         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
77748         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
77749         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
77750         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
77751         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
77752         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
77753         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
77754         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
77755         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
77757 2009-02-21  Bruno Haible  <bruno@clisp.org>
77759         * doc/gnulib.texi: Include safe-alloc.texi earlier.
77760         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
77761         spaces after a period. Put a space between a macro name and its
77762         argument list. Trivial rewordings.
77763         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
77764         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
77765         (main): Return 0 explicitly.
77767 2009-02-21  Bruno Haible  <bruno@clisp.org>
77769         Tests for module 'uninorm/filter'.
77770         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
77771         * modules/uninorm/filter-tests: New file.
77773         New module 'uninorm/filter'.
77774         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
77775         uninorm_filter_flush, uninorm_filter_free): New declarations.
77776         * lib/uninorm/uninorm-filter.c: New file.
77777         * modules/uninorm/filter: New file.
77779 2009-02-21  Bruno Haible  <bruno@clisp.org>
77781         Tests for module 'uninorm/nfkc'.
77782         * tests/uninorm/test-nfkc.c: New file.
77783         * tests/uninorm/test-u8-nfkc.c: New file.
77784         * tests/uninorm/test-u16-nfkc.c: New file.
77785         * tests/uninorm/test-u32-nfkc.c: New file.
77786         * tests/uninorm/test-u32-nfkc-big.sh: New file.
77787         * tests/uninorm/test-u32-nfkc-big.c: New file.
77788         * modules/uninorm/nfkc-tests: New file.
77790         New module 'uninorm/nfkc'.
77791         * lib/uninorm/nfkc.c: New file.
77792         * modules/uninorm/nfkc: New file.
77794         Tests for module 'uninorm/nfkd'.
77795         * tests/uninorm/test-nfkd.c: New file.
77796         * tests/uninorm/test-u8-nfkd.c: New file.
77797         * tests/uninorm/test-u16-nfkd.c: New file.
77798         * tests/uninorm/test-u32-nfkd.c: New file.
77799         * tests/uninorm/test-u32-nfkd-big.sh: New file.
77800         * tests/uninorm/test-u32-nfkd-big.c: New file.
77801         * modules/uninorm/nfkd-tests: New file.
77803         New module 'uninorm/nfkd'.
77804         * lib/uninorm/nfkd.c: New file.
77805         * modules/uninorm/nfkd: New file.
77807         Tests for module 'uninorm/nfc'.
77808         * tests/uninorm/test-nfc.c: New file.
77809         * tests/uninorm/test-u8-nfc.c: New file.
77810         * tests/uninorm/test-u16-nfc.c: New file.
77811         * tests/uninorm/test-u32-nfc.c: New file.
77812         * tests/uninorm/test-u32-nfc-big.sh: New file.
77813         * tests/uninorm/test-u32-nfc-big.c: New file.
77814         * modules/uninorm/nfc-tests: New file.
77816         New module 'uninorm/nfc'.
77817         * lib/uninorm/nfc.c: New file.
77818         * modules/uninorm/nfc: New file.
77820         Tests for module 'uninorm/nfd'.
77821         * tests/uninorm/test-nfd.c: New file.
77822         * tests/uninorm/test-u8-nfd.c: New file.
77823         * tests/uninorm/test-u16-nfd.c: New file.
77824         * tests/uninorm/test-u32-nfd.c: New file.
77825         * tests/uninorm/test-u32-nfd-big.sh: New file.
77826         * tests/uninorm/test-u32-nfd-big.c: New file.
77827         * tests/uninorm/test-u32-normalize-big.h: New file.
77828         * tests/uninorm/test-u32-normalize-big.c: New file.
77829         * tests/uninorm/NormalizationTest.txt: New file, created from
77830         Unicode 5.1.0 NormalizationTest.txt.
77831         * modules/uninorm/nfd-tests: New file.
77833         New module 'uninorm/nfd'.
77834         * lib/uninorm/nfd.c: New file.
77835         * modules/uninorm/nfd: New file.
77837         New module 'uninorm/u32-normalize'.
77838         * lib/uninorm/u32-normalize.c: New file.
77839         * modules/uninorm/u32-normalize: New file.
77841         New module 'uninorm/u16-normalize'.
77842         * lib/uninorm/u16-normalize.c: New file.
77843         * modules/uninorm/u16-normalize: New file.
77845         New module 'uninorm/u8-normalize'.
77846         * lib/uninorm/u8-normalize.c: New file.
77847         * lib/uninorm/normalize-internal.h: New file.
77848         * lib/uninorm/u-normalize-internal.h: New file.
77849         * modules/uninorm/u8-normalize: New file.
77851         New module 'uninorm/decompose-internal'.
77852         * lib/uninorm/decompose-internal.c: New file.
77853         * modules/uninorm/decompose-internal: New file.
77855         Tests for module 'uninorm/composition'.
77856         * tests/uninorm/test-composition.c: New file.
77857         * modules/uninorm/composition-tests: New file.
77859         New module 'uninorm/composition'.
77860         * lib/uninorm/composition.c: New file.
77861         * lib/uninorm/composition-table.gperf: New file, generated by
77862         gen-uni-tables.
77863         * modules/uninorm/composition: New file.
77865         Tests for module 'uninorm/compat-decomposition'.
77866         * tests/uninorm/test-compat-decomposition.c: New file.
77867         * modules/uninorm/compat-decomposition-tests: New file.
77869         New module 'uninorm/compat-decomposition'.
77870         * lib/uninorm/decompose-internal.h: New file.
77871         * lib/uninorm/compat-decomposition.c: New file.
77872         * modules/uninorm/compat-decomposition: New file.
77874         Tests for module 'uninorm/canonical-decomposition'.
77875         * tests/uninorm/test-canonical-decomposition.c: New file.
77876         * modules/uninorm/canonical-decomposition-tests: New file.
77878         New module 'uninorm/canonical-decomposition'.
77879         * lib/uninorm/canonical-decomposition.c: New file.
77880         * modules/uninorm/canonical-decomposition: New file.
77882         Tests for module 'uninorm/decomposition'.
77883         * tests/uninorm/test-decomposition.c: New file.
77884         * modules/uninorm/decomposition-tests: New file.
77886         New module 'uninorm/decomposition'.
77887         * lib/uninorm/decomposition.c: New file.
77888         * modules/uninorm/decomposition: New file.
77890         New module 'uninorm/decomposition-table'.
77891         * lib/uninorm/decomposition-table.h: New file.
77892         * lib/uninorm/decomposition-table.c: New file.
77893         * lib/uninorm/decomposition-table1.h: New file, generated by
77894         gen-uni-tables.
77895         * lib/uninorm/decomposition-table2.h: New file, generated by
77896         gen-uni-tables.
77897         * modules/uninorm/decomposition-table: New file.
77899         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
77900         (UC_DECOMP_*): New enumeration items.
77901         (get_decomposition): New function.
77902         (struct decomp_table): New type.
77903         (output_decomposition, output_decomposition_tables): New functions.
77904         (unicode_composition_exclusions): New variable.
77905         (fill_composition_exclusions, debug_output_composition_tables): New
77906         functions.
77907         (main): Accept one more argument. Invoke fill_composition_exclusions.
77908         Output decomposition and composition tables.
77910         New module 'uninorm/base'.
77911         * lib/uninorm.h: New file.
77912         * lib/unictype.h: Update comment.
77913         * modules/uninorm/base: New file.
77915 2009-02-21  David Lutterkort  <lutter@redhat.com>
77917         Tests for module 'safe-alloc'.
77918         * tests/test-safe-alloc.c: New file.
77919         * modules/safe-alloc-tests: New file.
77921         New module 'safe-alloc'.
77922         * lib/safe-alloc.h: New file.
77923         * lib/safe-alloc.c: New file.
77924         * m4/safe-alloc.m4: New file.
77925         * modules/safe-alloc: New file.
77926         * doc/safe-alloc.texi: New file.
77927         * doc/gnulib.texi: Include it.
77928         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
77929         safe-alloc.
77931 2009-02-18  Bruno Haible  <bruno@clisp.org>
77933         Fix link error on non-glibc systems.
77934         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
77935         variable.
77936         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77938 2009-02-18  Jim Meyering  <meyering@redhat.com>
77940         fts: avoid used-uninitialized error due to recent change
77941         * lib/fts.c (fts_read): Guard uses of the new member,
77942         parent->fts_n_dirs_remaining, since it's not relevant for
77943         the parent of a directory specified on the command-line.
77945 2009-02-17  James Youngman  <jay@gnu.org>
77946             Bruno Haible  <bruno@clisp.org>
77948         * m4/include_next.m4: Reformulate comment.
77950 2009-02-16  Jim Meyering  <meyering@redhat.com>
77952         fts: add #if guards so that the fts_lgpl module still builds
77953         * lib/fts.c: Guard just-added hash-table-using parts with
77954         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
77955         Reported by Simon Josefsson.
77957 2009-02-15  Bruno Haible  <bruno@clisp.org>
77959         * modules/array-mergesort-tests: New file.
77960         * tests/test-array-mergesort.c: New file.
77962         New module 'array-mergesort'.
77963         * modules/array-mergesort: New file.
77964         * lib/array-mergesort.h: New file.
77966 2009-02-15  Bruno Haible  <bruno@clisp.org>
77968         Fix 2009-02-07 commit.
77969         * lib/gen-uni-tables.c (output_predicate, output_category,
77970         output_combclass, output_bidi_category, output_decimal_digit,
77971         output_digit, output_numeric, output_mirror, output_scripts,
77972         output_ident_category, output_simple_mapping): Fix format directives.
77973         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
77975 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
77977         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
77978         fixes are available from IBM.
77980 2009-02-13  Jim Meyering  <meyering@redhat.com>
77982         fts: arrange not to stat non-directories in more cases
77983         This makes GNU find (when it doesn't need to stat each file)
77984         *much* more efficient at traversing reiserfs file systems.
77985         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
77986         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
77987         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
77988         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
77989         (leaf_optimization_applies): New function.
77990         (LCO_hash, LCO_compare): New helper functions.
77991         (link_count_optimize_ok): New function.
77992         (fts_stat): Initialize new member (if dir).
77993         (fts_read): Decrement parent's fts_n_dirs_remaining count if
77994         we've just stat'ed a directory.  Skip the stat call when possible.
77995         ---
77996         Note this AFS-related exchange:
77997         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
77998         and note find's pioctl call in find/fstype.c.
77999         But that is necessary only if you want to enable the
78000         optimization for AFS, and for now, I don't.
78002         fts: move a function definition "up" (no semantic change)
78003         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
78004         "up" to precede upcoming use of a related function.
78006 2009-02-11  Jim Meyering  <meyering@redhat.com>
78008         fts: correct internal computation of nlinks (optimization-related)
78009         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
78010         whether the current entry is a directory, so don't test it.
78012 2009-02-10  Bruno Haible  <bruno@clisp.org>
78014         Tests for module 'uniwbrk/ulc-wordbreaks'.
78015         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
78016         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
78017         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
78019         Tests for module 'uniwbrk/u32-wordbreaks'.
78020         * modules/uniwbrk/u32-wordbreaks-tests: New file.
78021         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
78023         Tests for module 'uniwbrk/u16-wordbreaks'.
78024         * modules/uniwbrk/u16-wordbreaks-tests: New file.
78025         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
78027         Tests for module 'uniwbrk/u8-wordbreaks'.
78028         * modules/uniwbrk/u8-wordbreaks-tests: New file.
78029         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
78031 2009-02-10  Bruno Haible  <bruno@clisp.org>
78033         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
78034         property.
78035         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
78036         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
78037         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
78039 2009-02-10  Simon Josefsson  <simon@josefsson.org>
78041         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
78042         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
78044 2009-02-10  Bruno Haible  <bruno@clisp.org>
78046         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
78047         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
78048         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
78049         * lib/unilbrk/u8-possible-linebreaks.c: Update.
78050         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
78051         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
78053 2009-02-09  Simon Josefsson  <simon@josefsson.org>
78055         * lib/sockets.h (gl_fd_to_handle): New function.
78057         * tests/test-sockets.c: Call gl_fd_to_handle.
78059 2009-02-09  Bruno Haible  <bruno@clisp.org>
78061         * doc/havelib.texi: Document the conventions on bi-arch systems.
78063 2009-02-08  Bruno Haible  <bruno@clisp.org>
78065         Document the AC_LIB_LINKFLAGS macro.
78066         * doc/havelib.texi: New file, mostly written on 2005-05-24.
78067         * doc/gnulib.texi: Include it.
78069 2009-02-08  Bruno Haible  <bruno@clisp.org>
78071         Fix wrong order of sections, compared to TOC.
78072         * doc/gnulib.texi: Include relocatable-maint.texi after the
78073         "Regular expressions" node, not before.
78075 2009-02-08  Bruno Haible  <bruno@clisp.org>
78077         Tests for module 'unicase/totitle'.
78078         * modules/unicase/totitle-tests: New file.
78080         Tests for module 'unicase/tolower'.
78081         * modules/unicase/tolower-tests: New file.
78083         Tests for module 'unicase/toupper'.
78084         * modules/unicase/toupper-tests: New file.
78085         * tests/unicase/test-mapping-part1.h: New file.
78086         * tests/unicase/test-mapping-part2.h: New file.
78088         New module 'unicase/totitle'.
78089         * modules/unicase/totitle: New file.
78090         * lib/unicase/totitle.c: New file.
78092         New module 'unicase/tolower'.
78093         * modules/unicase/tolower: New file.
78094         * lib/unicase/tolower.c: New file.
78096         New module 'unicase/toupper'.
78097         * modules/unicase/toupper: New file.
78098         * lib/unicase/toupper.c: New file.
78099         * lib/unicase/simple-mapping.h: New file.
78101         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
78102         (mapping_table): New structure.
78103         (output_simple_mapping): New function.
78104         (main): Invoke output_simple_mapping_test and output_simple_mapping.
78105         * modules/gen-uni-tables (Description): Update.
78106         * lib/unicase/toupper.h: New file, automatically generated by
78107         gen-uni-tables.
78108         * lib/unicase/tolower.h: New file, automatically generated by
78109         gen-uni-tables.
78110         * lib/unicase/totitle.h: New file, automatically generated by
78111         gen-uni-tables.
78112         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
78113         gen-uni-tables.
78114         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
78115         gen-uni-tables.
78116         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
78117         gen-uni-tables.
78119         New module 'unicase/base'.
78120         * modules/unicase/base: New file.
78121         * lib/unicase.h: New file.
78123 2009-02-08  Bruno Haible  <bruno@clisp.org>
78125         New module 'uniwbrk/ulc-wordbreaks'.
78126         * modules/uniwbrk/ulc-wordbreaks: New file.
78127         * lib/uniwbrk/ulc-wordbreaks.c: New file.
78129         New module 'uniwbrk/u32-wordbreaks'.
78130         * modules/uniwbrk/u32-wordbreaks: New file.
78131         * lib/uniwbrk/u32-wordbreaks.c: New file.
78133         New module 'uniwbrk/u16-wordbreaks'.
78134         * modules/uniwbrk/u16-wordbreaks: New file.
78135         * lib/uniwbrk/u16-wordbreaks.c: New file.
78137         New module 'uniwbrk/u8-wordbreaks'.
78138         * modules/uniwbrk/u8-wordbreaks: New file.
78139         * lib/uniwbrk/u8-wordbreaks.c: New file.
78140         * lib/uniwbrk/u-wordbreaks.h: New file.
78142         New module 'uniwbrk/table'.
78143         * modules/uniwbrk/table: New file.
78144         * lib/uniwbrk/wbrktable.h: New file.
78145         * lib/uniwbrk/wbrktable.c: New file.
78147         New module 'uniwbrk/wordbreak-property'.
78148         * modules/uniwbrk/wordbreak-property: New file.
78149         * lib/uniwbrk/wordbreak-property.c: New file.
78151         * lib/gen-uni-tables.c (WBP_*): New enum items.
78152         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
78153         (unicode_org_wbp): New variable.
78154         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
78155         New functions.
78156         (wbp_table): New structure.
78157         (output_wbp, output_wbrk_tables): New functions.
78158         (main): Accept additional argument. Invoke fill_org_wbp,
78159         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
78160         output_wbrk_tables.
78161         * modules/gen-uni-tables (Description): Update.
78162         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
78163         gen-uni-tables.
78165         New module 'uniwbrk/base'.
78166         * modules/uniwbrk/base: New file.
78167         * lib/uniwbrk.h: New file.
78169 2009-02-08  Bruno Haible  <bruno@clisp.org>
78171         Update to Unicode 5.1.0.
78172         * lib/gen-uni-tables.c (is_property_alphabetic): Include
78173         U+2185..U+2188.
78174         (is_property_default_ignorable_code_point): Don't include characters
78175         of category Cc or Cs and not-a-characters.
78176         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
78177         U+0D79, U+109E, U+109F, U+A60C.
78178         * lib/unictype/bidi_of.h: Regenerated.
78179         * lib/unictype/blocks.h: Regenerated.
78180         * lib/unictype/categ_C.h: Regenerated.
78181         * lib/unictype/categ_Cf.h: Regenerated.
78182         * lib/unictype/categ_Cn.h: Regenerated.
78183         * lib/unictype/categ_L.h: Regenerated.
78184         * lib/unictype/categ_Ll.h: Regenerated.
78185         * lib/unictype/categ_Lm.h: Regenerated.
78186         * lib/unictype/categ_Lo.h: Regenerated.
78187         * lib/unictype/categ_Lu.h: Regenerated.
78188         * lib/unictype/categ_M.h: Regenerated.
78189         * lib/unictype/categ_Mc.h: Regenerated.
78190         * lib/unictype/categ_Me.h: Regenerated.
78191         * lib/unictype/categ_Mn.h: Regenerated.
78192         * lib/unictype/categ_N.h: Regenerated.
78193         * lib/unictype/categ_Nd.h: Regenerated.
78194         * lib/unictype/categ_Nl.h: Regenerated.
78195         * lib/unictype/categ_No.h: Regenerated.
78196         * lib/unictype/categ_P.h: Regenerated.
78197         * lib/unictype/categ_Pd.h: Regenerated.
78198         * lib/unictype/categ_Pe.h: Regenerated.
78199         * lib/unictype/categ_Pf.h: Regenerated.
78200         * lib/unictype/categ_Pi.h: Regenerated.
78201         * lib/unictype/categ_Po.h: Regenerated.
78202         * lib/unictype/categ_Ps.h: Regenerated.
78203         * lib/unictype/categ_S.h: Regenerated.
78204         * lib/unictype/categ_Sk.h: Regenerated.
78205         * lib/unictype/categ_Sm.h: Regenerated.
78206         * lib/unictype/categ_So.h: Regenerated.
78207         * lib/unictype/categ_of.h: Regenerated.
78208         * lib/unictype/combining.h: Regenerated.
78209         * lib/unictype/ctype_alnum.h: Regenerated.
78210         * lib/unictype/ctype_alpha.h: Regenerated.
78211         * lib/unictype/ctype_graph.h: Regenerated.
78212         * lib/unictype/ctype_lower.h: Regenerated.
78213         * lib/unictype/ctype_print.h: Regenerated.
78214         * lib/unictype/ctype_punct.h: Regenerated.
78215         * lib/unictype/ctype_upper.h: Regenerated.
78216         * lib/unictype/decdigit.h: Regenerated.
78217         * lib/unictype/digit.h: Regenerated.
78218         * lib/unictype/mirror.h: Regenerated.
78219         * lib/unictype/numeric.h: Regenerated.
78220         * lib/unictype/pr_alphabetic.h: Regenerated.
78221         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
78222         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
78223         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
78224         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
78225         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
78226         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
78227         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
78228         * lib/unictype/pr_combining.h: Regenerated.
78229         * lib/unictype/pr_dash.h: Regenerated.
78230         * lib/unictype/pr_decimal_digit.h: Regenerated.
78231         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
78232         * lib/unictype/pr_deprecated.h: Regenerated.
78233         * lib/unictype/pr_diacritic.h: Regenerated.
78234         * lib/unictype/pr_extender.h: Regenerated.
78235         * lib/unictype/pr_format_control.h: Regenerated.
78236         * lib/unictype/pr_grapheme_base.h: Regenerated.
78237         * lib/unictype/pr_grapheme_extend.h: Regenerated.
78238         * lib/unictype/pr_grapheme_link.h: Regenerated.
78239         * lib/unictype/pr_id_continue.h: Regenerated.
78240         * lib/unictype/pr_id_start.h: Regenerated.
78241         * lib/unictype/pr_ideographic.h: Regenerated.
78242         * lib/unictype/pr_ignorable_control.h: Regenerated.
78243         * lib/unictype/pr_lowercase.h: Regenerated.
78244         * lib/unictype/pr_math.h: Regenerated.
78245         * lib/unictype/pr_numeric.h: Regenerated.
78246         * lib/unictype/pr_other_alphabetic.h: Regenerated.
78247         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
78248         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
78249         * lib/unictype/pr_other_id_continue.h: Regenerated.
78250         * lib/unictype/pr_other_lowercase.h: Regenerated.
78251         * lib/unictype/pr_other_math.h: Regenerated.
78252         * lib/unictype/pr_punctuation.h: Regenerated.
78253         * lib/unictype/pr_sentence_terminal.h: Regenerated.
78254         * lib/unictype/pr_soft_dotted.h: Regenerated.
78255         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
78256         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
78257         * lib/unictype/pr_unified_ideograph.h: Regenerated.
78258         * lib/unictype/pr_uppercase.h: Regenerated.
78259         * lib/unictype/pr_xid_continue.h: Regenerated.
78260         * lib/unictype/pr_xid_start.h: Regenerated.
78261         * lib/unictype/pr_zero_width.h: Regenerated.
78262         * lib/unictype/scripts.h: Regenerated.
78263         * lib/unictype/scripts_byname.gperf: Regenerated.
78264         * lib/unictype/sy_java_ident.h: Regenerated.
78265         * lib/unilbrk/lbrkprop1.h: Regenerated.
78266         * lib/unilbrk/lbrkprop2.h: Regenerated.
78267         * tests/unictype/test-categ_C.c: Regenerated.
78268         * tests/unictype/test-categ_Cf.c: Regenerated.
78269         * tests/unictype/test-categ_Cn.c: Regenerated.
78270         * tests/unictype/test-categ_L.c: Regenerated.
78271         * tests/unictype/test-categ_Ll.c: Regenerated.
78272         * tests/unictype/test-categ_Lm.c: Regenerated.
78273         * tests/unictype/test-categ_Lo.c: Regenerated.
78274         * tests/unictype/test-categ_Lu.c: Regenerated.
78275         * tests/unictype/test-categ_M.c: Regenerated.
78276         * tests/unictype/test-categ_Mc.c: Regenerated.
78277         * tests/unictype/test-categ_Me.c: Regenerated.
78278         * tests/unictype/test-categ_Mn.c: Regenerated.
78279         * tests/unictype/test-categ_N.c: Regenerated.
78280         * tests/unictype/test-categ_Nd.c: Regenerated.
78281         * tests/unictype/test-categ_Nl.c: Regenerated.
78282         * tests/unictype/test-categ_No.c: Regenerated.
78283         * tests/unictype/test-categ_P.c: Regenerated.
78284         * tests/unictype/test-categ_Pd.c: Regenerated.
78285         * tests/unictype/test-categ_Pe.c: Regenerated.
78286         * tests/unictype/test-categ_Pf.c: Regenerated.
78287         * tests/unictype/test-categ_Pi.c: Regenerated.
78288         * tests/unictype/test-categ_Po.c: Regenerated.
78289         * tests/unictype/test-categ_Ps.c: Regenerated.
78290         * tests/unictype/test-categ_S.c: Regenerated.
78291         * tests/unictype/test-categ_Sk.c: Regenerated.
78292         * tests/unictype/test-categ_Sm.c: Regenerated.
78293         * tests/unictype/test-categ_So.c: Regenerated.
78294         * tests/unictype/test-ctype_alnum.c: Regenerated.
78295         * tests/unictype/test-ctype_alpha.c: Regenerated.
78296         * tests/unictype/test-ctype_graph.c: Regenerated.
78297         * tests/unictype/test-ctype_lower.c: Regenerated.
78298         * tests/unictype/test-ctype_print.c: Regenerated.
78299         * tests/unictype/test-ctype_punct.c: Regenerated.
78300         * tests/unictype/test-ctype_upper.c: Regenerated.
78301         * tests/unictype/test-decdigit.h: Regenerated.
78302         * tests/unictype/test-digit.h: Regenerated.
78303         * tests/unictype/test-numeric.h: Regenerated.
78304         * tests/unictype/test-pr_alphabetic.c: Regenerated.
78305         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
78306         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
78307         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
78308         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
78309         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
78310         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
78311         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
78312         * tests/unictype/test-pr_combining.c: Regenerated.
78313         * tests/unictype/test-pr_dash.c: Regenerated.
78314         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
78315         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
78316         * tests/unictype/test-pr_deprecated.c: Regenerated.
78317         * tests/unictype/test-pr_diacritic.c: Regenerated.
78318         * tests/unictype/test-pr_extender.c: Regenerated.
78319         * tests/unictype/test-pr_format_control.c: Regenerated.
78320         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
78321         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
78322         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
78323         * tests/unictype/test-pr_id_continue.c: Regenerated.
78324         * tests/unictype/test-pr_id_start.c: Regenerated.
78325         * tests/unictype/test-pr_ideographic.c: Regenerated.
78326         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
78327         * tests/unictype/test-pr_lowercase.c: Regenerated.
78328         * tests/unictype/test-pr_math.c: Regenerated.
78329         * tests/unictype/test-pr_numeric.c: Regenerated.
78330         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
78331         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
78332         Regenerated.
78333         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
78334         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
78335         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
78336         * tests/unictype/test-pr_other_math.c: Regenerated.
78337         * tests/unictype/test-pr_punctuation.c: Regenerated.
78338         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
78339         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
78340         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
78341         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
78342         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
78343         * tests/unictype/test-pr_uppercase.c: Regenerated.
78344         * tests/unictype/test-pr_xid_continue.c: Regenerated.
78345         * tests/unictype/test-pr_xid_start.c: Regenerated.
78346         * tests/unictype/test-pr_zero_width.c: Regenerated.
78348         Update to Unicode 5.1.0.
78349         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
78350         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
78351         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
78352         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
78353         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
78354         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
78355         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
78356         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
78357         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
78358         (nonspacing_table_ind): Update.
78359         * tests/uniwidth/test-uc_width2.sh: Update expected result.
78361         Update to Unicode 5.1.0.
78362         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
78363         code transform.
78364         * lib/uniname/uniname.c (unicode_character_name,
78365         unicode_name_character): Add the range 0x1Fxxx to the code transform.
78366         * lib/uniname/uninames.h: Regenerated.
78367         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
78369 2009-02-07  Bruno Haible  <bruno@clisp.org>
78371         Merge gen-ctype and gen-lbrk into a single program.
78372         * lib/gen-uni-tables.c: New file, incorporating
78373         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
78374         Add directory prefixes to the names of the generated files.
78375         * lib/unictype/gen-ctype.c: Remove file.
78376         * lib/unilbrk/gen-lbrk.c: Remove file.
78377         * modules/gen-uni-tables: New file.
78378         * modules/unictype/gen-ctype: Remove file.
78379         * modules/unilbrk/gen-lbrk: Remove file.
78381 2009-02-07  Bruno Haible  <bruno@clisp.org>
78383         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
78385         New module 'unistr/u32-strcoll'.
78386         * modules/unistr/u32-strcoll: New file.
78387         * lib/unistr/u32-strcoll.c: New file.
78389         New module 'unistr/u16-strcoll'.
78390         * modules/unistr/u16-strcoll: New file.
78391         * lib/unistr/u16-strcoll.c: New file.
78393         New module 'unistr/u8-strcoll'.
78394         * modules/unistr/u8-strcoll: New file.
78395         * lib/unistr/u8-strcoll.c: New file.
78396         * lib/unistr/u-strcoll.h: New file.
78398 2009-02-07  Bruno Haible  <bruno@clisp.org>
78400         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
78401         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
78402         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
78403         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
78404         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
78405         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
78407 2009-02-07  Bruno Haible  <bruno@clisp.org>
78409         Make 64-bit clean.
78410         * lib/unictype/gen-ctype.c (output_predicate, output_category,
78411         output_combclass, output_bidi_category, output_decimal_digit,
78412         output_digit, output_numeric, output_mirror, output_scripts,
78413         output_ident_category): Use proper width specifier in format strings.
78415 2009-02-07  Bruno Haible  <bruno@clisp.org>
78417         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
78418         failure behaviour.
78420 2009-02-07  Jim Meyering  <meyering@redhat.com>
78422         regex: avoid compilation failure with upcoming gcc-4.4
78423         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
78424         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
78425         "... error: integer overflow in preprocessor expression".
78427 2009-02-05  Ben Pfaff  <blp@gnu.org>
78429         Fix link errors on Windows when close module is used.
78430         * modules/close: Add $(LIB_CLOSE) to Link section.
78431         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
78432         $(LIB_CLOSE) on Windows.
78434 2009-02-05  Jim Meyering  <meyering@redhat.com>
78436         still avoid unused-parameter warnings, but do it cleanly
78437         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
78438         (get_fs_usage): Cast to void instead.
78439         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
78440         (dev_from_mount_options, read_file_system_list): Cast to void.
78441         Prompted by Bruno Haible.
78443 2009-02-04  Jim Meyering  <meyering@redhat.com>
78445         fsusage.c: correct copyright year
78446         * lib/fsusage.c: Reflect year in which the change is pushed into
78448         avoid misc. warnings
78449         * lib/fsusage.c (UNUSED_PARAM): Define.
78450         (get_fs_usage): Mark parameter "disk" as unused.
78451         * lib/getugroups.c (getgrent): Use "void" in prototype.
78452         * lib/mountlist.c: Mark unused parameters.
78453         (read_file_system_list): Declare a local with "const".
78454         * lib/nanosleep.c (getnow): Declare static.
78455         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
78457         dirfd: set errno upon failure
78458         * lib/dirfd.c: Include <errno.h>.
78459         Set errno to ENOTSUP when returning -1.
78460         * modules/dirfd (Depends-on): Add errno.
78461         Suggested by John Kodis <kodis@comcast.net>.
78463 2009-02-01  Bruno Haible  <bruno@clisp.org>
78465         Don't assume sizeof (long) >= sizeof (void *).
78466         * lib/memcmp.c: Include stdint.h.
78467         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
78468         srcp2 to 'const byte *'.
78469         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
78470         types to uintptr_t.
78471         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
78472         * modules/memcmp (Depends-on): Add stdint.
78473         Reported by Ozkan Sezer <sezeroz@gmail.com>.
78475 2009-01-30  Eric Blake  <ebb9@byu.net>
78477         fix more require-before-expand issues
78478         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
78479         expand, AC_PROG_AWK.
78480         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
78482 2009-01-28  Eric Blake  <ebb9@byu.net>
78484         version-etc: use consistent URL formatting
78485         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
78486         Improve formatting.  Use fputs for string without %.
78488 2009-01-28  Jim Meyering  <meyering@redhat.com>
78490         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
78491         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
78492         "underquoted definition of NAME" from autoconf-2.59.
78494 2009-01-28  Bruno Haible  <bruno@clisp.org>
78496         * doc/gnulib.texi: Add "Obsolete modules" to index.
78498 2009-01-28  Jim Meyering  <meyering@redhat.com>
78500         useless-if-before-free: recognize more variants
78501         * build-aux/useless-if-before-free: Also recognize e.g.,
78502         if (NULL != p) free (p);
78504 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
78506         test-getaddrinfo: skip (don't fail) this test when there's no network
78507         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
78508         on the presumption that it means you lack network access.
78510 2009-01-26  Jim Meyering  <meyering@redhat.com>
78512         fflush: avoid warnings on modern systems
78513         * lib/fflush.c (rpl_fflush): Move declarations of locals,
78514         pos and result, into scopes where they're used.
78516 2009-01-26  Eric Blake  <ebb9@byu.net>
78518         Silence warning reintroduced by recent extensions patch.
78519         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
78520         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
78521         autoconf.
78523         Backport improved autoconf semantics of AC_DEFUN_ONCE.
78524         * m4/00gnulib.m4: New file.
78525         * gnulib-tool (func_get_filelist): Always use it.
78526         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
78527         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
78529 2009-01-25  Bruno Haible  <bruno@clisp.org>
78531         Make test-quotearg work on MacOS X and AIX.
78532         * tests/test-quotearg.sh: New file.
78533         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
78534         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
78535         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
78536         include <libintl.h>.
78537         (fake_locale): Remove variable.
78538         (gettext, dgettext, dcgettext): Remove functions.
78539         (main): Instead of setting a fake locale, set a real locale. Call
78540         textdomain and bindtextdomain.
78541         * modules/quotearg-tests (Files): Add the new files.
78542         (Depends-on): Add gettext, setenv, unsetenv.
78543         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
78544         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
78545         Augment TESTS_ENVIRONMENT.
78547 2009-01-25  Bruno Haible  <bruno@clisp.org>
78549         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
78550         fr_FR.ISO8859-1 locale on MacOS X.
78551         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
78552         ja_JP.eucJP locale on MacOS X.
78553         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
78554         zh_CN.GB18030 locale on MacOS X.
78556 2009-01-25  Bruno Haible  <bruno@clisp.org>
78558         Avoid link errors on MacOS X 10.3.
78559         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
78560         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
78562 2009-01-25  Bruno Haible  <bruno@clisp.org>
78564         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
78565         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
78566         * modules/pipe (Files): Remove m4/posix_spawn.m4.
78567         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
78568         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
78569         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
78570         posix_spawnattr_init, posix_spawnattr_setsigmask,
78571         posix_spawnattr_setflags, posix_spawnattr_destroy.
78573         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
78574         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
78575         * modules/execute (Files): Remove m4/posix_spawn.m4.
78576         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
78577         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
78578         posix_spawnattr_init, posix_spawnattr_setsigmask,
78579         posix_spawnattr_setflags, posix_spawnattr_destroy.
78581 2009-01-25  Bruno Haible  <bruno@clisp.org>
78583         * lib/glthread/threadlib.c: Include <stdlib.h>.
78585 2009-01-25  Bruno Haible  <bruno@clisp.org>
78587         * lib/glthread/threadlib.c (dummy): New declaration.
78589 2009-01-25  Bruno Haible  <bruno@clisp.org>
78591         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
78592         multibyte characters also for the GB18030 encoding. Don't crash when
78593         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
78595 2009-01-25  Bruno Haible  <bruno@clisp.org>
78597         Avoid redefining 'struct random_data' on OSF/1 5.1.
78598         * lib/stdlib.in.h: Include <random.h> if it exists.
78599         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
78600         HAVE_RANDOM_H. Include <random.h> when testing whether
78601         'struct random_data' exists.
78602         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
78604 2009-01-25  Bruno Haible  <bruno@clisp.org>
78606         Don't install charset.alias on MacOS X >= 10.3.
78607         * lib/localcharset.c (DARWIN7): New macro.
78608         (get_charset_aliases): Hardcode the result for Darwin7.
78609         * modules/localcharset (install-exec-local): Don't install
78610         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
78612 2009-01-25  Bruno Haible  <bruno@clisp.org>
78614         Don't install charset.alias on mingw and Cygwin.
78615         * modules/localcharset (install-exec-local): Don't install
78616         charset.alias on mingw and Cygwin, if the file does not yet exist.
78617         The result for these platforms is hardcoded in localcharset.c.
78619 2009-01-25  Bruno Haible  <bruno@clisp.org>
78621         Make it possible again to use AC_GNU_SOURCE together with gnulib.
78622         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
78623         before requiring AC_USE_SYSTEM_EXTENSIONS.
78625 2009-01-25  Jim Meyering  <meyering@redhat.com>
78627         c-strtod: avoid warnings
78628         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
78629         "assignment discards qualifiers from pointer target type" warnings.
78631 2009-01-24  Bruno Haible  <bruno@clisp.org>
78633         Add support for non-UTF-8 locales on MacOS X.
78634         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
78635         canonical encodings. For Darwin 7 and newer, don't map traditional
78636         encodings to UTF-8.
78637         Reported by Vincent Lefevre <vincent@vinc17.org>
78638         at <http://savannah.gnu.org/bugs/?25235>.
78640 2009-01-24  Bruno Haible  <bruno@clisp.org>
78642         * doc/gnulib.texi (Obsolete modules): New section.
78643         Reported by Mike Frysinger <vapier@gentoo.org>.
78645 2009-01-24  Bruno Haible  <bruno@clisp.org>
78647         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
78648         (%.dvi): New rule.
78650 2009-01-24  Bruno Haible  <bruno@clisp.org>
78652         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
78653         Reported by Eric Blake.
78655 2009-01-24  Bruno Haible  <bruno@clisp.org>
78657         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
78658         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
78659         Reported by Gary V. Vaughan <gary@gnu.org>.
78661 2009-01-24  Bruno Haible  <bruno@clisp.org>
78663         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
78665 2009-01-23  Bruno Haible  <bruno@clisp.org>
78667         Make c-strtod, c-strtold usable in libraries.
78668         * lib/c-strtod.c: Include string.h instead of xalloc.h.
78669         (C_STRTOD): Call strdup instead of xstrdup.
78670         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
78671         * modules/c-strtold (Depends-on): Likewise.
78672         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
78673         * NEWS: Mention the change.
78674         Reported by Michael Gold <mgold@ncf.ca>.
78676 2009-01-23  Jim Meyering  <meyering@redhat.com>
78678         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
78679         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
78680         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
78682 2009-01-23  Simon Josefsson  <simon@josefsson.org>
78684         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
78685         GNU CoreUtils.
78686         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
78687         * modules/version-etc (Description): Update.
78689 2009-01-22  Bruno Haible  <bruno@clisp.org>
78691         Cache the C locale object.
78692         * lib/c-strtod.c (c_locale_cache): New variable.
78693         (c_locale): New function.
78694         (C_STRTOD): Use it, and don't call freelocale.
78695         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
78696         Suggested by Paolo Bonzini.
78698 2009-01-21  Bruno Haible  <bruno@clisp.org>
78700         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
78701         conditions other than overflow.
78703 2009-01-21  Bruno Haible  <bruno@clisp.org>
78705         * lib/c-strtod.c: Include errno.h.
78706         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
78707         value from STRTOD_L and STRTOD.
78709 2009-01-21  Bruno Haible  <bruno@clisp.org>
78710         and Jim Meyering  <meyering@redhat.com>
78712         nanosleep: skip configure test (fail it) for apple universal builds
78713         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
78714         universal builds, assume that nanosleep does not work.
78715         * modules/nanosleep (Depends-on): Add multiarch.
78717         mktime: skip configure test (fail it) for apple universal builds
78718         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
78719         universal builds, assume that mktime does not work.
78720         * modules/mktime (Depends-on): Add multiarch.
78722 2009-01-21  Eric Blake  <ebb9@byu.net>
78724         multiarch: avoid expand-before-require warning
78725         * modules/multiarch (configure.ac): Require, rather than expand,
78726         gl_MULTIARCH.
78727         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
78728         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
78729         enforce that all clients require it.  Partial reversion of
78730         2008-12-29 patch.
78732         error: avoid expand-before-require warning
78733         * modules/errno (configure.ac): Require, rather than expand,
78734         gl_HEADER_ERRNO_H.
78735         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
78736         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
78737         enforce that all clients require it.
78739         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
78740         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
78741         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
78742         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
78744 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
78746         Revert:
78747         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
78749         regex: do not depend on obsolete modules.
78750         * modules/regex: Remove memcmp and memmove.
78752 2009-01-20  Bruno Haible  <bruno@clisp.org>
78754         Make the 'link' module link on Windows NT 4.
78755         * lib/link.c (_WIN32_WINNT): Don't define.
78756         (CreateHardLinkFuncType): New type.
78757         (CreateHardLinkFunc, initialized): New variables.
78758         (initialize): New function.
78759         (link): Invoke CreateHardLink indirectly through the function pointer.
78761 2009-01-20  Bruno Haible  <bruno@clisp.org>
78763         Fix compilation failure on mingw.
78764         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
78766 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
78768         * doc/c-strtod.texi: Mention a couple of restrictions.
78770 2009-01-20  Jim Meyering  <meyering@redhat.com>
78772         gettimeofday: move more declarations out of functions
78773         * lib/gettimeofday.c: Move extern declarations of tzset and
78774         gmtime out of containing functions.  Prompted by Bruno Haible.
78776 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
78778         regex: do not depend on obsolete modules.
78779         * modules/regex: Remove memcmp and memmove.
78781 2009-01-19  Bruno Haible  <bruno@clisp.org>
78783         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
78784         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
78785         gl_BIGENDIAN, not AC_C_BIGENDIAN.
78786         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
78787         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
78789 2009-01-19  Bruno Haible  <bruno@clisp.org>
78791         * tests/test-link.c: Include <errno.h>.
78792         (main): Exit with code 77 when a hard link cannot be created due to
78793         the file system.
78794         * tests/test-link.sh: Skip test when a hard link cannot be created due
78795         to the file system.
78796         Suggested by Eric Blake.
78798 2009-01-19  Martin Lambers  <marlam@marlam.de>
78800         * modules/link-tests: New file.
78801         * tests/test-link.sh: New file.
78802         * tests/test-link.c: New file.
78804 2009-01-19  Eric Blake  <ebb9@byu.net>
78806         doc: mention another function added in cygwin 1.7.0
78807         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
78808         Another new function in cygwin 1.7.
78810 2009-01-19  Bruno Haible  <bruno@clisp.org>
78812         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
78813         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
78814         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
78815         gl_BIGENDIAN, not AC_C_BIGENDIAN.
78816         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
78817         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
78818         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
78819         * m4/md4.m4 (gl_MD4): Likewise.
78820         * m4/md5.m4 (gl_MD5): Likewise.
78821         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
78822         * m4/sha1.m4 (gl_SHA1): Likewise.
78823         * m4/sha256.m4 (gl_SHA256): Likewise.
78824         * m4/sha512.m4 (gl_SHA512): Likewise.
78826 2009-01-19  Bruno Haible  <bruno@clisp.org>
78828         * modules/uniname/uniname-tests (Depends-on): Add progname.
78829         * tests/uniname/test-uninames.c: Include progname.h.
78830         (main): Call set_program_name.
78832         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
78833         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
78834         (main): Call set_program_name.
78836         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
78837         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
78838         (main): Call set_program_name.
78840         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
78841         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
78842         (main): Call set_program_name.
78844         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
78845         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
78846         (main): Call set_program_name.
78848         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
78849         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
78850         (main): Call set_program_name.
78852         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
78853         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
78854         (main): Call set_program_name.
78856         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
78857         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
78858         (main): Call set_program_name.
78860         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
78861         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
78862         (main): Call set_program_name.
78864 2009-01-19  Eric Blake  <ebb9@byu.net>
78866         test-unistd: test previous patch
78867         * tests/test-unistd.c: Test *_FILENO macros.
78869         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
78870         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
78871         Guarantee a definition.
78872         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
78873         * modules/unistd-safer (Depends-on): Add dependency on unistd.
78874         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
78875         * lib/dup-safer.c (STDERR_FILENO): Likewise.
78876         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
78877         Likewise.
78878         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
78879         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
78880         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
78881         Likewise.
78882         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
78883         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
78884         (STDERR_FILENO): Likewise.
78885         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
78886         (STDERR_FILENO): Likewise.
78887         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
78888         (STDERR_FILENO): Likewise.
78889         Reported by Elbert Pol.
78891 2009-01-19  Eric Blake  <ebb9@byu.net>
78893         doc: mention more functions added in cygwin 1.7.0
78894         * doc/posix-functions/abort.texi (abort): Update wording related
78895         to cygwin.
78896         * doc/posix-functions/daylight.texi (daylight): Likewise.
78897         * doc/posix-functions/optarg.texi (optarg): Likewise.
78898         * doc/posix-functions/optarg.texi (opterr): Likewise.
78899         * doc/posix-functions/optarg.texi (optind): Likewise.
78900         * doc/posix-functions/optarg.texi (optopt): Likewise.
78901         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
78902         worked in 1.5.x, and was withdrawn in 1.7.
78903         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
78904         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
78905         cygwin versions.
78906         * doc/posix-functions/perror.texi (perror): Likewise.
78907         * doc/posix-functions/printf.texi (printf): Likewise.
78908         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
78909         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
78910         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
78911         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
78912         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
78913         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
78914         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
78915         Likewise.
78916         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
78917         Likewise.
78918         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
78919         this function.
78920         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
78921         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
78922         Likewise.
78923         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
78924         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
78925         * doc/posix-functions/confstr.texi (confstr): Likewise.
78926         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
78927         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
78928         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
78929         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
78930         * doc/posix-functions/fputws.texi (fputws): Likewise.
78931         * doc/posix-functions/fwide.texi (fwide): Likewise.
78932         * doc/posix-functions/getwc.texi (getwc): Likewise.
78933         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
78934         * doc/posix-functions/putwc.texi (putwc): Likewise.
78935         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
78936         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
78937         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
78938         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
78939         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
78940         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
78941         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
78942         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
78943         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
78944         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
78945         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
78947 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
78949         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
78950         * lib/ioctl.c: Include <sys/ioctl.h>.
78952 2009-01-19  Simon Josefsson  <simon@josefsson.org>
78954         * modules/getdate-tests (Depends-on): Add progname.
78955         * tests/test-getdate.c: Use progname module, to avoid link errors
78956         on non-glibc systems.
78958 2009-01-18  Simon Josefsson  <simon@josefsson.org>
78960         * modules/filenamecat-tests (Depends-on): Add progname.
78961         * modules/fstrcmp-tests (Depends-on): Likewise.
78963         * tests/test-filenamecat.c: Use progname module, to avoid link
78964         errors on non-glibc systems.
78965         * tests/test-fstrcmp.c: Likewise.
78967 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
78969         gettimeofday: avoid warning: nested extern declaration of 'localtime'
78970         * lib/gettimeofday.c: Move extern declaration out of function.
78972 2009-01-18  Bruno Haible  <bruno@clisp.org>
78974         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
78975         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
78976         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
78978 2009-01-18  Bruno Haible  <bruno@clisp.org>
78980         * lib/strftime.c (MEMPCPY): Remove unused macro.
78981         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
78983 2009-01-18  Martin Lambers  <marlam@marlam.de>
78985         New module 'link'.
78986         * lib/unistd.in.h (link): New declaration.
78987         * lib/link.c: New file.
78988         * m4/link.m4: New file.
78989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
78990         HAVE_LINK.
78991         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
78992         * modules/link: New file.
78993         * doc/posix-functions/link.texi: Mention the new module.
78995 2009-01-18  Bruno Haible  <bruno@clisp.org>
78997         * tests/test-avltree_list.c (main): Call set_program_name.
78998         * tests/test-avltree_oset.c (main): Likewise.
78999         * tests/test-obstack-printf.c: Include progname.h.
79000         (main): Call set_program_name.
79001         * tests/test-quotearg.c: Include progname.h.
79002         (main): Call set_program_name.
79003         * tests/test-xmemdup0.c: Include progname.h.
79004         (main): Call set_program_name.
79006 2009-01-18  Bruno Haible  <bruno@clisp.org>
79008         New module 'alphasort'.
79009         * lib/dirent.in.h (alphasort): New declaration.
79010         * lib/alphasort.c: New file, from glibc with modifications.
79011         * m4/alphasort.m4: New file.
79012         * modules/alphasort: New file.
79013         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
79014         HAVE_ALPHASORT.
79015         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
79016         HAVE_ALPHASORT.
79017         * doc/posix-functions/alphasort.texi: Mention the new module and the
79018         portability problems.
79020 2009-01-18  Bruno Haible  <bruno@clisp.org>
79022         New module 'scandir'.
79023         * lib/dirent.in.h (scandir): New declaration.
79024         * lib/scandir.c: New file, from glibc with modifications.
79025         * m4/scandir.m4: New file.
79026         * modules/scandir: New file.
79027         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
79028         HAVE_SCANDIR.
79029         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
79030         HAVE_SCANDIR.
79031         * doc/posix-functions/scandir.texi: Mention the new module and the
79032         portability problems.
79034 2009-01-17  Bruno Haible  <bruno@clisp.org>
79036         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
79037         Update documentation.
79038         (func_remove_suffix): Escape all dots in the suffix. Update
79039         documentation.
79040         (func_filter_filelist): Update documentation.
79041         Reported by Ralf Wildenhues.
79043 2009-01-17  Bruno Haible  <bruno@clisp.org>
79045         * modules/dprintf-posix-tests: New file.
79046         * tests/test-dprintf-posix.sh: New file.
79047         * tests/test-dprintf-posix.c: New file.
79049         New modules 'dprintf', 'dprintf-posix'.
79050         * lib/stdio.in.h (dprintf): New declaration.
79051         * lib/dprintf.c: New file.
79052         * m4/dprintf.m4: New file.
79053         * m4/dprintf-posix.m4: New file.
79054         * modules/dprintf: New file.
79055         * modules/dprintf-posix: New file.
79056         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
79057         HAVE_DPRINTF, REPLACE_DPRINTF.
79058         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
79059         HAVE_DPRINTF, REPLACE_DPRINTF.
79060         * doc/posix-functions/dprintf.texi: Mention the new modules.
79062 2009-01-17  Bruno Haible  <bruno@clisp.org>
79064         * modules/vdprintf-posix-tests: New file.
79065         * tests/test-vdprintf-posix.sh: New file.
79066         * tests/test-vdprintf-posix.c: New file.
79068         New modules 'vdprintf', 'vdprintf-posix'.
79069         * lib/stdio.in.h (vdprintf): New declaration.
79070         * lib/vdprintf.c: New file.
79071         * m4/vdprintf.m4: New file.
79072         * m4/vdprintf-posix.m4: New file.
79073         * modules/vdprintf: New file.
79074         * modules/vdprintf-posix: New file.
79075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
79076         HAVE_VDPRINTF, REPLACE_VDPRINTF.
79077         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
79078         HAVE_VDPRINTF, REPLACE_VDPRINTF.
79079         * doc/posix-functions/vdprintf.texi: Mention the new modules.
79081 2009-01-17  Bruno Haible  <bruno@clisp.org>
79083         Fix replacement of fopen on mingw.
79084         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
79085         mingw.
79087 2009-01-17  Bruno Haible  <bruno@clisp.org>
79089         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
79090         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
79092 2009-01-17  Bruno Haible  <bruno@clisp.org>
79094         Avoid test-fflush2.sh failure on mingw.
79095         * tests/test-fflush2.c: Include binary-io.h.
79096         (main): Put standard input into binary mode.
79097         * modules/fflush-tests (Depends-on): Add binary-io.
79099 2009-01-17  Bruno Haible  <bruno@clisp.org>
79101         * lib/wchar.in.h: In another particular situation, include only the
79102         system's <wchar.h> file.
79103         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
79104         Reported by Albert Chin-A-Young <china@thewrittenword.com>
79105         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
79107 2009-01-17  Bruno Haible  <bruno@clisp.org>
79109         Support for stripping executables in --enable-relocatable.
79110         * build-aux/install-reloc: Expect one more argument, or an environment
79111         variable RELOC_STRIP_PROG. If set, strip the destination program and
79112         its wrapper.
79113         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
79114         RELOC_STRIP_PROG.
79115         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
79116         to set RELOCATABLE_STRIP.
79117         * NEWS: Mention the new Makefile requirement.
79119 2009-01-17  Bruno Haible  <bruno@clisp.org>
79121         * build-aux/install-reloc: Remove debugging information left over by
79122         C compiler on MacOS X.
79124 2009-01-17  Bruno Haible  <bruno@clisp.org>
79126         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
79127         * lib/progreloc.c (find_executable): Fix type of pointer passed to
79128         _NSGetExecutablePath.
79130 2009-01-16  Jim Meyering  <meyering@redhat.com>
79132         strerror: avoid warnings about discarding "const"
79133         * lib/strerror.c (rpl_strerror): Instead of returning a const
79134         string from each and every "case", use a variable, and add a single
79135         cast after the switch.
79137 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
79139         * lib/arpa_inet.in.h: Add extern "C" block for C++.
79141 2009-01-16  Bruno Haible  <bruno@clisp.org>
79143         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
79144         array initializer syntax that also works in C++ mode.
79145         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
79147 2009-01-16  Jim Meyering  <meyering@redhat.com>
79149         poll: suppress a warning
79150         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
79151         to ignore "...unsigned expression < 0 is always false" warnings.
79153 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
79155         poll: remove declarations of unused variables
79156         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
79157         sockbuf and optlen.
79159 2009-01-15  Bruno Haible  <bruno@clisp.org>
79161         Make fflush-after-ungetc POSIX compliant on BSD systems.
79162         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
79163         (clear_ungetc_buffer): Implement also for other systems.
79164         (rpl_fflush): On glibc systems, invoke
79165         clear_ungetc_buffer_preserving_position. Otherwise, invoke
79166         clear_ungetc_buffer after fetching the stream's position, not before.
79168 2009-01-15  Bruno Haible  <bruno@clisp.org>
79170         Make fflush-after-ungetc POSIX compliant on glibc systems.
79171         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
79172         after ungetc.
79173         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
79174         (rpl_fflush): On glibc systems, simply call the system's fflush
79175         function after clearing the ungetc buffer.
79176         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
79177         Instead, lseek only to the end of file, then use the system's fseeko
79178         for the rest. On glibc systems, reset the EOF indicator bit.
79180 2009-01-15  Jim Meyering  <meyering@redhat.com>
79182         openmp.m4: revert quote-adding change, for portability to older autoconf
79183         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
79184         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
79185         Simon Josefsson noticed the problem when using autoconf-2.61.
79187 2009-01-15  Bruno Haible  <bruno@clisp.org>
79189         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
79190         * tests/test-fflush2.c (ASSERT): Always fail.
79191         (main): Add two tests for fflush() after ungetc(), taking into account
79192         the Austin Group's clarification.
79193         Suggested by Eric Blake.
79195 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
79197         mktime.m4: remove K&R-style function prototypes
79198         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
79199         for the Sun C++ compiler.
79201 2009-01-14  Bruno Haible  <bruno@clisp.org>
79203         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
79204         while including <wchar.h>.
79205         * lib/wchar.in.h: In two particular situations on HP-UX, include only
79206         the system's <wchar.h> file.
79207         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
79209 2009-01-14  Bruno Haible  <bruno@clisp.org>
79211         * m4/csharp.m4: Don't mention gettext on the serial number line.
79212         * m4/csharpexec.m4: Likewise.
79213         * m4/eaccess.m4: Likewise.
79214         * m4/javaexec.m4: Likewise.
79215         * m4/sig_atomic_t.m4: Likewise.
79216         * m4/tmpdir.m4: Likewise.
79217         * m4/intldir.m4: Bump gettext version.
79218         * m4/lib-ld.m4: Likewise.
79220 2009-01-14  Bruno Haible  <bruno@clisp.org>
79222         * lib/progname.c (set_program_name): Add more comments.
79223         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
79225 2009-01-14  Simon Josefsson  <simon@josefsson.org>
79227         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
79228         were sys/stat.h does not define it.
79230 2009-01-14  Jim Meyering  <meyering@redhat.com>
79232         many *.m4 files: improve m4 quoting
79233         99% of this change was performed by running the following commands:
79234         git ls-files | grep '\.m4$' | xargs perl -pi \
79235           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
79236           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
79237           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
79238           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
79239         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
79240         The remainder were to add Copyright dates, increment serial numbers,
79241         undo some changes in comments, exclude m4/intl.m4, and add quotes
79242         around the "1" in ",1" where the unusual spacing prohibited the
79243         above regexps from doing the job.  For more details, see
79244         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
79245         * m4/acl.m4: Modified.
79246         * m4/afs.m4: Likewise.
79247         * m4/alloca.m4: Likewise.
79248         * m4/argp.m4: Likewise.
79249         * m4/argz.m4: Likewise.
79250         * m4/atexit.m4: Likewise.
79251         * m4/bison-i18n.m4: Likewise.
79252         * m4/bison.m4: Likewise.
79253         * m4/byteswap.m4: Likewise.
79254         * m4/c-stack.m4: Likewise.
79255         * m4/c-strtod.m4: Likewise.
79256         * m4/calloc.m4: Likewise.
79257         * m4/canonicalize-lgpl.m4: Likewise.
79258         * m4/chown.m4: Likewise.
79259         * m4/clock_time.m4: Likewise.
79260         * m4/codeset.m4: Likewise.
79261         * m4/copy-file.m4: Likewise.
79262         * m4/csharp.m4: Likewise.
79263         * m4/csharpcomp.m4: Likewise.
79264         * m4/csharpexec.m4: Likewise.
79265         * m4/d-ino.m4: Likewise.
79266         * m4/d-type.m4: Likewise.
79267         * m4/dirfd.m4: Likewise.
79268         * m4/double-slash-root.m4: Likewise.
79269         * m4/eaccess.m4: Likewise.
79270         * m4/eealloc.m4: Likewise.
79271         * m4/environ.m4: Likewise.
79272         * m4/errno_h.m4: Likewise.
79273         * m4/euidaccess.m4: Likewise.
79274         * m4/execute.m4: Likewise.
79275         * m4/fatal-signal.m4: Likewise.
79276         * m4/fchdir.m4: Likewise.
79277         * m4/fcntl_h.m4: Likewise.
79278         * m4/fileblocks.m4: Likewise.
79279         * m4/filenamecat.m4: Likewise.
79280         * m4/findprog.m4: Likewise.
79281         * m4/flexmember.m4: Likewise.
79282         * m4/fnmatch.m4: Likewise.
79283         * m4/fopen.m4: Likewise.
79284         * m4/fpending.m4: Likewise.
79285         * m4/fprintf-posix.m4: Likewise.
79286         * m4/free.m4: Likewise.
79287         * m4/frexp.m4: Likewise.
79288         * m4/frexpl.m4: Likewise.
79289         * m4/fsusage.m4: Likewise.
79290         * m4/ftruncate.m4: Likewise.
79291         * m4/gc-camellia.m4: Likewise.
79292         * m4/gc-random.m4: Likewise.
79293         * m4/gc.m4: Likewise.
79294         * m4/getaddrinfo.m4: Likewise.
79295         * m4/getcwd-abort-bug.m4: Likewise.
79296         * m4/getcwd-path-max.m4: Likewise.
79297         * m4/getdate.m4: Likewise.
79298         * m4/getdomainname.m4: Likewise.
79299         * m4/getgroups.m4: Likewise.
79300         * m4/gethostname.m4: Likewise.
79301         * m4/gethrxtime.m4: Likewise.
79302         * m4/getline.m4: Likewise.
79303         * m4/getloadavg.m4: Likewise.
79304         * m4/getndelim2.m4: Likewise.
79305         * m4/getpass.m4: Likewise.
79306         * m4/gettext.m4: Likewise.
79307         * m4/gettime.m4: Likewise.
79308         * m4/gettimeofday.m4: Likewise.
79309         * m4/gnulib-common.m4: Likewise.
79310         * m4/group-member.m4: Likewise.
79311         * m4/host-os.m4: Likewise.
79312         * m4/iconv.m4: Likewise.
79313         * m4/iconv_open.m4: Likewise.
79314         * m4/inet_ntop.m4: Likewise.
79315         * m4/inet_pton.m4: Likewise.
79316         * m4/inline.m4: Likewise.
79317         * m4/intldir.m4: Likewise.
79318         * m4/intlmacosx.m4: Likewise.
79319         * m4/intmax.m4: Likewise.
79320         * m4/intmax_t.m4: Likewise.
79321         * m4/inttypes.m4: Likewise.
79322         * m4/inttypes_h.m4: Likewise.
79323         * m4/inttypes-pri.m4: Likewise.
79324         * m4/isapipe.m4: Likewise.
79325         * m4/isnand.m4: Likewise.
79326         * m4/isnanf.m4: Likewise.
79327         * m4/isnanl.m4: Likewise.
79328         * m4/javacomp.m4: Likewise.
79329         * m4/javaexec.m4: Likewise.
79330         * m4/jm-winsz1.m4: Likewise.
79331         * m4/jm-winsz2.m4: Likewise.
79332         * m4/lchown.m4: Likewise.
79333         * m4/lcmessage.m4: Likewise.
79334         * m4/ldexpl.m4: Likewise.
79335         * m4/lib-ld.m4: Likewise.
79336         * m4/lib-link.m4: Likewise.
79337         * m4/libsigsegv.m4: Likewise.
79338         * m4/link-follow.m4: Likewise.
79339         * m4/localcharset.m4: Likewise.
79340         * m4/locale-fr.m4: Likewise.
79341         * m4/locale-ja.m4: Likewise.
79342         * m4/locale-tr.m4: Likewise.
79343         * m4/locale-zh.m4: Likewise.
79344         * m4/lock.m4: Likewise.
79345         * m4/longlong.m4: Likewise.
79346         * m4/ls-mntd-fs.m4: Likewise.
79347         * m4/lstat.m4: Likewise.
79348         * m4/malloc.m4: Likewise.
79349         * m4/mathl.m4: Likewise.
79350         * m4/mbrtowc.m4: Likewise.
79351         * m4/mbstate_t.m4: Likewise.
79352         * m4/mbswidth.m4: Likewise.
79353         * m4/memchr.m4: Likewise.
79354         * m4/memcmp.m4: Likewise.
79355         * m4/memcpy.m4: Likewise.
79356         * m4/memmem.m4: Likewise.
79357         * m4/memmove.m4: Likewise.
79358         * m4/mempcpy.m4: Likewise.
79359         * m4/memrchr.m4: Likewise.
79360         * m4/memset.m4: Likewise.
79361         * m4/minmax.m4: Likewise.
79362         * m4/mkdir-slash.m4: Likewise.
79363         * m4/mkdtemp.m4: Likewise.
79364         * m4/mktime.m4: Likewise.
79365         * m4/mmap-anon.m4: Likewise.
79366         * m4/mountlist.m4: Likewise.
79367         * m4/nanosleep.m4: Likewise.
79368         * m4/nls.m4: Likewise.
79369         * m4/nocrash.m4: Likewise.
79370         * m4/open.m4: Likewise.
79371         * m4/openat.m4: Likewise.
79372         * m4/openmp.m4: Likewise.
79373         * m4/pathmax.m4: Likewise.
79374         * m4/perl.m4: Likewise.
79375         * m4/physmem.m4: Likewise.
79376         * m4/pipe.m4: Likewise.
79377         * m4/po.m4: Likewise.
79378         * m4/poll.m4: Likewise.
79379         * m4/posixtm.m4: Likewise.
79380         * m4/posixver.m4: Likewise.
79381         * m4/printf-frexp.m4: Likewise.
79382         * m4/printf-frexpl.m4: Likewise.
79383         * m4/printf-posix.m4: Likewise.
79384         * m4/printf-posix-rpl.m4: Likewise.
79385         * m4/printf.m4: Likewise.
79386         * m4/progtest.m4: Likewise.
79387         * m4/putenv.m4: Likewise.
79388         * m4/readline.m4: Likewise.
79389         * m4/readlink.m4: Likewise.
79390         * m4/readutmp.m4: Likewise.
79391         * m4/realloc.m4: Likewise.
79392         * m4/regex.m4: Likewise.
79393         * m4/relocatable.m4: Likewise.
79394         * m4/relocatable-lib.m4: Likewise.
79395         * m4/rename-dest-slash.m4: Likewise.
79396         * m4/rename.m4: Likewise.
79397         * m4/rmdir-errno.m4: Likewise.
79398         * m4/rmdir.m4: Likewise.
79399         * m4/roundf.m4: Likewise.
79400         * m4/roundl.m4: Likewise.
79401         * m4/rpmatch.m4: Likewise.
79402         * m4/save-cwd.m4: Likewise.
79403         * m4/selinux-selinux-h.m4: Likewise.
79404         * m4/setenv.m4: Likewise.
79405         * m4/settime.m4: Likewise.
79406         * m4/sig2str.m4: Likewise.
79407         * m4/sig_atomic_t.m4: Likewise.
79408         * m4/signalblocking.m4: Likewise.
79409         * m4/signbit.m4: Likewise.
79410         * m4/sigpipe.m4: Likewise.
79411         * m4/sockets.m4: Likewise.
79412         * m4/sockpfaf.m4: Likewise.
79413         * m4/st_dm_mode.m4: Likewise.
79414         * m4/stat-time.m4: Likewise.
79415         * m4/stdbool.m4: Likewise.
79416         * m4/stdint.m4: Likewise.
79417         * m4/stdint_h.m4: Likewise.
79418         * m4/stpcpy.m4: Likewise.
79419         * m4/stpncpy.m4: Likewise.
79420         * m4/strcase.m4: Likewise.
79421         * m4/strchrnul.m4: Likewise.
79422         * m4/strcspn.m4: Likewise.
79423         * m4/strdup.m4: Likewise.
79424         * m4/strftime.m4: Likewise.
79425         * m4/strndup.m4: Likewise.
79426         * m4/strnlen.m4: Likewise.
79427         * m4/strpbrk.m4: Likewise.
79428         * m4/strptime.m4: Likewise.
79429         * m4/strsep.m4: Likewise.
79430         * m4/strtod.m4: Likewise.
79431         * m4/strtoimax.m4: Likewise.
79432         * m4/strtok_r.m4: Likewise.
79433         * m4/strtol.m4: Likewise.
79434         * m4/strtoll.m4: Likewise.
79435         * m4/strtoul.m4: Likewise.
79436         * m4/strtoull.m4: Likewise.
79437         * m4/strtoumax.m4: Likewise.
79438         * m4/strverscmp.m4: Likewise.
79439         * m4/threadlib.m4: Likewise.
79440         * m4/timegm.m4: Likewise.
79441         * m4/tm_gmtoff.m4: Likewise.
79442         * m4/tmpdir.m4: Likewise.
79443         * m4/tmpfile.m4: Likewise.
79444         * m4/tzset.m4: Likewise.
79445         * m4/uintmax_t.m4: Likewise.
79446         * m4/unlinkdir.m4: Likewise.
79447         * m4/unlocked-io.m4: Likewise.
79448         * m4/uptime.m4: Likewise.
79449         * m4/userspec.m4: Likewise.
79450         * m4/utimbuf.m4: Likewise.
79451         * m4/utime.m4: Likewise.
79452         * m4/utimes-null.m4: Likewise.
79453         * m4/utimes.m4: Likewise.
79454         * m4/vararrays.m4: Likewise.
79455         * m4/vasnprintf.m4: Likewise.
79456         * m4/vfprintf-posix.m4: Likewise.
79457         * m4/vprintf-posix.m4: Likewise.
79458         * m4/wait-process.m4: Likewise.
79459         * m4/wchar_t.m4: Likewise.
79460         * m4/wint_t.m4: Likewise.
79461         * m4/write-any-file.m4: Likewise.
79462         * m4/yield.m4: Likewise.
79464 2009-01-13  Bruno Haible  <bruno@clisp.org>
79466         Avoid test-copy-file.sh failures when ACL support insufficient.
79467         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
79468         TESTS_ENVIRONMENT.
79469         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
79470         Reported by Jim Meyering.
79472 2009-01-13  Bruno Haible  <bruno@clisp.org>
79474         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
79475         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
79476         * modules/unistdio/u8-printf-parse (Files): Likewise.
79477         * modules/unistdio/u32-printf-parse (Files): Likewise.
79478         * modules/unistdio/ulc-printf-parse (Files): Likewise.
79480 2009-01-13  Simon Josefsson  <simon@josefsson.org>
79482         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
79483         and m4/inttypes_h.m4 too.
79485 2009-01-12  Eric Blake  <ebb9@byu.net>
79487         tests: IRIX 6.2 cc can't compile -0.0 into .data
79488         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
79489         rather than at compile-time.
79490         * tests/test-floorl.c (minus_zero): Likewise.
79491         * tests/test-frexpl.c (minus_zero): Likewise.
79492         * tests/test-isnan.c (minus_zerol): Likewise.
79493         * tests/test-isnanl.h (minus_zero): Likewise.
79494         * tests/test-ldexpl.c (minus_zero): Likewise.
79495         * tests/test-roundl.c (minus_zero): Likewise.
79496         * tests/test-signbit.c (minus_zerol): Likewise.
79497         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
79498         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
79499         * tests/test-truncl.c (minus_zero): Likewise.
79500         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
79501         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
79502         Reported by Tom G. Christensen and Nelson H. F. Beebe.
79504 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
79506         regex: fix glibc bug 9697
79507         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
79508         handling.
79510 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
79512         regex: fix glibc bug 697
79513         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
79514         being NULL also if there are no backreferences.
79516 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
79518         regex: merge glibc changes
79519         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
79520         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
79521         re_string_skip_chars, re_string_reconstruct): Likewise.
79522         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
79524 2009-01-07  Jim Meyering  <meyering@redhat.com>
79526         poll: filter through cppi
79527         * lib/poll.c: Indent cpp directives to reflect nesting.
79529 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
79531         poll: don't return uninitialized
79532         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
79534 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
79536         avoid compile failure on AIX 6.1
79537         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
79538         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
79540 2009-01-04  Jim Meyering  <meyering@redhat.com>
79542         remove duplicate inclusion of <stdio.h>
79543         * tests/test-fprintf-posix.c: Likewise.
79544         * tests/test-printf-posix.c: Likewise.
79545         * tests/test-snprintf-posix.c: Likewise.
79546         * tests/test-sprintf-posix.c: Likewise.
79547         * tests/test-vasprintf-posix.c: Likewise.
79548         * tests/test-vfprintf-posix.c: Likewise.
79549         * tests/test-vprintf-posix.c: Likewise.
79550         * tests/test-vsnprintf-posix.c: Likewise.
79551         * tests/test-vsprintf-posix.c: Likewise.
79553 2009-01-03  Jim Meyering  <meyering@redhat.com>
79555         gnulib-tool: fix sed-based filtering
79556         * gnulib-tool (func_filter_filelist): Remove extra backslash
79557         in sed_fff_filter definition.
79559 2009-01-02  Jim Meyering  <meyering@redhat.com>
79561         strftime: avoid compilation failure on Solaris 2.6
79562         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
79563         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
79564         Don't #define mbrlen or mbsinit, since now they're guaranteed to
79565         be available.  Reported by Tom G. Christensen.  Details in
79566         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
79568 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79569             Bruno Haible  <bruno@clisp.org>
79571         Speed up gnulib-tool by doing more string processing through shell
79572         built-ins.
79573         * gnulib-tool (fast_func_append): New variable.
79574         (func_remove_prefix, func_remove_suffix): New functions.
79575         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
79576         (func_filter_filelist): New function.
79577         (func_get_dependencies): Use func_remove_suffix instead of sed.
79578         (func_get_automake_snippet): Use func_filter_filelist instead of a
79579         subshell and sed invocation.
79581 2009-01-01  Bruno Haible  <bruno@clisp.org>
79583         Fix a security bug.
79584         * gnulib-tool (func_import, import, update): Don't allow the characters
79585         '"', '$', '`', '\' in macro arguments that become part of commands that
79586         are evaluated.
79588 2009-01-01  Bruno Haible  <bruno@clisp.org>
79590         * gnulib-tool (func_reset_sigpipe): Add more comments.
79592 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79594         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
79595         func_emit_tests_Makefile_am, func_import): Abort loops early if we
79596         already know the answer.
79598 2009-01-01  Jim Meyering  <meyering@redhat.com>
79600         * lib/version-etc.c (version_etc_va): Update copyright year.
79602 2008-12-30  Bruno Haible  <bruno@clisp.org>
79604         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
79605         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
79606         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
79608 2008-12-29  Eric Blake  <ebb9@byu.net>
79610         multiarch: avoid autoconf AC_REQUIRE bug
79611         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
79612         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
79613         2.63 and older.
79614         Reported by Bruno Haible, and analyzed in
79615         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
79617 2008-12-29  Bruno Haible  <bruno@clisp.org>
79619         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
79620         files in subdirectories correctly.
79621         Reported by Ralf Wildenhues.
79623 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79625         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
79626         rather than 'join FILE -', for Solaris join.
79628 2008-12-29  Bruno Haible  <bruno@clisp.org>
79630         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
79631         quoting.
79632         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
79633         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
79634         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
79635         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
79636         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
79637         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
79638         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
79639         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
79640         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
79641         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
79642         * m4/nls.m4 (AM_NLS): Likewise.
79643         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
79644         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
79645         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
79646         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
79647         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
79648         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
79649         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
79650         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
79651         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
79652         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
79653         * m4/xsize.m4 (gl_XSIZE): Likewise.
79654         Suggested by Jim Meyering.
79656 2008-11-17  Bruce Korb  <bkorb@gnu.org>
79658         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
79659         * lib/parse-duration.c: use a switch instead of cascading if's.
79661 2008-12-29  Eric Blake  <ebb9@byu.net>
79663         wchar.h: supply WEOF on Irix 5.3
79664         * lib/wchar.in.h (wint_t): Also supply WEOF.
79665         * lib/wctype.in.h (wint_t): Likewise.
79666         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
79667         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
79668         Reported by Tom G. Christensen.
79670 2008-12-26  Bruno Haible  <bruno@clisp.org>
79672         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
79673         i486, i586, i686.
79675 2008-12-26  Bruno Haible  <bruno@clisp.org>
79677         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
79679 2008-12-26  Bruno Haible  <bruno@clisp.org>
79681         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
79682         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
79683         not __STDC_CONSTANT_MACROS.
79684         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
79686 2008-12-25  Bruno Haible  <bruno@clisp.org>
79688         Add support for universal builds to vasnprintf.
79689         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
79690         universal builds, guess no.
79691         * modules/vasnprintf-posix (Depends-on): Add multiarch.
79692         * modules/vasprintf-posix (Depends-on): Likewise.
79693         * modules/fprintf-posix (Depends-on): Likewise.
79694         * modules/vfprintf-posix (Depends-on): Likewise.
79695         * modules/snprintf-posix (Depends-on): Likewise.
79696         * modules/vsnprintf-posix (Depends-on): Likewise.
79697         * modules/sprintf-posix (Depends-on): Likewise.
79698         * modules/vsprintf-posix (Depends-on): Likewise.
79699         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
79700         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
79701         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
79702         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
79703         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
79704         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
79705         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
79707         Add support for universal builds to <inttypes.h>.
79708         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
79709         _SCNu64_PREFIX): In Apple
79710         universal builds, define directly, using _LP64.
79711         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
79712         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
79713         * modules/inttypes (Depends-on): Add multiarch.
79714         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
79716         Add support for universal builds to <stdint.h>.
79717         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
79718         universal builds, define directly, using _LP64.
79719         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
79720         Apple universal builds, don't test for the size and suffix of ptrdiff_t
79721         and size_t.
79722         * modules/stdint (Depends-on): Add multiarch.
79723         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
79725         New module 'multiarch'.
79726         * modules/multiarch: New file.
79727         * m4/multiarch.m4: New file.
79729 2008-12-25  Bruno Haible  <bruno@clisp.org>
79731         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
79733 2008-12-25  Bruno Haible  <bruno@clisp.org>
79735         * modules/btowc (License): Relicense under LGPLv2+.
79736         * modules/mbsinit (License): Likewise.
79737         * modules/mbrtowc (License): Likewise.
79738         * modules/wcrtomb (License): Likewise.
79739         * modules/streq (License): Likewise.
79740         Reported by David Lutterkort <lutter@redhat.com>.
79742 2008-12-23  Bruno Haible  <bruno@clisp.org>
79744         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
79746 2008-12-23  Bruno Haible  <bruno@clisp.org>
79748         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
79749         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
79750         GETADDRINFO_LIB, not in LIBS.
79751         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
79752         * modules/canon-host (Link): Likewise.
79753         * NEWS: Mention the change.
79754         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
79755         GETADDRINFO_LIB.
79757 2008-12-22  Bruno Haible  <bruno@clisp.org>
79759         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
79760         * doc/posix-functions/iswalpha_l.texi: Likewise.
79761         * doc/posix-functions/iswblank_l.texi: Likewise.
79762         * doc/posix-functions/iswcntrl_l.texi: Likewise.
79763         * doc/posix-functions/iswctype_l.texi: Likewise.
79764         * doc/posix-functions/iswdigit_l.texi: Likewise.
79765         * doc/posix-functions/iswgraph_l.texi: Likewise.
79766         * doc/posix-functions/iswlower_l.texi: Likewise.
79767         * doc/posix-functions/iswprint_l.texi: Likewise.
79768         * doc/posix-functions/iswpunct_l.texi: Likewise.
79769         * doc/posix-functions/iswspace_l.texi: Likewise.
79770         * doc/posix-functions/iswupper_l.texi: Likewise.
79771         * doc/posix-functions/iswxdigit_l.texi: Likewise.
79772         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
79773         * doc/posix-functions/open_wmemstream.texi: Likewise.
79774         * doc/posix-functions/swscanf.texi: Likewise.
79775         * doc/posix-functions/towctrans_l.texi: Likewise.
79776         * doc/posix-functions/towlower.texi: Likewise.
79777         * doc/posix-functions/towlower_l.texi: Likewise.
79778         * doc/posix-functions/towupper.texi: Likewise.
79779         * doc/posix-functions/towupper_l.texi: Likewise.
79780         * doc/posix-functions/vfwprintf.texi: Likewise.
79781         * doc/posix-functions/vfwscanf.texi: Likewise.
79782         * doc/posix-functions/vswscanf.texi: Likewise.
79783         * doc/posix-functions/vwprintf.texi: Likewise.
79784         * doc/posix-functions/vwscanf.texi: Likewise.
79785         * doc/posix-functions/wcpcpy.texi: Likewise.
79786         * doc/posix-functions/wcpncpy.texi: Likewise.
79787         * doc/posix-functions/wcscasecmp.texi: Likewise.
79788         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
79789         * doc/posix-functions/wcscoll_l.texi: Likewise.
79790         * doc/posix-functions/wcsdup.texi: Likewise.
79791         * doc/posix-functions/wcsncasecmp.texi: Likewise.
79792         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
79793         * doc/posix-functions/wcsnlen.texi: Likewise.
79794         * doc/posix-functions/wcsnrtombs.texi: Likewise.
79795         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
79796         * doc/posix-functions/wctrans_l.texi: Likewise.
79797         * doc/posix-functions/wctype_l.texi: Likewise.
79798         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
79799         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
79800         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
79801         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
79802         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
79803         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
79804         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
79805         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
79806         * doc/glibc-functions/wcschrnul.texi: Likewise.
79807         * doc/glibc-functions/wcsftime_l.texi: Likewise.
79808         * doc/glibc-functions/wcstod_l.texi: Likewise.
79809         * doc/glibc-functions/wcstof_l.texi: Likewise.
79810         * doc/glibc-functions/wcstol_l.texi: Likewise.
79811         * doc/glibc-functions/wcstold_l.texi: Likewise.
79812         * doc/glibc-functions/wcstoll_l.texi: Likewise.
79813         * doc/glibc-functions/wcstoq.texi: Likewise.
79814         * doc/glibc-functions/wcstoul_l.texi: Likewise.
79815         * doc/glibc-functions/wcstoull_l.texi: Likewise.
79816         * doc/glibc-functions/wcstouq.texi: Likewise.
79817         * doc/glibc-functions/wmempcpy.texi: Likewise.
79819 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
79820             Eric Blake  <ebb9@byu.net>
79821             Paolo Bonzini  <bonzini@gnu.org>
79822             Bruno Haible  <bruno@clisp.org>
79824         Make c-stack work on Haiku.
79825         * lib/c-stack.c (SA_ONSTACK): Define fallback.
79826         (c_stack_action): Use SA_ONSTACK flag.
79828 2008-12-22  Bruno Haible  <bruno@clisp.org>
79830         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
79832 2008-12-22  Bruno Haible  <bruno@clisp.org>
79834         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
79835         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
79836         being overridden.
79837         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
79838         New macros.
79839         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
79840         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
79841         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
79842         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
79844 2008-12-22  Bruno Haible  <bruno@clisp.org>
79846         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
79847         from test code.
79849 2008-12-22  Eric Blake  <ebb9@byu.net>
79851         Avoid gcc warnings on cygwin.
79852         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
79853         Avoid unused variable.
79854         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
79855         Likewise.
79857 2008-12-22  Bruno Haible  <bruno@clisp.org>
79859         Remove HAVE_MBRTOWC conditionals.
79860         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
79861         (mbscasecmp): Assume mbrtowc function.
79862         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
79863         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
79864         * lib/mbschr.c: Include mbuiter.h unconditionally.
79865         (mbschr): Assume mbrtowc function.
79866         * lib/mbscspn.c: Include mbuiter.h unconditionally.
79867         (mbscspn): Assume mbrtowc function.
79868         * lib/mbslen.c: Include mbuiter.h unconditionally.
79869         (mbslen): Assume mbrtowc function.
79870         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
79871         (mbsncasecmp): Assume mbrtowc function.
79872         * lib/mbsnlen.c: Include mbiter.h unconditionally.
79873         (mbsnlen): Assume mbrtowc function.
79874         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
79875         (mbspbrk): Assume mbrtowc function.
79876         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
79877         (mbspcasecmp): Assume mbrtowc function.
79878         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
79879         (mbsrchr): Assume mbrtowc function.
79880         * lib/mbssep.c: Include mbuiter.h unconditionally.
79881         (mbssep): Assume mbrtowc function.
79882         * lib/mbsspn.c: Include mbuiter.h unconditionally.
79883         (mbsspn): Assume mbrtowc function.
79884         * lib/mbsstr.c: Include mbuiter.h unconditionally.
79885         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
79886         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
79887         (mbstok_r): Assume mbrtowc function.
79888         * lib/propername.c: Include mbuiter.h unconditionally.
79889         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
79890         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
79891         (trim2): Assume mbrtowc function.
79892         * lib/mbswidth.c (mbsinit): Remove fallback definition.
79893         (mbsnwidth): Assume mbrtowc function.
79894         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
79895         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
79896         fallback definitions.
79897         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
79899 2008-12-22  Bruno Haible  <bruno@clisp.org>
79901         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
79903 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
79905         * modules/regex: Request emulations for the mb*/wc* functions we need.
79906         * m4/regex.m4: Don't look for those functions here.
79907         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
79909 2008-12-22  Bruno Haible  <bruno@clisp.org>
79911         * modules/fnmatch (Depends-on): Remove duplicated dependency.
79913 2008-12-21  Bruno Haible  <bruno@clisp.org>
79915         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
79916         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
79917         (Include): Remove conditionalization.
79918         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
79919         (Include): Remove conditionalization.
79920         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
79921         (Include): Remove conditionalization.
79922         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
79923         * m4/mbfile.m4 (gl_MBFILE): Likewise.
79924         * NEWS: Mention the change.
79925         Reported by Alan Hourihane <alanh@fairlite.co.uk>
79926         via Sergey Poznyakoff <gray@gnu.org.ua>.
79928 2008-12-21  Bruno Haible  <bruno@clisp.org>
79930         * MODULES.html.sh (Extended multibyte and wide character utilities
79931         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
79932         wcrtomb, wcsrtombs.
79933         (Support for systems lacking POSIX:2008): Add accept, bind, close,
79934         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
79935         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
79936         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
79938 2008-12-21  Bruno Haible  <bruno@clisp.org>
79940         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
79942 2008-12-21  Bruno Haible  <bruno@clisp.org>
79944         * modules/wcsnrtombs-tests: New file.
79945         * tests/test-wcsnrtombs1.sh: New file.
79946         * tests/test-wcsnrtombs2.sh: New file.
79947         * tests/test-wcsnrtombs3.sh: New file.
79948         * tests/test-wcsnrtombs4.sh: New file.
79949         * tests/test-wcsnrtombs.c: New file.
79951         New module 'wcsnrtombs'.
79952         * lib/wchar.in.h (wcsnrtombs): New declaration.
79953         * lib/wcsnrtombs.c: New file.
79954         * lib/wcsrtombs-state.c: New file.
79955         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
79956         (internal_state): Remove variable.
79957         * m4/wcsnrtombs.m4: New file.
79958         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
79959         compilation units.
79960         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
79961         HAVE_WCSNRTOMBS.
79962         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
79963         HAVE_WCSNRTOMBS.
79964         * modules/wcsnrtombs: New file.
79965         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
79966         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
79968 2008-12-21  Bruno Haible  <bruno@clisp.org>
79970         * modules/wcsrtombs-tests: New file.
79971         * tests/test-wcsrtombs1.sh: New file.
79972         * tests/test-wcsrtombs2.sh: New file.
79973         * tests/test-wcsrtombs3.sh: New file.
79974         * tests/test-wcsrtombs4.sh: New file.
79975         * tests/test-wcsrtombs.c: New file.
79977         New module 'wcsrtombs'.
79978         * lib/wchar.in.h (wcsrtombs): New declaration.
79979         * lib/wcsrtombs.c: New file.
79980         * m4/wcsrtombs.m4: New file.
79981         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
79982         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
79983         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
79984         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
79985         * modules/wcsrtombs: New file.
79986         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
79987         bugs.
79989 2008-12-21  Bruno Haible  <bruno@clisp.org>
79991         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
79992         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
79993         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
79994         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
79995         if not correct.
79996         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
79997         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
79998         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
79999         m4/locale-zh.m4, m4/codeset.m4.
80000         * doc/posix-functions/wcrtomb.texi: Document the bug.
80002 2008-12-21  Bruno Haible  <bruno@clisp.org>
80004         Work around a btowc() bug on IRIX 6.5.
80005         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
80006         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
80007         REPLACE_WTOBC if not.
80008         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
80009         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
80010         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
80012 2008-12-21  Bruno Haible  <bruno@clisp.org>
80014         * modules/wcrtomb-tests: New file.
80015         * tests/test-wcrtomb.sh: New file.
80016         * tests/test-wcrtomb.c: New file.
80018         New module 'wcrtomb'.
80019         * lib/wchar.in.h (wcrtomb): New declaration.
80020         * lib/wcrtomb.c: New file.
80021         * m4/wcrtomb.m4: New file.
80022         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
80023         HAVE_WCRTOMB.
80024         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
80025         HAVE_WCRTOMB.
80026         * modules/wcrtomb: New file.
80027         * doc/posix-functions/wcrtomb.texi: Mention the new module.
80029 2008-12-21  Bruno Haible  <bruno@clisp.org>
80031         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
80032         * modules/mbsrtowcs (Files): Likewise.
80033         * modules/wctob (Files): Likewise.
80034         * modules/c-strcase-tests (Files): Likewise.
80035         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
80036         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
80037         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
80038         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
80039         * modules/vasnprintf-posix-tests (Files): Likewise.
80041 2008-12-21  William Pursell  <bill.pursell@gmail.com>
80043         gitlog-to-changelog: pass all command-line arguments to git-log
80044         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
80045         it is sometimes convenient to filter the commits in various ways.
80046         gitlog-to-changelog only allows --since to specify a start date,
80047         but git-log itself supports many other filtering mechanisms.
80048         At the moment, I want to filter by branch name.  Rather than
80049         adding a --branch option to gitlog-to-changelog, it seems more
80050         flexible to simply pass all options directly to git-log and let
80051         git do the work.  Notice that this effectively makes --since a
80052         redundant option for gitlog-to-changelog, but removing it would
80053         require current usage to change since calls would then require
80054         an additional '--'.
80056 2008-12-21  Bruno Haible  <bruno@clisp.org>
80058         * modules/mbsnrtowcs-tests: New file.
80059         * tests/test-mbsnrtowcs1.sh: New file.
80060         * tests/test-mbsnrtowcs2.sh: New file.
80061         * tests/test-mbsnrtowcs3.sh: New file.
80062         * tests/test-mbsnrtowcs4.sh: New file.
80063         * tests/test-mbsnrtowcs.c: New file.
80065         New module 'mbsnrtowcs'.
80066         * lib/wchar.in.h (mbsnrtowcs): New declaration.
80067         * lib/mbsnrtowcs.c: New file.
80068         * lib/mbsrtowcs-state.c: New file.
80069         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
80070         (internal_state): Remove variable.
80071         * m4/mbsnrtowcs.m4: New file.
80072         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
80073         compilation units.
80074         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
80075         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
80076         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
80077         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
80078         * modules/mbsnrtowcs: New file.
80079         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
80080         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
80081         portability problem.
80083 2008-12-21  Bruno Haible  <bruno@clisp.org>
80085         Work around mbsrtowcs bug.
80086         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
80087         (gl_FUNC_MBSRTOWCS): Invoke it.
80088         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
80089         m4/locale-zh.m4.
80090         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
80092 2008-12-21  Bruno Haible  <bruno@clisp.org>
80094         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
80096 2008-12-21  Bruno Haible  <bruno@clisp.org>
80098         Update doc for AIX.
80099         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
80100         16-bit wchar_t type.
80101         * doc/posix-functions/btowc.texi: Likewise.
80102         * doc/posix-functions/fgetwc.texi: Likewise.
80103         * doc/posix-functions/fgetws.texi: Likewise.
80104         * doc/posix-functions/fputwc.texi: Likewise.
80105         * doc/posix-functions/fputws.texi: Likewise.
80106         * doc/posix-functions/fwide.texi: Likewise.
80107         * doc/posix-functions/fwprintf.texi: Likewise.
80108         * doc/posix-functions/fwscanf.texi: Likewise.
80109         * doc/posix-functions/getwchar.texi: Likewise.
80110         * doc/posix-functions/getwc.texi: Likewise.
80111         * doc/posix-functions/iswalnum.texi: Likewise.
80112         * doc/posix-functions/iswalpha.texi: Likewise.
80113         * doc/posix-functions/iswblank.texi: Likewise.
80114         * doc/posix-functions/iswcntrl.texi: Likewise.
80115         * doc/posix-functions/iswctype.texi: Likewise.
80116         * doc/posix-functions/iswdigit.texi: Likewise.
80117         * doc/posix-functions/iswgraph.texi: Likewise.
80118         * doc/posix-functions/iswlower.texi: Likewise.
80119         * doc/posix-functions/iswprint.texi: Likewise.
80120         * doc/posix-functions/iswpunct.texi: Likewise.
80121         * doc/posix-functions/iswspace.texi: Likewise.
80122         * doc/posix-functions/iswupper.texi: Likewise.
80123         * doc/posix-functions/iswxdigit.texi: Likewise.
80124         * doc/posix-functions/mbrtowc.texi: Likewise.
80125         * doc/posix-functions/mbsrtowcs.texi: Likewise.
80126         * doc/posix-functions/mbstowcs.texi: Likewise.
80127         * doc/posix-functions/mbtowc.texi: Likewise.
80128         * doc/posix-functions/putwchar.texi: Likewise.
80129         * doc/posix-functions/putwc.texi: Likewise.
80130         * doc/posix-functions/swprintf.texi: Likewise.
80131         * doc/posix-functions/tolower.texi: Likewise.
80132         * doc/posix-functions/toupper.texi: Likewise.
80133         * doc/posix-functions/towctrans.texi: Likewise.
80134         * doc/posix-functions/ungetwc.texi: Likewise.
80135         * doc/posix-functions/vswprintf.texi: Likewise.
80136         * doc/posix-functions/wcrtomb.texi: Likewise.
80137         * doc/posix-functions/wcscat.texi: Likewise.
80138         * doc/posix-functions/wcschr.texi: Likewise.
80139         * doc/posix-functions/wcscmp.texi: Likewise.
80140         * doc/posix-functions/wcscoll.texi: Likewise.
80141         * doc/posix-functions/wcscpy.texi: Likewise.
80142         * doc/posix-functions/wcscspn.texi: Likewise.
80143         * doc/posix-functions/wcsftime.texi: Likewise.
80144         * doc/posix-functions/wcslen.texi: Likewise.
80145         * doc/posix-functions/wcsncat.texi: Likewise.
80146         * doc/posix-functions/wcsncmp.texi: Likewise.
80147         * doc/posix-functions/wcsncpy.texi: Likewise.
80148         * doc/posix-functions/wcspbrk.texi: Likewise.
80149         * doc/posix-functions/wcsrchr.texi: Likewise.
80150         * doc/posix-functions/wcsrtombs.texi: Likewise.
80151         * doc/posix-functions/wcsspn.texi: Likewise.
80152         * doc/posix-functions/wcsstr.texi: Likewise.
80153         * doc/posix-functions/wcstod.texi: Likewise.
80154         * doc/posix-functions/wcstof.texi: Likewise.
80155         * doc/posix-functions/wcstoimax.texi: Likewise.
80156         * doc/posix-functions/wcstok.texi: Likewise.
80157         * doc/posix-functions/wcstold.texi: Likewise.
80158         * doc/posix-functions/wcstoll.texi: Likewise.
80159         * doc/posix-functions/wcstol.texi: Likewise.
80160         * doc/posix-functions/wcstombs.texi: Likewise.
80161         * doc/posix-functions/wcstoull.texi: Likewise.
80162         * doc/posix-functions/wcstoul.texi: Likewise.
80163         * doc/posix-functions/wcstoumax.texi: Likewise.
80164         * doc/posix-functions/wcswidth.texi: Likewise.
80165         * doc/posix-functions/wcsxfrm.texi: Likewise.
80166         * doc/posix-functions/wctob.texi: Likewise.
80167         * doc/posix-functions/wctomb.texi: Likewise.
80168         * doc/posix-functions/wctrans.texi: Likewise.
80169         * doc/posix-functions/wctype.texi: Likewise.
80170         * doc/posix-functions/wcwidth.texi: Likewise.
80171         * doc/posix-functions/wmemchr.texi: Likewise.
80172         * doc/posix-functions/wmemcmp.texi: Likewise.
80173         * doc/posix-functions/wmemcpy.texi: Likewise.
80174         * doc/posix-functions/wmemmove.texi: Likewise.
80175         * doc/posix-functions/wmemset.texi: Likewise.
80176         * doc/posix-functions/wprintf.texi: Likewise.
80177         * doc/posix-functions/wscanf.texi: Likewise.
80179 2008-12-21  Bruno Haible  <bruno@clisp.org>
80181         Update doc for HP-UX 11.11.
80182         * doc/posix-functions/btowc.texi: Clarify that the function is missing
80183         in HP-UX version 11.00, not in all versions of HP-UX 11.
80184         * doc/posix-functions/fwide.texi: Likewise.
80185         * doc/posix-functions/fwprintf.texi: Likewise.
80186         * doc/posix-functions/fwscanf.texi: Likewise.
80187         * doc/posix-functions/inet_ntop.texi: Likewise.
80188         * doc/posix-functions/inet_pton.texi: Likewise.
80189         * doc/posix-functions/mbrlen.texi: Likewise.
80190         * doc/posix-functions/mbrtowc.texi: Likewise.
80191         * doc/posix-functions/mbsinit.texi: Likewise.
80192         * doc/posix-functions/mbsrtowcs.texi: Likewise.
80193         * doc/posix-functions/swprintf.texi: Likewise.
80194         * doc/posix-functions/swscanf.texi: Likewise.
80195         * doc/posix-functions/towctrans.texi: Likewise.
80196         * doc/posix-functions/vfwprintf.texi: Likewise.
80197         * doc/posix-functions/vswprintf.texi: Likewise.
80198         * doc/posix-functions/vwprintf.texi: Likewise.
80199         * doc/posix-functions/wcrtomb.texi: Likewise.
80200         * doc/posix-functions/wcsrtombs.texi: Likewise.
80201         * doc/posix-functions/wcsstr.texi: Likewise.
80202         * doc/posix-functions/wctob.texi: Likewise.
80203         * doc/posix-functions/wctrans.texi: Likewise.
80204         * doc/posix-functions/wmemchr.texi: Likewise.
80205         * doc/posix-functions/wmemcmp.texi: Likewise.
80206         * doc/posix-functions/wmemcpy.texi: Likewise.
80207         * doc/posix-functions/wmemmove.texi: Likewise.
80208         * doc/posix-functions/wmemset.texi: Likewise.
80209         * doc/posix-functions/wprintf.texi: Likewise.
80210         * doc/posix-functions/wscanf.texi: Likewise.
80212 2008-12-21  Bruno Haible  <bruno@clisp.org>
80214         Work around a portability problem.
80215         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
80216         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
80218 2008-12-20  Bruno Haible  <bruno@clisp.org>
80220         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
80221         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
80222         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
80223         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
80224         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
80226         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
80227         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
80228         set.
80229         (GNULIB_defined_mbstate_t): New macro.
80230         (mbsinit): Redefine if REPLACE_MBSINIT is set.
80231         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
80232         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
80233         reuses the system's mbrtowc function but works around the bugs.
80234         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
80235         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
80236         macros.
80237         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
80238         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
80239         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
80240         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
80241         REPLACE_MBSINIT if mbsinit needs to be overridden.
80242         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
80243         REPLACE_MBSINIT, REPLACE_MBRTOWC.
80244         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
80245         REPLACE_MBSINIT, REPLACE_MBRTOWC.
80246         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
80247         m4/locale-zh.m4.
80248         (Depends): Add mbsinit.
80249         * modules/mbsinit (Depends): Add mbrtowc.
80250         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
80252 2008-12-20  Bruno Haible  <bruno@clisp.org>
80254         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
80255         so that there are no conversion errors on AIX.
80256         * tests/test-mbsrtowcs.c (main): LIkewise.
80258 2008-12-20  Bruno Haible  <bruno@clisp.org>
80260         Work around wctob bug on Solaris <= 9.
80261         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
80262         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
80263         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
80264         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
80265         * modules/wctob (Files): Add m4/locale-fr.m4.
80266         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
80268 2008-12-20  Bruno Haible  <bruno@clisp.org>
80270         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
80271         /dev/null.
80272         * tests/test-select-in.sh: Likewise.
80273         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
80275 2008-12-20  Bruno Haible  <bruno@clisp.org>
80277         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
80278         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
80279         Cygwin 1.5.x.
80281 2008-12-20  Bruno Haible  <bruno@clisp.org>
80283         Ensure mbstate_t is defined on HP-UX 11.11.
80284         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
80285         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
80286         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
80287         AC_USE_SYSTEM_EXTENSIONS.
80288         * modules/fnmatch (Depends-on): Add extensions.
80289         * modules/mbrlen (Depends-on): Likewise.
80290         * modules/mbrtowc (Depends-on): Likewise.
80291         * modules/mbsinit (Depends-on): Likewise.
80292         * modules/mbsrtowcs (Depends-on): Likewise.
80293         * modules/mbswidth (Depends-on): Likewise.
80294         * modules/quotearg (Depends-on): Likewise.
80295         * modules/strftime (Depends-on): Likewise.
80297 2008-12-20  Bruno Haible  <bruno@clisp.org>
80299         Ensure wctob is declared on IRIX 6.5.
80300         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
80301         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
80302         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
80303         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
80304         of HAVE_WCTOB.
80305         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
80306         HAVE_WCTOB.
80307         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
80309 2008-12-19  Bruno Haible  <bruno@clisp.org>
80311         * modules/mbsrtowcs-tests: New file.
80312         * tests/test-mbsrtowcs1.sh: New file.
80313         * tests/test-mbsrtowcs2.sh: New file.
80314         * tests/test-mbsrtowcs3.sh: New file.
80315         * tests/test-mbsrtowcs4.sh: New file.
80316         * tests/test-mbsrtowcs.c: New file.
80318         New module 'mbsrtowcs'.
80319         * lib/wchar.in.h (mbsrtowcs): New declaration.
80320         * lib/mbsrtowcs.c: New file.
80321         * m4/mbsrtowcs.m4: New file.
80322         * modules/mbsrtowcs: New file.
80323         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
80324         HAVE_MBSRTOWCS.
80325         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
80326         HAVE_MBSRTOWCS.
80327         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
80329 2008-12-19  Bruno Haible  <bruno@clisp.org>
80331         New module 'mbrlen'.
80332         * lib/wchar.in.h (mbrlen): New declaration.
80333         * lib/mbrlen.c: New file.
80334         * m4/mbrlen.m4: New file.
80335         * modules/mbrlen: New file.
80336         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
80337         HAVE_MBRLEN.
80338         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
80339         HAVE_MBRLEN.
80340         * doc/posix-functions/mbrlen.texi: Document the new module.
80342 2008-12-19  Bruno Haible  <bruno@clisp.org>
80344         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
80345         * modules/mbrtowc (Depends-on): Add verify.
80346         Suggested by Paul Eggert.
80348 2008-12-18  Bruno Haible  <bruno@clisp.org>
80350         * modules/mbsinit-tests: New file.
80351         * tests/test-mbsinit.sh: New file.
80352         * tests/test-mbsinit.c: New file.
80354 2008-12-18  Bruno Haible  <bruno@clisp.org>
80356         * modules/mbrtowc-tests: New file.
80357         * tests/test-mbrtowc1.sh: New file.
80358         * tests/test-mbrtowc2.sh: New file.
80359         * tests/test-mbrtowc3.sh: New file.
80360         * tests/test-mbrtowc4.sh: New file.
80361         * tests/test-mbrtowc.c: New file.
80363         New module 'mbrtowc'.
80364         * lib/wchar.in.h (mbstate_t): Override when the system does not have
80365         mbsinit and mbrtowc.
80366         (mbrtowc): New declaration.
80367         * lib/mbrtowc.c: New file.
80368         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
80369         * modules/mbrtowc: New file.
80370         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
80371         HAVE_MBRTOWC.
80372         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
80373         HAVE_MBRTOWC.
80374         * doc/posix-functions/mbrtowc.texi: Document the new module.
80376 2008-12-18  Bruno Haible  <bruno@clisp.org>
80378         New module 'wctob'.
80379         * lib/wchar.in.h (wctob): New declaration.
80380         * lib/wctob.c: New file.
80381         * m4/wctob.m4: New file.
80382         * modules/wctob: New file.
80383         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
80384         HAVE_WCTOB.
80385         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
80386         * doc/posix-functions/wctob.texi: Document the new module.
80388 2008-12-18  Bruno Haible  <bruno@clisp.org>
80390         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
80391         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
80393 2008-12-18  Simon Josefsson  <simon@josefsson.org>
80395         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
80396         G. Christensen" <tgc@jupiterrise.com>.
80398         * lib/flock.c: Need to include errno.h.  Reported by "Tom
80399         G. Christensen" <tgc@jupiterrise.com>.
80401         * lib/flock.c: Need to include string.h.  Reported by "Tom
80402         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
80403         <ebb9@byu.net>.
80405 2008-12-18  Bruno Haible  <bruno@clisp.org>
80407         * m4/locale-ja.m4: New file, from GNU gettext.
80409 2008-12-17  Bruno Haible  <bruno@clisp.org>
80411         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
80412         Suggested by Eric Blake.
80414 2008-12-17  Bruno Haible  <bruno@clisp.org>
80416         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
80418 2008-12-17  Bruno Haible  <bruno@clisp.org>
80420         * lib/mbsinit.c: Include verify.h. Verify an assumption.
80421         * modules/mbsinit (Depends-on): Add verify.
80422         Suggested by Paul Eggert.
80424 2008-12-17  Bruno Haible  <bruno@clisp.org>
80426         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
80427         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
80428         gl_FUNC_MBRTOWC.
80429         * m4/mbiter.m4 (gl_MBITER): LIkewise.
80430         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
80431         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
80432         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
80433         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
80434         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
80435         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
80436         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
80437         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
80438         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
80439         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
80440         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
80441         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
80442         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
80443         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
80444         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
80445         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
80446         * modules/trim (configure.ac): Likewise.
80448 2008-12-17  Bruno Haible  <bruno@clisp.org>
80450         * modules/btowc-tests: New file.
80451         * tests/test-btowc1.sh: New file.
80452         * tests/test-btowc2.sh: New file.
80453         * tests/test-btowc.c: New file.
80455         New module 'btowc'.
80456         * lib/wchar.in.h (btowc): New declaration.
80457         * lib/btowc.c: New file.
80458         * m4/btowc.m4: New file.
80459         * modules/btowc: New file.
80460         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
80461         HAVE_BTOWC.
80462         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
80463         * doc/posix-functions/btowc.texi: Document the new module.
80465 2008-12-17  Bruno Haible  <bruno@clisp.org>
80467         New module 'mbsinit'.
80468         * lib/wchar.in.h (mbsinit): New declaration.
80469         * lib/mbsinit.c: New file.
80470         * m4/mbsinit.m4: New file.
80471         * modules/mbsinit: New file.
80472         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
80473         HAVE_MBSINIT.
80474         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
80475         HAVE_MBSINIT.
80476         * doc/posix-functions/mbsinit.texi: Document the new module.
80478 2008-12-16  Bruno Haible  <bruno@clisp.org>
80480         * lib/unistd.in.h: Add comment.
80481         * tests/test-environ.c: Don't include <stdlib.h>.
80483 2008-12-16  Bruno Haible  <bruno@clisp.org>
80485         * lib/parse-duration.h (parse_duration): Document return value
80486         convention.
80487         * lib/parse-duration.c: Include specification header first. Add
80488         comments.
80489         (_): Remove macro.
80490         (parse_year_month_day, parse_hour_minute_second): Move side effects
80491         outside of strchr call.
80492         (parse_non_iso8601): Move side effects outside of isspace call.
80493         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
80494         call.
80496 2008-12-16  Bruno Haible  <bruno@clisp.org>
80498         * tests/test-parse-duration.sh: Produce no output when the test
80499         succeeds.
80501 2008-12-16  Bruno Haible  <bruno@clisp.org>
80503         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
80504         expressions.
80506 2008-12-15  Bruno Haible  <bruno@clisp.org>
80508         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
80509         * doc/glibc-functions/flistxattr.texi: Likewise.
80510         * doc/glibc-functions/fopencookie.texi: Likewise.
80511         * doc/glibc-functions/fremovexattr.texi: Likewise.
80512         * doc/glibc-functions/fsetxattr.texi: Likewise.
80513         * doc/glibc-functions/getxattr.texi: Likewise.
80514         * doc/glibc-functions/lgetxattr.texi: Likewise.
80515         * doc/glibc-functions/listxattr.texi: Likewise.
80516         * doc/glibc-functions/llistxattr.texi: Likewise.
80517         * doc/glibc-functions/lremovexattr.texi: Likewise.
80518         * doc/glibc-functions/lsetxattr.texi: Likewise.
80519         * doc/glibc-functions/removexattr.texi: Likewise.
80520         * doc/glibc-functions/setxattr.texi: Likewise.
80521         * doc/posix-functions/open_memstream.texi: Likewise.
80523 2008-12-15  Eric Blake  <ebb9@byu.net>
80525         Update doc for cygwin 1.7.
80526         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
80527         functions.
80528         * doc/posix-functions/fchmodat.texi: Likewise.
80529         * doc/posix-functions/fchownat.texi: Likewise.
80530         * doc/posix-functions/fdopendir.texi: Likewise.
80531         * doc/posix-functions/fmemopen.texi: Likewise.
80532         * doc/posix-functions/freeaddrinfo.texi: Likewise.
80533         * doc/posix-functions/fstatat.texi: Likewise.
80534         * doc/posix-functions/futimens.texi: Likewise.
80535         * doc/posix-functions/gai_strerror.texi: Likewise.
80536         * doc/posix-functions/getaddrinfo.texi: Likewise.
80537         * doc/posix-functions/getnameinfo.texi: Likewise.
80538         * doc/posix-functions/if_freenameindex.texi: Likewise.
80539         * doc/posix-functions/if_indextoname.texi: Likewise.
80540         * doc/posix-functions/if_nameindex.texi: Likewise.
80541         * doc/posix-functions/if_nametoindex.texi: Likewise.
80542         * doc/posix-functions/insque.texi: Likewise.
80543         * doc/posix-functions/linkat.texi: Likewise.
80544         * doc/posix-functions/llrint.texi: Likewise.
80545         * doc/posix-functions/llrintf.texi: Likewise.
80546         * doc/posix-functions/llrintl.texi: Likewise.
80547         * doc/posix-functions/lockf.texi: Likewise.
80548         * doc/posix-functions/lrintl.texi: Likewise.
80549         * doc/posix-functions/mkdirat.texi: Likewise.
80550         * doc/posix-functions/mkfifoat.texi: Likewise.
80551         * doc/posix-functions/mknodat.texi: Likewise.
80552         * doc/posix-functions/mq_close.texi: Likewise.
80553         * doc/posix-functions/mq_getattr.texi: Likewise.
80554         * doc/posix-functions/mq_notify.texi: Likewise.
80555         * doc/posix-functions/mq_open.texi: Likewise.
80556         * doc/posix-functions/mq_receive.texi: Likewise.
80557         * doc/posix-functions/mq_send.texi: Likewise.
80558         * doc/posix-functions/mq_setattr.texi: Likewise.
80559         * doc/posix-functions/mq_timedreceive.texi: Likewise.
80560         * doc/posix-functions/mq_timedsend.texi: Likewise.
80561         * doc/posix-functions/mq_unlink.texi: Likewise.
80562         * doc/posix-functions/open_memstream.texi: Likewise.
80563         * doc/posix-functions/openat.texi: Likewise.
80564         * doc/posix-functions/posix_fadvise.texi: Likewise.
80565         * doc/posix-functions/posix_fallocate.texi: Likewise.
80566         * doc/posix-functions/posix_madvise.texi: Likewise.
80567         * doc/posix-functions/posix_memalign.texi: Likewise.
80568         * doc/posix-functions/posix_openpt.texi: Likewise.
80569         * doc/posix-functions/readlinkat.texi: Likewise.
80570         * doc/posix-functions/remque.texi: Likewise.
80571         * doc/posix-functions/renameat.texi: Likewise.
80572         * doc/posix-functions/rintl.texi: Likewise.
80573         * doc/posix-functions/sem_unlink.texi: Likewise.
80574         * doc/posix-functions/shm_open.texi: Likewise.
80575         * doc/posix-functions/shm_unlink.texi: Likewise.
80576         * doc/posix-functions/signgam.texi: Likewise.
80577         * doc/posix-functions/sigset.texi: Likewise.
80578         * doc/posix-functions/stpcpy.texi: Likewise.
80579         * doc/posix-functions/stpncpy.texi: Likewise.
80580         * doc/posix-functions/strerror.texi: Likewise.
80581         * doc/posix-functions/strtod.texi: Likewise.
80582         * doc/posix-functions/symlinkat.texi: Likewise.
80583         * doc/posix-functions/unlinkat.texi: Likewise.
80584         * doc/posix-functions/utimensat.texi: Likewise.
80585         * doc/glibc-functions/bindresvport.texi: Likewise.
80586         * doc/glibc-functions/dn_expand.texi: Likewise.
80587         * doc/glibc-functions/exp10.texi: Likewise.
80588         * doc/glibc-functions/exp10f.texi: Likewise.
80589         * doc/glibc-functions/fgetxattr.texi: Likewise.
80590         * doc/glibc-functions/flistxattr.texi: Likewise.
80591         * doc/glibc-functions/fopencookie.texi: Likewise.
80592         * doc/glibc-functions/freeifaddrs.texi: Likewise.
80593         * doc/glibc-functions/fremovexattr.texi: Likewise.
80594         * doc/glibc-functions/fsetxattr.texi: Likewise.
80595         * doc/glibc-functions/getifaddrs.texi: Likewise.
80596         * doc/glibc-functions/getxattr.texi: Likewise.
80597         * doc/glibc-functions/lgetxattr.texi: Likewise.
80598         * doc/glibc-functions/listxattr.texi: Likewise.
80599         * doc/glibc-functions/llistxattr.texi: Likewise.
80600         * doc/glibc-functions/lremovexattr.texi: Likewise.
80601         * doc/glibc-functions/lsetxattr.texi: Likewise.
80602         * doc/glibc-functions/pow10.texi: Likewise.
80603         * doc/glibc-functions/pow10f.texi: Likewise.
80604         * doc/glibc-functions/rcmd_af.texi: Likewise.
80605         * doc/glibc-functions/removexattr.texi: Likewise.
80606         * doc/glibc-functions/res_init.texi: Likewise.
80607         * doc/glibc-functions/res_mkquery.texi: Likewise.
80608         * doc/glibc-functions/res_query.texi: Likewise.
80609         * doc/glibc-functions/res_querydomain.texi: Likewise.
80610         * doc/glibc-functions/res_send.texi: Likewise.
80611         * doc/glibc-functions/rresvport_af.texi: Likewise.
80612         * doc/glibc-functions/setxattr.texi: Likewise.
80613         * doc/glibc-functions/strcasestr.texi: Likewise.
80615 2008-12-15  Bruno Haible  <bruno@clisp.org>
80617         Fix compilation error on OSF/1 4.0.
80618         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
80619         <sys/time.h>, simply delegate to the system header.
80620         Reported by Daniel Richard G. <oss@teragram.com>.
80622 2008-12-15  Bruno Haible  <bruno@clisp.org>
80624         * doc/posix-functions/openat.texi: Mention the 'openat' module.
80625         * doc/posix-functions/fchmodat.texi: Likewise.
80626         * doc/posix-functions/fchownat.texi: Likewise.
80627         * doc/posix-functions/fdopendir.texi: Likewise.
80628         * doc/posix-functions/fstatat.texi: Likewise.
80629         * doc/posix-functions/mkdirat.texi: Likewise.
80630         * doc/posix-functions/unlinkat.texi: Likewise.
80632 2008-12-14  Bruno Haible  <bruno@clisp.org>
80634         Update doc for POSIX:2008.
80635         * doc/posix-functions/faccessat.texi: New file.
80636         * doc/posix-functions/fchmodat.texi: New file.
80637         * doc/posix-functions/fchownat.texi: New file.
80638         * doc/posix-functions/fdopendir.texi: New file.
80639         * doc/posix-functions/fstatat.texi: New file.
80640         * doc/posix-functions/futimens.texi: New file.
80641         * doc/posix-functions/linkat.texi: New file.
80642         * doc/posix-functions/mkdirat.texi: New file.
80643         * doc/posix-functions/mkfifoat.texi: New file.
80644         * doc/posix-functions/mknodat.texi: New file.
80645         * doc/posix-functions/open_wmemstream.texi: New file.
80646         * doc/posix-functions/openat.texi: New file.
80647         * doc/posix-functions/psiginfo.texi: New file.
80648         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
80649         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
80650         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
80651         * doc/posix-functions/readlinkat.texi: New file.
80652         * doc/posix-functions/renameat.texi: New file.
80653         * doc/posix-functions/strerror_l.texi: New file.
80654         * doc/posix-functions/symlinkat.texi: New file.
80655         * doc/posix-functions/unlinkat.texi: New file.
80656         * doc/posix-functions/utimensat.texi: New file.
80657         * doc/gnulib.texi (Function Substitutes): Add these subsections.
80659 2008-12-14  Bruno Haible  <bruno@clisp.org>
80661         Update doc for POSIX:2008.
80662         * doc/posix-functions/alphasort.texi: Renamed from
80663         doc/glibc-functions/alphasort.texi.
80664         * doc/posix-functions/dirfd.texi: Renamed from
80665         doc/glibc-functions/dirfd.texi.
80666         * doc/posix-functions/dprintf.texi: Renamed from
80667         doc/glibc-functions/dprintf.texi.
80668         * doc/posix-functions/duplocale.texi: Renamed from
80669         doc/glibc-functions/duplocale.texi.
80670         * doc/posix-functions/fexecve.texi: Renamed from
80671         doc/glibc-functions/fexecve.texi.
80672         * doc/posix-functions/fmemopen.texi: Renamed from
80673         doc/glibc-functions/fmemopen.texi.
80674         * doc/posix-functions/freelocale.texi: Renamed from
80675         doc/glibc-functions/freelocale.texi.
80676         * doc/posix-functions/getdate_err.texi: Renamed from
80677         doc/glibc-functions/getdate_err.texi.
80678         * doc/posix-functions/isalnum_l.texi: Renamed from
80679         doc/glibc-functions/isalnum_l.texi.
80680         * doc/posix-functions/isalpha_l.texi: Renamed from
80681         doc/glibc-functions/isalpha_l.texi.
80682         * doc/posix-functions/isblank_l.texi: Renamed from
80683         doc/glibc-functions/isblank_l.texi.
80684         * doc/posix-functions/iscntrl_l.texi: Renamed from
80685         doc/glibc-functions/iscntrl_l.texi.
80686         * doc/posix-functions/isdigit_l.texi: Renamed from
80687         doc/glibc-functions/isdigit_l.texi.
80688         * doc/posix-functions/isgraph_l.texi: Renamed from
80689         doc/glibc-functions/isgraph_l.texi.
80690         * doc/posix-functions/islower_l.texi: Renamed from
80691         doc/glibc-functions/islower_l.texi.
80692         * doc/posix-functions/isprint_l.texi: Renamed from
80693         doc/glibc-functions/isprint_l.texi.
80694         * doc/posix-functions/ispunct_l.texi: Renamed from
80695         doc/glibc-functions/ispunct_l.texi.
80696         * doc/posix-functions/isspace_l.texi: Renamed from
80697         doc/glibc-functions/isspace_l.texi.
80698         * doc/posix-functions/isupper_l.texi: Renamed from
80699         doc/glibc-functions/isupper_l.texi.
80700         * doc/posix-functions/iswalnum_l.texi: Renamed from
80701         doc/glibc-functions/iswalnum_l.texi.
80702         * doc/posix-functions/iswalpha_l.texi: Renamed from
80703         doc/glibc-functions/iswalpha_l.texi.
80704         * doc/posix-functions/iswblank_l.texi: Renamed from
80705         doc/glibc-functions/iswblank_l.texi.
80706         * doc/posix-functions/iswcntrl_l.texi: Renamed from
80707         doc/glibc-functions/iswcntrl_l.texi.
80708         * doc/posix-functions/iswctype_l.texi: Renamed from
80709         doc/glibc-functions/iswctype_l.texi.
80710         * doc/posix-functions/iswdigit_l.texi: Renamed from
80711         doc/glibc-functions/iswdigit_l.texi.
80712         * doc/posix-functions/iswgraph_l.texi: Renamed from
80713         doc/glibc-functions/iswgraph_l.texi.
80714         * doc/posix-functions/iswlower_l.texi: Renamed from
80715         doc/glibc-functions/iswlower_l.texi.
80716         * doc/posix-functions/iswprint_l.texi: Renamed from
80717         doc/glibc-functions/iswprint_l.texi.
80718         * doc/posix-functions/iswpunct_l.texi: Renamed from
80719         doc/glibc-functions/iswpunct_l.texi.
80720         * doc/posix-functions/iswspace_l.texi: Renamed from
80721         doc/glibc-functions/iswspace_l.texi.
80722         * doc/posix-functions/iswupper_l.texi: Renamed from
80723         doc/glibc-functions/iswupper_l.texi.
80724         * doc/posix-functions/iswxdigit_l.texi: Renamed from
80725         doc/glibc-functions/iswxdigit_l.texi.
80726         * doc/posix-functions/isxdigit_l.texi: Renamed from
80727         doc/glibc-functions/isxdigit_l.texi.
80728         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
80729         doc/glibc-functions/mbsnrtowcs.texi.
80730         * doc/posix-functions/mkdtemp.texi: Renamed from
80731         doc/glibc-functions/mkdtemp.texi.
80732         * doc/posix-functions/newlocale.texi: Renamed from
80733         doc/glibc-functions/newlocale.texi.
80734         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
80735         doc/glibc-functions/nl_langinfo_l.texi.
80736         * doc/posix-functions/open_memstream.texi: Renamed from
80737         doc/glibc-functions/open_memstream.texi.
80738         * doc/posix-functions/opterr.texi: Renamed from
80739         doc/glibc-functions/opterr.texi.
80740         * doc/posix-functions/optind.texi: Renamed from
80741         doc/glibc-functions/optind.texi.
80742         * doc/posix-functions/optopt.texi: Renamed from
80743         doc/glibc-functions/optopt.texi.
80744         * doc/posix-functions/psignal.texi: Renamed from
80745         doc/glibc-functions/psignal.texi.
80746         * doc/posix-functions/scandir.texi: Renamed from
80747         doc/glibc-functions/scandir.texi.
80748         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
80749         doc/glibc-functions/sched_get_priority_min.texi.
80750         * doc/posix-functions/signgam.texi: Renamed from
80751         doc/glibc-functions/signgam.texi.
80752         * doc/posix-functions/stpcpy.texi: Renamed from
80753         doc/glibc-functions/stpcpy.texi.
80754         * doc/posix-functions/stpncpy.texi: Renamed from
80755         doc/glibc-functions/stpncpy.texi.
80756         * doc/posix-functions/strcasecmp_l.texi: Renamed from
80757         doc/glibc-functions/strcasecmp_l.texi.
80758         * doc/posix-functions/strcoll_l.texi: Renamed from
80759         doc/glibc-functions/strcoll_l.texi.
80760         * doc/posix-functions/strfmon_l.texi: Renamed from
80761         doc/glibc-functions/strfmon_l.texi.
80762         * doc/posix-functions/strftime_l.texi: Renamed from
80763         doc/glibc-functions/strftime_l.texi.
80764         * doc/posix-functions/strncasecmp_l.texi: Renamed from
80765         doc/glibc-functions/strncasecmp_l.texi.
80766         * doc/posix-functions/strndup.texi: Renamed from
80767         doc/glibc-functions/strndup.texi.
80768         * doc/posix-functions/strnlen.texi: Renamed from
80769         doc/glibc-functions/strnlen.texi.
80770         * doc/posix-functions/strsignal.texi: Renamed from
80771         doc/glibc-functions/strsignal.texi.
80772         * doc/posix-functions/strxfrm_l.texi: Renamed from
80773         doc/glibc-functions/strxfrm_l.texi.
80774         * doc/posix-functions/timer_gettime.texi: Renamed from
80775         doc/glibc-functions/timer_gettime.texi.
80776         * doc/posix-functions/tolower_l.texi: Renamed from
80777         doc/glibc-functions/tolower_l.texi.
80778         * doc/posix-functions/toupper_l.texi: Renamed from
80779         doc/glibc-functions/toupper_l.texi.
80780         * doc/posix-functions/towctrans_l.texi: Renamed from
80781         doc/glibc-functions/towctrans_l.texi.
80782         * doc/posix-functions/towlower_l.texi: Renamed from
80783         doc/glibc-functions/towlower_l.texi.
80784         * doc/posix-functions/towupper_l.texi: Renamed from
80785         doc/glibc-functions/towupper_l.texi.
80786         * doc/posix-functions/uselocale.texi: Renamed from
80787         doc/glibc-functions/uselocale.texi.
80788         * doc/posix-functions/vdprintf.texi: Renamed from
80789         doc/glibc-functions/vdprintf.texi.
80790         * doc/posix-functions/wcpcpy.texi:
80791         Renamed from doc/glibc-functions/wcpcpy.texi.
80792         * doc/posix-functions/wcpncpy.texi: Renamed from
80793         doc/glibc-functions/wcpncpy.texi.
80794         * doc/posix-functions/wcscasecmp.texi: Renamed from
80795         doc/glibc-functions/wcscasecmp.texi.
80796         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
80797         doc/glibc-functions/wcscasecmp_l.texi.
80798         * doc/posix-functions/wcscoll_l.texi: Renamed from
80799         doc/glibc-functions/wcscoll_l.texi.
80800         * doc/posix-functions/wcsdup.texi: Renamed from
80801         doc/glibc-functions/wcsdup.texi.
80802         * doc/posix-functions/wcsncasecmp.texi: Renamed from
80803         doc/glibc-functions/wcsncasecmp.texi.
80804         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
80805         doc/glibc-functions/wcsncasecmp_l.texi.
80806         * doc/posix-functions/wcsnlen.texi: Renamed from
80807         doc/glibc-functions/wcsnlen.texi.
80808         * doc/posix-functions/wcsnrtombs.texi: Renamed from
80809         doc/glibc-functions/wcsnrtombs.texi.
80810         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
80811         doc/glibc-functions/wcsxfrm_l.texi.
80812         * doc/posix-functions/wctrans_l.texi: Renamed from
80813         doc/glibc-functions/wctrans_l.texi.
80814         * doc/posix-functions/wctype_l.texi: Renamed from
80815         doc/glibc-functions/wctype_l.texi.
80816         * doc/gnulib.texi (Function Substitutes): Add these subsections.
80817         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
80818         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
80819         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
80820         these subsections.
80821         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
80822         Remove sections.
80824 2008-12-14  Bruno Haible  <bruno@clisp.org>
80826         Update doc for POSIX:2008.
80827         * doc/posix-functions/*.texi: Update URL of POSIX specification.
80829 2008-12-14  Bruno Haible  <bruno@clisp.org>
80831         Update doc for POSIX:2008.
80832         * doc/pastposix-functions/bcmp.texi: Renamed from
80833         doc/posix-functions/bcmp.texi.
80834         * doc/pastposix-functions/bcopy.texi: Renamed from
80835         doc/posix-functions/bcopy.texi.
80836         * doc/pastposix-functions/bsd_signal.texi: Renamed from
80837         doc/posix-functions/bsd_signal.texi.
80838         * doc/pastposix-functions/bzero.texi: Renamed from
80839         doc/posix-functions/bzero.texi.
80840         * doc/pastposix-functions/ecvt.texi: Renamed from
80841         doc/posix-functions/ecvt.texi.
80842         * doc/pastposix-functions/fcvt.texi: Renamed from
80843         doc/posix-functions/fcvt.texi.
80844         * doc/pastposix-functions/ftime.texi: Renamed from
80845         doc/posix-functions/ftime.texi.
80846         * doc/pastposix-functions/gcvt.texi: Renamed from
80847         doc/posix-functions/gcvt.texi.
80848         * doc/pastposix-functions/getcontext.texi: Renamed from
80849         doc/posix-functions/getcontext.texi.
80850         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
80851         doc/posix-functions/gethostbyaddr.texi.
80852         * doc/pastposix-functions/gethostbyname.texi: Renamed from
80853         doc/posix-functions/gethostbyname.texi.
80854         * doc/pastposix-functions/getwd.texi: Renamed from
80855         doc/posix-functions/getwd.texi.
80856         * doc/pastposix-functions/h_errno.texi: Renamed from
80857         doc/posix-functions/h_errno.texi.
80858         * doc/pastposix-functions/index.texi: Renamed from
80859         doc/posix-functions/index.texi.
80860         * doc/pastposix-functions/makecontext.texi: Renamed from
80861         doc/posix-functions/makecontext.texi.
80862         * doc/pastposix-functions/mktemp.texi: Renamed from
80863         doc/posix-functions/mktemp.texi.
80864         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
80865         doc/posix-functions/pthread_attr_getstackaddr.texi.
80866         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
80867         doc/posix-functions/pthread_attr_setstackaddr.texi.
80868         * doc/pastposix-functions/rindex.texi: Renamed from
80869         doc/posix-functions/rindex.texi.
80870         * doc/pastposix-functions/scalb.texi: Renamed from
80871         doc/posix-functions/scalb.texi.
80872         * doc/pastposix-functions/setcontext.texi: Renamed from
80873         doc/posix-functions/setcontext.texi.
80874         * doc/pastposix-functions/swapcontext.texi: Renamed from
80875         doc/posix-functions/swapcontext.texi.
80876         * doc/pastposix-functions/ualarm.texi: Renamed from
80877         doc/posix-functions/ualarm.texi.
80878         * doc/pastposix-functions/usleep.texi: Renamed from
80879         doc/posix-functions/usleep.texi.
80880         * doc/pastposix-functions/vfork.texi: Renamed from
80881         doc/posix-functions/vfork.texi.
80882         * doc/pastposix-functions/wcswcs.texi: Renamed from
80883         doc/posix-functions/wcswcs.texi.
80884         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
80885         (Function Substitutes): Update.
80887 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80889         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
80890         m4/strerror.m4.
80892 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80893             Bruno Haible  <bruno@clisp.org>
80895         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
80897 2008-12-13  Bruno Haible  <bruno@clisp.org>
80899         * modules/strtoull (Depends-on): Remove unistd.
80901 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80903         * modules/strtoull (Depends-on): Add stdlib.
80905 2008-12-11  Simon Josefsson  <simon@josefsson.org>
80907         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
80909 2008-12-10  Jim Meyering  <meyering@redhat.com>
80911         gl_ASSERT: don't say assertions are disabled when they're not
80912         * m4/assert.m4 (gl_ASSERT): Do not make configure report
80913         "checking whether to enable assertions... no", when they are in
80914         fact enabled.  This is solely a bug in the output of configure.
80915         In spite of saying "no", NDEBUG was not defined in that case.
80916         Also, as noted by Eric Blake, leave assertions enabled upon
80917         --enable-assert=INVALID.
80919 2008-12-10  Bruno Haible  <bruno@clisp.org>
80921         Change MODULES.html to refer to POSIX:2008 where possible.
80922         * MODULES.html.sh (POSIX2008_URL): New variable.
80923         (posix_headers): Remove sys/timeb, ucontext.
80924         (posix2001_headers): New variable.
80925         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
80926         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
80927         index, makecontext, mktemp, pthread_attr_getstackaddr,
80928         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
80929         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
80930         (posix2001_functions): New variable.
80931         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
80932         otherwise.
80934 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80936         add missing include to parse-duration.c
80937         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
80938         * modules/parse-duration (Depends-on): Add xalloc.
80940         fix sed script reading maint.mk
80941         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
80942         (syntax-check-rules): Use it.
80944 2008-12-09  Bruno Haible  <bruno@clisp.org>
80946         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
80947         MacOS X 10.4/PowerPC.
80948         Reported by Simon Josefsson.
80950 2008-12-08  Jim Meyering  <meyering@redhat.com>
80952         work around mingw's lack of some S_IF definitions
80953         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
80954         Reported by Simon Josefsson.
80956 2008-12-08  Bruno Haible  <bruno@clisp.org>
80958         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
80959         applied to variables. Needed on MacOS X 10.4/PowerPC.
80960         Reported by Simon Josefsson.
80962 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
80963         and Eric Blake  <ebb9@byu.net>
80965         assert: honor --enable-assert
80966         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
80967         order to honor --enable-assert, rather than treating it as a
80968         synonym for --disable-assert.
80970 2008-12-08  Jim Meyering  <meyering@redhat.com>
80972         * lib/posixtm.c: Remove now-useless declaration of mktime.
80974         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
80976 2008-12-07  Bruno Haible  <bruno@clisp.org>
80978         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
80979         test_once): Mark functions as static.
80980         * tests/test-tls.c (test_tls): Likewise.
80982 2008-12-07  Bruno Haible  <bruno@clisp.org>
80984         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
80985         iconv_register_autodetect.
80987 2008-12-07  Jim Meyering  <meyering@redhat.com>
80989         posixtm.c: avoid a warning
80990         * lib/posixtm.c (posixtime): Don't initialize tm0.
80991         It's no longer needed to placate gcc4's -Wuninitialized,
80992         and the attempt to placate would elicit a new warning.
80994         unicodeio.c: mark unused parameters
80995         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
80996         (fallback_failure_callback): Likewise.
80998 2008-12-07  Bruno Haible  <bruno@clisp.org>
81000         * gnulib-tool (func_create_testdir): When building the tests
81001         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
81002         Reported by Simon Josefsson.
81004 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81006         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
81008 2008-12-06  Bruno Haible  <bruno@clisp.org>
81010         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
81011         Suggested by Eric Blake.
81013 2008-12-06  Bruno Haible  <bruno@clisp.org>
81015         Fix a c-stack test failure on MacOS X.
81016         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
81017         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
81018         handler for SIGBUS as well.
81019         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
81020         install a signal handler for SIGBUS as well.
81021         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
81023 2008-12-06  Bruno Haible  <bruno@clisp.org>
81025         Advocacy documentation.
81026         * doc/gnulib-intro.texi (Benefits): New section.
81027         * doc/gnulib.texi: Update.
81029 2008-12-06  Bruno Haible  <bruno@clisp.org>
81031         Document the 'manywarnings' module.
81032         * doc/manywarnings.texi: New file.
81033         * doc/gnulib.texi: Include it.
81035 2008-12-05  Eric Blake  <ebb9@byu.net>
81037         tests: silence some gcc warnings
81038         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
81039         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
81040         type mismatches.
81042 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81043             Bruno Haible  <bruno@clisp.org>
81045         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
81047 2008-11-29  Jim Meyering  <meyering@redhat.com>
81049         unicodeio.c: mark unused parameters
81050         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
81051         (fallback_failure_callback): Likewise.
81053         fts: fix a thinko
81054         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
81055         (set_stat_type): Return S_IF*-valued "type" directly.
81056         Prompted by James Youngman's spotting a related bug.
81057         Confirmed by further testing through find.
81059         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
81060         * lib/fts.c (D_TYPE): Define.
81061         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
81062         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
81063         (s_ifmt_shift_bits): New function.
81064         (set_stat_type): New function.
81065         (fts_build): When not calling fts_stat, call set_stat_type
81066         to propagate dirent.d_type info to fts_read caller.
81067         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
81068         fts_statp->st_mode type information may be valid.
81070 2008-11-28  Simon Josefsson  <simon@josefsson.org>
81072         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
81073         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
81074         <sds@gnu.org>.
81076 2008-11-20  Bruno Haible  <bruno@clisp.org>
81078         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
81079         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
81080         INCLUDE_NEXT.
81081         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
81082         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
81083         * modules/math (Makefile.am): Substitute
81084         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
81085         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
81087 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
81088             Bruno Haible  <bruno@clisp.org>
81090         * lib/stdint.in.h: Define all type macros so that their expansion is
81091         a single typedef'ed token. Fixes a compilation failure in Boost which
81092         does "using ::int8_t;".
81094 2008-11-18  Simon Josefsson  <simon@josefsson.org>
81096         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
81097         gl_MANYWARN_ALL_GCC.
81098         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
81099         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
81100         * modules/manywarnings: New file.
81101         * MODULES.html.sh: Mention manywarnings module.
81103 2008-11-18  Bruno Haible  <bruno@clisp.org>
81105         * doc/gnulib-tool.texi (Unit tests): New section.
81107 2008-11-18  Simon Josefsson  <simon@josefsson.org>
81109         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
81110         paths like 'lib/po/foo.po'.
81112 2008-11-17  Simon Josefsson  <simon@josefsson.org>
81114         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
81115         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
81117 2008-11-17  Simon Josefsson  <simon@josefsson.org>
81119         * m4/warnings.m4: Use CPPFLAGS to really check whether the
81120         parameter works.
81122 2008-11-17  Simon Josefsson  <simon@josefsson.org>
81124         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
81126 2008-11-17  Bruce Korb  <bkorb@gnu.org>
81128         * modules/parse-duration-tests: New file.
81129         * tests/test-parse-duration.sh: New file.
81130         * tests/test-parse-duration.c: New file.
81132         New module 'parse-duration'.
81133         * lib/parse-duration.h: New file.
81134         * lib/parse-duration.c: New file.
81135         * modules/parse-duration: New file.
81137 2008-11-17  Bruno Haible  <bruno@clisp.org>
81139         * tests/test-select-out.sh: Comment out the first pipe test.
81140         Reported by Simon Josefsson.
81142 2008-11-17  Bruno Haible  <bruno@clisp.org>
81144         * modules/getaddrinfo (Depends-on): Add servent, hostent.
81145         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
81146         gl_HOSTENT.
81148 2008-11-17  Bruno Haible  <bruno@clisp.org>
81150         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
81151         -lnetwork and -lnet. Needed for Haiku and BeOS.
81153 2008-11-16  Bruno Haible  <bruno@clisp.org>
81155         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
81157 2008-11-16  Bruno Haible  <bruno@clisp.org>
81159         Avoid test failure on Haiku.
81160         * tests/test-fsync.c: Include <errno.h>.
81161         (main): Don't require that fsync (0) fails.
81163 2008-11-15  Bruno Haible  <bruno@clisp.org>
81165         New module 'hostent'.
81166         * modules/hostent: New file.
81167         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
81169 2008-11-15  Bruno Haible  <bruno@clisp.org>
81171         New module 'servent'.
81172         * modules/servent: New file.
81173         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
81175 2008-11-15  Bruno Haible  <bruno@clisp.org>
81177         Avoid generating same test program with two different rules.
81178         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
81179         test-frexp to test-frexp-nolibm.
81180         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
81181         test-frexpl to test-frexpl-nolibm.
81183 2008-11-15  Bruno Haible  <bruno@clisp.org>
81185         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
81186         $(FREXPL_LIBM).
81188 2008-11-15  Bruno Haible  <bruno@clisp.org>
81190         * lib/netdb.in.h: Activate the definitions also when the system's
81191         <netdb.h> has 'struct addrinfo'.
81192         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
81193         EAI_OVERFLOW or AI_NUMERICSERV.
81194         * doc/posix-headers/netdb.texi: Document the problem.
81196 2008-11-15  Bruno Haible  <bruno@clisp.org>
81198         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
81200         Make the 'sched' module work on platforms where <sched.h> exists but
81201         is incomplete (such as Haiku).
81202         * lib/sched.in.h; Include the system's <sched.h> if it exists.
81203         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
81204         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
81205         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
81206         HAVE_STRUCT_SCHED_PARAM.
81207         * modules/sched (Depends-on): Add include_next.
81208         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
81209         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
81210         * doc/posix-headers/sched.texi: Document the issue.
81212 2008-11-13  Jim Meyering  <meyering@redhat.com>
81214         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
81215         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
81216         test would fail due to the difference in the Report bugs to ...
81217         line.  The expected address is empty, "<>", while the actual
81218         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
81220 2008-11-12  Bruno Haible  <bruno@clisp.org>
81222         lstat: don't compile lstat.c on systems lacking lstat
81223         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
81224         which don't have lstat; this is handled by lib/sys_stat.in.h already.
81225         Reported by Daniel P. Berrange via Jim Meyering.
81227 2008-11-12  Jim Meyering  <meyering@redhat.com>
81229         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
81231 2008-11-12  Simon Josefsson  <simon@josefsson.org>
81233         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
81234         instead.
81236 2008-11-12  Bruno Haible  <bruno@clisp.org>
81238         * lib/unicodeio.c: Include unistr.h.
81239         (utf8_wctomb): Remove function.
81240         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
81242 2008-11-12  Simon Josefsson  <simon@josefsson.org>
81244         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
81245         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
81246         <bruno@clisp.org>.
81247         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
81249 2008-11-12  Simon Josefsson  <simon@josefsson.org>
81251         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
81252         * doc/gnulib.texi: Add section for warnings.
81254 2008-11-11  Bruno Haible  <bruno@clisp.org>
81256         * lib/sockets.h: Add a comment.
81258 2008-11-11  Karl Berry  <karl@gnu.org>
81260         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
81262 2008-11-11  Eric Blake  <ebb9@byu.net>
81264         fdl.texi: avoid git symlinks
81265         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
81267 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
81269         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
81271 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
81273         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
81274         (gl_WARN_ADD): Substitute $2 if literal.
81276 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
81278         * m4/warning.m4: Remove.
81280 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
81282         * m4/warnings.m4: Almost complete rewrite. :-)
81284 2008-11-10  Simon Josefsson  <simon@josefsson.org>
81286         * modules/warnings: New module.
81287         * m4/warnings.m4: New file.
81288         * MODULES.html.sh: Mention warnings module.
81289         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
81290         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81292 2008-11-10  Eric Blake  <ebb9@byu.net>
81294         fdl.texi: make a symlink to the latest version
81295         * doc/standards.texi: Revert today's earlier change.
81296         * doc/fdl-1.2.texi: Rename from old fdl.texi...
81297         * doc/fdl.texi: ...and replace this with a symlink to the newer
81298         fdl-1.3.texi.
81300 2008-11-10  Bruno Haible  <bruno@clisp.org>
81302         * tests/test-select-fd.c (main): Accept the result file name as fourth
81303         argument.
81304         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
81305         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
81307 2008-11-10  Bruno Haible  <bruno@clisp.org>
81309         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
81310         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
81311         as autoconf-substituted macros.
81312         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
81313         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
81314         gl_NETDB_H_DEFAULTS. Set these variables.
81315         * modules/netdb (Makefile.am): Substitute these variables.
81317 2008-11-10  Eric Blake  <ebb9@byu.net>
81319         standards.texi: include correct file for FDL 1.3
81320         * doc/standards.texi (GNU Free Documentation License): Change
81321         include file to pull in FDL 1.3, not 1.2.
81323         fdl.texi: revert accidental change to license
81324         * doc/fdl.texi: This is FDL 1.2, not 1.3.
81326 2008-11-10  Bruno Haible  <bruno@clisp.org>
81328         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
81329         cross-compiling guesses also when the native compile gives no result.
81331 2008-11-10  Bruno Haible  <bruno@clisp.org>
81333         * lib/spawni.c (__spawni): Force variable into the stack.
81335 2008-11-10  Bruno Haible  <bruno@clisp.org>
81337         Add support for Haiku.
81338         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
81339         glibc and BeOS, but also on Haiku.
81340         * lib/fpurge.c (fpurge): Likewise.
81341         * lib/freadable.c (freadable): Likewise.
81342         * lib/freadahead.c (freadahead): Likewise.
81343         * lib/freading.c (freading): Likewise.
81344         * lib/freadptr.c (freadptr): Likewise.
81345         * lib/freadseek.c (freadptrinc): Likewise.
81346         * lib/fseeko.c (rpl_fseeko): Likewise.
81347         * lib/fseterr.c (fseterr): Likewise.
81348         * lib/fwritable.c (fwritable): Likewise.
81349         * lib/fwriting.c (fwriting): Likewise.
81350         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
81352 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
81354         * lib/config.charset: Treat Haiku like BeOS.
81356 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
81358         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
81359         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
81361 2008-11-08  Bruno Haible  <bruno@clisp.org>
81363         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
81364         AC_CACHE_CHECK.
81366 2008-11-08  Bruno Haible  <bruno@clisp.org>
81368         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
81370 2008-11-08  Bruno Haible  <bruno@clisp.org>
81372         * tests/test-select-fd.c: New file.
81373         * tests/test-select-in.sh: New file.
81374         * tests/test-select-out.sh: New file.
81375         * tests/test-select-stdin.c: New file.
81376         * modules/select-tests (Files): Add the new files.
81377         (Depends-on): Add gettimeofday.
81378         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
81379         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
81380         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
81382 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
81383             Bruno Haible  <bruno@clisp.org>
81385         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
81387 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
81389         * build-aux/pmccabe2html: Added support for C++ source files.
81391 2008-11-05  Ben Pfaff  <blp@gnu.org>
81393         Fix lib/close.c build on Windows.
81394         * modules/close (Files): Add lib/w32sock.h.
81396 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
81398         Accept Bison's NEWS format.
81399         * build-aux/announce-gen (print_news_deltas): Tweak
81400         $re_prefix.
81402 2008-11-04  Bruno Haible  <bruno@clisp.org>
81404         * modules/random_r (Maintainer): Add glibc.
81406 2008-11-04  Simon Josefsson  <simon@josefsson.org>
81408         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
81409         by karl@freefriends.org (Karl Berry).
81410         * doc/alloca.texi: Likewise.
81411         * doc/c-ctype.texi: Likewise.
81412         * doc/c-strcase.texi: Likewise.
81413         * doc/c-strcaseeq.texi: Likewise.
81414         * doc/c-strcasestr.texi: Likewise.
81415         * doc/c-strstr.texi: Likewise.
81416         * doc/c-strtod.texi: Likewise.
81417         * doc/c-strtold.texi: Likewise.
81418         * doc/ctime.texi: Likewise.
81419         * doc/error.texi: Likewise.
81420         * doc/fdl.texi: Likewise.
81421         * doc/gcd.texi: Likewise.
81422         * doc/getdate.texi: Likewise.
81423         * doc/gnulib-intro.texi: Likewise.
81424         * doc/gnulib-tool.texi: Likewise.
81425         * doc/gnulib.texi: Likewise.
81426         * doc/inet_ntoa.texi: Likewise.
81427         * doc/maintain.texi: Likewise.
81428         * doc/make-stds.texi: Likewise.
81429         * doc/quote.texi: Likewise.
81430         * doc/regexprops-generic.texi: Likewise.
81431         * doc/standards.texi: Likewise.
81432         * doc/verify.texi: Likewise.
81433         * doc/visibility.texi: Likewise.
81434         * doc/gnulib.texi (GNU Free Documentation License): Include
81435         fdl-1.3.texi instead of fdl.texi.
81437 2008-11-04  Simon Josefsson  <simon@josefsson.org>
81439         * doc/fdl-1.3.texi: New file, from
81440         <http://www.gnu.org/licenses/fdl-1.3.texi>.
81441         * modules/fdl-1.3: Add.
81442         * MODULES.html.sh: Add fdl-1.3.
81444 2008-11-03  Bruno Haible  <bruno@clisp.org>
81446         Make determination of absolute name of header file work with AIX xlc.
81447         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
81448         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
81449         preprocessing.
81450         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
81451         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
81453 2008-11-03  Simon Josefsson  <simon@josefsson.org>
81455         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
81456         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
81457         <ludo@gnu.org>.
81459 2008-11-02  Bruno Haible  <bruno@clisp.org>
81461         Mark 'strpbrk' obsolete.
81462         * modules/strpbrk (Status, Notice): New sections.
81463         * modules/strtok_r (Depends-on): Add strpbrk.
81465 2008-11-02  Bruno Haible  <bruno@clisp.org>
81467         Mark 'strdup' obsolete.
81468         * modules/strdup (Status, Notice): New sections.
81469         * modules/findprog (Depends-on): Add strdup.
81470         * modules/getaddrinfo (Depends-on): Likewise.
81471         * modules/localename (Depends-on): Likewise.
81472         * modules/relocatable-lib (Depends-on): Likewise.
81473         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
81474         * modules/relocatable-prog (Depends-on): Likewise.
81475         * modules/trim (Depends-on): Likewise.
81476         * modules/unictype/gen-ctype (Depends-on): Likewise.
81477         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
81479 2008-11-02  Bruno Haible  <bruno@clisp.org>
81481         Mark 'strcspn' obsolete.
81482         * modules/strcspn (Status, Notice): New sections.
81484 2008-11-02  Bruno Haible  <bruno@clisp.org>
81486         Mark 'rmdir' obsolete.
81487         * modules/rmdir (Status, Notice): New sections.
81488         * modules/clean-temp (Depends-on): Add rmdir.
81489         * modules/openat (Depends-on): Likewise.
81491 2008-11-02  Bruno Haible  <bruno@clisp.org>
81493         Mark 'raise' obsolete.
81494         * modules/raise (Status, Notice): New sections.
81495         (Include): Specify <signal.h>.
81496         * modules/stdio (Depends-on): Add raise.
81497         * modules/write (Depends-on): Likewise.
81499 2008-11-02  Bruno Haible  <bruno@clisp.org>
81501         Mark 'memset' obsolete.
81502         * modules/memset (Status, Notice): New sections.
81504 2008-11-02  Bruno Haible  <bruno@clisp.org>
81506         Mark 'memmove' obsolete.
81507         * modules/memmove (Status, Notice): New sections.
81508         * modules/argp (Depends-on): Add memmove.
81509         * modules/argz (Depends-on): Likewise.
81510         * modules/canonicalize (Depends-on): Likewise.
81511         * modules/canonicalize-lgpl (Depends-on): Likewise.
81512         * modules/fts (Depends-on): Likewise.
81513         * modules/getcwd (Depends-on): Likewise.
81514         * modules/human (Depends-on): Likewise.
81515         * modules/regex (Depends-on): Likewise.
81516         * modules/striconveh (Depends-on): Likewise.
81517         * modules/trim (Depends-on): Likewise.
81518         * modules/unistr/u8-move (Depends-on): Likewise.
81519         * modules/unistr/u16-move (Depends-on): Likewise.
81520         * modules/unistr/u32-move (Depends-on): Likewise.
81522 2008-11-02  Bruno Haible  <bruno@clisp.org>
81524         Mark 'memcpy' obsolete.
81525         * modules/memcpy (Status, Notice): New sections.
81527 2008-11-02  Bruno Haible  <bruno@clisp.org>
81529         Mark 'memcmp' obsolete.
81530         * modules/memcmp (Status, Notice): New sections.
81531         * modules/argmatch (Depends-on): Add memchr.
81532         * modules/backupfile (Depends-on): Likewise.
81533         * modules/c-strcasestr (Depends-on): Likewise.
81534         * modules/crypto/des (Depends-on): Likewise.
81535         * modules/csharpcomp (Depends-on): Likewise.
81536         * modules/fnmatch (Depends-on): Likewise.
81537         * modules/git-merge-changelog (Depends-on): Likewise.
81538         * modules/isnand (Depends-on): Likewise.
81539         * modules/isnand-nolibm (Depends-on): Likewise.
81540         * modules/isnanf (Depends-on): Likewise.
81541         * modules/isnanf-nolibm (Depends-on): Likewise.
81542         * modules/isnanl (Depends-on): Likewise.
81543         * modules/isnanl-nolibm (Depends-on): Likewise.
81544         * modules/mbchar (Depends-on): Likewise.
81545         * modules/memcoll (Depends-on): Likewise.
81546         * modules/quotearg (Depends-on): Likewise.
81547         * modules/regex (Depends-on): Likewise.
81548         * modules/relocatable-prog (Depends-on): Likewise.
81549         * modules/same (Depends-on): Likewise.
81550         * modules/signbit (Depends-on): Likewise.
81551         * modules/strcasestr-simple (Depends-on): Likewise.
81552         * modules/unictype/gen-ctype (Depends-on): Likewise.
81553         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
81554         * modules/uniname/uniname (Depends-on): Likewise.
81555         * modules/unistr/u8-cmp (Depends-on): Likewise.
81557 2008-11-02  Bruno Haible  <bruno@clisp.org>
81559         Mark 'memchr' obsolete.
81560         * modules/memchr (Status, Notice): New sections.
81561         * modules/argp (Depends-on): Add memchr.
81562         * modules/base64 (Depends-on): Likewise.
81563         * modules/c-strcasestr (Depends-on): Likewise.
81564         * modules/chdir-long (Depends-on): Likewise.
81565         * modules/fnmatch (Depends-on): Likewise.
81566         * modules/getsubopt (Depends-on): Likewise.
81567         * modules/git-merge-changelog (Depends-on): Likewise.
81568         * modules/glob (Depends-on): Likewise.
81569         * modules/strcasestr-simple (Depends-on): Likewise.
81570         * modules/strnlen (Depends-on): Likewise.
81572 2008-11-02  Bruno Haible  <bruno@clisp.org>
81574         Mark 'atexit' obsolete.
81575         * modules/atexit (Status, Notice): New sections.
81576         * modules/chdir-long (Depends-on): Add atexit.
81577         * modules/wait-process (Depends-on): Likewise.
81579 2008-11-02  Bruno Haible  <bruno@clisp.org>
81581         * gnulib-tool: New option --with-obsolete.
81582         (func_usage): Document it.
81583         (func_modules_transitive_closure): Drop obsolete dependencies if
81584         incobsolete is not true.
81585         (func_import): Read and save the incobsolete variable to the cache.
81587 2008-11-02  Bruno Haible  <bruno@clisp.org>
81589         * modules/TEMPLATE-EXTENDED: New field 'Status'.
81590         * gnulib-tool: New option --extract-status.
81591         (func_usage): Document it.
81592         (sed_extract_prog): Recognize it.
81593         (func_get_status): New function.
81595 2008-10-30  Simon Josefsson  <simon@josefsson.org>
81597         * modules/sockets (License): Change from LGPL to LGPLv2+.
81599 2008-10-28  Simon Josefsson  <simon@josefsson.org>
81601         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
81603 2008-10-28  Simon Josefsson  <simon@josefsson.org>
81605         * MODULES.html.sh (Support for systems lacking POSIX:2001):
81606         Mention times and sys_times.
81607         * modules/sys_times, modules/sys_times-tests: New modules.
81608         * modules/times, modules/times-tests: Likewise
81609         * m4/sys_times_h.m4: New file.
81610         * lib/sys_times.in.h: Likewise
81611         * lib/times.c: Likewise.
81612         * tests/test-sys_times.c: Likewise.
81613         * tests/test-times.c: Likewise.
81614         * doc/posix-headers/sys_times.texi: Update.
81615         * doc/posix-functions/times.texi: Update.
81617 2008-10-28  Jim Meyering  <meyering@redhat.com>
81619         * modules/tempname (Depends-on): Add lstat.
81621         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
81623 2008-10-28  Simon Josefsson  <simon@josefsson.org>
81625         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
81626         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
81627         using idiom used elsewhere in gnulib.
81629 2008-10-27  Jim Meyering  <meyering@redhat.com>
81631         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
81633 2008-10-27  Simon Josefsson  <simon@josefsson.org>
81635         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
81636         TESTS_ENVIRONMENT, for shell scripts that needs to call built
81637         programs.
81638         * tests/test-argp-2.sh: Use $EXEEXT when needed.
81640 2008-10-27  Simon Josefsson  <simon@josefsson.org>
81642         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
81644 2008-10-27  Bruno Haible  <bruno@clisp.org>
81646         * tests/test-lstat.c: Include <stdio.h>.
81648 2008-10-27  Simon Josefsson  <simon@josefsson.org>
81650         * modules/lstat-tests: New module.
81651         * tests/test-lstat.c: New file.
81653 2008-10-26  Jim Meyering  <meyering@redhat.com>
81655         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
81657 2008-10-26  Simon Josefsson  <simon@josefsson.org>
81658             Bruno Haible  <bruno@clisp.org>
81660         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
81661         * modules/configmake (Include): Add a note that the include must come
81662         after all system headers.
81663         * lib/javaversion.c: Include configmake.h after all other includes.
81665 2008-10-26  Bruno Haible  <bruno@clisp.org>
81667         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
81668         HAVE_STRUCT_RANDOM_DATA to 1.
81669         (gl_STDLIB_H): Simplify.
81671 2008-10-26  Simon Josefsson  <simon@josefsson.org>
81673         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
81674         substitute HAVE_STRUCT_RANDOM_DATA.
81675         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
81676         random_data.
81677         * modules/stdlib (Makefile.am): Substitute
81678         HAVE_STRUCT_RANDOM_DATA.
81680 2008-10-26  Simon Josefsson  <simon@josefsson.org>
81682         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
81683         * doc/gnulib-intro.texi (Copyright): Likewise.
81685 2008-10-26  Simon Josefsson  <simon@josefsson.org>
81687         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
81688         findings.
81690 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
81691             Bruno Haible  <bruno@clisp.org>
81693         * lib/unistd.in.h: Include <winsock2.h>.
81694         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
81695         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
81696         Provide dummy declarations.
81697         (gethostname): Override.
81698         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
81699         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
81700         gl_PREREQ_SYS_H_WINSOCK2.
81701         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
81702         * doc/posix-functions/gethostname.texi: More details.
81704 2008-10-25  Bruno Haible  <bruno@clisp.org>
81706         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
81707         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
81708         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
81710         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
81711         here ...
81712         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
81713         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
81714         gl_UNISTD_H_DEFAULTS.
81716 2008-10-25  Eric Blake  <ebb9@byu.net>
81718         signbit: avoid spurious compiler failure
81719         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
81720         declarations inside function.
81722 2008-10-24  Simon Josefsson  <simon@josefsson.org>
81723             Bruno Haible  <bruno@clisp.org>
81725         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
81726         * modules/random_r (Depends-on): Add stdint.
81728 2008-10-24  Bruno Haible  <bruno@clisp.org>
81730         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
81731         Eggert.
81732         * modules/strerror (License): Likewise.
81734 2008-10-24  Jim Meyering  <meyering@redhat.com>
81736         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
81737         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
81739 2008-10-24  Eric Blake  <ebb9@byu.net>
81741         getgroups: fix compilation when getgroups is available
81742         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
81743         but with <config.h> override of getgroups disabled.
81745 2008-10-24  Simon Josefsson  <simon@josefsson.org>
81747         * doc/gnulib.texi (Header files): Add note about C++ problems.
81748         Explained by Bruno Haible <bruno@clisp.org>.
81750 2008-10-23  Bruno Haible  <bruno@clisp.org>
81752         Define a dummy SA_NODEFER macro on Interix.
81753         * lib/signal.in.h (SA_NODEFER): Define fallback.
81754         Reported by Aleksey Cheusov <cheusov@tut.by> via
81755         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
81757 2008-10-23  Bruno Haible  <bruno@clisp.org>
81759         * modules/freadahead (License): Change to LGPLv2+.
81760         Suggested by Simon Josefsson.
81762 2008-10-23  Jim Meyering  <meyering@redhat.com>
81764         random_r: new module
81765         * modules/random_r: New file.
81766         * m4/random_r.m4: New file.
81767         * lib/random_r.c: New file, from glibc.
81768         * modules/random_r-tests: New file.
81769         * tests/test-random_r.c: New file.
81770         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
81771          Declare.
81772         (RAND_MAX): Define.
81773         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
81774         * modules/stdlib: Substitute them, too.
81775         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
81776         * doc/glibc-functions/initstate_r.texi: Mention the new module.
81777         * doc/glibc-functions/random_r.texi: Likewise.
81778         * doc/glibc-functions/setstate_r.texi: Likewise.
81779         * doc/glibc-functions/srandom_r.texi: Likewise.
81780         * config/srclist.txt: Mention it.
81782 2008-10-23  David Lutterkort  <lutter@redhat.com>
81784         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
81785         link requirement
81787 2008-10-23  Jim Meyering  <meyering@redhat.com>
81789         selinux-h: mark parameters of stub functions as intentionally unused
81790         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
81791         * lib/se-context.in.h: Likewise.
81793 2008-10-22  Simon Josefsson  <simon@josefsson.org>
81795         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
81797 2008-10-22  Simon Josefsson  <simon@josefsson.org>
81799         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
81801 2008-10-22  Eric Blake  <ebb9@byu.net>
81803         glthread/thread: avoid compiler warning
81804         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
81805         Add unreachable abort to silence compiler.
81807 2008-10-22  Eric Blake  <ebb9@byu.net>
81809         netdb: also supply struct addrinfo for cygwin 1.5.x
81810         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
81811         older cygwin.
81812         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
81813         cygwin.
81814         * doc/posix-headers/netdb.texi (netdb.h): Document this.
81816 2008-10-22  Bruno Haible  <bruno@clisp.org>
81818         * users.txt: Update entry about pspp.
81820 2008-10-21  Bruno Haible  <bruno@clisp.org>
81822         Simplification.
81823         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
81824         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
81826         Simplification.
81827         * lib/ioctl.c (ioctl): Don't undefine.
81828         * lib/socket.c (socket): Don't undefine.
81830         Remove unused module indicator macros.
81831         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
81832         GNULIB_$1 as a C macro.
81834         * doc/posix-functions/close.texi: Undo last change.
81835         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
81836         Windows platforms.
81838 2008-10-21  Bruno Haible  <bruno@clisp.org>
81840         Add gethostname() declaration to <unistd.h>.
81841         * lib/unistd.in.h (gethostname): New declaration.
81842         * lib/gethostname.c: Include <unistd.h>.
81843         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
81844         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
81845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
81846         and HAVE_GETHOSTNAME.
81847         * modules/gethostname (Depends-on): Add unistd.
81848         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
81849         (Include): Specify <unistd.h>.
81850         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
81851         HAVE_GETHOSTNAME.
81852         * tests/test-gethostname.c: Include <unistd.h> first.
81854 2008-10-21  Bruno Haible  <bruno@clisp.org>
81856         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
81857         * modules/select-tests (Depends-on): Likewise.
81858         Reported by Simon Josefsson.
81860 2008-10-21  Simon Josefsson  <simon@josefsson.org>
81862         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
81863         * lib/accept.c: New file, based on winsock.c.
81864         * lib/bind.c: New file, based on winsock.c.
81865         * lib/connect.c: New file, based on winsock.c.
81866         * lib/getpeername.c: New file, based on winsock.c.
81867         * lib/getsockname.c: New file, based on winsock.c.
81868         * lib/getsockopt.c: New file, based on winsock.c.
81869         * lib/ioctl.c: New file, based on winsock.c.
81870         * lib/listen.c: New file, based on winsock.c.
81871         * lib/recv.c: New file, based on winsock.c.
81872         * lib/recvfrom.c: New file, based on winsock.c.
81873         * lib/send.c: New file, based on winsock.c.
81874         * lib/sendto.c: New file, based on winsock.c.
81875         * lib/setsockopt.c: New file, based on winsock.c.
81876         * lib/shutdown.c: New file, based on winsock.c.
81877         * lib/socket.c: New file, based on winsock.c.
81878         * lib/w32sock.h: New file, based on winsock.c.
81879         * lib/winsock.c: Remove file.
81880         * modules/accept: Likewise.
81881         * modules/bind: Likewise.
81882         * modules/connect: Likewise.
81883         * modules/getpeername: Likewise.
81884         * modules/getsockname: Likewise.
81885         * modules/getsockopt: Likewise.
81886         * modules/ioctl: Likewise.
81887         * modules/listen: Likewise.
81888         * modules/recv: Likewise.
81889         * modules/recvfrom: Likewise.
81890         * modules/send: Likewise.
81891         * modules/sendto: Likewise.
81892         * modules/setsockopt: Likewise.
81893         * modules/shutdown: Likewise.
81894         * modules/socket: Use socket.c instead of winsock.c.
81895         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
81896         * doc/posix-functions/accept.texi: Doc fix.
81897         * doc/posix-functions/bind.texi: Doc fix.
81898         * doc/posix-functions/close.texi: Doc fix.
81899         * doc/posix-functions/connect.texi: Doc fix.
81900         * doc/posix-functions/getpeername.texi: Doc fix.
81901         * doc/posix-functions/getsockname.texi: Doc fix.
81902         * doc/posix-functions/getsockopt.texi: Doc fix.
81903         * doc/posix-functions/ioctl.texi: Doc fix.
81904         * doc/posix-functions/listen.texi: Doc fix.
81905         * doc/posix-functions/recv.texi: Doc fix.
81906         * doc/posix-functions/recvfrom.texi: Doc fix.
81907         * doc/posix-functions/send.texi: Doc fix.
81908         * doc/posix-functions/sendto.texi: Doc fix.
81909         * doc/posix-functions/setsockopt.texi: Doc fix.
81910         * doc/posix-functions/shutdown.texi: Doc fix.
81911         * doc/posix-functions/socket.texi: Doc fix.
81913 2008-10-20  Bruno Haible  <bruno@clisp.org>
81915         Take into account the role of SIGABRT_COMPAT on Windows 2008.
81916         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
81917         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
81918         as an alias for SIGABRT.
81919         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
81920         (sigaction): Map it to SIGABRT.
81921         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
81923 2008-10-20  Bruno Haible  <bruno@clisp.org>
81925         * lib/fts.c: Don't include lstat.h.
81926         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
81928         Move the lstat() declaration to <sys/stat.h>.
81929         * lib/lstat.h: Remove file.
81930         * lib/sys_stat.in.h: Add special invocation convention.
81931         (lstat): New declaration.
81932         * lib/lstat.c (orig_lstat): New function.
81933         (rpl_lstat): Use orig_lstat instead of lstat.
81934         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
81935         AC_C_INLINE. Set REPLACE_LSTAT.
81936         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
81937         and REPLACE_LSTAT.
81938         * modules/lstat (Files): Remove lib/lstat.h.
81939         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
81940         (Include): Specify <sys/stat.h> instead of lstat.h.
81941         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
81942         REPLACE_LSTAT.
81943         * NEWS: Mention the change.
81945 2008-10-20  Bruno Haible  <bruno@clisp.org>
81947         * modules/posix_spawn-tests: New file.
81948         * tests/test-posix_spawn3.c: New file.
81950 2008-10-20  Bruno Haible  <bruno@clisp.org>
81952         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
81953         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
81954         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
81955         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
81956         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
81958 2008-10-20  Bruno Haible  <bruno@clisp.org>
81960         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
81961         of posix_spawn on AIX 5.3.
81963 2008-10-20  Bruno Haible  <bruno@clisp.org>
81965         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
81967 2008-10-20  Bruno Haible  <bruno@clisp.org>
81969         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
81970         of AC_LANG_PROGRAM.
81972 2008-10-20  Simon Josefsson  <simon@josefsson.org>
81974         * lib/netdb.in.h: Don't define GNU specific constants until they
81975         are supported or needed.  Reported by Bruno Haible
81976         <bruno@clisp.org>.
81978 2008-10-20  Simon Josefsson  <simon@josefsson.org>
81980         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
81982 2008-10-20  Simon Josefsson  <simon@josefsson.org>
81984         * lib/getaddrinfo.h: Remove file.
81985         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
81986         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
81987         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
81988         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
81989         * modules/netdb: Substitute GNULIB_GETADDRINFO.
81990         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
81991         * tests/test-getaddrinfo.c: Likewise.
81992         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
81993         * NEWS: Mention change.
81995 2008-10-19  Bruno Haible  <bruno@clisp.org>
81997         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
81999 2008-10-19  Bruno Haible  <bruno@clisp.org>
82001         * lib/wait-process.c: Include simply <sys/wait.h>.
82002         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
82003         WIFSTOPPED): Remove fallback definitions.
82004         * modules/wait-process (Depends-on): Add sys_wait.
82006         New module 'sys_wait'.
82007         * modules/sys_wait: New file.
82008         * lib/sys_wait.in.h: New file, partially copied from
82009         lib/wait-process.c.
82010         * m4/sys_wait_h.m4: New file.
82011         * doc/posix-headers/sys_wait.texi: Mention the new module.
82013 2008-10-19  Bruno Haible  <bruno@clisp.org>
82015         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
82017 2008-10-19  Bruno Haible  <bruno@clisp.org>
82019         Assume that waitpid() fills an 'int' status, not a 'union wait'.
82020         * lib/wait-process.c (WAIT_T): Remove type.
82021         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
82022         (wait_subprocess): Update.
82024 2008-10-19  Bruno Haible  <bruno@clisp.org>
82026         New module 'atoll'.
82027         * modules/atoll: New file.
82028         * lib/stdlib.in.h (atoll): New declaration.
82029         * lib/atoll.c: New file, from glibc with modifications.
82030         * m4/atoll.m4: New file.
82031         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
82032         HAVE_ATOLL.
82033         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
82034         * doc/posix-functions/atoll.texi: Mention the new module.
82036 2008-10-19  Bruno Haible  <bruno@clisp.org>
82038         Add strtoull() declaration to <stdlib.h>.
82039         * lib/stdlib.in.h (strtoull): New declaration.
82040         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
82041         Set HAVE_STRTOULL.
82042         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
82043         HAVE_STRTOULL.
82044         * modules/strtoull (Depends-on): Add stdlib.
82045         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
82046         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
82047         HAVE_STRTOULL.
82049 2008-10-19  Bruno Haible  <bruno@clisp.org>
82051         Add strtoll() declaration to <stdlib.h>.
82052         * lib/stdlib.in.h (strtoll): New declaration.
82053         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
82054         Set HAVE_STRTOLL.
82055         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
82056         HAVE_STRTOLL.
82057         * modules/strtoll (Depends-on): Add stdlib.
82058         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
82059         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
82061 2008-10-19  Bruno Haible  <bruno@clisp.org>
82063         * modules/bcopy (Depends-on): Add strings.
82064         (Include): Specify <strings.h>.
82066 2008-10-19  Bruno Haible  <bruno@clisp.org>
82068         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
82070 2008-10-19  Bruno Haible  <bruno@clisp.org>
82072         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
82073         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
82074         mingw.
82076 2008-10-19  Bruno Haible  <bruno@clisp.org>
82078         * lib/atanl.c: Don't include isnanl.h.
82079         * lib/cosl.c: Likewise.
82080         * lib/ldexpl.c: Likewise.
82081         * lib/logl.c: Likewise.
82082         * lib/sinl.c: Likewise.
82083         * lib/sqrtl.c: Likewise.
82084         * lib/tanl.c: Likewise.
82086         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
82087         * lib/isnanf.h: Remove file.
82088         * lib/isnand.h: Remove file.
82089         * lib/isnanl.h: Remove file.
82090         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
82091         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
82092         macros.
82093         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
82094         HAVE_ISNANF, don't define it as a C macro.
82095         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
82096         HAVE_ISNAND, don't define it as a C macro.
82097         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
82098         HAVE_ISNANL, don't define it as a C macro.
82099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
82100         HAVE_ISNAN[FDL].
82101         * modules/isnanf (Files): Remove lib/isnanf.h.
82102         (Depends-on): Add math.
82103         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
82104         (Include): Specify <math.h> instead of isnanf.h.
82105         * modules/isnand (Files): Remove lib/isnand.h.
82106         (Depends-on): Add math.
82107         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
82108         (Include): Specify <math.h> instead of isnand.h.
82109         * modules/isnanl (Files): Remove lib/isnanl.h.
82110         (Depends-on): Add math.
82111         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
82112         (Include): Specify <math.h> instead of isnanl.h.
82113         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
82114         HAVE_ISNAN[FDL].
82115         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
82116         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
82117         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
82118         * NEWS: Mention the change.
82120 2008-10-18  Bruno Haible  <bruno@clisp.org>
82122         Add getusershell(), setusershell(), endusershell() declarations to
82123         <unistd.h>.
82124         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
82125         declarations.
82126         * lib/getusershell.c: Include unistd.h.
82127         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
82128         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
82129         HAVE_GETUSERSHELL.
82130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
82131         and HAVE_GETUSERSHELL.
82132         * modules/getusershell (Depends-on): Add unistd, extensions.
82133         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82134         (Include): Specify <unistd.h>.
82135         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
82136         HAVE_GETUSERSHELL.
82138 2008-10-18  Bruno Haible  <bruno@clisp.org>
82140         Add a getloadavg() declaration to <stdlib.h>.
82141         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
82142         getloadavg declaration.
82143         (getloadavg): New declaration.
82144         * lib/getloadavg.c: Include <stdlib.h> first.
82145         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
82146         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
82147         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
82148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
82149         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
82150         * modules/getloadavg (Depends-on): Add stdlib, extensions.
82151         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
82152         (Include): Specify <stdlib.h>.
82153         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
82154         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
82156 2008-10-18  Bruno Haible  <bruno@clisp.org>
82158         * lib/dirchownmod.c: Don't include lchmod.h.
82160         Move the lchmod() declaration to <sys/stat.h>.
82161         * lib/lchmod.h: Remove file.
82162         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
82163         (lchmod): New declaration, moved here from lib/lchown.h.
82164         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
82165         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
82166         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
82167         and HAVE_LCHMOD.
82168         * modules/lchmod (Files): Remove lib/lchmod.h.
82169         (Depends-on): Add sys_stat, extensions.
82170         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
82171         (Include): Specify <sys/stat.h> instead of lchmod.h.
82172         * modules/sys_stat (Depends-on): Add link-warning.
82173         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
82174         definition of GL_LINK_WARNING.
82175         * NEWS: Mention the change.
82177 2008-10-18  Bruno Haible  <bruno@clisp.org>
82179         * lib/fchdir.c: Don't include dirfd.h.
82180         * lib/fts.c: Likewise.
82181         * lib/getcwd.c: Likewise.
82182         * lib/glob.c: Likewise.
82184         Move the dirfd() declaration to <dirent.h>.
82185         * lib/dirfd.h: Remove file.
82186         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
82187         (dirfd): New declaration.
82188         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
82189         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
82190         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
82191         HAVE_DECL_DIRFD.
82192         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
82193         HAVE_DECL_DIRFD.
82194         * modules/dirfd (Files): Remove lib/dirfd.h.
82195         (Depends-on): Add dirent, extensions.
82196         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
82197         (Include): Specify <dirent.h> instead of dirfd.h.
82198         * modules/dirent (Depends-on): Add link-warning.
82199         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
82200         definition of GL_LINK_WARNING.
82201         * NEWS: Mention the change.
82203 2008-10-18  Bruno Haible  <bruno@clisp.org>
82205         Move the euidaccess() declaration to <unistd.h>.
82206         * lib/euidaccess.h: Remove file.
82207         * lib/unistd.in.h (euidaccess): New declaration.
82208         * lib/euidaccess.c: Don't include euidaccess.h.
82209         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
82210         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
82211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
82212         and HAVE_EUIDACCESS.
82213         * modules/euidaccess (Files): Remove lib/euidaccess.h.
82214         (Depends-on): Add unistd.
82215         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82216         (Include): Specify <unistd.h> instead of euidaccess.h.
82217         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
82218         HAVE_EUIDACCESS.
82219         * NEWS: Mention the change.
82221 2008-10-18  Bruno Haible  <bruno@clisp.org>
82223         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
82225         Move the getdomainname() declaration to <unistd.h>.
82226         * lib/getdomainname.h: Remove file.
82227         * lib/unistd.in.h (getdomainname): New declaration.
82228         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
82229         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
82230         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
82231         HAVE_GETDOMAINNAME.
82232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82233         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
82234         * modules/getdomainname (Files): Remove lib/getdomainname.h.
82235         (Depends-on): Add unistd, extensions.
82236         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82237         (Includes): Specify <unistd.h> instead of getdomainname.h.
82238         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
82239         HAVE_GETDOMAINNAME.
82240         * NEWS: Mention the change.
82242 2008-10-18  Bruno Haible  <bruno@clisp.org>
82244         * modules/dirent: New file.
82245         * m4/dirent_h.m4: New file.
82246         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
82247         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
82248         * modules/fchdir (Files): Remove lib/dirent.in.h.
82249         (Depends-on): Add dirent.
82250         (Makefile.am): Move rules to modules/dirent.
82251         * doc/posix-headers/dirent.texi: Mention the new module.
82253 2008-10-18  Bruno Haible  <bruno@clisp.org>
82255         Avoid -Wunused-parameter warnings in public gnulib header files.
82256         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
82257         macro.
82258         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
82260 2008-10-18  Bruno Haible  <bruno@clisp.org>
82262         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
82263         * doc/glibc-functions/error.texi: Mention the module 'error'.
82264         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
82265         * doc/glibc-functions/getdomainname.texi: Mention the module
82266         'getdomainname'.
82267         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
82268         * doc/glibc-functions/getpagesize.texi: Mention the module
82269         'getpagesize'.
82270         * doc/glibc-functions/getusershell.texi: Mention the module
82271         'getusershell'.
82272         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
82273         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
82274         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
82275         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
82276         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
82277         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
82278         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
82279         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
82280         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
82281         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
82282         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
82283         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
82284         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
82285         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
82287 2008-10-17  Bruno Haible  <bruno@clisp.org>
82289         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
82290         HP-UX and IRIX, use -0.0L.
82291         * tests/test-ceill.c (minus_zero): Likewise.
82292         * tests/test-floorl.c (minus_zero): Likewise.
82293         * tests/test-frexpl.c (minus_zero): Likewise.
82294         * tests/test-isnan.c (minus_zerol): Likewise.
82295         * tests/test-isnanl.h (minus_zero): Likewise.
82296         * tests/test-ldexpl.c (minus_zero): Likewise.
82297         * tests/test-roundl.c (minus_zero): Likewise.
82298         * tests/test-signbit.c (minus_zerol): Likewise.
82299         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
82300         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
82301         * tests/test-truncl.c (minus_zero): Likewise.
82302         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
82303         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
82304         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
82305         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
82307 2008-10-17  Bruno Haible  <bruno@clisp.org>
82309         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
82310         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
82311         that it gets activated only for gcc >= 3.0.
82312         * lib/dirent.in.h: Likewise.
82313         * lib/errno.in.h: Likewise.
82314         * lib/fcntl.in.h: Likewise.
82315         * lib/float.in.h: Likewise.
82316         * lib/iconv.in.h: Likewise.
82317         * lib/inttypes.in.h: Likewise.
82318         * lib/locale.in.h: Likewise.
82319         * lib/math.in.h: Likewise.
82320         * lib/netdb.in.h: Likewise.
82321         * lib/netinet_in.in.h: Likewise.
82322         * lib/search.in.h: Likewise.
82323         * lib/signal.in.h: Likewise.
82324         * lib/spawn.in.h: Likewise.
82325         * lib/stdarg.in.h: Likewise.
82326         * lib/stdint.in.h: Likewise.
82327         * lib/stdio.in.h: Likewise.
82328         * lib/stdlib.in.h: Likewise.
82329         * lib/string.in.h: Likewise.
82330         * lib/strings.in.h: Likewise.
82331         * lib/sys_file.in.h: Likewise.
82332         * lib/sys_ioctl.in.h: Likewise.
82333         * lib/sys_select.in.h: Likewise.
82334         * lib/sys_socket.in.h: Likewise.
82335         * lib/sys_stat.in.h: Likewise.
82336         * lib/sys_time.in.h: Likewise.
82337         * lib/sysexits.in.h: Likewise.
82338         * lib/time.in.h: Likewise.
82339         * lib/unistd.in.h: Likewise.
82340         * lib/wchar.in.h: Likewise.
82341         * lib/wctype.in.h: Likewise.
82342         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82344 2008-10-17  Jim Meyering  <meyering@redhat.com>
82346         ignore-value: don't depend on inline module
82347         * modules/ignore-value (Depends-on): Remove 'inline'.
82348         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
82349         Suggestion from Bruno Haible.
82351 2008-10-17  Bruno Haible  <bruno@clisp.org>
82353         New implementation of condition variables for Win32.
82354         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
82355         (gl_linked_waitqueue_t): New type.
82356         (gl_cond_t): Use it.
82357         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
82358         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
82359         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
82360         (glthread_cond_init_func, glthread_cond_wait_func,
82361         glthread_cond_timedwait_func, glthread_cond_signal_func,
82362         glthread_cond_broadcast_func, glthread_cond_destroy_func):
82363         Reimplemented on the basis of gl_linked_waitqueue_t.
82364         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
82365         gl_waitqueue_t.
82366         (gl_rwlock_t): Update.
82367         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
82369 2008-10-17  Simon Josefsson  <simon@josefsson.org>
82371         * modules/recvfrom (Depends-on): Add dependency on getpeername.
82372         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82374 2008-10-17  Jim Meyering  <meyering@redhat.com>
82376         ignore-value: new module
82377         * modules/ignore-value: New file.
82378         * lib/ignore-value.h: New file.
82379         * MODULES.html.sh (Compiler warning management): New section,
82380         just for this module.  More to come.
82382 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
82384         open-safer.c: avoid 'signed and unsigned in conditional...' warning
82385         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
82386         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
82388 2008-10-16  Jim Meyering  <meyering@redhat.com>
82390         openat-die.c: avoid 'no previous prototype' warning
82391         * lib/openat-die.c: Include "openat.h".
82392         Reported by Reuben Thomas <rrt@sc3d.org>.
82394 2008-10-16  Simon Josefsson  <simon@josefsson.org>
82396         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
82397         * lib/netdb.in.h: Fix typo.
82398         Reported by Bruno Haible  <bruno@clisp.org>
82400         * lib/netdb.in.h: Include sys/socket.h for platforms without
82401         netdb.h, to get structures like hostent on MinGW.
82402         * modules/netdb (Depends-on): Add sys_socket.
82404 2008-10-15  Simon Josefsson  <simon@josefsson.org>
82406         * modules/netdb, modules/netdb-tests: New file.
82407         * m4/netdb_h.m4: New file.
82408         * lib/netdb.in.h: Add, currently just an empty file pending
82409         definitions.
82410         * tests/test-netdb.c: New file.
82411         * doc/posix-headers/netdb.texi: Mention that we replace it if
82412         needed.
82413         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82414         netdb.
82416 2008-10-15  Simon Josefsson  <simon@josefsson.org>
82418         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
82419         with code.
82421 2008-10-13  Bruno Haible  <bruno@clisp.org>
82423         * lib/glthread/cond.c (glthread_cond_wait_func,
82424         glthread_cond_timedwait_func): Add a comment.
82426 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82428         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
82429         * tests/test-select.c: Likewise,
82431 2008-10-13  Bruno Haible  <bruno@clisp.org>
82433         * lib/glthread/cond.c (glthread_cond_wait_func,
82434         glthread_cond_timedwait_func): Fix variable name.
82435         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82437 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
82439         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
82440         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
82441         struct sockaddr.sa_len.
82442         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
82444 2008-10-13  Simon Josefsson  <simon@josefsson.org>
82446         * build-aux/pmccabe2html: Add css and css_url parameters.
82448 2008-10-12  Bruno Haible  <bruno@clisp.org>
82450         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
82451         calling aclx_get.
82452         Reported by Rainer Tammer <tammer@tammer.net>.
82454 2008-10-12  Bruno Haible  <bruno@clisp.org>
82456         Use msvcrt aware primitives for creation/termination of Win32 threads.
82457         * lib/glthread/thread.c: Include <process.h>.
82458         (glthread_create_func): Use _beginthreadex instead of CreateThread.
82459         (wrapper_func): Update signature.
82460         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
82462 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82463             Bruno Haible  <bruno@clisp.org>
82465         Provide a Win32 implementation of the 'cond' module.
82466         * lib/glthread/cond.h [USE_WIN32]: New implementation.
82467         * lib/glthread/cond.c (glthread_cond_init_func,
82468         glthread_cond_wait_func, glthread_cond_timedwait_func,
82469         glthread_cond_signal_func, glthread_cond_broadcast_func,
82470         glthread_cond_destroy_func) [USE_WIN32]: New functions.
82471         * modules/cond (Dependencies): Add gettimeofday.
82473 2008-10-11  Bruno Haible  <bruno@clisp.org>
82475         Make sleep work on older versions of mingw.
82476         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
82477         only whether it exists.
82478         * doc/posix-functions/sleep.texi: Mention the problem with older
82479         versions of mingw.
82481 2008-10-11  Bruno Haible  <bruno@clisp.org>
82483         New module 'shutdown'.
82484         * modules/shutdown: New file.
82485         * lib/sys_socket.in.h (shutdown): New declaration.
82486         * lib/winsock.c (shutdown): New function.
82487         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
82488         GNULIB_SHUTDOWN.
82489         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
82490         * doc/posix-functions/shutdown.texi: Document the new module.
82492 2008-10-11  Jim Meyering  <meyering@redhat.com>
82494         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
82496 2008-10-11  Bruno Haible  <bruno@clisp.org>
82498         New module 'fclose'.
82499         * modules/fclose: New file.
82500         * lib/stdio.in.h (fclose): New declaration.
82501         * lib/fclose.c: New file.
82502         * m4/fclose.m4: New file.
82503         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
82504         REPLACE_FCLOSE.
82505         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
82506         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
82507         REPLACE_FCLOSE.
82508         * modules/close (Depends-on): fclose.
82509         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
82511 2008-10-11  Bruno Haible  <bruno@clisp.org>
82513         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
82514         set errno and don't call _close.
82516 2008-10-10  Bruno Haible  <bruno@clisp.org>
82518         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
82519         ACL, not afterwards. Fixes test failure on Cygwin.
82521 2008-10-09  Ben Pfaff  <blp@gnu.org>
82523         * build-aux/announce-gen: Fix gnulib version related part of usage
82524         message.  Die with a useful error message if no tarballs are
82525         found.
82527 2008-10-10  Jim Meyering  <meyering@redhat.com>
82529         bootstrap: use git's --depth=N option only if it's supported
82530         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
82531         recognize the --depth option.  Reported by Pádraig Brady.
82533 2008-10-09  Bruno Haible  <bruno@clisp.org>
82535         New module 'ioctl'.
82536         * modules/ioctl: New file.
82537         * lib/sys_socket.in.h (ioctl): Remove declaration.
82538         * lib/winsock.c: Include <sys/ioctl.h>.
82539         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
82540         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
82541         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
82542         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
82543         * doc/posix-functions/ioctl.texi: Mention the new module.
82545 2008-10-09  Bruno Haible  <bruno@clisp.org>
82547         New module 'sys_ioctl'.
82548         * lib/sys_ioctl.in.h: New file.
82549         * m4/sys_ioctl_h.m4: New file.
82550         * modules/sys_ioctl: New file.
82551         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
82553 2008-10-09  Bruno Haible  <bruno@clisp.org>
82555         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
82556         * lib/winsock.c: Include <stdarg.h>.
82557         (rpl_ioctl): Change to second argument 'int' and then varargs.
82559 2008-10-09  Bruno Haible  <bruno@clisp.org>
82561         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
82562         when the sys_socket module is present and the system has <winsock2.h>.
82564 2008-10-09  Bruno Haible  <bruno@clisp.org>
82566         * doc/posix-functions/close.texi: Mention module 'close' instead of
82567         module 'sys_socket'.
82569 2008-10-09  Bruno Haible  <bruno@clisp.org>
82571         * doc/glibc-headers/sys_ioctl.texi: New file.
82572         * doc/gnulib.texi: Include it.
82574 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
82575             Bruno Haible  <bruno@clisp.org>
82577         Combine the two replacements of 'close'.
82578         * lib/sys_socket.in.h (close): Define to a reminder to include
82579         <unistd.h>.
82580         (_gl_close_fd_maybe_socket): New declaration.
82581         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
82582         * lib/winsock.c (close): Remove undefinition.
82583         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
82584         needed for the gnulib module 'close'.
82585         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
82586         define to an error symbol or to a warning, if suitable.
82587         * lib/close.c: Include <sys/socket.h>.
82588         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
82589         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
82590         UNISTD_H_HAVE_WINSOCK2_H.
82591         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
82592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82593         UNISTD_H_HAVE_WINSOCK2_H.
82594         * modules/sys_socket (Files): Add m4/unistd_h.m4.
82595         (configure.ac): Set a module indicator.
82596         (Makefile.am): Substitute GNULIB_CLOSE.
82597         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
82598         * modules/poll-tests (Depends-on): Add close.
82599         * modules/select-tests (Depends-on): Likewise.
82601 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
82602             Bruno Haible  <bruno@clisp.org>
82604         New module 'close'.
82605         * modules/close: New file.
82606         * lib/unistd.in.h (close): Move declaration out of the
82607         FCHDIR_REPLACEMENT scope.
82608         (_gl_unregister_fd): New declaration.
82609         * lib/close.c: New file.
82610         * lib/fchdir.c (rpl_close): Remove function.
82611         * m4/close.m4: New file.
82612         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
82613         close.
82614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
82615         REPLACE_CLOSE.
82616         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
82617         REPLACE_CLOSE.
82618         * modules/fchdir (Depends-on): Add close.
82620 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
82621             Bruno Haible  <bruno@clisp.org>
82623         * lib/fcntl.in.h (open): Simplify conditionals.
82624         (_gl_register_fd): New declaration.
82625         * lib/fchdir.c (rpl_open): Remove function.
82626         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
82627         also.
82628         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
82629         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
82630         open.
82632 2008-10-09  Jim Meyering  <meyering@redhat.com>
82634         GNUmakefile: use the more name-space-friendly "_version"
82635         * top/GNUmakefile (_dummy): Update.
82636         (_version): Rename from "version".
82638 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
82639             Bruno Haible  <bruno@clisp.org>
82641         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
82642         rpl_close.
82643         (_gl_register_fd): New function, extracted from rpl_open.
82644         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
82645         (rpl_open, rpl_opendir): Use _gl_register_fd.
82647 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
82649         Fix organization of 'open' replacement.
82650         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
82651         (gl_FUNC_OPEN): Use it.
82652         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
82654 2008-10-08  Bruno Haible  <bruno@clisp.org>
82656         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
82658 2008-10-08  Simon Josefsson  <simon@josefsson.org>
82660         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
82661         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
82662         listen).
82664 2008-10-08  Eric Blake  <ebb9@byu.net>
82666         GNUmakefile: add 'make version' target
82667         * top/GNUmakefile (_curr-ver): Split version update rules...
82668         (version): ...into a target.
82670 2008-10-07  Bruno Haible  <bruno@clisp.org>
82672         Use a more portable replacement expression for -0.0L.
82673         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
82674         instead of -0.0L. Fix m4 quotation.
82676         * tests/test-signbit.c: Include <float.h>.
82677         (minus_zero): New variable.
82678         (test_signbitl): Use minus_zero instead of -zero.
82679         * modules/signbit-tests (Depends-on): Add float.
82681         * tests/test-ceill.c: Include <float.h>.
82682         (zero): Remove variable.
82683         (minus_zero): New variable.
82684         (main): Use minus_zero instead of -zero.
82685         * modules/ceill-tests (Depends-on): Add float.
82687         * tests/test-floorl.c: Include <float.h>.
82688         (zero): Remove variable.
82689         (minus_zero): New variable.
82690         (main): Use minus_zero instead of -zero.
82691         * modules/floorl-tests (Depends-on): Add float.
82693         * tests/test-roundl.c: Include <float.h>.
82694         (zero): Remove variable.
82695         (minus_zero): New variable.
82696         (main): Use minus_zero instead of -zero.
82697         * modules/roundl-tests (Depends-on): Add float.
82699         * tests/test-truncl.c: Include <float.h>.
82700         (zero): Remove variable.
82701         (minus_zero): New variable.
82702         (main): Use minus_zero instead of -zero.
82703         * modules/truncl-tests (Depends-on): Add float.
82705         * tests/test-frexpl.c (zero): Remove variable.
82706         (minus_zero): New variable.
82707         (main): Use minus_zero instead of -zero.
82708         * modules/frexpl-tests (Depends-on): Add float.
82710         * tests/test-isnan.c (zerol): Remove variable.
82711         (minus_zerol): New variable.
82712         (test_long_double): Use minus_zerol instead of -zerol.
82713         * modules/isnan-tests (Depends-on): Add float.
82715         * tests/test-isnanl.h (zero): Remove variable.
82716         (minus_zero): New variable.
82717         (main): Use minus_zero instead of -zero.
82718         * modules/isnanl-nolibm-tests (Depends-on): Add float.
82719         * modules/isnanl-tests (Depends-on): Add float.
82721         * tests/test-ldexpl.c (zero): Remove variable.
82722         (minus_zero): New variable.
82723         (main): Use minus_zero instead of -zero.
82724         * modules/ldexpl-tests (Depends-on): Add float.
82726         * tests/test-snprintf-posix.h (zerol): Remove variable.
82727         (minus_zerol): New variable.
82728         (test_function): Use minus_zerol instead of -zerol.
82729         * modules/snprintf-posix-tests (Depends-on): Add float.
82730         * modules/vsnprintf-posix-tests (Depends-on): Add float.
82732         * tests/test-sprintf-posix.h (zerol): Remove variable.
82733         (minus_zerol): New variable.
82734         (test_function): Use minus_zerol instead of -zerol.
82735         * modules/sprintf-posix-tests (Depends-on): Add float.
82736         * modules/vsprintf-posix-tests (Depends-on): Add float.
82738         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
82739         (minus_zerol): New variable.
82740         (test_function): Use minus_zerol instead of -zerol.
82741         * modules/vasnprintf-posix-tests (Depends-on): Add float.
82743         * tests/test-vasprintf-posix.c (zerol): Remove variable.
82744         (minus_zerol): New variable.
82745         (test_function): Use minus_zerol instead of -zerol.
82746         * modules/vasprintf-posix-tests (Depends-on): Add float.
82748 2008-10-07  Simon Josefsson  <simon@josefsson.org>
82750         * MODULES.html.sh (Support for building documentation): Mention
82751         pmccabe2html.  Sort entries.
82753         Add pmccabe2html module, from gnupdf.
82754         * build-aux/pmccabe.css: New file.
82755         * build-aux/pmccabe2html: New file.
82756         * m4/pmccabe2html.m4: New file.
82757         * modules/pmccabe2html: New file.
82759 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
82761         flock: new module
82762         * MODULES.html.sh: Add to list of modules.
82763         * lib/flock.c: flock implementation for Windows and Unix systems
82764         which have fcntl.
82765         * doc/glibc-functions/flock.texi: Update documentation.
82766         * lib/sys_file.in.h: <sys/file.h> header file.
82767         * m4/flock.m4: M4 macros.
82768         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
82769         * modules/flock: flock module.
82770         * modules/flock-tests: flock tests module.
82771         * modules/sys_file: sys/file.h module.
82772         * tests/test-flock.c: test suite for flock.
82774 2008-10-06  Jim Meyering  <meyering@redhat.com>
82776         bootstrap: check for LT_INIT more portably still ;-)
82777         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
82778         Spotted by Bruno Haible.
82780 2008-10-06  Eric Blake  <ebb9@byu.net>
82782         test-signbit: avoid tripping Irix cc bug on -0.0L
82783         * tests/test-signbit.c (minus_zerol): Delete, and replace with
82784         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
82785         entire testsuite consistent and avoids an Irix 6.2 bug.
82787 2008-10-05  Bruno Haible  <bruno@clisp.org>
82788             Jim Meyering  <jim@meyering.net>
82790         Add an option for ignoring EPIPE during close_stdout.
82791         * lib/closeout.h: Include <stdbool.h>.
82792         (close_stdout_set_ignore_EPIPE): New declaration.
82793         * lib/closeout.c: Include <stdbool.h>.
82794         (ignore_EPIPE): New variable.
82795         (close_stdout_set_ignore_EPIPE): New function.
82796         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
82797         * lib/close-stream.c (close_stream): Mention the possible EPIPE
82798         failure.
82799         * modules/closeout (Depends-on): Add stdbool.
82801 2008-10-05  Bruno Haible  <bruno@clisp.org>
82803         * modules/accept: New file.
82804         * modules/bind: New file.
82805         * modules/connect: New file.
82806         * modules/getpeername: New file.
82807         * modules/getsockname: New file.
82808         * modules/getsockopt: New file.
82809         * modules/listen: New file.
82810         * modules/recv: New file.
82811         * modules/recvfrom: New file.
82812         * modules/send: New file.
82813         * modules/sendto: New file.
82814         * modules/setsockopt: New file.
82815         * modules/socket: New file.
82816         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
82817         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
82818         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
82819         the particular module is requested. Add a link warning when the
82820         particular module is not requested.
82821         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
82822         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
82823         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
82824         the particular module is requested.
82825         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
82826         gl_SYS_SOCKET_H_DEFAULTS): New macros.
82827         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
82828         * modules/sys_socket (Depends-on): Add link-warning.
82829         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
82830         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
82831         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
82832         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
82833         GL_LINK_WARNING.
82834         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
82835         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
82836         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
82837         * doc/posix-functions/getpeername.texi: Mention the new module
82838         'getpeername'.
82839         * doc/posix-functions/getsockname.texi: Mention the new module
82840         'getsockname'.
82841         * doc/posix-functions/getsockopt.texi: Mention the new module
82842         'getsockopt'.
82843         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
82844         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
82845         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
82846         * doc/posix-functions/send.texi: Mention the new module 'send'.
82847         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
82848         * doc/posix-functions/setsockopt.texi: Mention the new module
82849         'setsockopt'.
82850         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
82851         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
82852         listen, connect, accept.
82853         * modules/select-tests (Depends-on): Likewise.
82855 2008-10-05  Bruno Haible  <bruno@clisp.org>
82857         * lib/winsock.c (strerror): Remove unused #undef.
82858         (rpl_close): Remove unused local variable.
82860         * modules/sys_socket (Depends-on); Add errno.
82862 2008-10-05  Bruno Haible  <bruno@clisp.org>
82864         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
82865         (select): Add a link warning when the 'select' module is not used.
82866         * modules/sys_select (Depends-on): Add link-warning.
82867         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
82868         Suggested by Paolo Bonzini.
82870 2008-10-05  Jim Meyering  <meyering@redhat.com>
82872         bootstrap: check for LT_INIT more portably
82873         * build-aux/bootstrap: Avoid using grep -E, since it's not
82874         portable enough.  Suggestion from Bruno Haible.
82876 2008-10-05  Bruno Haible  <bruno@clisp.org>
82878         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
82879         as being fixed by gnulib.
82881 2008-10-05  Bruno Haible  <bruno@clisp.org>
82883         * modules/select-tests: New file, mostly copied from
82884         modules/sys_select-tests.
82885         * tests/test-select.c: New file, mostly copied from
82886         tests/test-sys_select.c.
82887         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
82888         * modules/sys_select-tests (Depends-on): Remove all dependencies.
82889         (Makefile.am): Remove test_sys_select_LDADD.
82891         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
82892         to an undefined symbol, for an error message.
82893         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
82894         (gl_SYS_SELECT_H_DEFAULTS): New macro.
82895         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
82896         winsock-select.c here.
82897         * modules/sys_select (Files): Remove lib/winsock-select.c.
82898         (Depends-on): Remove alloca.
82899         (Makefile.am): Substitute GNULIB_SELECT.
82900         * modules/select: New file.
82901         * doc/posix-functions/select.texi: Update.
82903 2008-10-05  Bruno Haible  <bruno@clisp.org>
82905         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
82906         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
82907         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
82908         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
82909         getdtablesize.
82910         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
82911         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
82913 2008-10-05  Bruno Haible  <bruno@clisp.org>
82915         * modules/getdtablesize-tests: New file.
82916         * tests/test-getdtablesize.c: New file.
82918         New module 'getdtablesize'.
82919         * lib/unistd.in.h (getdtablesize): New declaration.
82920         * lib/getdtablesize.c: New file.
82921         * m4/getdtablesize.m4: New file.
82922         * modules/getdtablesize: New file.
82923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82924         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
82925         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
82926         HAVE_GETDTABLESIZE.
82927         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
82929 2008-10-05  Bruno Haible  <bruno@clisp.org>
82931         * modules/sched (Makefile.am): Fix typo.
82932         Reported by Simon Josefsson.
82934 2008-10-05  Jim Meyering  <meyering@redhat.com>
82936         bootstrap: check for LT_INIT, too
82937         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
82938         are deprecated.  Suggestion from Ralf Wildenhues.
82940 2008-10-05  Bruno Haible  <bruno@clisp.org>
82942         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
82943         overriding them by ours.
82944         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
82946 2008-10-05  Jim Meyering  <meyering@redhat.com>
82948         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
82949         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
82950         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
82952 2008-10-04  Bruno Haible  <bruno@clisp.org>
82954         * modules/dup2 (License): Change to LGPLv2+.
82955         * modules/sleep (License): Likewise.
82956         * modules/perror (License): Likewise.
82957         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
82958         Blake.
82959         * modules/signal (License): Likewise.
82960         * modules/sigprocmask (License): Likewise.
82961         * modules/raise (License): Change to LGPLv2+, with approval by Jim
82962         Meyering.
82964 2008-10-04  Bruno Haible  <bruno@clisp.org>
82966         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
82967         Reported by Rainer Tammer <tammer@tammer.net>.
82969 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
82970             Bruno Haible  <bruno@clisp.org>
82972         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
82973         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
82974         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
82976 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
82978         filevercmp: new module
82979         * lib/filevercmp.h: New function filevercmp comparing version strings.
82980         * lib/filevercmp.c: Implementation of filevercmp function.
82981         * modules/filevercmp: Module metadata.
82982         * tests/test-filevercmp.c: Unit test for new module.
82983         * modules/filevercmp-tests: Unit test metadata.
82984         * MODULES.html.sh: Add filevercmp module.
82986 2008-10-03  Bruno Haible  <bruno@clisp.org>
82988         * lib/c-ctype.h: Add comment.
82989         Reported by Jim Meyering.
82991 2008-10-02  Bruno Haible  <bruno@clisp.org>
82993         * modules/posix_spawn-internal (Depends-on): Add 'open'.
82995 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
82997         * build-aux/bootstrap: Allow renaming bootstrap, and change the
82998         name of bootstrap.conf accordingly.
83000 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
83002         * build-aux/bootstrap: Install git-merge-changelog configuration
83003         items into .gitconfig if needed.
83005 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
83007         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
83008         git repository, and initialize/update it accordingly.
83010 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
83012         * modules/fsync-tests: New file.
83013         * tests/test-fsync.c: New file.
83015         New module 'fsync'.
83016         * lib/fsync.c: New file.
83017         * m4/fsync.m4: New file.
83018         * modules/fsync: New file.
83019         * lib/unistd.in.h (fsync): New declaration.
83020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
83021         GNULIB_FSYNC and HAVE_FSYNC.
83022         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
83023         * MODULES.html.sh (posix_functions): Add fsync.
83024         * doc/posix-functions/fsync.texi: Mention the new module.
83026 2008-10-02  Jim Meyering  <meyering@redhat.com>
83028         fts.c: sync with similar code from coreutils' remove.c
83029         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
83030         Guard also with "#if defined __linux__", since for now at least,
83031         this code is Linux-kernel-specific.
83033 2008-10-02  Jim Meyering  <meyering@redhat.com>
83035         fts: bug fixes
83036         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
83037         Include <sys/vfs.h>, not <sys/statfs.h>.
83039         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
83040         Include <sys/vfs.h>, not <sys/statfs.h>.
83042 2008-10-01  Bruno Haible  <bruno@clisp.org>
83044         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
83045         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
83046         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
83047         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
83048         * doc/posix-functions/posix_spawnp.texi: Likewise.
83049         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
83050         whether posix_spawn actually works.
83051         * m4/pipe.m4 (gl_PIPE): Likewise.
83052         * modules/execute (Files): Add m4/posix_spawn.m4.
83053         * modules/pipe (Files): Add m4/posix_spawn.m4.
83054         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
83056 2008-10-01  Jim Meyering  <meyering@redhat.com>
83058         remove trailing spaces
83059         * NEWS: Likewise.
83060         * lib/poll.c (poll): Likewise.
83061         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
83062         * lib/winsock.c (rpl_close): Likewise.
83063         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
83064         * modules/yield: Likewise.
83065         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
83066         * tests/test-sys_select.c (connect_to_socket): Likewise.
83068         fts.c: adjust a new interface to be more generally useful
83069         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
83070         (fts_build): Adjust caller.
83072 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83074         * modules/cond-tests: New file.
83075         * tests/test-cond.c: New file.
83077 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83078             Bruno Haible  <bruno@clisp.org>
83080         * modules/cond (Dependencies): Add errno, time.
83081         * lib/glthread/cond.h: Include <time.h>.
83082         (gl_cond_define, gl_cond_define_initialized): Use the same definition
83083         across platforms.
83085 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83086             Bruno Haible  <bruno@clisp.org>
83088         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
83090 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83091             Bruno Haible  <bruno@clisp.org>
83093         * modules/tls-tests (Depends-on): Add thread, yield.
83094         (configure.ac): Remove all checks.
83095         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
83096         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
83097         gl_thread_self): Remove definitions. Include glthread/thread.h and
83098         glthread/yield.h instead.
83099         (test_tls): Pass an additional NULL argument to gl_thread_join.
83101 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83102             Bruno Haible  <bruno@clisp.org>
83104         * modules/lock-tests (Depends-on): Add thread, yield.
83105         (configure.ac): Remove all checks.
83106         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
83107         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
83108         gl_thread_self): Remove definitions. Include glthread/thread.h and
83109         glthread/yield.h instead.
83110         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
83111         additional NULL argument to gl_thread_join.
83113 2008-09-30  Bruno Haible  <bruno@clisp.org>
83115         Fix the Win32 implementation of the 'thread' module.
83116         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
83117         pointer type.
83118         (gl_thread_self): Invoke gl_thread_self_func.
83119         (gl_thread_self_func): New declaration.
83120         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
83121         (do_init_self_key, init_self_key): New functions.
83122         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
83123         Remove some fields.
83124         (running_threads, running_lock): Remove variables.
83125         (get_current_thread_handle): New function.
83126         (gl_thread_self_func, wrapper_func, glthread_create_func,
83127         glthread_join_func, gl_thread_exit_func): Largely rewritten and
83128         simplified.
83130 2008-09-30  Bruno Haible  <bruno@clisp.org>
83132         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
83133         files.
83135 2008-09-30  Jim Meyering  <meyering@redhat.com>
83137         fts.m4: correct the test for statfs.f_type
83138         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
83139         when checking for statfs.f_type.
83141 2008-09-15  Simon Josefsson  <simon@josefsson.org>
83143         tests: avoid some compiler warnings
83144         * tests/test-memchr.c (main): Pass NULL indirectly.
83145         * tests/test-getdate.c (main): Remove unused variable 'ret'.
83147 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
83149         getdate.y: disallow countable dayshifts like "4 yesterday ago"
83150         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
83151         exactly specified dayshifts.
83152         (dayshift): New rule.
83153         (rel): Add dayshift.
83154         (relative_time_table) [tomorrow, yesterday, today, now]:
83155         Use tDAY_SHIFT in place of tDAY_UNIT.
83156         * tests/test-getdate.c: Add tests for now-disallowed countable
83157         dayshifts, e.g., "4 yesterday ago".
83159 2008-09-29  Bruno Haible  <bruno@clisp.org>
83161         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
83162         * tests/test-posix_spawn1.in.sh: Renamed from
83163         tests/test-posix_spawn.in.sh.
83164         * tests/test-posix_spawn2.c: New file.
83165         * tests/test-posix_spawn2.in.sh: New file.
83166         * modules/posix_spawnp-tests (Files): Update.
83167         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
83169 2008-09-29  Bruno Haible  <bruno@clisp.org>
83171         Propagate effects of putenv/setenv/unsetenv to child processes.
83172         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
83173         * lib/pipe.c (create_pipe): Likewise.
83175 2008-09-29  Bruno Haible  <bruno@clisp.org>
83177         Enable use of shell scripts as executables in mingw.
83178         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
83179         run the program as a shell script.
83180         * lib/pipe.c (create_pipe): Likewise.
83181         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
83182         resulting array.
83184 2008-09-29  Eric Blake  <ebb9@byu.net>
83186         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
83188 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
83190         * doc/posix-functions/accept.texi: Update mingw problems.
83191         * doc/posix-functions/bind.texi: Update mingw problems.
83192         * doc/posix-functions/close.texi: Update mingw problems.
83193         * doc/posix-functions/connect.texi: Update mingw problems.
83194         * doc/posix-functions/getpeername.texi: Update mingw problems.
83195         * doc/posix-functions/getsockname.texi: Update mingw problems.
83196         * doc/posix-functions/getsockopt.texi: Update mingw problems.
83197         * doc/posix-functions/ioctl.texi: Update mingw problems.
83198         * doc/posix-functions/listen.texi: Update mingw problems.
83199         * doc/posix-functions/recv.texi: Update mingw problems.
83200         * doc/posix-functions/recvfrom.texi: Update mingw problems.
83201         * doc/posix-functions/select.texi: Update mingw problems.
83202         * doc/posix-functions/send.texi: Update mingw problems.
83203         * doc/posix-functions/sendto.texi: Update mingw problems.
83204         * doc/posix-functions/setsockopt.texi: Update mingw problems.
83205         * doc/posix-functions/socket.texi: Update mingw problems.
83207 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
83208             Bruno Haible  <bruno@clisp.org>
83210         * lib/sys_select.in.h: Include sys/time.h.
83211         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
83212         * modules/sys_select: Depend on sys_time.
83213         * tests/test-sys_select.c: Test that sys/select.h defines struct
83214         timeval fully.
83216 2008-09-29  Bruno Haible  <bruno@clisp.org>
83218         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
83219         * lib/sys_select.in.h: Likewise.
83221 2008-09-29  Bruno Haible  <bruno@clisp.org>
83223         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
83225 2008-09-29  Bruno Haible  <bruno@clisp.org>
83227         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
83228         Set LIBSOCKET instead of augmenting LIBS.
83229         * modules/sockets (Link): New section.
83230         * modules/sockets-tests (test_sockets_LDADD): New variable.
83231         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
83232         * modules/poll-tests (test_poll_LDADD): New variable.
83233         * NEWS: Document the change.
83235 2008-09-29  Bruno Haible  <bruno@clisp.org>
83237         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
83238         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
83239         ARPA_INET_H directly.
83240         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
83242 2008-09-28  Bruno Haible  <bruno@clisp.org>
83244         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
83245         from gl_HEADER_SYS_SOCKET.
83246         (gl_HEADER_SYS_SOCKET): Invoke it.
83247         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
83249 2008-09-28  Bruno Haible  <bruno@clisp.org>
83251         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
83252         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
83253         Needed on OSF/1 4.0.
83255 2008-09-28  Bruno Haible  <bruno@clisp.org>
83257         Override open more carefully.
83258         * lib/open.c (orig_open): New function.
83259         (rpl_open): Use orig_open instead of open.
83260         * lib/fcntl.in.h: Add special invocation convention.
83261         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
83262         (gl_FUNC_OPEN): Invoke it.
83264         Override freopen more carefully.
83265         * lib/freopen.c (orig_freopen): New function.
83266         (rpl_freopen): Use orig_freopen instead of freopen.
83267         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
83268         (gl_FUNC_FREOPEN): Invoke it.
83270         Override fopen more carefully.
83271         * lib/fopen.c (orig_fopen): New function.
83272         (rpl_fopen): Use orig_fopen instead of fopen.
83273         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
83274         (gl_FUNC_FOPEN): Invoke it.
83275         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
83277 2008-09-28  Bruno Haible  <bruno@clisp.org>
83279         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
83280         SIGPIPE.
83282 2008-09-28  Bruno Haible  <bruno@clisp.org>
83284         * tests/test-sigaction.c (handler, main): Disable the check whether
83285         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
83286         glibc systems with LinuxThreads.
83288 2008-09-28  Bruno Haible  <bruno@clisp.org>
83290         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
83292         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
83293         with AIX xlc.
83294         * lib/fcntl.in.h (open): Likewise.
83295         Reported by Rainer Tammer <tammer@tammer.net>.
83297 2008-09-28  Bruno Haible  <bruno@clisp.org>
83299         * modules/posix_spawnp-tests: New file.
83300         * tests/test-posix_spawn.c: New file.
83301         * tests/test-posix_spawn.in.sh: New file.
83303         New module 'posix_spawnp'.
83304         * modules/posix_spawnp: New file.
83305         * lib/spawnp.c: New file, from GNU libc with modifications.
83306         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
83308         New module 'posix_spawn'.
83309         * modules/posix_spawn: New file.
83310         * lib/spawn.c: New file, from GNU libc with modifications.
83311         * doc/posix-functions/posix_spawn.texi: Mention the new module.
83313         New module 'posix_spawnattr_destroy'.
83314         * modules/posix_spawnattr_destroy: New file.
83315         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
83316         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
83317         module.
83319         New module 'posix_spawnattr_setsigmask'.
83320         * modules/posix_spawnattr_setsigmask: New file.
83321         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
83322         modifications.
83323         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
83324         new module.
83326         New module 'posix_spawnattr_getsigmask'.
83327         * modules/posix_spawnattr_getsigmask: New file.
83328         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
83329         modifications.
83330         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
83331         new module.
83333         New module 'posix_spawnattr_setsigdefault'.
83334         * modules/posix_spawnattr_setsigdefault: New file.
83335         * lib/spawnattr_setdefault.c: New file, from GNU libc with
83336         modifications.
83337         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
83338         new module.
83340         New module 'posix_spawnattr_getsigdefault'.
83341         * modules/posix_spawnattr_getsigdefault: New file.
83342         * lib/spawnattr_getdefault.c: New file, from GNU libc with
83343         modifications.
83344         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
83345         new module.
83347         New module 'posix_spawnattr_setschedpolicy'.
83348         * modules/posix_spawnattr_setschedpolicy: New file.
83349         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
83350         modifications.
83351         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
83352         new module.
83354         New module 'posix_spawnattr_getschedpolicy'.
83355         * modules/posix_spawnattr_getschedpolicy: New file.
83356         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
83357         modifications.
83358         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
83359         new module.
83361         New module 'posix_spawnattr_setschedparam'.
83362         * modules/posix_spawnattr_setschedparam: New file.
83363         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
83364         modifications.
83365         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
83366         new module.
83368         New module 'posix_spawnattr_getschedparam'.
83369         * modules/posix_spawnattr_getschedparam: New file.
83370         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
83371         modifications.
83372         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
83373         new module.
83375         New module 'posix_spawnattr_setpgroup'.
83376         * modules/posix_spawnattr_setpgroup: New file.
83377         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
83378         modifications.
83379         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
83380         module.
83382         New module 'posix_spawnattr_getpgroup'.
83383         * modules/posix_spawnattr_getpgroup: New file.
83384         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
83385         modifications.
83386         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
83387         module.
83389         New module 'posix_spawnattr_setflags'.
83390         * modules/posix_spawnattr_setflags: New file.
83391         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
83392         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
83393         module.
83395         New module 'posix_spawnattr_getflags'.
83396         * modules/posix_spawnattr_getflags: New file.
83397         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
83398         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
83399         module.
83401         New module 'posix_spawnattr_init'.
83402         * modules/posix_spawnattr_init: New file.
83403         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
83404         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
83405         module.
83407         New module 'posix_spawn_file_actions_destroy'.
83408         * modules/posix_spawn_file_actions_destroy: New file.
83409         * lib/spawn_faction_destroy.c: New file, from GNU libc with
83410         modifications.
83411         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
83412         the new module.
83414         New module 'posix_spawn_file_actions_addopen'.
83415         * modules/posix_spawn_file_actions_addopen: New file.
83416         * lib/spawn_faction_addopen.c: New file, from GNU libc with
83417         modifications.
83418         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
83419         the new module.
83421         New module 'posix_spawn_file_actions_adddup2'.
83422         * modules/posix_spawn_file_actions_adddup2: New file.
83423         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
83424         modifications.
83425         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
83426         the new module.
83428         New module 'posix_spawn_file_actions_addclose'.
83429         * modules/posix_spawn_file_actions_addclose: New file.
83430         * lib/spawn_faction_addclose.c: New file, from GNU libc with
83431         modifications.
83432         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
83433         the new module.
83435         New module 'posix_spawn_file_actions_init'.
83436         * modules/posix_spawn_file_actions_init: New file.
83437         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
83438         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
83439         new module.
83441         New module 'posix_spawn-internal'.
83442         * modules/posix_spawn-internal: New file.
83443         * lib/spawn_int.h: New file, from GNU libc with modifications.
83444         * lib/spawni.c: New file, from GNU libc with modifications.
83445         * m4/posix_spawn.m4: New file.
83447         New module 'spawn'.
83448         * modules/spawn: New file.
83449         * lib/spawn.in.h: New file, from GNU libc with modifications.
83450         * m4/spawn_h.m4: New file.
83451         * doc/posix-headers/spawn.texi: Mention the new module.
83453 2008-09-28  Bruno Haible  <bruno@clisp.org>
83455         * modules/sched-tests: New file.
83456         * tests/test-sched.c: New file.
83458         New module 'sched'.
83459         * modules/sched: New file.
83460         * lib/sched.in.h: New file.
83461         * m4/sched_h.m4: New file.
83462         * doc/posix-headers/sched.texi: Mention the new module.
83464 2008-09-27  Eric Blake  <ebb9@byu.net>
83466         Fix previous patch, and tweak references to $0.
83467         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
83468         (func_version, func_gnulib_dir): Don't call this program
83469         gnulib-tool.
83470         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
83471         with using $0 in function.
83472         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
83473         (func_fatal_error): Reuse the name the user invoked us with.
83475 2008-09-27  Bruno Haible  <bruno@clisp.org>
83477         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
83478         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
83479         (gl_ICONV_H): Not here.
83480         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
83481         instead of assigning ICONV_H directly.
83483         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
83484         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
83485         WCHAR_H directly.
83487 2008-09-27  Bruno Haible  <bruno@clisp.org>
83489         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
83490         * modules/arpa_inet (Depends-on): Add link-warning.
83491         (Makefile.am): Insert the definition of GL_LINK-WARNING.
83492         * modules/unistd (Makefile.am): Likewise.
83494 2008-09-26  Bruno Haible  <bruno@clisp.org>
83496         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
83497         variables.
83498         (func_version): Essentially copied from gnulib-tool.
83499         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
83500         func_readlink): Copied from gnulib-tool.
83502 2008-09-26  Bruno Haible  <bruno@clisp.org>
83504         * gnulib-tool (func_version): Change directory to $gnulib_dir before
83505         invoking git-version-gen.
83507 2008-09-26  Bruno Haible  <bruno@clisp.org>
83509         * posix-modules: Update to directory names changed on 2008-01-19.
83510         Remove commas in output before splitting into words. No more need to
83511         avoid 'ftruncate' since 2007-02-19.
83513 2008-09-26  Bruno Haible  <bruno@clisp.org>
83515         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
83517 2008-09-26  Bruno Haible  <bruno@clisp.org>
83519         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
83520         * modules/fwriteerror (Depends-on): Add errno.
83522 2008-09-26  Bruno Haible  <bruno@clisp.org>
83524         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
83525         * tests/test-vc-list-files-cvs.sh: Likewise.
83527 2008-09-26  Bruno Haible  <bruno@clisp.org>
83529         * doc/posix-headers/sys_resource.texi: Reorder items.
83531 2008-09-26  Jim Meyering  <meyering@redhat.com>
83533         fts: tweak inode comparison function
83534         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
83535         inode numbers, as documented.
83537         fts: sort dirent entries on inode number before traversing
83538         This avoids a quadratic, seek-related performance penalty when
83539         operating on a directory containing many entries (measurable at 10k;
83540         3.5 hours at 2 million entries with a cold cache) on certain types
83541         of file systems, including ext3 and ext4, but not tmpfs.
83542         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
83543         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
83544         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
83545         (fs_handles_readdir_ordered_dirents_efficiently): New function.
83546         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
83547         (fts_build): Set the stat.st_ino member from D_INO.
83548         If it is likely to be useful, sort dirent entries on inode number.
83550         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
83551         and the struct statfs.f_type member.
83552         * modules/fts (Depends-on): Add d-ino.
83554 2008-09-26  Bruno Haible  <bruno@clisp.org>
83556         * modules/sigpipe-die (Depends-on): Add sigpipe.
83558         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
83559         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
83560         and GNULIB_STDIO_H_SIGPIPE are set.
83561         * lib/stdio-write.c: New file.
83562         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
83563         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
83564         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
83565         REPLACE_STDIO_WRITE_FUNCS.
83566         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
83567         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
83568         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
83569         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
83570         * modules/stdio (Files): Add lib/stdio-write.c.
83571         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
83572         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
83573         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
83574         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
83575         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
83576         REPLACE_FPRINTF_POSIX.
83577         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
83578         REPLACE_PRINTF_POSIX.
83579         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
83580         REPLACE_VFPRINTF_POSIX.
83581         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
83582         REPLACE_VPRINTF_POSIX.
83583         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
83584         SIGPIPE issue.
83585         * doc/posix-functions/fputc.texi: Likewise.
83586         * doc/posix-functions/fputs.texi: Likewise.
83587         * doc/posix-functions/fwrite.texi: Likewise.
83588         * doc/posix-functions/printf.texi: Likewise.
83589         * doc/posix-functions/putc.texi: Likewise.
83590         * doc/posix-functions/putchar.texi: Likewise.
83591         * doc/posix-functions/puts.texi: Likewise.
83592         * doc/posix-functions/vfprintf.texi: Likewise.
83593         * doc/posix-functions/vprintf.texi: Likewise.
83595         * modules/safe-write (Depends-on): Add write.
83597         * modules/sigpipe-tests: New file.
83598         * tests/test-sigpipe.c: New file.
83599         * tests/test-sigpipe.sh: New file.
83601         * modules/write: New file.
83602         * lib/unistd.in.h: Include <sys/types.h>.
83603         (write): New declaration.
83604         * lib/write.c: New file.
83605         * m4/write.m4: New file.
83606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
83607         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
83608         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
83609         GNULIB_WRITE, REPLACE_WRITE.
83610         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
83611         and the SIGPIPE issue.
83613         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
83614         (raise): New declaration.
83615         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
83616         (ext_signal): New function.
83617         (rpl_raise): New function.
83618         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
83619         GNULIB_SIGNAL_H_SIGPIPE.
83620         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
83621         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
83623         * modules/sigpipe: New file.
83624         * m4/sigpipe.m4: New file.
83626 2008-09-25  Derek Price  <derek@ximbiot.com>
83627             Bruno Haible  <bruno@clisp.org>
83629         * gnulib-tool (func_import): Report all license incompatibilities, not
83630         just the first one.
83632 2008-09-25  Bruno Haible  <bruno@clisp.org>
83634         * gnulib-tool (func_import): When computing the edits, consider not
83635         only the Makefile.ams that exist but also those that will be generated.
83637 2008-09-25  Simon Josefsson  <simon@josefsson.org>
83639         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
83640         fixes gnulib-tool --test warning about duplicate dependency.
83642 2008-09-25  Bruno Haible  <bruno@clisp.org>
83644         * gnulib-tool: Don't ask the user to perform edits in the generated
83645         Makefile.ams.
83646         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
83647         apply to the Makefile.am being generated.
83648         (func_emit_tests_Makefile_am): Execute edits that apply to the
83649         Makefile.am being generated.
83650         (func_import): Setup list of Makefile.am edits before emitting the
83651         Makefile.ams, not at the end.
83652         (func_create_testdir): Update.
83653         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83655 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83657         * gnulib-tool (func_import): Store the --tests-base option in the
83658         comment in gnulib-cache.m4.
83660 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
83662         * NEWS: Document increased portability that sys_select now provides.
83664         * lib/sys_select.in.h: Install select wrapper.
83665         * lib/sys_socket.in.h: Use more descriptive name when there is no
83666         select wrapper.
83667         * lib/winsock-select.c: New.
83668         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
83669         Require gl_HEADER_SYS_SOCKET.
83670         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
83671         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
83672         * tests/test-sys_select.c: Add functional tests.
83674 2008-09-24  Eric Blake  <ebb9@byu.net>
83676         open, fopen: close fd leak in last patch
83677         * lib/open.c (rpl_open): Close fd before returning error.
83678         * lib/fopen.c (rpl_fopen): Close fd before returning error.
83679         * doc/posix-functions/open.texi (open): Document that Irix also
83680         has the bug.
83681         * doc/posix-functions/fopen.texi (fopen): Likewise.
83682         Reported by Paolo Bonzini.
83684 2008-09-24  Bruno Haible  <bruno@clisp.org>
83686         Ensure that a filename ending in a slash cannot be used to access a
83687         non-directory.
83688         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
83689         to check whether it's really a directory.
83690         * lib/fopen.c: Include fcntl.h, unistd.h.
83691         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
83692         and fdopen().
83693         * modules/fopen (Depends-on): Add unistd.
83694         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
83695         * tests/test-fopen.c (main): Likewise.
83696         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
83697         * doc/posix-functions/fopen.texi: Likewise.
83698         Reported by Eric Blake.
83700 2008-09-23  Eric Blake  <ebb9@byu.net>
83702         c-stack: avoid compiler optimizations when provoking overflow
83703         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
83704         recursion harder to optimize, to ensure a stack overflow occurs.
83705         * tests/test-c-stack.c (recurse): Likewise.
83706         Borrowed from libsigsegv.
83708         c-stack: work around Irix sigaltstack bug
83709         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
83710         whether sigaltstack uses wrong end of stack_t (copied in part from
83711         libsigsegv).
83712         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
83713         Irix bug, without requiring an over-allocation.
83714         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
83715         bug.
83717         fopen: document mingw bug on directories
83718         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
83719         not allowing a stream visiting a directory, even though reading
83720         from such a stream is not portable.
83722 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
83724         * lib/poll.c: Rewrite.
83725         * modules/poll: Depend on alloca.
83727 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
83729         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
83730         instead define prototypes for a full set of wrappers.  Ensure
83731         that Cygwin does not use the compatibility code, which is only
83732         for MinGW.
83733         * lib/winsock.c: New.
83734         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
83735         * modules/sys_socket: Add lib/winsock.c.
83737         * modules/poll-tests: Add errno and perror.
83738         * tests/test-poll.c: Use ioctl, not ioctlsocket.
83740 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
83742         * tests/test-poll.c: Downgrade minimum needed Winsock version.
83744 2008-09-23  Bruno Haible  <bruno@clisp.org>
83746         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
83747         * doc/glibc-functions/*: Likewise.
83749 2008-09-23  Simon Josefsson  <simon@josefsson.org>
83751         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
83752         success.
83754 2008-09-22  Eric Blake  <ebb9@byu.net>
83755             Bruno Haible  <bruno@clisp.org>
83757         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
83758         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
83759         supply %A but mishandle pseudo-NaN.
83760         Reported by Simon Josefsson.
83762 2008-09-21  Bruno Haible  <bruno@clisp.org>
83764         * tests/test-lock.c (main): Tweak skip message.
83765         * tests/test-tls.c (main): Likewise.
83767 2008-09-21  Bruno Haible  <bruno@clisp.org>
83769         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
83770         whether 'struct sigaction' has sa_sigaction here...
83771         (gl_PREREQ_SIG_HANDLER_H): ... not here.
83772         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
83774 2008-09-21  Bruno Haible  <bruno@clisp.org>
83776         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
83777         section.
83778         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
83779         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
83780         the new section.
83781         (Support for obsolete systems lacking POSIX:2001): New section.
83782         (String handling <string.h>): Move strdup to the new section.
83783         Suggested by Simon Josefsson and Paolo Bonzini.
83785 2008-09-21  Bruno Haible  <bruno@clisp.org>
83787         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
83788         exponents in %e and %g results on 'long double'. Needed for mingw's
83789         improved *printf functions.
83790         * tests/test-vasprintf-posix.c (test_function): Likewise.
83791         * tests/test-snprintf-posix.h (test_function): Likewise.
83792         * tests/test-sprintf-posix.h (test_function): Likewise.
83793         Reported by Eric Blake.
83795 2008-09-21  Bruno Haible  <bruno@clisp.org>
83797         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
83798         * tests/test-sprintf-posix.h (test_function): Likewise.
83800 2008-09-21  Bruno Haible  <bruno@clisp.org>
83802         * modules/getpass (Depends-on): Add strdup-posix.
83804         New module 'strdup-posix'.
83805         * modules/strdup-posix: New file.
83806         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
83807         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
83808         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
83809         REPLACE_STRDUP.
83810         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
83811         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
83812         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83813         strdup-posix.
83815         * modules/strdup (Depends-on): Remove malloc-posix.
83817 2008-09-20  Bruno Haible  <bruno@clisp.org>
83819         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
83820         Wildenhues.
83822 2008-09-20  Bruno Haible  <bruno@clisp.org>
83824         Ensure that wint_t gets defined on IRIX 5.3.
83825         * lib/wchar.in.h (wint_t): Define if not defined by the system.
83826         * lib/wctype.in.h (wint_t): Likewise.
83827         (__wctype_wint_t): Remove type.
83828         (isw*): Use wint_t instead of __wctype_wint_t.
83829         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
83830         * modules/wchar (Files): Add m4/wint_t.m4.
83831         (Makefile.am): Substitute HAVE_WINT_T.
83832         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
83833         * tests/test-wctype.c: Check that wint_t is defined.
83834         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
83835         * doc/posix-headers/wctype.texi: Likewise.
83836         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
83838 2008-09-18  Bruno Haible  <bruno@clisp.org>
83840         * gnulib-tool (func_exit): Update comment.
83842 2008-09-18  Simon Josefsson  <simon@josefsson.org>
83844         * modules/getaddrinfo (Depends-on): Remove strdup, this module
83845         assumes strdup exists and does not depend on strdup to return
83846         ENOMEM on out of memory conditions.
83848 2008-09-18  Bruno Haible  <bruno@clisp.org>
83850         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
83851         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
83852         digits for the exponent.
83854 2008-09-18  Jim Meyering  <meyering@redhat.com>
83855             Bruno Haible  <bruno@clisp.org>
83857         * lib/vasnprintf.c (decimal_point_char): Define also if
83858         NEED_PRINTF_INFINITE_LONG_DOUBLE.
83860 2008-09-16  Bruno Haible  <bruno@clisp.org>
83861         and Eric Blake  <ebb9@byu.net>
83863         vasnprintf: support Irix 5.3
83864         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
83865         that mishandle long double infinity.
83866         Reported by Tom G. Christensen.
83868 2008-09-16  Bruno Haible  <bruno@clisp.org>
83870         * doc/glibc-functions/scandir.texi: Mention the function is missing on
83871         Solaris 9.
83872         * doc/glibc-functions/alphasort.texi: Likewise.
83873         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
83875 2008-09-16  Jim Meyering  <meyering@redhat.com>
83877         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
83878         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
83879         a umask modification leak out of a subshell.  Otherwise, the
83880         opensolaris /bin/sh would be accepted and thus cause unwarranted
83881         failures in the coreutils test suite.
83883 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
83885         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
83886         to succeed.
83888 2008-09-16  Jim Meyering  <meyering@redhat.com>
83890         avoid spurious test failure when library is built without ACL support
83891         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
83892         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
83893         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
83894         * tests/test-copy-acl.sh: Likewise.
83896 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83898         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
83899         based on character occurrence counts.
83901 2008-09-15  Eric Blake  <ebb9@byu.net>
83903         tests: avoid some compiler warnings
83904         * tests/test-memchr.c (main): Pass NULL indirectly.
83905         * tests/test-closein.c (main): Avoid unused variable.
83907 2008-09-15  Bruno Haible  <bruno@clisp.org>
83909         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
83910         are missing on OpenBSD 4.0 individually.
83911         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83913 2008-09-15  Bruno Haible  <bruno@clisp.org>
83915         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
83916         * doc/posix-functions/strerror.texi: Mention also Cygwin.
83917         * doc/posix-functions/perror.texi: Likewise.
83918         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
83919         is missing.
83920         Reported by Eric Blake.
83922         * lib/errno.in.h: Use replacement values >= 2000.
83923         Reported by Eric Blake.
83925 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83927         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
83928         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
83929         limit.
83930         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
83931         compareseq was aborted.
83933 2008-09-14  Bruno Haible  <bruno@clisp.org>
83935         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
83936         yvec_edit_count.
83937         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
83938         (fstrcmp_bounded): Simplify result computation accordingly.
83940 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83942         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
83943         (fstrcmp): Define in terms of fstrcmp_bounded.
83944         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
83945         lower_bound argument.
83946         Return quickly if the result is certainly < lower_bound.
83947         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
83949 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83951         * lib/diffseq.h (EARLY_ABORT): New macro.
83952         (compareseq): Change return type to bool. Return true when EARLY_ABORT
83953         evaluates to true.
83955 2008-09-14  Bruno Haible  <bruno@clisp.org>
83957         * modules/perror-tests: New file.
83958         * tests/test-perror.sh: New file.
83959         * tests/test-perror.c: New file.
83961         New module 'perror'.
83962         * lib/stdio.in.h (perror): New declaration.
83963         * lib/perror.c: New file.
83964         * m4/perror.m4: New file.
83965         * modules/perror: New file.
83966         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
83967         * doc/posix-functions/perror.texi: Mention the perror module.
83968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
83969         REPLACE_PERROR.
83970         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
83971         REPLACE_PERROR.
83973 2008-09-14  Bruno Haible  <bruno@clisp.org>
83975         * modules/stdio (Makefile.am): Reorder to match the order in
83976         lib/stdio.in.h.
83977         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
83979 2008-09-13  Bruno Haible  <bruno@clisp.org>
83981         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
83983 2008-09-13  Bruno Haible  <bruno@clisp.org>
83985         Extend strerror to cover the added errno values.
83986         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
83987         (rpl_strerror): Provide error messages for the added errno values and
83988         for the WSA* values.
83989         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
83990         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
83991         strerror.
83992         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
83993         * modules/strerror (Depends-on): Add errno.
83994         * doc/posix-functions/strerror.texi: Document the change.
83995         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
83996         and EOVERFLOW.
83998 2008-09-13  Bruno Haible  <bruno@clisp.org>
84000         * modules/EOVERFLOW: Remove file.
84001         * m4/eoverflow.m4: Remove file.
84002         * modules/EOVERFLOW-tests: Remove file.
84003         * tests/test-EOVERFLOW.c: Remove file.
84004         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
84005         * modules/ftell (Depends-on): Likewise.
84006         * modules/getdelim (Depends-on): Likewise.
84007         * modules/getugroups (Depends-on): Likewise.
84008         * modules/poll (Depends-on): Likewise.
84009         * modules/snprintf (Depends-on): Likewise.
84010         * modules/sprintf-posix (Depends-on): Likewise.
84011         * modules/vasnprintf (Depends-on): Likewise.
84012         * modules/vasprintf (Depends-on): Likewise.
84013         * modules/vfprintf-posix (Depends-on): Likewise.
84014         * modules/vsnprintf (Depends-on): Likewise.
84015         * modules/vsprintf-posix (Depends-on): Likewise.
84016         * modules/xvasprintf (Depends-on): Likewise.
84017         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
84018         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
84019         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
84020         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
84021         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
84022         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
84023         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
84024         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
84025         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
84026         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
84027         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
84028         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
84029         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
84030         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
84031         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
84032         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
84033         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
84034         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
84035         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
84036         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
84037         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
84038         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
84039         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
84040         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
84041         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
84042         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
84043         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
84044         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
84045         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
84046         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
84047         * MODULES.html.sh: Remove EOVERFLOW.
84048         * NEWS: Mention the change.
84050 2008-09-13  Bruno Haible  <bruno@clisp.org>
84052         * modules/errno-tests: New file.
84053         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
84055         * lib/errno.in.h: New file.
84056         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
84057         * modules/errno: New file.
84058         * doc/posix-headers/errno.texi: Update documentation.
84059         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
84061 2008-09-13  Bruno Haible  <bruno@clisp.org>
84063         * tests/test-poll.c: Use #if for native Windows, rather than testing
84064         __MSVCRT__.
84066 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84067             Bruno Haible  <bruno@clisp.org>
84069         * lib/glob.c: Don't include <pwd.h> on native Windows.
84070         (WINDOWS32): New macro.
84071         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
84073 2008-09-13  Bruno Haible  <bruno@clisp.org>
84075         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
84076         (ETIMEDOUT): Remove macro.
84077         (glthread_cond_timedwait_multithreaded): New declaration.
84078         (glthread_cond_timedwait): Use it.
84079         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
84080         (glthread_cond_timedwait_multithreaded): New function.
84082 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
84084         * modules/poll-tests: Do not check for io.h.
84085         * tests/test-poll.c: Check for __MSVCRT__ instead.
84087 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
84089         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
84090         * modules/poll-tests: Add inet_pton, stdbool, sockets.
84091         * tests/test-poll.c: Use them.  Use _pipe on Windows.
84093 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
84095         * modules/poll-tests: New.
84096         * tests/test-poll.c: New.
84098 2008-09-12  Eric Blake  <ebb9@byu.net>
84100         frexp: test for NetBSD failure on -0.0
84101         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
84102         not all, bugs from NetBSD 3.0 have been fixed.
84103         * doc/posix-functions/frexp.texi (frexp): Document bug.
84104         Reported by Thomas Klausner.
84106         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
84107         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
84108         literal -0.0.
84109         Reported by Jonathan C. Patschke <jp@centtech.com>.
84111 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84113         * lib/glthread/cond.h: Use dummy implementation also if
84114         USE_WIN32_THREADS.
84116 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84118         * modules/fnmatch-posix (License): Change to LGPLv2+.
84119         * modules/fnmatch-gnu (License): Likewise.
84121 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84123         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
84125 2008-09-11  Jim Meyering  <meyering@redhat.com>
84127         * users.txt: Add gtk-vnc.
84129 2008-09-08  Simon Josefsson  <simon@josefsson.org>
84131         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
84132         rotate amounts.
84134         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
84135         required for 16-bit and 8-bit rotates.
84136         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
84137         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
84138         UINT8_MAX instead of hard-coded constants.
84139         Suggested by Paul Eggert.
84141 2008-09-07  Bruno Haible  <bruno@clisp.org>
84143         * tests/test-striconveh.c (main): Check behaviour when converting from
84144         UTF-7.
84146         Make striconveh work better with stateful encodings.
84147         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
84148         that iconv does not increment the inptr when returning -1/EINVAL.
84150 2008-09-07  Bruno Haible  <bruno@clisp.org>
84152         * build-aux/config.rpath: Update according to libtool-2.2.6.
84153         * build-aux/config.libpath: Likewise.
84155 2008-09-06  Bruno Haible  <bruno@clisp.org>
84157         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
84158         * lib/freadptr.c (freadptr): Likewise.
84159         * lib/freadseek.c (freadptrinc): Likewise.
84160         Reported by Simon Josefsson.
84162 2008-09-06  Bruno Haible  <bruno@clisp.org>
84164         * modules/freadptr (License): Change to LGPLv2+.
84165         * modules/freadseek (License): Likewise.
84166         Suggested by Eric Blake.
84168         * modules/memchr2 (License): Change to LGPLv2+.
84169         Approved by Eric Blake.
84171 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84172             Bruno Haible  <bruno@clisp.org>
84174         Make gnulib-tool work with native 'sed' on AIX.
84175         * gnulib-tool (sed_noop): New variable.
84176         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
84177         func_add_or_update, func_create_testdir): Use it to initialize sed
84178         script variables.
84179         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
84181 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
84182             Bruno Haible  <bruno@clisp.org>
84184         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
84185         also works after #include directives.
84187 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
84189         getdate.y: reject an out-of-range timezone value
84190         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
84191         the range [-24...+24].  When specified with only one or two digits,
84192         * tests/test-getdate.c: Tests for the fix.
84193         * doc/getdate.texi: Document this change.
84195 2008-09-03  Bruno Haible  <bruno@clisp.org>
84197         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
84199 2008-09-02  Simon Josefsson  <simon@josefsson.org>
84201         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
84202         <bruce.korb@gmail.com> with ideas from Ben Pfaff
84203         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
84204         Blake <ebb9@byu.net>.
84206         * tests/test-bitrotate.c: Add more test vectors.
84208 2008-09-02  Eric Blake  <ebb9@byu.net>
84210         vasnprintf-posix: handle large precision via %.*d
84211         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
84212         when handling it ourselves.
84213         * tests/test-vasnprintf-posix.c (test_function): Add test.
84214         * tests/test-snprintf-posix.h (test_function): Likewise.
84215         * tests/test-sprintf-posix.h (test_function): Likewise.
84216         * tests/test-vasprintf-posix.c (test_function): Likewise.
84217         Reported by Alain Guibert.
84219 2008-09-01  Eric Blake  <ebb9@byu.net>
84221         c-stack: make configure-time check more robust
84222         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
84223         successful sigaction call.
84224         Reported by Tom G. Christensen.
84226 2008-09-01  Bruno Haible  <bruno@clisp.org>
84228         New module 'findprog-lgpl'.
84229         * modules/findprog-lgpl: New file.
84230         * lib/findprog-lgpl.c: New file.
84231         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
84232         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
84233         to decide whether to use strdup or xstrdup, concatenated_filename or
84234         xconcatenated_filename.
84236 2008-09-01  Bruno Haible  <bruno@clisp.org>
84238         Split module 'concat-filename' into 'concat-filename' (LGPL) and
84239         'xconcat-filename' (GPL).
84240         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
84241         (License): Change to LGPLv2+.
84242         * modules/xconcat-filename: New file.
84243         * lib/concat-filename.h (concatenated_filename): Change specification.
84244         (xconcatenated_filename): New declaration.
84245         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
84246         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
84247         memory situations.
84248         * lib/xconcat-filename.c: New file.
84249         * NEWS: Mention the change.
84250         * lib/findprog.c: Include concat-filename.h, not filename.h.
84251         (find_in_path): Use xconcatenated_filename instead of
84252         concatenated_filename.
84253         * lib/javacomp.c: Include concat-filename.h, not filename.h.
84254         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
84255         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
84256         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
84257         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
84258         instead of concatenated_filename.
84259         * lib/javaexec.c: Include concat-filename.h, not filename.h.
84260         (execute_java_class): Use xconcatenated_filename instead of
84261         concatenated_filename.
84262         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
84263         * modules/javacomp (Depends-on): Likewise.
84264         * modules/javaexec (Depends-on): Likewise.
84266 2008-09-01  Bruno Haible  <bruno@clisp.org>
84268         Split module 'filename' into 'filename' and 'concat-filename'.
84269         * modules/filename: Keep only lib/filename.h.
84270         (License): Change to LGPLv2+.
84271         * modules/concat-filename: New file, extracted from modules/filename.
84272         * lib/filename.h (concatenated_filename): Remove declaration.
84273         * lib/concat-filename.h: New file, extracted from lib/filename.h.
84274         * lib/concat-filename.c: Include concat-filename.h.
84275         * NEWS: Mention the change.
84277 2008-09-01  Simon Josefsson  <simon@josefsson.org>
84279         * lib/bitrotate.h (rotl8, rotr8): Add.
84281         * modules/bitrotate (configure.ac): Need
84282         AC_REQUIRE([AC_C_INLINE]).
84283         (Description): Mention stdint.h.  Reported by Bruno Haible
84284         <bruno@clisp.org>.
84286         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
84287         Paolo Bonzini <bonzini@gnu.org>.
84289 2008-08-31  Bruno Haible  <bruno@clisp.org>
84291         Assume Solaris specific bi-arch conventions on Solaris systems.
84292         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
84293         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
84294         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
84295         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
84296         like acl_libdirstem.
84297         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
84298         acl_libdirstem.
84299         * NEWS: Mention the change.
84300         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
84302 2008-08-31  Jim Meyering  <meyering@redhat.com>
84304         * lib/strftime.h: Add comments describing the two added arguments.
84306         remove duplicate #include directives
84307         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
84308         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
84310 2008-08-31  Bruno Haible  <bruno@clisp.org>
84312         New module 'sigpipe-die'.
84313         * modules/sigpipe-die: New file.
84314         * lib/sigpipe-die.h: New file.
84315         * lib/sigpipe-die.c: New file.
84316         * MODULES.html.sh (Signal handling): Add sigpipe-die.
84318 2008-08-31  Bruno Haible  <bruno@clisp.org>
84320         Don't override previously installed signal handlers.
84321         * lib/fatal-signal.c (saved_sigactions): New variable.
84322         (uninstall_handlers): Reset the signal to the saved handler, not
84323         to SIG_DFL (except when ignored).
84324         (install_handlers): Save the previous handlers.
84326 2008-08-30  Bruno Haible  <bruno@clisp.org>
84328         * gnulib-tool (func_reset_sigpipe): New function.
84329         (func_get_automake_snippet, func_modules_transitive_closure,
84330         func_import): Invoke it before a join command that reads from stdin,
84331         to avoid "echo: write error: Broken pipe" error messages on stderr.
84332         Reported by Sam Steingold <sds@gnu.org>.
84334 2008-08-30  Bruno Haible  <bruno@clisp.org>
84336         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
84337         Code copied from m4/open.m4.
84338         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
84339         access and the filename ends in a slash. Code copied from lib/open.c.
84340         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
84341         * tests/test-fopen.c (main): Check against bug with trailing slash.
84343 2008-08-29  Bruno Haible  <bruno@clisp.org>
84345         Avoid some "gcc -pedantic" warnings.
84346         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
84347         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
84348         * lib/dirent.in.h: Likewise.
84349         * lib/fcntl.in.h: Likewise.
84350         * lib/float.in.h: Likewise.
84351         * lib/iconv.in.h: Likewise.
84352         * lib/inttypes.in.h: Likewise.
84353         * lib/locale.in.h: Likewise.
84354         * lib/math.in.h: Likewise.
84355         * lib/netinet_in.in.h: Likewise.
84356         * lib/search.in.h: Likewise.
84357         * lib/signal.in.h: Likewise.
84358         * lib/stdarg.in.h: Likewise.
84359         * lib/stdint.in.h: Likewise.
84360         * lib/stdio.in.h: Likewise.
84361         * lib/stdlib.in.h: Likewise.
84362         * lib/string.in.h: Likewise.
84363         * lib/strings.in.h: Likewise.
84364         * lib/sys_select.in.h: Likewise.
84365         * lib/sys_socket.in.h: Likewise.
84366         * lib/sys_stat.in.h: Likewise.
84367         * lib/sys_time.in.h: Likewise.
84368         * lib/sysexits.in.h: Likewise.
84369         * lib/time.in.h: Likewise.
84370         * lib/unistd.in.h: Likewise.
84371         * lib/wchar.in.h: Likewise.
84372         * lib/wctype.in.h: Likewise.
84373         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
84374         * modules/fchdir (Makefile.am): Likewise.
84375         * modules/fcntl (Makefile.am): Likewise.
84376         * modules/float (Makefile.am): Likewise.
84377         * modules/iconv_open (Makefile.am): Likewise.
84378         * modules/inttypes (Makefile.am): Likewise.
84379         * modules/locale (Makefile.am): Likewise.
84380         * modules/math (Makefile.am): Likewise.
84381         * modules/netinet_in (Makefile.am): Likewise.
84382         * modules/search (Makefile.am): Likewise.
84383         * modules/signal (Makefile.am): Likewise.
84384         * modules/stdarg (Makefile.am): Likewise.
84385         * modules/stdint (Makefile.am): Likewise.
84386         * modules/stdio (Makefile.am): Likewise.
84387         * modules/stdlib (Makefile.am): Likewise.
84388         * modules/string (Makefile.am): Likewise.
84389         * modules/strings (Makefile.am): Likewise.
84390         * modules/sys_select (Makefile.am): Likewise.
84391         * modules/sys_socket (Makefile.am): Likewise.
84392         * modules/sys_stat (Makefile.am): Likewise.
84393         * modules/sys_time (Makefile.am): Likewise.
84394         * modules/sysexits (Makefile.am): Likewise.
84395         * modules/time (Makefile.am): Likewise.
84396         * modules/unistd (Makefile.am): Likewise.
84397         * modules/wchar (Makefile.am): Likewise.
84398         * modules/wctype (Makefile.am): Likewise.
84399         Reported by Reuben Thomas <rrt@sc3d.org>.
84401 2008-08-29  Bruno Haible  <bruno@clisp.org>
84403         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
84404         any more.
84406 2008-08-29  Simon Josefsson  <simon@josefsson.org>
84408         * MODULES.html.sh (Misc): Add bitrotate.
84410         * modules/bitrotate: New file.
84412         * lib/bitrotate.h: New file.
84414         * modules/bitrotate-tests: New file.
84416         * tests/test-bitrotate.c: New file.
84418         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
84419         on the bitrotate module.
84421         * lib/arctwo.c: Use new bitrotate module.
84423 2008-08-29  Jim Meyering  <meyering@redhat.com>
84425         bootstrap: merge changes from coreutils
84426         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
84427         of copied files.  Remove a kludge, now that this is fixed.
84428         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
84429         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
84430         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
84432 2008-08-29  Bruno Haible  <bruno@clisp.org>
84434         * MODULES.html.sh: Remove --cvs-urls option.
84436 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
84438         maint.mk: adjust to file name change
84439         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
84441 2008-08-28  Jim Meyering  <meyering@redhat.com>
84443         * modules/getndelim2 (License): Relicense to LGPLv2+.
84444         Approved by Richard Stallman for the version of 1995, and by
84445         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
84447 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
84449         * lib/getdelim.c (flockfile, funlockfile): Make all of them
84450         dummy if one is not available.  Do not touch them if
84451         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
84452         (getc_maybe_unlocked): New.
84453         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
84455 2008-08-26  Eric Blake  <ebb9@byu.net>
84457         doc/INSTALL: resync from autoconf
84458         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
84459         (INSTALL_PRELUDE): Delete; this is done more efficiently by
84460         moving...
84461         * install.texi [!autoconf]: ...here.  Resync from autoconf.
84462         * INSTALL: Regenerate.
84463         * INSTALL.ISO: New file.
84464         * INSTALL.UTF-8: Likewise.
84466 2008-08-26  Jim Meyering  <meyering@redhat.com>
84468         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
84469         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
84470         these definitions conditional, so that they may be overridden, too.
84472 2008-08-26  Bruno Haible  <bruno@clisp.org>
84474         Generate INSTALL file variants with prettier quotes.
84475         * doc/Makefile (INSTALL_PRELUDE): New macro.
84476         (INSTALL): Use it.
84477         (INSTALL.ISO, INSTALL.UTF-8): New rules.
84479 2008-08-26  Bruno Haible  <bruno@clisp.org>
84481         Run makeinfo in an English locale.
84482         * doc/Makefile (MAKEINFO): New variable.
84484 2008-08-26  Bruno Haible  <bruno@clisp.org>
84486         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
84487         Suggested by Eric Blake.
84489 2008-08-25  Bruno Haible  <bruno@clisp.org>
84491         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
84493 2008-08-25  Eric Blake  <ebb9@byu.net>
84495         c-stack: test that stack overflow can be caught
84496         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
84497         that platform allows handling stack overflow; at least OS/2 EMX
84498         has sigaltstack, but crashes before transferring control to
84499         handler on stack overflow.
84500         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
84501         check for HAVE_STACK_OVERFLOW_HANDLING.
84502         Reported by Elbert Pol.
84504 2008-08-25  Bruno Haible  <bruno@clisp.org>
84506         * doc/posix-functions/strftime.texi: Fix description of strftime
84507         module.
84509 2008-08-24  Bruno Haible  <bruno@clisp.org>
84511         * tests/uniwidth/test-uc_width2.c: New file.
84512         * tests/uniwidth/test-uc_width2.sh: New file.
84513         * modules/uniwidth/width-tests (Files): Add the new files.
84514         (TESTS): Add uniwidth/test-uc_width2.sh.
84515         (TESTS_ENVIRONMENT): New variable.
84516         (check_PROGRAMS): Add test-uc_width2.
84517         (test_uc_width2_SOURCES): New variable.
84519         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
84520         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
84521         not 0x00AB.
84522         Reported by Alexander V. Lukyanov <lav@netis.ru>.
84524 2008-08-22  Eric Blake  <ebb9@byu.net>
84526         test-lock, test-tls: mention why a test is skipped
84527         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
84528         skipped.
84529         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
84531         count-one-bits: relax license
84532         * modules/count-one-bits (License): Relicense to LGPLv2+.
84533         Suggested by Ludovic Courtès, approved by Ben Pfaff.
84535 2008-08-22  Andreas Schwab  <schwab@suse.de>
84537         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
84538         Remove spurious space in assignment.
84540 2008-08-21  Simon Josefsson  <simon@josefsson.org>
84542         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
84543         Paul Eggert <eggert@CS.UCLA.EDU>.
84545 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
84547         * modules/gettext: Add m4/threadlib.m4.
84549 2008-08-19  Eric Blake  <ebb9@byu.net>
84551         test-c-stack: fix compilation failure on FreeBSD 5.0
84552         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
84553         headers before <sys/resource.h>.
84554         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
84555         the bug.
84556         Reported by Nelson H. F. Beebe.
84558         strverscmp: migrate from "strverscmp.h" to <string.h>
84559         * modules/string (Makefile.am): Add new hooks.
84560         * modules/strverscmp (Files): Remove strverscmp.h.
84561         (Depends-on): Add string.
84562         (configure.ac): Add indicator.
84563         (Include): Mention new header.
84564         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
84565         defaults.
84566         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
84567         results.
84568         * lib/strverscmp.h: Delete.
84569         * lib/string.in.h (strverscmp): Provide declaration, when needed.
84570         * tests/test-strverscmp.c (includes): Adjust client.
84571         * lib/check-version.c (includes): Likewise.
84572         * NEWS: Document the change.
84574         strverscmp: add unit test
84575         * modules/strverscmp-tests: New file.
84576         * tests/test-strverscmp.c: Likewise.
84578 2008-08-19  Simon Josefsson  <simon@josefsson.org>
84580         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
84581         regarding Windows crypto stuff, from Mono.
84583 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
84585         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
84586         if present, for intel RND.  Return error on failures.
84588 2008-08-18  Ben Pfaff  <blp@gnu.org>
84590         gitlog-to-changelog: give better diagnostic for failed pipe-open
84591         * build-aux/gitlog-to-changelog: Improve error message: suggest
84592         that the version of Git may be too old.
84594 2008-08-18  Simon Josefsson  <simon@josefsson.org>
84596         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
84597         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
84599 2008-08-18  Bruno Haible  <bruno@clisp.org>
84601         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
84602         pthread_in_use().
84604 2008-08-18  Bruno Haible  <bruno@clisp.org>
84606         * lib/glthread/threadlib.c: Include <pthread.h>.
84608 2008-08-18  Bruno Haible  <bruno@clisp.org>
84610         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
84611         glthread_recursive_lock_* macros.
84612         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
84613         Fix syntax error.
84615 2008-08-18  Bruno Haible  <bruno@clisp.org>
84617         * lib/glthread/thread.c: Avoid forcing a context switch right after
84618         thread creation.
84620 2008-08-17  Bruno Haible  <bruno@clisp.org>
84622         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
84623         * lib/glthread/thread.h: Provide Win32 specific implementation.
84624         * modules/thread (Files): Add lib/glthread/thread.c.
84625         (Depends-on): Add lock.
84626         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
84628 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84630         New module 'yield'.
84631         * modules/yield: New file.
84632         * lib/glthread/yield.h: New file.
84633         * m4/yield.m4: New file.
84634         * MODULES.html.sh (Multithreading): Add yield.
84636 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84638         New module 'thread'.
84639         * modules/thread: New file.
84640         * lib/glthread/thread.h: New file.
84641         * m4/thread.m4: New file.
84642         * MODULES.html.sh (Multithreading): Add thread.
84644 2008-08-17  Bruno Haible  <bruno@clisp.org>
84646         * lib/glthread/lock.h: Include <stdlib.h> always.
84647         * lib/glthread/tls.h: Likewise.
84648         * lib/glthread/cond.h: Likewise.
84650 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84652         New module 'cond'.
84653         * modules/cond: New file.
84654         * lib/glthread/cond.h: New file.
84655         * lib/glthread/cond.c: New file.
84656         * m4/cond.m4: New file.
84657         * MODULES.html.sh (Multithreading): Add cond.
84659 2008-08-16  Eric Blake  <ebb9@byu.net>
84661         c-stack: fix regression on Irix 5.3 from 2008-06-21
84662         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
84663         sa_sigaction...
84664         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
84665         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
84666         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
84667         * modules/signal (Makefile.am): Use the value.
84668         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
84669         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
84670         * doc/posix-headers/signal.texi (signal.h): Document this
84671         portability issue.
84672         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
84673         Reported by Tom G. Christensen.
84675 2008-08-17  Bruno Haible  <bruno@clisp.org>
84677         New module 'threadlib'.
84678         * modules/threadlib: New file.
84679         * lib/glthread/threadlib.c: New file, extracted from
84680         lib/glthread/lock.c.
84681         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
84682         functions.
84683         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
84684         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
84685         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
84686         macros.
84687         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
84688         (gl_DISABLE_THREADS): Remove macro.
84689         * modules/lock (Files): Remove build-aux/config.rpath.
84690         (Depends-on): Remove havelib. Add threadlib.
84691         (configure.ac-early): Remove section.
84692         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
84693         * modules/tls (Depends-on): Remove lock. Add threadlib.
84694         (Link): New section, copied from threadlib.
84695         * MODULES.html.sh (Multithreading): Add threadlib.
84697 2008-08-14  Bruno Haible  <bruno@clisp.org>
84699         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
84700         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
84701         glthread_rwlock_unlock, glthread_rwlock_destroy,
84702         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
84703         glthread_recursive_lock_destroy): Define as macros always.
84704         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
84705         glthread_lock_lock.
84706         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
84707         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
84708         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
84709         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
84710         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
84711         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
84712         (glthread_recursive_lock_lock_func): Renamed from
84713         glthread_recursive_lock_lock.
84714         (glthread_recursive_lock_unlock_func): Renamed from
84715         glthread_recursive_lock_unlock.
84716         (glthread_recursive_lock_destroy_func): Renamed from
84717         glthread_recursive_lock_destroy.
84719 2008-08-14  Bruno Haible  <bruno@clisp.org>
84721         * lib/glthread/lock.h: Renamed from lib/lock.h.
84722         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
84723         * lib/glthread/tls.h: Renamed from lib/tls.h.
84724         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
84725         * lib/fstrcmp.c: Update includes.
84726         * lib/strsignal.c: Update includes.
84727         * modules/lock (Files, Makefile.am): Update.
84728         (Include): Change to "glthread/lock.h".
84729         * modules/tls (Files, Makefile.am): Update.
84730         (Include): Change to "glthread/tls.h".
84731         * tests/test-lock.c: Update includes.
84732         * tests/test-tls.c: Update includes.
84733         * NEWS: Mention the renamed header files.
84735 2008-08-11  Jim Meyering  <meyering@redhat.com>
84737         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
84739 2008-08-11  Eric Blake  <ebb9@byu.net>
84741         test-c-stack: avoid C99-ism
84742         * tests/test-c-stack.c (main): Fix whitespace, move declaration
84743         before statement.
84744         Reported by Alain Guibert.
84746 2008-08-10  Jim Meyering  <meyering@redhat.com>
84748         ensure that return value of uinttostr et al are not ignored
84749         * lib/inttostr.h (__GNUC_PREREQ): Define.
84750         (__attribute_warn_unused_result__): Define.
84751         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
84753 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
84755         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
84756         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
84758 2008-08-07  Jim Meyering  <meyering@redhat.com>
84760         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
84762         * modules/mkstemp (License): Relicense under LGPLv2+.
84763         * modules/tempname (License): Likewise.
84765 2008-08-06  Bruno Haible  <bruno@clisp.org>
84767         * lib/poll.c (poll): Further micro-optimization.
84769 2008-08-06  Jim Meyering  <meyering@redhat.com>
84771         inet_pton.c: use locale-independent tolower
84772         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
84773         (inet_pton6): Use c_tolower rather than tolower.
84774         * modules/inet_pton (Depends-on): Add c-ctype.
84776 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
84778         * lib/poll.c (poll): Avoid division when timeout is 0, cache
84779         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
84781 2008-08-06  Jim Meyering  <meyering@redhat.com>
84783         * modules/inet_pton (License): Relicense under LGPLv2+.
84785 2008-08-03  Bruno Haible  <bruno@clisp.org>
84787         Additional non-aborting API for lock and tls.
84788         * lib/lock.h: Include <errno.h>.
84789         (glthread_lock_init): New macro/function.
84790         (gl_lock_init): Define as wrapper around glthread_lock_init.
84791         (glthread_lock_lock): New macro/function.
84792         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
84793         (glthread_lock_unlock): New macro/function.
84794         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
84795         (glthread_lock_destroy): New macro/function.
84796         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
84797         (glthread_rwlock_init): New macro/function.
84798         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
84799         (glthread_rwlock_rdlock): New macro/function.
84800         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
84801         (glthread_rwlock_wrlock): New macro/function.
84802         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
84803         (glthread_rwlock_unlock): New macro/function.
84804         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
84805         (glthread_rwlock_destroy): New macro/function.
84806         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
84807         (glthread_recursive_lock_init): New macro/function.
84808         (gl_recursive_lock_init): Define as wrapper around
84809         glthread_recursive_lock_init.
84810         (glthread_recursive_lock_lock): New macro/function.
84811         (gl_recursive_lock_lock): Define as wrapper around
84812         glthread_recursive_lock_lock.
84813         (glthread_recursive_lock_unlock): New macro/function.
84814         (gl_recursive_lock_unlock): Define as wrapper around
84815         glthread_recursive_lock_unlock.
84816         (glthread_recursive_lock_destroy): New macro/function.
84817         (gl_recursive_lock_destroy): Define as wrapper around
84818         glthread_recursive_lock_destroy.
84819         (glthread_once): New macro/function.
84820         (gl_once): Define as wrapper around glthread_once.
84821         Update function declarations.
84822         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
84823         glthread_rwlock_init. Return error code.
84824         (glthread_rwlock_rdlock_multithreaded): Renamed from
84825         glthread_rwlock_rdlock. Return error code.
84826         (glthread_rwlock_wrlock_multithreaded): Renamed from
84827         glthread_rwlock_wrlock. Return error code.
84828         (glthread_rwlock_unlock_multithreaded): Renamed from
84829         glthread_rwlock_unlock. Return error code.
84830         (glthread_rwlock_destroy_multithreaded): Renamed from
84831         glthread_rwlock_destroy. Return error code.
84832         (glthread_recursive_lock_init_multithreaded): Renamed from
84833         glthread_recursive_lock_init. Return error code.
84834         (glthread_recursive_lock_lock_multithreaded): Renamed from
84835         glthread_recursive_lock_lock. Return error code.
84836         (glthread_recursive_lock_unlock_multithreaded): Renamed from
84837         glthread_recursive_lock_unlock. Return error code.
84838         (glthread_recursive_lock_destroy_multithreaded): Renamed from
84839         glthread_recursive_lock_destroy. Return error code.
84840         (glthread_once_call): Make static.
84841         (glthread_once_multithreaded): Renamed from glthread_once.
84842         * lib/tls.h: Include <errno.h>.
84843         (glthread_tls_key_init): New macro/function.
84844         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
84845         (glthread_tls_set): New macro/function.
84846         (gl_tls_set): Define as wrapper around glthread_tls_set.
84847         (glthread_tls_key_destroy): New macro/function.
84848         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
84849         Update function declarations.
84850         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
84851         glthread_tls_get.
84852         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
84854 2008-08-04  Eric Blake  <ebb9@byu.net>
84856         gnumakefile: use space, not TAB, outside of targets
84857         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
84859 2008-08-02  Jim Meyering  <meyering@redhat.com>
84861         getdate.y: avoid locale-dependent date parsing failure
84862         In Turkish locales, getdate would fail to recognize keywords
84863         containing a lowercase "i".  The solution is not to rely on
84864         locale-sensitive case-conversion.
84865         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
84866         (lookup_word): Use c_toupper in place of toupper.
84867         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
84868         Reported by Vefa Bicakci <bicave@superonline.com> in
84869         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
84870         * modules/getdate (Depends-on): Add c-ctype.
84872 2008-08-02  Bruno Haible  <bruno@clisp.org>
84874         * gnulib-tool (func_import): When updating or creating a .gitignore
84875         file, prepend each added line with a slash, and ignore leading slashes
84876         from the existing lines.
84877         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
84879 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84881         Portability fix for GNU make 3.79.1.
84882         * top/GNUmakefile: Avoid 'else COND', which older GNU make
84883         versions do not understand.
84885 2008-08-01  Bruno Haible  <bruno@clisp.org>
84887         Work around bug of HP-UX 10.20 cc with -0.0 literal.
84888         * tests/test-isnanf.h (zero): New variable.
84889         (main): Avoid literal -0.0f.
84890         * tests/test-isnand.h (zero): New variable.
84891         (main): Avoid literal -0.0.
84892         * tests/test-isnanl.h (zero): New variable.
84893         (main): Avoid literal -0.0L.
84894         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
84895         (test_float, test_double, test_long_double): Avoid literals -0.0f,
84896         -0.0, -0.0L.
84897         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
84898         (test_signbitd): Avoid literal -0.0.
84899         (test_signbitl): Avoid literal -0.0L.
84900         * tests/test-ceilf1.c (zero): New variable.
84901         (main): Avoid literal -0.0f.
84902         * tests/test-ceill.c (zero): New variable.
84903         (main): Avoid literal -0.0L.
84904         * tests/test-floorf1.c (zero): New variable.
84905         (main): Avoid literal -0.0f.
84906         * tests/test-floorl.c (zero): New variable.
84907         (main): Avoid literal -0.0L.
84908         * tests/test-roundf1.c (zero): New variable.
84909         (main): Avoid literal -0.0f.
84910         * tests/test-round1.c (zero): New variable.
84911         (main): Avoid literal -0.0.
84912         * tests/test-roundl.c (zero): New variable.
84913         (main): Avoid literal -0.0L.
84914         * tests/test-truncf1.c (zero): New variable.
84915         (main): Avoid literal -0.0f.
84916         * tests/test-trunc1.c (zero): New variable.
84917         (main): Avoid literal -0.0.
84918         * tests/test-truncl.c (zero): New variable.
84919         (main): Avoid literal -0.0L.
84920         * tests/test-frexp.c (zero): New variable.
84921         (main): Avoid literal -0.0.
84922         * tests/test-frexpl.c (zero): New variable.
84923         (main): Avoid literal -0.0L.
84924         * tests/test-ldexpl.c (zero): New variable.
84925         (main): Avoid literal -0.0L.
84926         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
84927         (zerod, zerol): New variables.
84928         (test_function): Avoid literals -0.0, -0.0L.
84929         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
84930         (zerod, zerol): New variables.
84931         (test_function): Avoid literals -0.0, -0.0L.
84932         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
84933         (zerod, zerol): New variables.
84934         (test_function): Avoid literals -0.0, -0.0L.
84935         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
84936         (zerod, zerol): New variables.
84937         (test_function): Avoid literals -0.0, -0.0L.
84938         * tests/test-strtod.c (zero): New variable.
84939         (main): Avoid literal -0.0.
84940         Reported by Jonathan C. Patschke <jp@centtech.com>.
84942 2008-07-31  Jim Meyering  <meyering@redhat.com>
84944         sha256.h: correct definition of SHA224_DIGEST_SIZE
84945         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
84946         Reported by Paulie Pena IV <paulie4@gmail.com>.
84947         Define as 224 / 8, rather than as a literal.
84948         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
84949         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
84950         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
84952 2008-07-31  Bruno Haible  <bruno@clisp.org>
84954         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
84955         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
84956         Reported by Jonathan Patschke <jp@centtech.com>.
84958 2008-07-31  Bruno Haible  <bruno@clisp.org>
84960         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
84961         Reported by Paolo Bonzini <bonzini@gnu.org>.
84963 2008-07-30  Eric Blake  <ebb9@byu.net>
84965         test-strtod: allow compilation without -lm
84966         * tests/test-strtod.c (main): Avoid link dependence on fabs.
84967         Reported by Dennis Clarke <blastwave@gmail.com>.
84969 2008-07-28  Jim Meyering  <meyering@redhat.com>
84971         bootstrap: work also when there are no .po files in po/
84972         * build-aux/bootstrap (update_po_files): Complete the change
84973         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
84975 2008-07-27  Jim Meyering  <meyering@redhat.com>
84977         * users.txt: Add zile.
84979 2008-07-26  Ben Pfaff  <blp@gnu.org>
84981         Add missing dependencies on new m4/exponent[fdl].m4 files.
84982         * modules/isnanf-nolibm: Add m4/exponentf.m4.
84983         * modules/isnand-nolibm: Add m4/exponentd.m4.
84984         * modules/isnanl-nolibm: Add m4/exponentl.m4.
84985         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
84986         m4/isnan[fdl].m4, because the macros actually used moved.
84987         Reported by Jim Meyering.
84989 2008-07-14  Ben Pfaff  <blp@gnu.org>
84991         Add isinf module.
84992         * lib/isinf.c: New file.
84993         * lib/math.in.h: Define isinf macro if we have decided to replace
84994         it.
84995         * m4/isinf.m4: New file.
84996         * m4/math_h.m4: Initialize and substitute variables for isinf
84997         module.
84998         * modules/isinf: New file.
84999         * modules/isinf-tests: New file.
85000         * modules/math: Add substitutions for new module.
85001         * tests/test-isinf.c: New file.
85002         * doc/posix-functions/isinf.texi: Mention new module.
85003         * MODULES.html.sh: Mention new module.
85005 2008-07-14  Ben Pfaff  <blp@gnu.org>
85007         Factor out some macros for use by additional modules.
85008         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
85009         exponentf.m4.
85010         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
85011         exponentd.m4.
85012         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
85013         file exponentl.m4.
85014         * m4/exponentf.m4: New file.
85015         * m4/exponentd.m4: New file.
85016         * m4/exponentl.m4: New file.
85017         * modules/isnanf: Use new file m4/exponentf.m4.
85018         * modules/isnand: Use new file m4/exponentd.m4.
85019         * modules/isnanl: Use new file m4/exponentl.m4.
85021 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
85023         mktime.c: normalize tp->tm_isdst value to -1/0/1.
85024         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
85025         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
85026         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
85028         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
85029         readlink on platforms without PATH_MAX.
85031 2008-07-21  Eric Blake  <ebb9@byu.net>
85033         Warn, not fail, on stale version.
85034         * top/GNUmakefile (_curr-ver): Tone down previous patch.
85036         Don't allow installation with stale devel version number.
85037         * top/GNUmakefile (_is-install-target): New macro.
85038         (_curr-ver): Forbid installation with stale version number.
85040 2008-07-20  Bruno Haible  <bruno@clisp.org>
85042         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
85043         TESTS_ENVIRONMENT.
85044         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
85046 2008-07-20  Bruno Haible  <bruno@clisp.org>
85048         * lib/c-stack.h (c_stack_action): Add documentation.
85049         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
85051 2008-07-20  Bruno Haible  <bruno@clisp.org>
85053         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
85054         * modules/readlink (License): Likewise.
85056 2008-07-17  Eric Blake  <ebb9@byu.net>
85058         * modules/c-stack (Link): Fix typo.
85060         Make c-stack use libsigsegv, when available.
85061         * modules/c-stack (Depends-on): Add libsigsegv.
85062         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
85063         needed.
85064         * lib/c-stack.c (SIGSTKSZ): Define fallback.
85065         (segv_handler, overflow_handler, c_stack_action)
85066         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
85067         implementation when libsigsegv is available, but only when using
85068         the library is necessary.
85069         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
85070         comment, explaining why XSI check fails on Linux.
85071         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
85072         * tests/test-c-stack2.sh: Tweak skip message.
85073         * NEWS: Document new link-time requirements.
85075 2008-07-16  Eric Blake  <ebb9@byu.net>
85077         c-stack: Expose false positives when not using libsigsegv.
85078         * modules/c-stack-tests (Files): Expand test.
85079         * tests/test-c-stack.c (main): Add means to conditionally trigger
85080         non-overflow SIGSEGV.
85081         * tests/test-c-stack2.sh: New file.
85083 2008-07-14  Bruno Haible  <bruno@clisp.org>
85085         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
85086         Reported by Eric Blake.
85088 2008-07-14  Sam Steingold  <sds@gnu.org>
85089             Bruno Haible  <bruno@clisp.org>
85091         New module libsigsegv.
85092         * modules/libsigsegv: New file.
85093         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
85094         modifications.
85095         * MODULES.html.sh (Signal handling): New section.
85097 2008-07-14  Bruno Haible  <bruno@clisp.org>
85099         * modules/unictype/ctype-* (Description): Add the word "function".
85100         Improves the resulting doc in MODULES.html.
85102 2008-07-12  Ben Pfaff  <blp@gnu.org>
85104         Add longlong module.
85105         * modules/longlong: New file.
85107 2008-07-12  Bruno Haible  <bruno@clisp.org>
85109         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
85110         to empty.
85112 2008-07-10  Ben Pfaff  <blp@gnu.org>
85114         Add isnan module.
85115         * doc/posix-functions/isnan.texi: Mention new module.
85116         * lib/math.in.h: Define isnan macro if we have decided to replace
85117         it.
85118         * m4/isnan.m4: New file.
85119         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
85120         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
85121         also.
85122         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
85123         redundancy.
85124         * m4/math_h.m4: Initialize and substitute variables for isnan
85125         module.
85126         * modules/isnan: New file.
85127         * modules/isnan-tests: New file.
85128         * modules/math: Add substitutions for new module.
85129         * tests/test-isnan.c: New file.
85130         * MODULES.html.sh: Mention new module.
85132 2008-07-10  Ben Pfaff  <blp@gnu.org>
85134         Add isnanf module.
85135         * lib/isnanf.m4: New file.
85136         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
85137         (gl_HAVE_ISNANF_IN_LIBM): New macro.
85138         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
85139         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
85140         * modules/isnanf: New file.
85141         * modules/isnanf-tests: New file.
85142         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
85143         files.
85144         * tests/test-isnanf-nolibm.c: factored most of its contents into
85145         new file tests/test-isnanf.h.
85146         * tests/test-isnanf.h: New file.
85147         * tests/test-isnanf.c: New file.
85148         * MODULES.html.sh: Mention new module.
85149         * doc/glibc-functions/isnanf.texi: Mention new module.
85151 2008-07-10  Ben Pfaff  <blp@gnu.org>
85153         Add isnand module.
85154         * lib/isnand.h: New file.
85155         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
85156         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
85157         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
85158         functionality also.
85159         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
85160         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
85161         (gl_HAVE_ISNAND_IN_LIBM): New macro.
85162         * modules/isnand: New file.
85163         * modules/isnand-tests: New file.
85164         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
85165         files.
85166         * tests/test-isnand-nolibm.c: factored most of its contents into
85167         new file tests/test-isnand.h.
85168         * tests/test-isnand.h: New file.
85169         * tests/test-isnand.c: New file.
85170         * MODULES.html.sh: Mention new module.
85172 2008-07-10  Ben Pfaff  <blp@gnu.org>
85174         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
85175         * lib/isnand.h: Rename lib/isnand-nolibm.h.
85176         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
85177         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
85178         * modules/isnanf-nolibm: Update references to renamed files.
85179         * modules/isnand-nolibm: Likewise.
85180         * modules/isnanf-nolibm-tests: Likewise.
85181         * modules/isnand-nolibm-tests: Likewise.
85182         * lib/frexp.c: Likewise.
85183         * lib/isfinite.c: Likewise.
85184         * lib/signbitd.c: Likewise.
85185         * lib/signbitf.c: Likewise.
85186         * lib/vasnprintf.c: Likewise.
85187         * tests/test-ceilf1.c: Likewise.
85188         * tests/test-ceilf2.c: Likewise.
85189         * tests/test-floorf1.c: Likewise.
85190         * tests/test-floorf2.c: Likewise.
85191         * tests/test-frexp.c: Likewise.
85192         * tests/test-round1.c: Likewise.
85193         * tests/test-round2.c: Likewise.
85194         * tests/test-roundf1.c: Likewise.
85195         * tests/test-strtod.c: Likewise.
85196         * tests/test-trunc1.c: Likewise.
85197         * tests/test-trunc2.c: Likewise.
85198         * tests/test-truncf1.c: Likewise.
85199         * tests/test-truncf2.c: Likewise.
85200         * NEWS: Mention the renamed header files.
85202 2008-07-11  Jim Meyering  <meyering@redhat.com>
85204         vc-list-files: make the last-resort awk code more portable
85205         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
85206         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
85207         does not support it.
85209 2008-07-10  Eric Blake  <ebb9@byu.net>
85211         Work with tar's bootstrap.
85212         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
85213         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
85214         an m4 comment.
85216 2008-07-09  Jim Meyering  <meyering@redhat.com>
85218         posix-shell.m4: fix typo that made this test malfunction
85219         * m4/posix-shell.m4: Remove capitalization in variable name.
85221 2008-07-08  Bruno Haible  <bruno@clisp.org>
85223         * m4/onceonly.m4: Update comments.
85224         Reported by Ben Pfaff <blp@cs.stanford.edu>.
85226 2008-07-04  Jim Meyering  <meyering@redhat.com>
85228         * users.txt: Add vc-dwim.
85229         (bison, coreutils): Use the gitweb URL.
85231 2008-07-03  Jim Meyering  <meyering@redhat.com>
85233         * users.txt: Add libffcall.  From Sam Steingold.
85235 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
85237         getdate.y: do not ignore TZ with relative day, month or year offset
85238         * lib/getdate.y (get_date): Move the tz-handling block to follow the
85239         relative-date-handling, since otherwise, the latter would clobber the
85240         sole output (an updated Start value) of the tz-handling block.
85241         * tests/test-getdate.c: Tests for the fix
85243 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85245         Recognize 'foo_LIBRARIES += libgnu.a'.
85246         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
85247         makefile snippet has already specified an installation location,
85248         also using '+='.
85250 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
85252         getdate.y: factor out common actions
85253         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
85254         Use them in place of open-coded actions.
85256 2008-07-01  Simon Josefsson  <simon@josefsson.org>
85258         Add self-test for getdate module.
85259         * modules/getdate-tests: New file.
85260         * tests/test-getdate.c: New file.
85262 2008-06-29  Bruno Haible  <bruno@clisp.org>
85264         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
85265         .gitignore.
85266         Reported by Sylvain Beucler <beuc@beuc.net>.
85268 2008-06-29  Bruno Haible  <bruno@clisp.org>
85270         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
85271         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
85273 2008-06-29  Bruno Haible  <bruno@clisp.org>
85275         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
85276         EXTRA_DIST.
85277         Reported by Sylvain Beucler <beuc@beuc.net>.
85279 2008-06-26  Jim Meyering  <meyering@redhat.com>
85281         make several modules depend on the "open" module
85282         This provides slightly increased consistency when opening-for-write
85283         the name of a non-directory spelled with a trailing slash.
85284         * modules/chdir-safer: Likewise.
85285         * modules/chown: Likewise.
85286         * modules/clean-temp: Likewise.
85287         * modules/copy-file: Likewise.
85288         * modules/fchdir: Likewise.
85289         * modules/fcntl-safer: Likewise.
85290         * modules/pipe: Likewise.
85291         * modules/utime: Likewise.
85292         Prompted by Eric Blake and Bruno Haible.
85294 2008-06-24  Andreas Schwab  <schwab@suse.de>
85296         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
85297         literals can be used as initializers for global variables.
85299 2008-06-23  Eric Blake  <ebb9@byu.net>
85301         Make gnulib-cache.m4 easier to diff.
85302         * gnulib-tool (func_import): Allow newlines when reading cached
85303         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
85305 2008-06-23  Bruno Haible  <bruno@clisp.org>
85307         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
85308         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
85309         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
85310         m4/signalblocking.m4.
85311         (gl_PREREQ_SIGACTION): Don't invoke it.
85312         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
85313         gl_PREREQ_SIG_HANDLER_H.
85314         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
85315         Don't check for sigaction here.
85317 2008-06-23  Bruno Haible  <bruno@clisp.org>
85319         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
85320         (install_handlers): Don't set the SA_RESETHAND flag.
85322 2008-06-23  Bruno Haible  <bruno@clisp.org>
85324         * m4/sigaction.m4: Comment fixes.
85325         * lib/signal.in.h: Likewise.
85327 2008-06-23  Eric Blake  <ebb9@byu.net>
85329         Fix typo.
85330         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
85332         Avoid SA_ namespace.
85333         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
85334         Reported by Ralf Wildenhues.
85336         Avoid test failure due to SA_RESTORER.
85337         * tests/test-sigaction.c (SA_MASK): New macro.
85338         (main): Avoid failing due to extension flags being set.
85339         Reported by Jim Meyering.
85341         Revert use of sig-handler.h in sigprocmask.c.
85342         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
85343         it requires the existence of struct sigaction.
85344         * lib/sigprocmask.c (handler_t): Restore typedef.
85345         (rpl_signal, old_handlers): Use local type.
85347 2008-06-22  Bruno Haible  <bruno@clisp.org>
85349         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
85350         conditionally.
85351         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
85353 2008-06-22  Bruno Haible  <bruno@clisp.org>
85355         * doc/posix-functions/siginterrupt.texi: Move note.
85357         * lib/signal.in.h (SA_RESTART): New macro.
85358         * lib/sigaction.c: Update comment.
85360         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
85362         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
85363         (gl_PREREQ_SIGPROCMASK): Invoke it.
85364         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
85366         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
85368         * lib/sigprocmask.c: Update a comment.
85370 2008-06-21  Eric Blake  <ebb9@byu.net>
85372         Use sigaction module rather than signal().
85373         * modules/c-stack (Depends-on): Add sigaction.
85374         * modules/fatal-signal (Depends-on): Likewise.
85375         * modules/nanosleep (Depends-on): Likewise.
85376         * modules/sigprocmask (Files): Add sig-handler.h.
85377         * modules/sigaction (Files): Likewise.
85378         * lib/sig-handler.h (get_handler): New file, suggested by Paul
85379         Eggert.
85380         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
85381         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
85382         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
85383         (init_fatal_signals): Likewise.
85384         * lib/nanosleep.c (rpl_nanosleep): Likewise.
85385         (siginterrupt): Delete fallback.
85386         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
85387         instead.
85388         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
85389         siginterrupt.
85391         New module sigaction, for mingw.
85392         * modules/sigaction: New module...
85393         * modules/sigaction-tests: ...and its test.
85394         * m4/sigaction.m4: New file.
85395         * lib/sigaction.c: Likewise.
85396         * tests/test-sigaction.c: Likewise.
85397         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
85398         * modules/signal (Makefile.am): Likewise.
85399         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
85400         needed.
85401         * doc/posix-headers/signal.texi (signal.h): Mention provided
85402         types.
85403         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
85404         that sigaction is preferable.
85405         * doc/posix-functions/sigaction.texi (sigaction): Mention new
85406         module.
85407         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85408         sigaction.
85410         Improve robustness of sigprocmask by overriding signal.
85411         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
85412         is in use.
85413         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
85414         (SIGKILL, SIGSTOP): Provide fallbacks.
85415         (rpl_signal): Implement.
85416         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
85417         signal can be called inside handlers.
85419         Fix nanosleep module on mingw.
85420         * modules/nanosleep (Depends-on): Add sys_select.
85421         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
85423         Fix licensing of sigprocmask.
85424         * modules/raise (License): Relicense as LGPL.
85426 2008-06-21  Bruno Haible  <bruno@clisp.org>
85428         * lib/propername.c (proper_name_utf8): Don't use the transliterated
85429         result if it contains question marks.
85430         Reported by Michael Geng <linux@michaelgeng.de>.
85432 2008-06-19  Bruno Haible  <bruno@clisp.org>
85434         Fix CVS-ism.
85435         * doc/gnulib.texi: Include updated-stamp.texi.
85436         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
85437         (updated-stamp.texi): New rule.
85438         (gnulib.info): Depend on it.
85439         * doc/.gitignore: Add updated-stamp.texi.
85440         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
85442 2008-06-19  Bruno Haible  <bruno@clisp.org>
85444         * doc/Makefile (gnulib.info): Update and simplify dependencies.
85445         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
85447 2008-06-19  Eric Blake  <ebb9@byu.net>
85449         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
85450         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
85451         Reported by Stepan Kasal.
85453 2008-06-18  Bruno Haible  <bruno@clisp.org>
85455         * lib/fatal-signal.c (init_fatal_signals): Add comment.
85456         Reported by Eric Blake.
85458 2008-06-18  Eric Blake  <ebb9@byu.net>
85460         Work around cygwin 1.5.25 strsignal bug.
85461         * tests/test-strsignal.c: Allow for const char *.
85462         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
85464 2008-06-18  Simon Josefsson  <simon@josefsson.org>
85466         * users.txt: Update URL to article and add author/date
85467         information.
85469 2008-06-17  Bruno Haible  <bruno@clisp.org>
85471         New macro gl_DISABLE_THREADS.
85472         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
85473         if the user did not pass --enable-threads or --disable-threads option.
85474         (gl_DISABLE_THREADS): New macro.
85475         Reported by Eric Blake <ebb9@byu.net>.
85477 2008-06-17  Bruno Haible  <bruno@clisp.org>
85479         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
85480         when the macro ignores it.
85481         Based on a patch by Eric Blake <ebb9@byu.net>.
85483 2008-06-17  Bruno Haible  <bruno@clisp.org>
85485         * modules/tls (License): Change to LGPLv2+.
85486         Reported by Eric Blake.
85488 2008-06-17  Eric Blake  <ebb9@byu.net>
85490         Simplify c-stack prerequisites.
85491         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
85492         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
85493         no longer requires <ucontext.h> to exist.  Optimize setrlimit
85494         check.
85495         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
85496         <sys/resource.h>.
85498         Move c-stack test into testsuite.
85499         * modules/c-stack-tests: New file.
85500         * lib/c-stack.c [DEBUG]: Move test program...
85501         * tests/test-c-stack.c: ...into this new file.  Skip rather than
85502         fail test if sigaltstack is lacking.
85503         * tests/test-c-stack.sh: New driver file.
85505 2008-06-16  Eric Blake  <ebb9@byu.net>
85507         Use raise module consistently.
85508         * modules/fatal-signal (Depends-on): Add raise.
85509         * modules/sigprocmask (Depends-on): Likewise.
85510         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
85511         * lib/sigprocmask.c (sigprocmask): Likewise.
85512         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
85513         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
85515         Fix compliance bug in sigpending.
85516         * lib/sigprocmask.c (sigpending): Return pending array via
85517         parameter, not return value.
85519 2008-06-14  Eric Blake  <ebb9@byu.net>
85521         Improve obstack-printf test code.
85522         * tests/test-obstack-printf.c (test_function): Fix comment, and
85523         simplify usage of obstack_* in macros.  Add a test for coverage.
85524         Reported by Bruno Haible.
85526 2008-06-14  Bruno Haible  <bruno@clisp.org>
85528         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
85529         array size as a constant, not as a const variable.
85530         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
85531         AC_USE_SYSTEM_EXTENSIONS.
85532         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
85533         Test whether the obstack_printf function actually exists.
85534         * modules/obstack-printf (Depends-on): Add extensions.
85535         (Include): Remove obstack.h.
85536         * modules/obstack-printf-posix (Depends-on): Add extensions.
85537         (Include): Remove obstack.h.
85539 2008-06-13  Eric Blake  <ebb9@byu.net>
85541         Add obstack-printf and obstack-printf-posix modules.
85542         * modules/obstack-printf: New file.
85543         * modules/obstack-printf-posix: Likewise.
85544         * MODULES.html.sh (Misc): Mention them.
85545         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
85546         Likewise.
85547         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
85548         Likewise.
85549         * modules/stdio (Makefile.am): Accomodate new modules.
85550         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
85551         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
85552         Declare.
85553         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
85554         functions.
85555         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
85556         (gl_REPLACE_OBSTACK_PRINTF): New macros
85557         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
85558         * tests/test-obstack-printf.c: New file.
85559         * modules/obstack-printf-tests: Likewise.
85560         * modules/obstack-printf-posix-tests: Likewise.
85562 2008-06-11  Bruno Haible  <bruno@clisp.org>
85564         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
85565         * lib/open.c: Include errno.h.
85566         (open): Fail when attempting to write to a file that has a trailing
85567         slash.
85568         * tests/test-open.c (main): Test against trailing slash bug.
85569         * doc/posix-functions/open.texi: Mention the trailing slash bug.
85571 2008-06-10  Bruno Haible  <bruno@clisp.org>
85573         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
85574         for $? to work inside the trap command, with various /bin/sh-s.
85575         * tests/test-vc-list-files-cvs.sh: Likewise.
85577 2008-06-10  Bruno Haible  <bruno@clisp.org>
85579         * lib/acl-internal.h: Don't include gettext.h here.
85580         * lib/set-mode-acl.c: Include gettext.h here.
85581         * lib/copy-acl.c: Likewise.
85583 2008-06-10  Bruno Haible  <bruno@clisp.org>
85585         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
85586         * lib/wait-process.c (wait_subprocess): Likewise.
85587         * lib/execute.h (execute): Add termsigp argument.
85588         * lib/execute.c (execute): Likewise.
85589         * lib/csharpcomp.c (compile_csharp_using_pnet,
85590         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
85591         * lib/csharpexec.c (execute_csharp_using_pnet,
85592         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
85593         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
85594         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
85595         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
85596         is_jikes_present): Update.
85597         * lib/javaexec.c (execute_java_class): Update.
85598         * lib/javaversion.c (execute_and_read_line): Update.
85599         * NEWS: Document the changes.
85600         Reported by Eric Blake.
85602 2008-06-10  Eric Blake  <ebb9@byu.net>
85604         Add missing include.
85605         * tests/test-strstr.c (includes): Add <signal.h>.
85606         * tests/test-strcasestr.c (includes): Likewise.
85607         * tests/test-memmem.c (includes): Likewise.
85609 2008-06-10  Bruno Haible  <bruno@clisp.org>
85611         * lib/wait-process.c (wait_subprocess): Add an assertion.
85613 2008-06-10  Bruno Haible  <bruno@clisp.org>
85615         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
85617 2008-06-10  Bruno Haible  <bruno@clisp.org>
85619         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
85620         using alarm().
85621         * tests/test-strcasestr.c (main): Likewise.
85622         * tests/test-strstr.c (main): Likewise.
85624 2008-06-09  Bruno Haible  <bruno@clisp.org>
85626         Work around the Solaris 10 ACE ACLs ABI change.
85627         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
85628         declare if ACL_NO_TRIVIAL is present.
85629         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
85630         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
85631         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
85632         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
85633         define if ACL_NO_TRIVIAL is present.
85634         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
85635         and use the current ABI.
85636         (file_has_acl): Use same #if condition as elsewhere.
85637         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
85638         in use, and use the current ABI.
85639         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
85640         Reported by Jim Meyering.
85642 2008-06-09  Eric Blake  <ebb9@byu.net>
85644         Work around environments that (stupidly) ignore SIGALRM.
85645         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
85646         before using alarm().
85647         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
85648         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
85649         Reported by Ian Beckwith <ianb@erislabs.net>.
85651         Produce autobuild blurb earlier in log.
85652         * modules/autobuild (configure.ac-early): Move AB_INIT here.
85654 2008-06-09  Jim Meyering  <meyering@redhat.com>
85655         and Ondřej Vašík  <ovasik@redhat.com>
85657         utimens.c: correct kernel bug work-around
85658         Ondřej Vašík found that the invalid return value of 280 indicates
85659         failure, not success, and the kernel bug we're trying to work
85660         around affects not just the utimensat call, but also the fallback
85661         futimens call.
85662         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
85663         not success.
85664         [HAVE_FUTIMENS]: Use the same work-around, here.
85666 2008-06-09  Jim Meyering  <meyering@redhat.com>
85668         add more guards around definition of ACE_-related code
85669         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
85670         ALLOW and ACE_OWNER are also defined.
85672 2008-06-08  Bruno Haible  <bruno@clisp.org>
85674         * lib/acl-internal.h: Add me as co-author.
85675         * lib/file-has-acl.c: Likewise.
85676         * lib/set-mode-acl.c: Likewise.
85677         * lib/copy-acl.c: Likewise.
85679 2008-06-08  Bruno Haible  <bruno@clisp.org>
85681         Add support for AIX ACLs.
85682         * lib/acl-internal.h (acl_nontrivial): New declaration.
85683         * lib/file-has-acl.c (acl_nontrivial): New function.
85684         (file_has_acl): Add implementation using AIX 4 ACL API.
85685         * lib/set-mode-acl.c (qset_acl): Likewise.
85686         * lib/copy-acl.c (qcopy_acl): Likewise.
85688 2008-06-08  Bruno Haible  <bruno@clisp.org>
85690         Add support for HP-UX ACLs.
85691         * lib/acl-internal.h (acl_nontrivial): New declaration.
85692         * lib/file-has-acl.c (acl_nontrivial): New function.
85693         (file_has_acl): Add implementation using HP-UX 11 ACL API.
85694         * lib/set-mode-acl.c (qset_acl): Likewise.
85695         * lib/copy-acl.c (qcopy_acl): Likewise.
85697 2008-06-08  Bruno Haible  <bruno@clisp.org>
85699         Add support for Cygwin ACLs.
85700         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
85701         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
85702         the chmod_or_fchmod call.
85703         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
85705 2008-06-08  Bruno Haible  <bruno@clisp.org>
85707         Fix bug with setuid modes in Solaris 10+ code.
85708         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
85709         succeeded, when the mode contains some special bits.
85711 2008-06-08  Bruno Haible  <bruno@clisp.org>
85713         Add support for Solaris 7..10 ACLs.
85714         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
85715         declarations.
85716         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
85717         functions.
85718         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
85719         * lib/set-mode-acl.c (qset_acl): Likewise.
85720         * lib/copy-acl.c (qcopy_acl): Likewise.
85722 2008-06-08  Bruno Haible  <bruno@clisp.org>
85724         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
85725         declaration.
85726         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
85727         (acl_access_nontrivial): Remove MacOS X case.
85728         (file_has_acl): Use acl_extended_nontrivial.
85729         * lib/copy-acl.c (qcopy_acl): Likewise.
85731 2008-06-08  Bruno Haible  <bruno@clisp.org>
85733         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
85735 2008-06-08  Jim Meyering  <meyering@redhat.com>
85737         * modules/acl (Maintainer): Add Bruno Haible.
85739 2008-06-07  Bruno Haible  <bruno@clisp.org>
85741         Improve support for Tru64 ACLs.
85742         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
85743         ACL on OSF/1.
85745 2008-06-07  Bruno Haible  <bruno@clisp.org>
85747         Add support for MacOS X ACLs.
85748         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
85749         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
85750         * lib/set-mode-acl.c (qset_acl): Likewise.
85751         * lib/copy-acl.c (qcopy_acl): Likewise.
85753 2008-06-07  Bruno Haible  <bruno@clisp.org>
85755         Fix memory leak introduced on 2008-05-22.
85756         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
85757         use.
85759 2008-06-07  Bruno Haible  <bruno@clisp.org>
85761         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
85762         to construct an empty ACL.
85764 2008-06-07  Bruno Haible  <bruno@clisp.org>
85766         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
85767         precisely.
85768         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
85770 2008-06-07  Bruno Haible  <bruno@clisp.org>
85772         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
85773         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
85775 2008-06-07  Bruno Haible  <bruno@clisp.org>
85777         * doc/posix-functions/_setjmp.texi: Explain the use of this function
85778         regardless of POSIX.
85779         * doc/posix-functions/_longjmp.texi: Likewise.
85780         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
85781         SystemV platform in this case.
85783 2008-06-06  Eric Blake  <ebb9@byu.net>
85785         Document abort() bugs.
85786         * doc/posix-functions/abort.texi (abort): Mention anomalies.
85788         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
85789         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
85790         sigsetjmp.
85791         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
85792         siglongjmp, but only as a macro.
85793         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
85794         is obsolete.
85795         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
85797         Tweak documentation to cover cygwin argz bugs.
85798         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
85799         argz bug fix; no code change needed since no cygwin releases
85800         occurred between the last fix and the bug being tested.
85801         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
85802         module and recently fixed cygwin bugs.
85803         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
85804         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
85805         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
85806         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
85807         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
85808         Likewise.
85809         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
85810         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
85811         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
85812         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
85813         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
85814         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
85815         Likewise.
85817         Avoid gcc warning on cygwin.
85818         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
85819         !ACL_NO_TRIVIAL]: Avoid unused variable.
85821 2008-06-05  Eric Blake  <ebb9@byu.net>
85823         Be tolerant of UNKNOWN version in gnulib-tool test dir.
85824         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
85825         git-version-gen fails to come up with a version.
85826         Reported by Simon Josefsson.
85828 2008-06-05  Jim Meyering  <meyering@redhat.com>
85829             Paul Eggert  <eggert@cs.ucla.edu>
85831         utimens.c: work around a probable Linux kernel bug
85832         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
85833         appears to be a kernel bug that causes utimensat to return 280
85834         instead of 0, indicating success.
85836 2008-06-04  Bruno Haible  <bruno@clisp.org>
85838         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
85839         2008-06-01 commit.
85841 2008-06-04  Bruno Haible  <bruno@clisp.org>
85843         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
85844         * lib/file-has-acl.c (acl_access_nontrivial): New function.
85845         (file_has_acl): Use it. Save errno afterwards.
85846         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
85848 2008-06-03  Bruno Haible  <bruno@clisp.org>
85850         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
85851         draft code. Simplify #ifs.
85852         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
85853         Put Solaris code after POSIX-draft code. Fix comments regarding
85854         Solaris 10, HP-UX. Mention Cygwin.
85855         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
85857 2008-06-03  Eric Blake  <ebb9@byu.net>
85859         Provide fallback for older kernels.
85860         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
85861         Provide runtime fallback if kernel lacks support.
85862         Reported by Mike Frysinger.
85864 2008-06-02  Bruno Haible  <bruno@clisp.org>
85866         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
85867         it exists.
85869 2008-06-02  Bruno Haible  <bruno@clisp.org>
85871         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
85872         * lib/copy-acl.c (qcopy_acl): Update comment.
85874 2008-06-02  Bruno Haible  <bruno@clisp.org>
85876         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
85877         like ACL APIs.
85879 2008-06-02  Bruno Haible  <bruno@clisp.org>
85881         * tests/test-file-has-acl.sh: Use different code for Cygwin.
85882         * tests/test-set-mode-acl.sh: Likewise.
85883         * tests/test-copy-acl.sh: Likewise.
85884         * tests/test-copy-file.sh: Likewise.
85886 2008-06-02  Bruno Haible  <bruno@clisp.org>
85888         * tests/test-file-has-acl.sh: Remove unused code.
85890 2008-06-01  Bruno Haible  <bruno@clisp.org>
85892         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
85893         (copy_acl): Just a wrapper around qcopy_acl that emits the error
85894         messages.
85895         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
85897 2008-06-01  Bruno Haible  <bruno@clisp.org>
85899         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
85900         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
85901         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
85902         APIs.
85903         * modules/acl-tests (configure.ac): Remove tests now contained in
85904         m4/acl.m4.
85906 2008-06-02  Jim Meyering  <meyering@redhat.com>
85908         announce-gen: use a better key-server host name
85909         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
85910         it may be more consistently reliable.  Suggested by Werner Koch
85911         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
85913 2008-06-01  Bruno Haible  <bruno@clisp.org>
85915         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
85916         Reported by Voroskoi Andras <voroskoi@gmail.com>.
85918 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
85920         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
85922 2008-06-01  Bruno Haible  <bruno@clisp.org>
85924         New ACL tests.
85925         * tests/test-file-has-acl.sh: New file.
85926         * tests/test-file-has-acl.c: New file.
85927         * tests/test-set-mode-acl.sh: New file.
85928         * tests/test-set-mode-acl.c: New file.
85929         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
85930         * tests/test-copy-acl.c: New file.
85931         * modules/acl-tests: New file, based on modules/copy-file-tests.
85932         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
85933         (Depends-on): Add acl-tests.
85934         (configure.ac): Remove checks.
85935         (Makefile.am): Don't create test-sameacls program here any more.
85937 2008-06-01  Bruno Haible  <bruno@clisp.org>
85939         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
85940         * tests/test-sameacls.c: Include progname.h.
85941         (main): Invoke set_program_name. Portability fixes for MacOS X,
85942         Solaris, HP-UX.
85944 2008-06-01  Bruno Haible  <bruno@clisp.org>
85946         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
85947         function.
85948         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
85950 2008-06-01  Bruno Haible  <bruno@clisp.org>
85952         * modules/rpmatch (Depends-on): Add strdup.
85954 2008-06-01  Bruno Haible  <bruno@clisp.org>
85956         * lib/pipe.c: Include unistd-safer.h.
85957         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
85958         * modules/pipe (Depends-on): Add unistd-safer.
85960 2008-05-30  Simon Josefsson  <simon@josefsson.org>
85962         * modules/autobuild (configure.ac): Call AB_INIT.
85964 2008-05-30  Simon Josefsson  <simon@josefsson.org>
85966         * tests/test-getaddrinfo.c: Don't print debug messages by default.
85967         Suggested by Bruno Haible <bruno@clisp.org>.
85969 2008-05-30  Simon Josefsson  <simon@josefsson.org>
85971         * tests/test-base64.c: Cast size_t to unsigned long when invoking
85972         printf.  Use %lu instead of %d.  Reported by Bruno Haible
85973         <bruno@clisp.org>.
85975 2008-05-29  Eric Blake  <ebb9@byu.net>
85977         Prefer new POSIX 200x interfaces over futimesat.
85978         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
85979         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
85980         when available.
85981         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
85983 2008-05-28  Bruno Haible  <bruno@clisp.org>
85985         * modules/stpcpy (License): Change to LGPLv2+.
85986         Requested by David Lutterkort <dlutter@redhat.com>.
85988 2008-05-27  Bruno Haible  <bruno@clisp.org>
85990         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
85991         current mingw.
85992         Reported by Jose E. Marchesi <jemarch@gnu.org>.
85994 2008-05-27  Bruno Haible  <bruno@clisp.org>
85996         * modules/iconv_open (Link): New section, from module 'iconv'.
85997         * modules/striconv (Link): Likewise.
85998         * modules/striconveh (Link): Likewise.
85999         * modules/xstriconv (Link): Likewise.
86000         * modules/unicodeio (Link): Likewise.
86001         * modules/propername (Link): Likewise.
86002         Reported by Jim Meyering.
86004 2008-05-26  Jim Meyering  <meyering@redhat.com>
86006         sha256: do not artificially restrict buffer length to be < 2^32
86007         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
86008         uint32_t to size_t.
86009         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
86010         to match.
86012         avoid unaligned access errors, e.g., on sparc
86013         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
86014         direct access through a possibly-unaligned uint64* pointer.
86015         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
86016         direct access through a possibly-unaligned uint32* pointer.
86017         Prompted by this patch from Tom "spot" Callaway:
86018         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
86020         sha512.c: fix typo in comment
86021         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
86023 2008-05-25  Bruno Haible  <bruno@clisp.org>
86025         * lib/set-mode-acl.c: Renamed from lib/acl.c.
86026         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
86027         (Makefile.am): Update lib_SOURCES.
86029 2008-05-25  Bruno Haible  <bruno@clisp.org>
86031         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
86033 2008-05-25  Jim Meyering  <meyering@redhat.com>
86035         useless-if-before-free: freed expr may have white-space differences
86036         * build-aux/useless-if-before-free: Recognize cases in which the
86037         freed expression differs from the tested one in embedded white
86038         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
86039         $1 was used, so we can't make any regexp shy.  Improved tests now
86040         detect this.
86042         useless-if-before-free: accept white space in the expression.
86043         * build-aux/useless-if-before-free: For now, any white space
86044         in the expression must be identical in the free argument.
86046         useless-if-before-free: efficiency tweak
86047         * build-aux/useless-if-before-free: Make the expression-matching
86048         regexp "shy".
86049         Make the *outer* regexp shy, not the expr-matching one.
86051         update code-in-comment to accept cast of free arg
86052         * build-aux/useless-if-before-free: Update regexp.
86054 2008-05-25  Bruno Haible  <bruno@clisp.org>
86056         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
86057         * modules/copy-file-tests (Files, Makefile.am): Update.
86058         * tests/test-copy-file.c (func_test_copy): Update.
86060 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
86062         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
86064 2008-05-23  Bruno Haible  <bruno@clisp.org>
86066         Improve support for ACLs on OSF/1.
86067         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
86068         Remove fallback for unknown flavors of ACLs.
86070 2008-05-22  Bruno Haible  <bruno@clisp.org>
86072         Add support for ACLs on OSF/1.
86073         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
86074         replacements.
86075         (acl_free_text): New macro fallback.
86076         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
86077         acl_free.
86078         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
86079         acl_free_text function. Require AC_C_INLINE.
86081 2008-05-22  Bruno Haible  <bruno@clisp.org>
86083         Make copy_acl work on MacOS X 10.5.
86084         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
86085         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
86086         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
86087         If MODE_INSIDE_ACL, don't assume that every system has the same text
86088         representation for ACLs as FreeBSD.
86089         * lib/copy-acl.c (copy_acl): Add support for platforms with
86090         !MODE_INSIDE_ACL.
86091         * lib/file-has-acl.c (file_has_acl): Likewise.
86092         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
86093         FreeBSD, MacOS X, or IRIX, respectively.
86095 2008-05-22  Bruno Haible  <bruno@clisp.org>
86097         * lib/acl.h: Don't include <sys/acl.h>.
86098         (GETACLCNT): Move fallback to lib/acl-internal.h.
86099         * lib/acl-internal.h: Include <sys/acl.h> here.
86100         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
86102 2008-05-22  Bruno Haible  <bruno@clisp.org>
86104         Split off copy_acl function to separate file.
86105         * lib/copy-acl.c: New file, extracted from lib/acl.c.
86106         * lib/acl.c (copy_acl): Moved function to separate file.
86107         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
86108         * modules/acl (Files): Add lib/copy-acl.c.
86109         (Makefiles.am): Augment lib_SOURCES.
86111 2008-05-22  Bruno Haible  <bruno@clisp.org>
86113         * modules/copy-file-tests: New file.
86114         * tests/test-copy-file.sh: New file.
86115         * tests/test-copy-file.c: New file.
86116         * tests/test-copy-file-sameacls.c: New file.
86118 2008-05-22  Eric Blake  <ebb9@byu.net>
86120         Avoid gcc warning.
86121         * tests/test-memcmp.c (main): Pass NULL indirectly.
86123 2008-05-21  Bruno Haible  <bruno@clisp.org>
86125         Add reference doc about ACLs.
86126         * doc/acl-resources.txt: New file.
86127         * doc/acl-cygwin.txt: New file.
86129 2008-05-21  Bruno Haible  <bruno@clisp.org>
86131         Avoid one more warning from gcc.
86132         * lib/vasnprintf.c (IF_LINT): Update comments.
86133         (VASNPRINTF): Use it also for the 'prefix' array initializer.
86135 2008-05-21  Jim Meyering  <meyering@redhat.com>
86137         avoid a warning from gcc
86138         * lib/vasnprintf.c (IF_LINT): Define.
86139         (scale10_round_decimal_long_double):
86140         Use it to avoid a "may be used uninitialized" warning.
86141         (scale10_round_decimal_double): Likewise.
86143 2008-05-21  Simon Josefsson  <simon@josefsson.org>
86145         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
86146         declared.
86148 2008-05-20  Bruno Haible  <bruno@clisp.org>
86150         * tests/test-memcmp.c (main): Test also the sign of the result. Test
86151         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
86153 2008-05-20  Simon Josefsson  <simon@josefsson.org>
86155         * modules/memcmp-tests: New file.
86156         * tests/test-memcmp.c: New file.
86158 2008-05-19  Bruno Haible  <bruno@clisp.org>
86160         * modules/propername (Notice, configure.ac): Put quoted "..." into
86161         --keyword option.
86162         * lib/propername.h: Update comments accordingly.
86163         Reported by Eric Blake.
86165 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
86167         * modules/getpass-gnu (Depends-on): Add fseeko.
86169 2008-05-19  Simon Josefsson  <simon@josefsson.org>
86171         * modules/base64-tests: New file.
86173 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
86175         * lib/base64.c (base64_decode_ctx): If a decode context structure
86176         was passed in use it to ignore newlines.  If a context structure
86177         was _not_ passed in, continue to treat newlines as garbage (this
86178         is the historical behavior).  Formerly base64_decode.
86179         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
86180         takes a decode context structure.
86181         * lib/base64.h (base64_decode): Macro for four-argument calls.
86182         (base64_decode_alloc): Likewise.
86183         * lib/base64.c (base64_decode_ctx): If a decode context structure
86184         was passed in use it to ignore newlines.  If a context structure
86185         was _not_ passed in, continue to treat newlines as garbage (this
86186         is the historical behavior).  Formerly base64_decode.
86187         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
86188         takes a decode context structure.
86189         * lib/base64.h (base64_decode): Macro for four-argument calls.
86190         (base64_decode_alloc): Likewise.
86192 2008-05-19  Jim Meyering  <meyering@redhat.com>
86194         avoid a warning from gcc
86195         * lib/trim.c (IF_LINT): Define.
86196         (trim2): Use it to avoid a "may be used uninitialized" warning.
86198         Fix doc typo.
86199         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
86201 2008-05-19  Bruno Haible  <bruno@clisp.org>
86203         * doc/glibc-functions/getpass.texi: Document limits of other
86204         implementations.
86206 2008-05-19  Simon Josefsson  <simon@josefsson.org>
86207             Bruno Haible <bruno@clisp.org>
86209         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
86211 2008-05-18  Bruno Haible  <bruno@clisp.org>
86213         * modules/propername: New file, from GNU gettext.
86214         * lib/propername.h: New file, from GNU gettext.
86215         * lib/propername.c: New file, from GNU gettext.
86216         * MODULES.html.sh (Internationalization functions): Add propername.
86218 2008-05-16  Jim Meyering  <meyering@redhat.com>
86219             Bruno Haible  <bruno@clisp.org>
86221         Avoid some warnings from "gcc -Wshadow".
86222         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
86224 2008-05-15  Eric Blake  <ebb9@byu.net>
86226         Extend previous patch to cygwin 1.7.0.
86227         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
86228         fast implementation in cygwin >= 1.7.0.
86229         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
86230         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
86232 2008-05-15  Bruno Haible  <bruno@clisp.org>
86234         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
86235         implementation in glibc >= 2.9.
86236         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
86237         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
86239 2008-05-15  Bruno Haible  <bruno@clisp.org>
86241         * MODULES.html.sh (Internationalization functions): Remove linebreak.
86242         (Unicode string functions): Add unilbrk/*.
86243         Reported by Karl Berry.
86245 2008-05-15  Eric Blake  <ebb9@byu.net>
86247         Fix violation of <stdbool.h> replacement in regex.
86248         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
86249         * lib/regexec.c (re_search_internal): Likewise.
86250         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
86252 2008-05-15  Jim Meyering  <meyering@redhat.com>
86254         avoid distracting test output when git or cvs is not found
86255         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
86256         * tests/test-vc-list-files-git.sh: Likewise.
86258 2008-05-15  Eric Blake  <ebb9@byu.net>
86260         Glibc finally accepted the memmem speedup code, bugzilla #5514.
86261         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
86262         glibc version.
86263         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
86264         * doc/posix-functions/strstr.texi (strstr): Likewise.
86265         * lib/str-two-way.h (MAX): Sychronize with glibc.
86267 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
86269         * lib/regcomp.c (optimize_utf8): Add a note on why we test
86270         opr.ctx_type.
86271         (calc_first): Initialize constraint field.
86272         (duplicate_node_closure): Use it instead of special casing ANCHORS.
86273         Fix grammar.
86274         (duplicate_node): Merge constraint field for all node types.
86275         (calc_eclosure_iter): Look at constraint field for all node types.
86276         * lib/regex_internal.c (create_cd_newstate): Don't look at
86277         opr.ctx_type.
86279 2008-05-14  Bruno Haible  <bruno@clisp.org>
86281         Help GCC to do better code generation.
86282         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
86283         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
86284         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
86285         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
86286         Declare with attribute 'malloc' if supported.
86288 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
86290         use "echo STR|wc -c" rather than unportable "expr length STR"
86291         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
86292         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
86294 2008-05-14  Jim Meyering  <meyering@redhat.com>
86296         use dd ibs=$n count=1 ... rather than less-portable head -c$n
86297         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
86298         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
86299         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
86300         via Collin Lasse.
86302 2008-05-14  Eric Blake  <ebb9@byu.net>
86304         Avoid quadratic growth in gl_LIBSOURCES.
86305         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
86306         Suggested by Bruno Haible.
86308         Test xmemdup0.
86309         * modules/xmemdup0-tests: New file.
86310         * tests/test-xmemdup0.c: Likewise.
86312 2008-05-13  Eric Blake  <ebb9@byu.net>
86314         Split xmemdup0 into its own module.
86315         * modules/xmemdup0: New file.
86316         * lib/xmemdup0.h: Likewise.
86317         * lib/xmemdup0.c: Likewise.
86318         * MODULES.html.sh (Memory management functions): Add xmemdup0.
86319         * lib/xalloc.h (xmemdup0): Remove.
86320         * lib/xmalloc.c (xmemdup0): Likewise.
86322 2008-05-13  Eric Blake  <ebb9@byu.net>
86323             Bruno Haible  <bruno@clisp.org>
86325         Reduce number of forks required during autoconf.
86326         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
86327         and gl_LIBSOURCES_DIR.
86328         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
86329         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
86330         m4_syscmd per file.
86331         <m4_foreach_w>: Move...
86332         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
86334 2008-05-13  Eric Blake  <ebb9@byu.net>
86336         * gnulib-tool: Fix various comment typos.
86338 2008-05-12  Bruno Haible  <bruno@clisp.org>
86340         Tailor the linebreaking algorithm.
86341         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
86343 2008-05-12  Bruno Haible  <bruno@clisp.org>
86345         Update to Unicode 5.0.0.
86346         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
86347         LBP_JV, LBP_JT. Redistribute values.
86348         (unilbrk_table): Change size.
86349         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
86350         Unicode TR#14 rev. 22.
86351         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
86352         LBP_JV, LBP_JT. Redistribute values.
86353         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
86354         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
86355         Update.
86356         * lib/unilbrk/lbrkprop1.h: Regenerated.
86357         * lib/unilbrk/lbrkprop2.h: Regenerated.
86358         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
86359         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
86360         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
86361         Likewise.
86362         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
86363         Likewise.
86364         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
86365         result.
86366         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
86367         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
86368         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
86369         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
86370         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
86371         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
86373 2008-05-11  Bruno Haible  <bruno@clisp.org>
86375         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
86377 2008-05-11  Bruno Haible  <bruno@clisp.org>
86379         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
86380         * modules/unilbrk/gen-lbrk: New file.
86382 2008-05-11  Bruno Haible  <bruno@clisp.org>
86384         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
86385         * m4/sha512.m4 (gl_SHA512): Likewise.
86387 2008-05-11  Jim Meyering  <meyering@redhat.com>
86389         New modules: crypto/sha256, crypto/sha512 (from coreutils)
86390         * modules/crypto/sha256: New file.
86391         * modules/crypto/sha512: Likewise.
86392         * lib/sha256.c: Likewise.
86393         * lib/sha256.h: Likewise.
86394         * lib/sha512.c: Likewise.
86395         * lib/sha512.h: Likewise.
86396         * lib/u64.h: Likewise.
86397         * m4/sha256.m4: Likewise.
86398         * m4/sha512.m4: Likewise.
86399         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
86401 2008-05-10  Bruno Haible  <bruno@clisp.org>
86403         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
86404         (Input/Output <stdio.h>): Add xprintf.
86405         (Signal handling <signal.h>): Add strsignal.
86406         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
86407         (Core language properties): Add func.
86408         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
86409         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
86410         strings.
86411         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
86412         (Input/output): New section.
86413         (File system functions): Add openat-die, stat-macros.
86414         (Networking functions): Add sockets.
86415         (Unicode string functions): Add unictype/*.
86416         (Support for building libraries and executables): Add gperf.
86417         (Support for building documentation): Add agpl-3.0.
86418         (Misc): Add nocrash.
86420 2008-05-10  Bruno Haible  <bruno@clisp.org>
86422         * modules/unictype/gen-ctype: New file.
86424 2008-05-10  Jim Meyering  <meyering@redhat.com>
86426         Make chdir-safer.c more efficient on a system with no symlinks.
86427         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
86428         also if ELOOP is zero.  Suggested by Bruno Haible.
86430         Make chdir-safer.c slightly safer.
86431         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
86432         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
86434         Avoid compile failure on systems without ELOOP (like mingw).
86435         * lib/chdir-safer.c (ELOOP): Define if not already defined.
86436         Reported by Bruno Haible.
86438 2008-05-10  Bruno Haible  <bruno@clisp.org>
86440         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
86441         (is_utf8_encoding): Use a case-insensitive comparison.
86442         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
86443         streq.
86445 2008-05-10  Bruno Haible  <bruno@clisp.org>
86447         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
86448         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
86449         * lib/unilbrk/ulc-common.h (iconv_string_length,
86450         iconv_string_keeping_offsets): Remove declarations.
86451         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
86452         Don't include <iconv.h>, streq.h, xsize.h.
86453         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
86454         conversion.
86455         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
86456         <iconv.h>, streq.h, xsize.h.
86457         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
86458         conversion.
86459         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
86460         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
86461         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
86462         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
86464 2008-05-10  Bruno Haible  <bruno@clisp.org>
86466         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
86467         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
86469         * modules/unilbrk/u32-width-linebreaks-tests: New file.
86470         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
86472         * modules/unilbrk/u16-width-linebreaks-tests: New file.
86473         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
86475         * modules/unilbrk/u8-width-linebreaks-tests: New file.
86476         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
86478         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
86479         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
86481         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
86482         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
86484         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
86485         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
86487         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
86488         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
86490 2008-05-10  Bruno Haible  <bruno@clisp.org>
86492         Split up 'linebreak' module.
86493         * lib/unilbrk.h: New file, based on lib/linebreak.h.
86494         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
86495         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
86496         modifications.
86497         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
86498         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
86499         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
86500         lib/linebreak.c.
86501         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
86502         lib/linebreak.c.
86503         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
86504         lib/linebreak.c.
86505         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
86506         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
86507         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
86508         lib/linebreak.c.
86509         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
86510         lib/linebreak.c.
86511         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
86512         lib/linebreak.c.
86513         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
86514         lib/linebreak.c.
86515         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
86516         lib/linebreak.c.
86517         * modules/unilbrk/base: New file.
86518         * modules/unilbrk/tables: New file.
86519         * modules/unilbrk/u8-possible-linebreaks: New file.
86520         * modules/unilbrk/u16-possible-linebreaks: New file.
86521         * modules/unilbrk/u32-possible-linebreaks: New file.
86522         * modules/unilbrk/ulc-common: New file.
86523         * modules/unilbrk/ulc-possible-linebreaks: New file.
86524         * modules/unilbrk/u8-width-linebreaks: New file.
86525         * modules/unilbrk/u16-width-linebreaks: New file.
86526         * modules/unilbrk/u32-width-linebreaks: New file.
86527         * modules/unilbrk/ulc-width-linebreaks: New file.
86528         * lib/linebreak.h: Remove file.
86529         * lib/linebreak.c: Remove file.
86530         * m4/linebreak.m4: Remove file.
86531         * modules/linebreak: Remove file.
86532         * NEWS: Mention the changes.
86534 2008-05-09  Eric Blake  <ebb9@byu.net>
86536         Add xmemdup0.
86537         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
86538         implementation.
86539         * lib/xmalloc.c (xmemdup0): New C implementation.
86541 2008-05-08  Bruno Haible  <bruno@clisp.org>
86543         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
86545 2008-05-07  Eric Blake  <ebb9@byu.net>
86547         Support cross-compilation of <wctype.h>.
86548         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
86549         AC_CACHE_CHECK.
86551 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
86553         * build-aux/vc-list-files: Add support for bzr.
86555 2008-05-03  Jim Meyering  <meyering@redhat.com>
86557         avoid failed assertion with tight malloc
86558         * tests/test-getndelim2.c: Correct an off-by-one assertion.
86560 2008-05-03  Simon Josefsson  <simon@josefsson.org>
86562         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
86563         are needed from arpa/inet.h.
86564         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
86565         Reported by Bruno Haible.
86567 2008-05-02  Jim Meyering  <meyering@redhat.com>
86569         avoid compilation error on FreeBSD 6
86570         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
86572 2008-05-01  Jim Meyering  <meyering@redhat.com>
86574         useless-if-before-free: correct --help's exit status description
86575         * build-aux/useless-if-before-free (usage): Like grep, exit 0
86576         for one or more matches, etc.  Reported by Bruno Haible.
86578         vc-list-files: make the stand-alone gnulib test work
86579         * modules/vc-list-files-tests (configure.ac):
86580         Define and AC_SUBST abs_aux_dir.
86581         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
86582         $(abs_top_srcdir) to each script and having each of them
86583         duplicate the work of setting PATH, set PATH here, using
86584         the new variable, abs_aux_dir instead.
86585         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
86586         * tests/test-vc-list-files-git.sh: Likewise.
86587         Reported by Bruno Haible.
86589 2008-05-01  Bruno Haible  <bruno@clisp.org>
86591         * lib/getndelim2.c (getndelim2): Fix newsize computation during
86592         reallocation. Rename 'done' to 'found_delimiter'.
86594 2008-05-01  Jim Meyering  <meyering@redhat.com>
86596         vc-list-files: accommodate /bin/sh like the one from Solaris 10
86597         * build-aux/vc-list-files: Use `...`, not $(...).
86599 2008-04-30  Jim Meyering  <meyering@redhat.com>
86601         add tests for vc-list-files
86602         * modules/vc-list-files-tests: New module.
86603         * tests/test-vc-list-files-cvs.sh: New file.
86604         * tests/test-vc-list-files-git.sh: New file.
86606         avoid a warning from gcc
86607         * lib/getndelim2.c (IF_LINT): Define.
86608         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
86610         vc-list-files: work properly with build-aux/cvsu, too
86611         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
86612         to all cvs-based clauses.
86614         vc-list-files: work properly in the CVS+awk case, too
86615         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
86617         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
86618         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
86619         take more than one file argument, so .  Add quotes, just in case $dir
86620         ever contains a shell meta-character.  Prompted by Soren Hansen in
86621         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
86623 2008-04-29  Eric Blake  <ebb9@byu.net>
86625         Optimize getndelim2 to use block operations when possible.
86626         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
86627         freadseek, and memchr2.
86628         * lib/getndelim2.c (getndelim2): Use them for block reads.
86630 2008-04-29  Bruno Haible  <bruno@clisp.org>
86632         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
86633         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
86634         * modules/inet_ntop (Depends-on): Add extensions.
86635         * modules/inet_pton (Depends-on): Likewise.
86636         Reported by Simon Josefsson.
86638 2008-04-29  Jim Meyering  <meyering@redhat.com>
86640         When the is more than one match in a block, match all of them.
86641         * build-aux/useless-if-before-free: Iterate through each block
86642         until there are no more matches.
86644         Fix broken useless-if-before-free script.
86645         * build-aux/useless-if-before-free: Fix typo: missing "?" after
86646         the expression to match cast of argument to free-like function.
86648 2008-04-29  Eric Blake  <ebb9@byu.net>
86650         Use new header.
86651         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
86653 2008-04-29  Jim Meyering  <meyering@redhat.com>
86655         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
86656         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
86657         by gnulib to exist and to declare e.g., inet_ntop.
86658         Don't include "inet_ntop.h", now removed.
86660         * m4/arpa_inet_h.m4: Remove trailing blanks.
86662 2008-04-29  Eric Blake  <ebb9@byu.net>
86664         Silence valgrind on safe reads beyond potential array bounds.
86665         * lib/rawmemchr.valgrind: New file.
86666         * lib/strchrnul.valgrind: Likewise.
86667         * modules/rawmemchr (Files): Distribute new file.
86668         * modules/strchrnul (Files): Likewise.
86669         Suggested by Bruno Haible.
86671 2008-04-29  Bruno Haible  <bruno@clisp.org>
86673         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
86674         (inet_ntop, inet_pton): Change portability warning's wording.
86675         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
86676         Invoke gl_CHECK_NEXT_HEADERS.
86677         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
86678         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
86679         set ARPA_INET_H.
86680         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
86681         * modules/arpa_inet (Description): No longer only for systems that
86682         lack it.
86683         (Depends-on): Add include_next.
86684         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
86685         HAVE_ARPA_INET_H.
86687 2008-04-29  Jim Meyering  <meyering@redhat.com>
86689         * modules/mkdir (License): Re-license as LGPLv2+.
86691 2008-04-29  Bruno Haible  <bruno@clisp.org>
86693         * modules/rawmemchr (Maintainer): Set to Eric.
86694         * modules/strchrnul (Maintainer): Likewise.
86696 2008-04-29  Simon Josefsson  <simon@josefsson.org>
86698         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
86699         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
86701         * modules/arpa_inet (arpa/inet.h): Use them.
86703 2008-04-28  Eric Blake  <ebb9@byu.net>
86705         Test getndelim2.
86706         * modules/getndelim2-tests: New file.
86707         * tests/test-getndelim2.c: Likewise.
86708         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
86709         stream.
86710         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
86712         * MODULES.html.sh: Document new module.
86714 2008-04-20  Bruno Haible  <bruno@clisp.org>
86716         * lib/c-stack.c (die): Use raise.
86717         * modules/c-stack (Depends-on): Add raise.
86719 2008-04-28  Bruno Haible  <bruno@clisp.org>
86721         Expect rpmatch to be declared.
86722         * lib/yesno.c (rpmatch): Remove declaration.
86724         Declare rpmatch.
86725         * lib/stdlib.in.h (rpmatch): New declaration.
86726         * lib/rpmatch.c: Include <stdlib.h> first.
86727         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
86728         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
86729         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
86730         HAVE_RPMATCH.
86731         * modules/rpmatch (Depends-on): Add stdlib, extensions.
86732         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86733         (Include): Set to <stdlib.h>.
86734         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
86735         HAVE_RPMATCH.
86736         * NEWS: Document the change.
86738 2008-04-28  Bruno Haible  <bruno@clisp.org>
86740         Change rpmatch to use nl_langinfo when appropriate.
86741         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
86742         (N_): New macro.
86743         (localized_pattern): New function/macro.
86744         (try): Remove match, nomatch arguments. Copy the pattern into safe
86745         memory before caching it.
86746         (rpmatch): Use localized_pattern. Add translator comments.
86747         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
86748         Suggested by Eric Blake.
86749         * modules/rpmatch (Depends-on): Add stdbool.
86751 2008-04-28  Eric Blake  <ebb9@byu.net>
86753         Add rawmemchr module, matching glibc.
86754         * modules/string (Makefile.am): New indicator.
86755         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
86756         * lib/string.in.h (rawmemchr): Declare when appropriate.
86757         * modules/rawmemchr: New file.
86758         * m4/rawmemchr.m4: Likewise.
86759         * lib/rawmemchr.c: Likewise.
86760         * modules/rawmemchr-tests: Likewise.
86761         * tests/test-rawmemchr.c: Likewise.
86762         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
86763         module.
86764         * modules/strchrnul (Depends-on): Add rawmemchr.
86765         * lib/strchrnul.c (strchrnul): Optimize a corner case.
86767         Whitespace cleanup.
86768         * tests/test-strchrnul.c: Reindent.
86769         * lib/strchrnul.c: Likewise.
86771         Optimize and test strchrnul.
86772         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
86773         * modules/strchrnul-tests: New file.
86774         * tests/test-strchrnul.c: Likewise.
86776         Remove intprops dependency.
86777         * modules/memchr (Depends-on): Remove intprops.
86778         * modules/memrchr (Depends-on): Likewise.
86779         * modules/memchr2 (Depends-on): Likewise.
86780         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
86781         * lib/memrchr.c (__memrchr): Likewise.
86782         * lib/memrchr2.c (memchr2): Likewise.
86783         Reported by Simon Josefsson.
86785 2008-04-28  Simon Josefsson  <simon@josefsson.org>
86787         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
86788         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
86790 2008-04-28  Simon Josefsson  <simon@josefsson.org>
86792         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
86794         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
86796         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
86798         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
86799         declarations.
86800         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
86802         * m4/inet_pton.m4: Don't check for header files.
86804         * m4/inet_ntop.m4: Don't check for header files.
86806 2008-04-28  Simon Josefsson  <simon@josefsson.org>
86808         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
86809         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
86810         trigger for cygwin).
86811         Reported by Bruno Haible  <bruno@clisp.org>.
86813 2008-04-28  Bruno Haible  <bruno@clisp.org>
86815         * doc/posix-functions/strdup.texi: Mention mingw problem.
86817 2008-04-27  Bruno Haible  <bruno@clisp.org>
86819         * modules/stat-time-tests (Depends-on): Add sleep.
86820         * tests/test-stat-time.c (force_unlink): New function.
86821         (cleanup): Use it.
86822         (test_mtime): Remove the ctime related tests.
86823         (test_ctime): New function, containing the ctime related tests.
86824         (main): Call test_ctime, except on native Windows platforms.
86826 2008-04-27  Bruno Haible  <bruno@clisp.org>
86828         * lib/rpmatch.c (rpmatch): Add some comments.
86829         Reported by James Youngman <jay@gnu.org>.
86831 2008-04-27  Bruno Haible  <bruno@clisp.org>
86833         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
86834         quiet NaNs.
86836 2008-04-27  Bruno Haible  <bruno@clisp.org>
86838         Make test-yesno.sh work on mingw.
86839         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
86840         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
86841         (main): Set stdin to binary mode.
86842         * modules/yesno-tests (Depends-on): Add binary-io.
86844 2008-04-27  Bruno Haible  <bruno@clisp.org>
86846         Fix 'isfinite' on x86, x86_64, ia64 platforms.
86847         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
86848         argument that lie outside the IEEE 854 domain.
86849         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
86850         (gl_ISFINITE): Use it.
86851         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
86853 2008-04-27  Bruno Haible  <bruno@clisp.org>
86855         Allow local renaming in config.h.
86856         * lib/memrchr.c (memrchr): Don't undefine outside libc.
86858 2008-04-27  Bruno Haible  <bruno@clisp.org>
86860         * lib/memchr.c (__memchr): Change type of 'i'.
86861         * lib/memchr2.c (memchr2): Likewise.
86863 2008-04-26  Eric Blake  <ebb9@byu.net>
86864         and Bruno Haible  <bruno@clisp.org>
86866         Optimize and test memrchr.
86867         * modules/memrchr (Depends-on): Add intprops.
86868         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
86869         * modules/memrchr-tests: New file.
86870         * tests/test-memrchr.c: New file.
86872 2008-04-26  Bruno Haible  <bruno@clisp.org>
86874         Add tentative support for DragonFly BSD.
86875         * lib/stdio-impl.h: Add macros for DragonFly BSD.
86876         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
86877         fp.
86878         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
86879         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
86880         * lib/fpurge.c (fpurge): Likewise.
86881         * lib/freadable.c (freaadable): Likewise.
86882         * lib/freadahead.c (freadahead): Likewise.
86883         * lib/freading.c (freading): Likewise.
86884         * lib/freadptr.c (freadptr): Likewise.
86885         * lib/freadseek.c (freadptrinc): Likewise.
86886         * lib/fseeko.c (fseeko): Likewise.
86887         * lib/fseterr.c (fseterr): Likewise.
86888         * lib/fwritable.c (fwritable): Likewise.
86889         * lib/fwriting.c (fwriting): Likewise.
86891 2008-04-26  Bruno Haible  <bruno@clisp.org>
86893         * lib/stdio-impl.h: New file.
86894         * lib/fbufmode.c: Include stdio-impl.h.
86895         (fbufmode): Use fp_, remove redundant #defines.
86896         * lib/fflush.c: Include stdio-impl.h.
86897         (clear_ungetc_buffer): Remove redundant #defines.
86898         * lib/fpurge.c: Include stdio-impl.h.
86899         (fpurge): Remove redundant #defines.
86900         * lib/freadable.c: Include stdio-impl.h.
86901         (freadable): Remove redundant #defines.
86902         * lib/freadahead.c: Include stdio-impl.h.
86903         (freadahead): Remove redundant #defines.
86904         * lib/freading.c: Include stdio-impl.h.
86905         (freading): Remove redundant #defines.
86906         * lib/freadptr.c: Include stdio-impl.h.
86907         (freadptr): Remove redundant #defines.
86908         * lib/freadseek.c: Include stdio-impl.h.
86909         (freadptrinc): Remove redundant #defines.
86910         * lib/fseeko.c: Include stdio-impl.h.
86911         (rpl_fseeko): Remove redundant #defines.
86912         * lib/fseterr.c: Include stdio-impl.h.
86913         (fseterr): Remove redundant #defines.
86914         * lib/fwritable.c: Include stdio-impl.h.
86915         (fwritable: Remove redundant #defines.
86916         * lib/fwriting.c: Include stdio-impl.h.
86917         (fwriting): Remove redundant #defines.
86918         * modules/fbufmode (Files): Add lib/stdio-impl.h.
86919         * modules/fflush (Files): Likewise.
86920         * modules/fpurge (Files): Likewise.
86921         * modules/freadable (Files): Likewise.
86922         * modules/freadahead (Files): Likewise.
86923         * modules/freading (Files): Likewise.
86924         * modules/freadptr (Files): Likewise.
86925         * modules/freadseek (Files): Likewise.
86926         * modules/fseeko (Files): Likewise.
86927         * modules/fseterr (Files): Likewise.
86928         * modules/fwritable (Files): Likewise.
86929         * modules/fwriting (Files): Likewise.
86931 2008-04-26  Bruno Haible  <bruno@clisp.org>
86933         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
86934         restore_seek_optimization, update_fpos_cache): New functions, extracted
86935         from rpl_fflush.
86936         (rpl_fflush): Use them.
86937         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
86938         (gl_REPLACE_FFLUSH): Use it.
86940 2008-04-26  Bruno Haible  <bruno@clisp.org>
86942         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
86943         on Solaris.
86944         * tests/test-xstrtoimax.sh: Likewise.
86945         * tests/test-xstrtoumax.sh: Likewise.
86946         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
86948 2008-04-26  Bruno Haible  <bruno@clisp.org>
86950         * modules/memchr-tests: New file.
86951         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
86953 2008-04-26  Eric Blake  <ebb9@byu.net>
86954             Bruno Haible  <bruno@clisp.org>
86956         * lib/memchr.c: Include intprops.h.
86957         (__memchr): Optimize parallel detection of matching bytes. Rename local
86958         variables. Add explanatory comments.
86960 2008-04-26  Bruno Haible  <bruno@clisp.org>
86962         Fix module 'memchr', broken since 2000-10-28.
86963         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
86965 2008-04-26  Bruno Haible  <bruno@clisp.org>
86967         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
86968         comments.
86970 2008-04-25  Eric Blake  <ebb9@byu.net>
86972         Use native fstatat on cygwin 1.7.0.
86973         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
86974         first.
86976 2008-04-23  Eric Blake  <ebb9@byu.net>
86978         Improve memchr2 performance.
86979         * lib/memchr2.c (memchr2): Further optimize parallel detection of
86980         NUL bytes.
86981         * modules/memchr2 (Depends-on): Use intprops.h.
86983 2008-04-23  Simon Josefsson  <simon@josefsson.org>
86985         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
86986         an inline function instead of a CPP macro.  Patch by Ben Pfaff
86987         <blp@cs.stanford.edu>.
86989 2008-04-23  Simon Josefsson  <simon@josefsson.org>
86991         * lib/arpa_inet.in.h: New file.
86993         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
86994         (Makefile.am): Sed in substitute header file.
86996         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
86997         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
86999         * modules/inet_ntop (configure.ac): Use
87000         gl_ARPA_INET_MODULE_INDICATOR.
87002         * modules/inet_pton (configure.ac): Use
87003         gl_ARPA_INET_MODULE_INDICATOR.
87005 2008-04-22  Jim Meyering  <meyering@redhat.com>
87007         * modules/verify (License): Re-license as LGPLv2+.
87009 2008-04-22  Simon Josefsson  <simon@josefsson.org>
87011         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
87012         parameter to void* as per POSIX standard (MinGW uses char*).
87014 2008-04-21  Bruno Haible  <bruno@clisp.org>
87016         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
87017         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
87018         Define to replacements if REPLACE_ISWCNTRL is 1.
87019         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
87020         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
87021         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
87022         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
87023         what it fixes.
87024         * doc/posix-functions/iswalpha.texi: Likewise.
87025         * doc/posix-functions/iswblank.texi: Likewise.
87026         * doc/posix-functions/iswcntrl.texi: Likewise.
87027         * doc/posix-functions/iswdigit.texi: Likewise.
87028         * doc/posix-functions/iswgraph.texi: Likewise.
87029         * doc/posix-functions/iswlower.texi: Likewise.
87030         * doc/posix-functions/iswprint.texi: Likewise.
87031         * doc/posix-functions/iswpunct.texi: Likewise.
87032         * doc/posix-functions/iswspace.texi: Likewise.
87033         * doc/posix-functions/iswupper.texi: Likewise.
87034         * doc/posix-functions/iswxdigit.texi: Likewise.
87035         Reported by Alain Guibert.
87037 2008-04-21  Bruno Haible  <bruno@clisp.org>
87039         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
87040         Patch by Alain Guibert.
87042 2008-04-21  Bruno Haible  <bruno@clisp.org>
87044         Fix test failures on mingw.
87045         * tests/test-xstrtol.c (print_no_progname): New function.
87046         (main): Install it in error_print_progname hook.
87047         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
87048         * tests/test-xstrtoimax.sh: Likewise.
87049         * tests/test-xstrtoumax.sh: Likewise.
87051 2008-04-21  Bruno Haible  <bruno@clisp.org>
87053         Fix test failure on mingw.
87054         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
87056 2008-04-21  Bruno Haible  <bruno@clisp.org>
87058         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
87059         Actually assign a value.
87061 2008-04-20  Bruno Haible  <bruno@clisp.org>
87063         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
87064         take 2.
87065         * lib/canonicalize.c (canonicalize_file_name): Elide if the
87066         'canonicalize-lgpl' module is also used.
87067         * lib/canonicalize-lgpl.c: Undo last change.
87068         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
87070 2008-04-20  Bruno Haible  <bruno@clisp.org>
87072         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
87073         config.h. Provide _mkdir based fallback for mingw.
87074         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
87075         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
87076         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
87077         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
87078         rather than defining mkdir in config.h.
87079         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
87080         (gl_SYS_STAT_H_DEFAULTS): New macro.
87081         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
87082         HAVE_IO_H any more.
87083         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
87084         HAVE_DECL_MKDIR and HAVE_IO_H.
87086 2008-04-20  Bruno Haible  <bruno@clisp.org>
87088         * lib/isapipe.c: Port to native Windows platforms.
87090 2008-04-20  Bruno Haible  <bruno@clisp.org>
87092         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
87094 2008-04-21  Eric Blake  <ebb9@byu.net>
87096         Work around preprocessors that don't handle UINTMAX_MAX.
87097         * lib/memchr2.c (memchr2): Avoid embedded #if.
87098         Reported by Alain Guibert, fix suggested by Bruno Haible.
87100 2008-04-21  Simon Josefsson  <simon@josefsson.org>
87102         * doc/posix-functions/strftime.texi (strftime): Explain better
87103         Windows incompatibility.  Suggested by Micah Cowan
87104         <micah@cowan.name>.
87106 2008-04-20  Bruno Haible  <bruno@clisp.org>
87108         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
87109         unistr/u8-mblen.
87111 2008-04-20  Bruno Haible  <bruno@clisp.org>
87113         Fix test failure on platforms with non-GNU iconv.
87114         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
87115         (U_TO_U8): Use it, rather than u16_to_u8.
87116         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
87117         units at the end of the input string.
87118         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
87120 2008-04-20  Bruno Haible  <bruno@clisp.org>
87122         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
87123         when the resulting length is 0.
87124         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
87126 2008-04-20  Bruno Haible  <bruno@clisp.org>
87128         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
87129         works.
87130         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
87132 2008-04-20  Bruno Haible  <bruno@clisp.org>
87134         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
87135         * modules/tsearch-tests (configure.ac): Test for initstate function.
87137 2008-04-20  Bruno Haible  <bruno@clisp.org>
87139         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
87140         for nlink_t if missing.
87141         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
87143 2008-04-19  Bruno Haible  <bruno@clisp.org>
87145         Work around snprintf bug on Linux libc5.
87146         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
87147         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
87148         gl_SNPRINTF_SIZE1.
87149         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
87150         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
87151         that test failed.
87152         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
87153         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
87154         * modules/snprintf (Files): Add m4/printf.m4.
87155         * modules/vsnprintf (Files): Likewise.
87156         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
87157         * doc/posix-functions/vsnprintf.texi: Likewise.
87159 2008-04-19  Bruno Haible  <bruno@clisp.org>
87161         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
87162         from 0.0058 to less than 10^-7.
87164 2008-04-19  Bruno Haible  <bruno@clisp.org>
87166         Fix rounding when a precision is given.
87167         * lib/vasnprintf.c (is_borderline): New function.
87168         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
87169         9...9x.
87170         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
87171         %e, %g.
87172         * tests/test-vasprintf-posix.c (test_function): Likewise.
87173         * tests/test-snprintf-posix.h (test_function): Likewise.
87174         * tests/test-sprintf-posix.h (test_function): Likewise.
87175         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
87176         * tests/test-printf-posix.h (test_function): Likewise.
87177         * tests/test-printf-posix.output: Update.
87178         Reported by John Darrington <john@darrington.wattle.id.au> via
87179         Ben Pfaff <blp@cs.stanford.edu>.
87181 2008-04-18  Simon Josefsson  <simon@josefsson.org>
87183         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
87184         Suggested by Bruno Haible <bruno@clisp.org>.
87186 2008-04-17  Bruno Haible  <bruno@clisp.org>
87188         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
87189         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
87190         implementation.
87191         Patch by Bruce Merry <bmerry@gmail.com>.
87193 2008-04-17  Simon Josefsson  <simon@josefsson.org>
87195         * doc/posix-functions/strftime.texi (strftime): Mention that %e
87196         doesn't work under Windows.
87198 2008-04-16  Bruno Haible  <bruno@clisp.org>
87200         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
87201         New macros.
87202         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
87203         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
87204         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
87205         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
87206         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
87207         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
87208         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
87209         macros.
87210         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
87211         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
87212         Northern Sotho, Uighur.
87214 2008-04-16  Bruno Haible  <bruno@clisp.org>
87216         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
87217         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
87218         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
87219         Reported by Daniel Bergström <daniel@octocode.com>.
87221 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
87222             Bruno Haible  <bruno@clisp.org>
87224         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
87225         function.
87226         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
87227         New functions, mostly extracted from gl_locale_name_default.
87228         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
87230 2008-04-16  Eric Blake  <ebb9@byu.net>
87232         Adjust strtod detection to catch glibc 2.7 bug.
87233         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
87234         Reported by John Gatewood Ham.
87236 2008-04-16  Bruno Haible  <bruno@clisp.org>
87238         Add tentative support for Linux libc5.
87239         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
87240         * lib/fpurge.c (fpurge): Likewise.
87241         * lib/freadable.c (freadable): Likewise.
87242         * lib/freadahead.c (freadahead): Likewise.
87243         * lib/freading.c (freading): Likewise.
87244         * lib/freadptr.c (freadptr): Likewise.
87245         * lib/freadseek.c (freadptrinc): Likewise.
87246         * lib/fseeko.c (rpl_fseeko): Likewise.
87247         * lib/fseterr.c (fseterr): Likewise.
87248         * lib/fwritable.c (fwritable): Likewise.
87249         * lib/fwriting.c (fwriting): Likewise.
87250         Reported by Alain Guibert <alguibert+bts@free.fr>.
87252 2008-04-15  Bruno Haible  <bruno@clisp.org>
87254         * modules/mathl (configure.ac): Define module indicator.
87256 2008-04-15  Bruno Haible  <bruno@clisp.org>
87258         * lib/logl.c (logl): Remove unused variables.
87260 2008-04-15  Bruno Haible  <bruno@clisp.org>
87262         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
87263         fails.
87265 2008-04-15  Bruno Haible  <bruno@clisp.org>
87267         * lib/trim.c (trim2): Fix argument of isspace() macro.
87269 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
87271         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
87272         to 0.
87273         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
87275 2008-04-14  Bruno Haible  <bruno@clisp.org>
87277         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
87278         AC_LANG_PROGRAM argument.
87279         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
87280         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
87281         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
87282         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
87283         * m4/math_h.m4 (gl_MATH_H): Likewise.
87284         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
87285         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
87286         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
87287         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
87288         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
87289         * m4/regex.m4 (gl_REGEX): Likewise.
87290         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
87291         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
87292         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
87293         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
87294         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
87295         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
87296         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
87297         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
87299 2008-04-14  Jim Meyering  <meyering@redhat.com>
87301         test-strtod: fix typos: s/abs/fabs/
87302         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
87304 2008-04-13  Bruno Haible  <bruno@clisp.org>
87306         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
87307         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
87308         module is also used and while not building the reloc-wrapper.
87310 2008-04-13  Bruno Haible  <bruno@clisp.org>
87312         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
87314 2008-04-13  Bruno Haible  <bruno@clisp.org>
87316         Fix AIX compilation failure introduced on 2008-04-02.
87317         * tests/test-frexp.c (exp): Undefine before redefining.
87318         * tests/test-frexpl.c (exp): Likewise.
87320 2008-04-13  Bruno Haible  <bruno@clisp.org>
87322         Work around a HP-UX stdio bug.
87323         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
87324         * tests/test-ftello.c (main): Likewise.
87325         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
87326         * doc/posix-functions/ftello.texi: Likewise.
87328 2008-04-13  Bruno Haible  <bruno@clisp.org>
87330         Make test-signbit pass on HP-UX/hppa.
87331         * tests/test-signbit.c (minus_zerol): New variable.
87332         (test_signbitl): Use it.
87334 2008-04-13  Bruno Haible  <bruno@clisp.org>
87336         Make truncl work on OSF/1 4.0.
87337         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
87338         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
87339         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
87340         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
87341         HAVE_DECL_TRUNCL.
87342         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
87343         HAVE_DECL_TRUNCL.
87344         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
87346 2008-04-13  Bruno Haible  <bruno@clisp.org>
87348         * lib/unictype.h: Remove trailing comma from enumeration definitions.
87350 2008-04-13  Bruno Haible  <bruno@clisp.org>
87352         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
87353         expression, so as to avoid HP-UX 11 cc compiler bug.
87355 2008-04-13  Bruno Haible  <bruno@clisp.org>
87357         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
87359 2008-04-13  Bruno Haible  <bruno@clisp.org>
87361         * lib/git-merge-changelog.c: Remove empty declaration outside of
87362         functions.
87364 2008-04-13  Bruno Haible  <bruno@clisp.org>
87366         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
87368 2008-04-13  Bruno Haible  <bruno@clisp.org>
87370         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
87371         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
87372         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
87373         also if it exists but lacks definitions of the SHUT_* macros.
87374         * modules/sys_socket (Description): Update.
87375         Reported by Elbert Pol <e.pol@chello.nl>.
87377 2008-04-13  Bruno Haible  <bruno@clisp.org>
87379         * lib/localcharset.c (OS2): Don't redefine if already defined.
87380         Reported by Elbert Pol <e.pol@chello.nl>.
87382 2008-04-13  Bruno Haible  <bruno@clisp.org>
87384         * lib/binary-io.h [__EMX__]: Include <io.h>.
87385         Reported by Elbert Pol <e.pol@chello.nl>.
87387 2008-04-12  Bruno Haible  <bruno@clisp.org>
87389         * lib/fpucw.h: Enable the definitions also for x86_64.
87390         Needed for NetBSD/x86_64.
87391         Reported by Thomas Klausner <tk@giga.or.at>.
87393 2008-04-12  Bruno Haible  <bruno@clisp.org>
87395         * tests/test-strtod.c: Include isnand.h.
87396         (main): Use isnand instead of isnan.
87397         Reported by Jim Meyering.
87399 2008-04-12  Bruno Haible  <bruno@clisp.org>
87401         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
87402         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
87404 2008-04-12  Jim Meyering  <meyering@redhat.com>
87406         * m4/math_h.m4 (gl_MATH_H): Fix typos.
87408 2008-04-12  Bruno Haible  <bruno@clisp.org>
87410         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
87411         Reported by Elbert Pol <e.pol@chello.nl>.
87413 2008-04-12  Eric Blake  <ebb9@byu.net>
87415         Work around Solaris 10 math.h bug.
87416         * m4/math_h.m4 (gl_MATH_H): Check for bug.
87417         (gl_MATH_H_DEFAULTS): Set up default.
87418         * modules/math (Makefile.am): Replace new indicators.
87419         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
87420         * tests/test-math.c (main): Test this.
87421         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
87422         * doc/posix-headers/math.texi (math.h): Mention bug.
87423         Reported by Nelson H. F. Beebe and Jim Meyering.
87425 2008-04-11  Bruno Haible  <bruno@clisp.org>
87427         Adapt to future versions of Apple GCC.
87428         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
87429         Reported by Peter O'Gorman <peter@pogma.com>.
87431 2008-04-11  Bruno Haible  <bruno@clisp.org>
87433         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
87435 2008-04-11  Bruno Haible  <bruno@clisp.org>
87437         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
87439         * modules/getaddrinfo-tests (Makefile.am): Define
87440         test_getaddrinfo_LDADD.
87442 2008-04-11  Bruno Haible  <bruno@clisp.org>
87444         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
87445         (init): Fix syntax error.
87446         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
87447         is declared.
87449 2008-04-11  Bruno Haible  <bruno@clisp.org>
87451         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
87452         * modules/glob (Depends-on): Add stdbool.
87454 2008-04-11  Bruno Haible  <bruno@clisp.org>
87456         * lib/trim.c: Include <string.h>.
87458 2008-04-11  Eric Blake  <ebb9@byu.net>
87460         Avoid compile failure on OS/2.
87461         * lib/regex_internal.h (internal_function): Disable optimization
87462         on OS/2 (__EMX__), where it caused compiler error.
87463         Reported by Elbert Pol.
87465 2008-04-11  Bruno Haible  <bruno@clisp.org>
87467         Flush the standard error stream before aborting. Needed on mingw.
87468         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
87469         * tests/test-array_list.c (ASSERT): Likewise.
87470         * tests/test-array_oset.c (ASSERT): Likewise.
87471         * tests/test-avltree_list.c (ASSERT): Likewise.
87472         * tests/test-avltree_oset.c (ASSERT): Likewise.
87473         * tests/test-avltreehash_list.c (ASSERT): Likewise.
87474         * tests/test-binary-io.c (ASSERT): Likewise.
87475         * tests/test-byteswap.c (ASSERT): Likewise.
87476         * tests/test-c-ctype.c (ASSERT): Likewise.
87477         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
87478         * tests/test-c-strcasestr.c (ASSERT): Likewise.
87479         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
87480         * tests/test-c-strstr.c (ASSERT): Likewise.
87481         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
87482         * tests/test-canonicalize.c (ASSERT): Likewise.
87483         * tests/test-carray_list.c (ASSERT): Likewise.
87484         * tests/test-ceilf1.c (ASSERT): Likewise.
87485         * tests/test-ceilf2.c (ASSERT): Likewise.
87486         * tests/test-ceill.c (ASSERT): Likewise.
87487         * tests/test-count-one-bits.c (ASSERT): Likewise.
87488         * tests/test-fbufmode.c (ASSERT): Likewise.
87489         * tests/test-fflush2.c (ASSERT): Likewise.
87490         * tests/test-floorf1.c (ASSERT): Likewise.
87491         * tests/test-floorf2.c (ASSERT): Likewise.
87492         * tests/test-floorl.c (ASSERT): Likewise.
87493         * tests/test-fopen.c (ASSERT): Likewise.
87494         * tests/test-fpending.c (ASSERT): Likewise.
87495         * tests/test-fprintf-posix.c (ASSERT): Likewise.
87496         * tests/test-fpurge.c (ASSERT): Likewise.
87497         * tests/test-freadable.c (ASSERT): Likewise.
87498         * tests/test-freadahead.c (ASSERT): Likewise.
87499         * tests/test-freading.c (ASSERT): Likewise.
87500         * tests/test-freadptr.c (ASSERT): Likewise.
87501         * tests/test-freadptr2.c (ASSERT): Likewise.
87502         * tests/test-freadseek.c (ASSERT): Likewise.
87503         * tests/test-freopen.c (ASSERT): Likewise.
87504         * tests/test-frexp.c (ASSERT): Likewise.
87505         * tests/test-frexpl.c (ASSERT): Likewise.
87506         * tests/test-fseek.c (ASSERT): Likewise.
87507         * tests/test-fseeko.c (ASSERT): Likewise.
87508         * tests/test-fstrcmp.c (ASSERT): Likewise.
87509         * tests/test-ftell.c (ASSERT): Likewise.
87510         * tests/test-ftello.c (ASSERT): Likewise.
87511         * tests/test-func.c (ASSERT): Likewise.
87512         * tests/test-fwritable.c (ASSERT): Likewise.
87513         * tests/test-fwriting.c (ASSERT): Likewise.
87514         * tests/test-getdelim.c (ASSERT): Likewise.
87515         * tests/test-getline.c (ASSERT): Likewise.
87516         * tests/test-i-ring.c (ASSERT): Likewise.
87517         * tests/test-iconv-utf.c (ASSERT): Likewise.
87518         * tests/test-iconv.c (ASSERT): Likewise.
87519         * tests/test-isfinite.c (ASSERT): Likewise.
87520         * tests/test-isnand.c (ASSERT): Likewise.
87521         * tests/test-isnanf.c (ASSERT): Likewise.
87522         * tests/test-isnanl.h (ASSERT): Likewise.
87523         * tests/test-ldexpl.c (ASSERT): Likewise.
87524         * tests/test-linked_list.c (ASSERT): Likewise.
87525         * tests/test-linkedhash_list.c (ASSERT): Likewise.
87526         * tests/test-localename.c (ASSERT): Likewise.
87527         * tests/test-lseek.c (ASSERT): Likewise.
87528         * tests/test-mbscasecmp.c (ASSERT): Likewise.
87529         * tests/test-mbscasestr1.c (ASSERT): Likewise.
87530         * tests/test-mbscasestr2.c (ASSERT): Likewise.
87531         * tests/test-mbscasestr3.c (ASSERT): Likewise.
87532         * tests/test-mbscasestr4.c (ASSERT): Likewise.
87533         * tests/test-mbschr.c (ASSERT): Likewise.
87534         * tests/test-mbscspn.c (ASSERT): Likewise.
87535         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
87536         * tests/test-mbspbrk.c (ASSERT): Likewise.
87537         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
87538         * tests/test-mbsrchr.c (ASSERT): Likewise.
87539         * tests/test-mbsspn.c (ASSERT): Likewise.
87540         * tests/test-mbsstr1.c (ASSERT): Likewise.
87541         * tests/test-mbsstr2.c (ASSERT): Likewise.
87542         * tests/test-mbsstr3.c (ASSERT): Likewise.
87543         * tests/test-memchr2.c (ASSERT): Likewise.
87544         * tests/test-memmem.c (ASSERT): Likewise.
87545         * tests/test-open.c (ASSERT): Likewise.
87546         * tests/test-printf-frexp.c (ASSERT): Likewise.
87547         * tests/test-printf-frexpl.c (ASSERT): Likewise.
87548         * tests/test-printf-posix.c (ASSERT): Likewise.
87549         * tests/test-quotearg.c (ASSERT): Likewise.
87550         * tests/test-rbtree_list.c (ASSERT): Likewise.
87551         * tests/test-rbtree_oset.c (ASSERT): Likewise.
87552         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
87553         * tests/test-round1.c (ASSERT): Likewise.
87554         * tests/test-roundf1.c (ASSERT): Likewise.
87555         * tests/test-roundl.c (ASSERT): Likewise.
87556         * tests/test-signbit.c (ASSERT): Likewise.
87557         * tests/test-sleep.c (ASSERT): Likewise.
87558         * tests/test-snprintf-posix.c (ASSERT): Likewise.
87559         * tests/test-snprintf.c (ASSERT): Likewise.
87560         * tests/test-sprintf-posix.c (ASSERT): Likewise.
87561         * tests/test-stat-time.c (ASSERT): Likewise.
87562         * tests/test-strcasestr.c (ASSERT): Likewise.
87563         * tests/test-strerror.c (ASSERT): Likewise.
87564         * tests/test-striconv.c (ASSERT): Likewise.
87565         * tests/test-striconveh.c (ASSERT): Likewise.
87566         * tests/test-striconveha.c (ASSERT): Likewise.
87567         * tests/test-strsignal.c (ASSERT): Likewise.
87568         * tests/test-strstr.c (ASSERT): Likewise.
87569         * tests/test-strtod.c (ASSERT): Likewise.
87570         * tests/test-trunc1.c (ASSERT): Likewise.
87571         * tests/test-trunc2.c (ASSERT): Likewise.
87572         * tests/test-truncf1.c (ASSERT): Likewise.
87573         * tests/test-truncf2.c (ASSERT): Likewise.
87574         * tests/test-truncl.c (ASSERT): Likewise.
87575         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
87576         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
87577         * tests/test-vasnprintf.c (ASSERT): Likewise.
87578         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
87579         * tests/test-vasprintf.c (ASSERT): Likewise.
87580         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
87581         * tests/test-vprintf-posix.c (ASSERT): Likewise.
87582         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
87583         * tests/test-vsnprintf.c (ASSERT): Likewise.
87584         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
87585         * tests/test-wcwidth.c (ASSERT): Likewise.
87586         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
87587         * tests/test-xprintf-posix.c (ASSERT): Likewise.
87588         * tests/test-xvasprintf.c (ASSERT): Likewise.
87589         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
87590         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
87591         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
87592         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
87593         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
87594         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
87595         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
87596         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
87597         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
87598         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
87599         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
87600         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
87601         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
87602         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
87603         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
87604         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
87605         * tests/unictype/test-block_list.c (ASSERT): Likewise.
87606         * tests/unictype/test-block_of.c (ASSERT): Likewise.
87607         * tests/unictype/test-block_test.c (ASSERT): Likewise.
87608         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
87609         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
87610         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
87611         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
87612         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
87613         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
87614         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
87615         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
87616         * tests/unictype/test-combining.c (ASSERT): Likewise.
87617         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
87618         * tests/unictype/test-digit.c (ASSERT): Likewise.
87619         * tests/unictype/test-mirror.c (ASSERT): Likewise.
87620         * tests/unictype/test-numeric.c (ASSERT): Likewise.
87621         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
87622         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
87623         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
87624         * tests/unictype/test-scripts.c (ASSERT): Likewise.
87625         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
87626         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
87627         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
87628         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
87629         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
87630         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
87631         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
87632         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
87633         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
87634         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
87635         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
87636         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
87637         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
87638         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
87639         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
87640         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
87641         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
87642         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
87643         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
87644         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
87645         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
87646         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
87647         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
87648         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
87649         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
87650         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
87651         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
87652         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
87653         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
87654         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
87655         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
87656         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
87657         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
87658         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
87659         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
87660         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
87661         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
87662         Reported by Eric Blake.
87664 2008-04-11  Bruno Haible  <bruno@clisp.org>
87666         * lib/wchar.in.h: Tweak comment.
87668 2008-04-11  Bruno Haible  <bruno@clisp.org>
87670         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
87671         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
87672         gl_COMMON.
87673         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
87675 2008-04-11  Bruno Haible  <bruno@clisp.org>
87677         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
87679 2008-04-11  Simon Josefsson  <simon@josefsson.org>
87681         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
87682         of attempting to use non-existing /dev/*random.  Based on patch
87683         from Adam Strzelecki <ono@java.pl> in
87684         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
87686 2008-04-08  Bruno Haible  <bruno@clisp.org>
87688         Add tentative support for emx+gcc.
87689         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
87690         * lib/fpurge.c (fpurge): Likewise.
87691         * lib/freadable.c (freadable): Likewise.
87692         * lib/freadahead.c (freadahead): Likewise.
87693         * lib/freading.c (freading): Likewise.
87694         * lib/freadptr.c (freadptr): Likewise.
87695         * lib/freadseek.c (freadptrinc): Likewise.
87696         * lib/fseeko.c (rpl_fseeko): Likewise.
87697         * lib/fseterr.c (fseterr): Likewise.
87698         * lib/fwritable.c (fwritable): Likewise.
87699         * lib/fwriting.c (fwriting): Likewise.
87700         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
87702 2008-04-09  Eric Blake  <ebb9@byu.net>
87704         Avoid some autoconf warnings.
87705         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
87706         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
87707         * m4/afs.m4 (gl_AFS): Likewise.
87708         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
87709         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
87710         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
87711         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
87712         (gl_INTEGER_TYPE_SUFFIX): Likewise.
87713         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
87714         (AC_CHECK_DECLS_ONCE): Likewise.
87715         Rename file...
87716         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
87717         gnulib-tool requires autoconf 2.59 or better.
87718         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
87720 2008-04-08  Eric Blake  <ebb9@byu.net>
87722         Use 'git describe --match' if present (added in git 1.5.5).
87723         * build-aux/git-version-gen: Limit result to tags that match 'v*'
87724         if possible.
87726 2008-04-08  Bruno Haible  <bruno@clisp.org>
87728         Add tentative support for OpenServer.
87729         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
87730         _ptr, _cnt.
87731         * lib/fpurge.c (fpurge): Likewise.
87732         * lib/freadable.c (freadable): Likewise.
87733         * lib/freadahead.c (freadahead): Likewise.
87734         * lib/freading.c (freading): Likewise.
87735         * lib/freadptr.c (freadptr): Likewise.
87736         * lib/freadseek.c (freadptrinc): Likewise.
87737         * lib/fseeko.c (rpl_fseeko): Likewise.
87738         * lib/fseterr.c (fseterr): Likewise.
87739         * lib/fwritable.c (fwritable): Likewise.
87740         * lib/fwriting.c (fwriting): Likewise.
87741         Reported by Roger Cornelius <rac@tenzing.org> and
87742         Brian K. White <brian@aljex.com>.
87744 2008-04-06  Jim Meyering  <meyering@redhat.com>
87746         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
87748 2008-04-06  Bruno Haible  <bruno@clisp.org>
87750         Avoid possible error with non-ASCII bytes in UTF-8 locales.
87751         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
87752         * tests/test-printf-posix.sh: Likewise.
87753         * tests/test-vfprintf-posix.sh: Likewise.
87754         * tests/test-vprintf-posix.sh: Likewise.
87755         * tests/test-xprintf-posix.sh: Likewise.
87757 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87759         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
87760         hide error from 'ls', needed on OS/2.
87761         Report by Elbert Pol <elbert.pol@gmail.com>.
87763 2008-04-04  Eric Blake  <ebb9@byu.net>
87765         Make test-fseeko.c failures meaningful.
87766         * tests/test-fseeko.c: Print line number on failure.
87767         * tests/test-fseek.c: Likewise.
87768         Reported by Nelson H. F. Beebe.
87770         Improve strtod bug detection check.
87771         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
87772         required for Solaris 10.
87773         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
87775 2008-04-04  Bruno Haible  <bruno@clisp.org>
87777         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
87778         by m4/setenv.m4.
87780 2008-04-03  Eric Blake  <ebb9@byu.net>
87782         Ensure sane .version contents.
87783         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
87784         version string.
87785         * build-aux/git-version-gen: Improve documentation.
87787         Make GNU make output nicer.
87788         * top/GNUmakefile [!_have-Makefile]: Add dependency on
87789         MAKECMDGOALS to enforce message for all command line targets.  Set
87790         srcdir for use in maint.mk.
87792         Another maintainer tweak.
87793         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
87794         a target that regenerates version.
87796 2008-04-03  Jim Meyering  <meyering@redhat.com>
87798         vc-list-files: don't cause coreutils "make po-check" failure
87799         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
87801 2008-04-03  Eric Blake  <ebb9@byu.net>
87803         Allow VPATH usage of vc-list-files.
87804         * build-aux/vc-list-files (scriptversion): Add timestamp.
87805         (options): Add --help, --version, -C.
87806         (CVS): Support installed cvsu.
87808 2008-04-02  Bruno Haible  <bruno@clisp.org>
87810         Avoid some "statement with no effect" warnings from gcc.
87811         * tests/test-wctype.c (main): Explicitly ignore unused values.
87812         Reported by Jim Meyering.
87814 2008-04-02  Jim Meyering  <meyering@redhat.com>
87816         Avoid some warnings from "gcc -Wshadow".
87817         * tests/test-frexp.c (exp): Define to a different identifier.
87818         * tests/test-frexpl.c (exp): Likewise.
87820 2008-04-03  Jim Meyering  <meyering@redhat.com>
87822         bootstrap: remove dangling *.[ch] symlinks from lib
87823         * build-aux/bootstrap [dangling symlink removal]: Move find's
87824         -depth option to precede all others, to avoid a warning.
87825         Remove *.[ch] files too, and from "$source_base" (usually lib/).
87827 2008-04-02  Bruno Haible  <bruno@clisp.org>
87829         Avoid some warnings from "gcc -Wshadow".
87830         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
87831         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
87832         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
87833         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
87834         Reported by Jim Meyering.
87836 2008-04-01  Bruno Haible  <bruno@clisp.org>
87838         Fix test to work on IRIX 6.5 with cc.
87839         * tests/test-math.c (numeric_equal): New function.
87840         (main): Use it.
87842 2008-04-01  Bruno Haible  <bruno@clisp.org>
87844         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
87846 2008-04-01  Bruno Haible  <bruno@clisp.org>
87848         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
87849         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
87850         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
87851         (Depends-on): Remove math.
87853         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
87854         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
87855         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
87856         (Depends-on): Remove math.
87858         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
87859         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
87860         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
87861         (Depends-on): Remove math.
87862         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
87863         (Depends-on): Remove math.
87865         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
87866         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
87867         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
87868         (Depends-on): Remove math.
87869         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
87870         (Depends-on): Remove math.
87872         * tests/test-round1.c: Include nan.h.
87873         (main): Use NaNd instead of NAN.
87874         * modules/round-tests (Files): Add tests/nan.h.
87876         * tests/test-trunc1.c: Include nan.h.
87877         (main): Use NaNd instead of NAN.
87878         * modules/trunc-tests (Files): Add tests/nan.h.
87880         * tests/test-roundf1.c: Include nan.h.
87881         (main): Use NaNf instead of NAN.
87882         * modules/roundf-tests (Files): Add tests/nan.h.
87884         * tests/test-truncf1.c: Include nan.h.
87885         (main): Use NaNf instead of NAN.
87886         * modules/truncf-tests (Files): Add tests/nan.h.
87888         * tests/test-ceilf1.c: Include nan.h.
87889         (main): Use NaNf instead of NAN.
87890         * modules/ceilf-tests (Files): Add tests/nan.h.
87892         * tests/test-floorf1.c: Include nan.h.
87893         (main): Use NaNf instead of NAN.
87894         * modules/floorf-tests (Files): Add tests/nan.h.
87896         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
87897         (main): Use NaNf instead of NAN.
87898         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
87900         * tests/test-isnand.c: Include nan.h instead of <math.h>.
87901         (main): Use NaNd instead of NAN.
87902         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
87904         * tests/test-frexp.c: Include nan.h.
87905         (main): Use NaNd instead of NAN.
87906         * modules/frexp-tests (Files): Add tests/nan.h.
87908         * lib/isnan.c: Don't include <math.h>.
87909         (FUNC): Don't use NAN macro.
87910         * modules/isnand-nolibm (Depends-on): Remove math.
87911         * modules/isnanf-nolibm (Depends-on): Remove math.
87912         * modules/isnanl (Depends-on): Remove math.
87913         * modules/isnanl-nolibm (Depends-on): Remove math.
87915         * tests/nan.h: New file.
87917 2008-04-01  Eric Blake  <ebb9@byu.net>
87919         Fix typos.
87920         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
87921         values to be the right type.
87923         For now, cater to gnulib strtod inaccuracies.
87924         * tests/test-strtod.c (main): Allow 1-ulp error on expected
87925         fractional results.  While not as nice from a QoI perspective, it
87926         is a quicker patch than correctly implementing decimal to binary
87927         rounding.
87929 2008-03-31  Eric Blake  <ebb9@byu.net>
87931         Guarantee a definition of NAN.
87932         * lib/math.in.h (NAN): Define if missing.
87933         * tests/test-math.c (main): Test it.
87934         * doc/posix-headers/math.texi (math.h): Document this.
87935         * lib/isnan.c (rpl_isnand): Use it.
87936         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
87937         * tests/test-floorf1.c (NaN): Likewise.
87938         * tests/test-frexp.c (NaN): Likewise.
87939         * tests/test-isnand.c (NaN): Likewise.
87940         * tests/test-isnanf.c (NaN): Likewise.
87941         * tests/test-round1.c (NaN): Likewise.
87942         * tests/test-roundf1.c (NaN): Likewise.
87943         * tests/test-snprintf-posix.h (NaN): Likewise.
87944         * tests/test-sprintf-posix.h (NaN): Likewise.
87945         * tests/test-trunc1.c (NaN): Likewise.
87946         * tests/test-truncf1.c (NaN): Likewise.
87947         * tests/test-vasnprintf-posix.c (NaN): Likewise.
87948         * tests/test-vasprintf-posix.c (NaN): Likewise.
87949         * modules/isnand-nolibm (Depends-on): Add math.
87950         * modules/isnanf-nolibm (Depends-on): Likewise.
87951         * modules/isnanl (Depends-on): Likewise.
87952         * modules/isnanl-nolibm (Depends-on): Likewise.
87953         * modules/snprintf-posix-tests (Depends-on): Likewise.
87954         * modules/sprintf-posix-tests (Depends-on): Likewise.
87955         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
87956         * modules/vsprintf-posix-tests (Depends-on): Likewise.
87957         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
87958         * modules/vasprintf-posix-tests (Depends-on): Likewise.
87960 2008-03-31  Bruno Haible  <bruno@clisp.org>
87962         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
87963         * doc/posix-functions/strtod.texi: Likewise.
87965 2008-03-31  Bruno Haible  <bruno@clisp.org>
87967         * tests/test-strtod.c (main): Don't use C99 syntax.
87969 2008-03-31  Bruno Haible  <bruno@clisp.org>
87971         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
87972         Reported by Eric Blake.
87974 2008-03-31  Jim Meyering  <meyering@redhat.com>
87976         Don't compare actual signbit return values.
87977         * tests/test-strtod.c (main): Rather, compare only their
87978         zero/non-zero nature.
87980 2008-03-31  Eric Blake  <ebb9@byu.net>
87982         More strtod documentation.
87983         * doc/posix-functions/strtod.texi (strtod): Interpret more test
87984         failures as distinct bugs.
87986 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
87988         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
87989         Problem reported by Erik Benada in
87990         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
87992 2008-03-30  Bruno Haible  <bruno@clisp.org>
87994         * tests/test-strtod.c: Add comments about which assertion fails on which
87995         platform.
87996         * doc/posix-functions/strtod.texi: Add info about many more platforms.
87998 2008-03-30  Eric Blake  <ebb9@byu.net>
88000         Test signbit behavior on zeros.
88001         * tests/test-signbit.c (test_signbitf): Add tests for zero.
88002         (test_signbitd, test_signbitl): Likewise.
88004         More strtod touchups.
88005         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
88006         sign of negative underflow, for now.  Use .5, not .1.
88007         * doc/posix-functions/strtod.texi (strtod): Mention these
88008         limitations.
88009         Reported by Jim Meyering.
88011 2008-03-30  Bruno Haible  <bruno@clisp.org>
88013         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
88014         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
88016 2008-03-30  Bruno Haible  <bruno@clisp.org>
88018         Avoid failure when attempting to return empty iconv results on some
88019         platforms.
88020         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
88021         allocation, don't report ENOMEM when the resulting string is empty.
88023 2008-03-30  Bruno Haible  <bruno@clisp.org>
88025         Fix buffer overrun.
88026         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
88027         Don't consider the width for tmp_length. Check count against tmp_length
88028         before doing the padding. Ensure enough allocation during padding.
88030 2008-03-30  Eric Blake  <ebb9@byu.net>
88032         strtod touchups.
88033         * lib/strtod.c (strtod): Avoid compiler warnings.
88034         Reported by Jim Meyering.
88036 2008-03-30  Bruno Haible  <bruno@clisp.org>
88038         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
88039         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
88040         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
88041         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
88042         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
88043         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
88044         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
88045         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
88047         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
88048         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
88049         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
88050         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
88051         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
88052         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
88053         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
88054         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
88056         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
88057         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
88058         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
88059         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
88060         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
88061         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
88062         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
88063         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
88065         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
88066         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
88068         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
88069         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
88071         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
88072         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
88074         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
88075         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
88076         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
88078         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
88079         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
88080         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
88082         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
88083         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
88084         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
88086         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
88087         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
88088         * modules/vasprintf (Depends-on): Add EOVERFLOW.
88090         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
88091         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
88092         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
88093         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
88094         (Depends-on): Add EOVERFLOW.
88095         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
88096         (Depends-on): Add EOVERFLOW.
88097         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
88098         (Depends-on): Add EOVERFLOW.
88099         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
88100         (Depends-on): Add EOVERFLOW.
88101         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
88102         (Depends-on): Add EOVERFLOW.
88103         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
88104         (Depends-on): Add EOVERFLOW.
88105         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
88106         (Depends-on): Add EOVERFLOW.
88107         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
88108         (Depends-on): Add EOVERFLOW.
88110         * lib/sprintf.c (EOVERFLOW): Remove fallback.
88111         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
88112         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
88114         * lib/snprintf.c (EOVERFLOW): Remove fallback.
88115         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
88116         * modules/snprintf (Depends-on): Add EOVERFLOW.
88118         * lib/poll.c (EOVERFLOW): Remove fallback.
88119         * modules/poll (Depends-on): Add EOVERFLOW.
88121         * lib/getugroups.c (EOVERFLOW): Remove fallback.
88122         * modules/getugroups (Depends-on): Add EOVERFLOW.
88124         * lib/getdelim.c (EOVERFLOW): Remove fallback.
88125         * modules/getdelim (Depends-on): Add EOVERFLOW.
88127         * lib/ftell.c (EOVERFLOW): Remove fallback.
88128         * modules/ftell (Depends-on): Add EOVERFLOW.
88130         * lib/fprintf.c (EOVERFLOW): Remove fallback.
88131         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
88132         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
88134         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
88136         * modules/EOVERFLOW-tests: New file.
88137         * tests/test-EOVERFLOW.c: New file.
88139         * modules/EOVERFLOW: New file.
88140         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
88142 2008-03-30  Bruno Haible  <bruno@clisp.org>
88144         Fix bug introduced on 2007-06-10.
88145         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
88146         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
88148 2008-03-30  Bruno Haible  <bruno@clisp.org>
88150         Improve freadseek's efficiency after ungetc.
88151         * lib/freadseek.c: Include freadahead.h.
88152         (freadptrinc): New function, extracted from freadseek.
88153         (freadseek): Use it in a loop. Use freadahead to determine the number
88154         of loop iterations.
88155         * modules/freadseek (Depends-on): Add freadahead.
88156         (configure.ac): Require AC_C_INLINE.
88158 2008-03-30  Bruno Haible  <bruno@clisp.org>
88160         * lib/freadseek.c (freadseek): Don't ignore the return value of
88161         freadptr.
88163 2008-03-29  Eric Blake  <ebb9@byu.net>
88165         Add hex float support.
88166         * modules/strtod (Depends-on): Add c-ctype.
88167         (Link): Mention POW_LIB.
88168         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
88169         whitespace between 'e' and exponent.
88170         * tests/test-strtod.c (main): Enable hex float tests.
88171         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
88172         now provides.
88174         Document various strtod bugs, with some fixes.
88175         * doc/posix-functions/strtod.texi (strtod): Document bugs with
88176         "-0x", "inf", "nan", and hex constants.
88177         * doc/posix-functions/atof.texi (atof): Likewise.
88178         * modules/stdlib (Makefile.am): Support strtod.
88179         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
88180         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
88181         detect additional strtod bugs.
88182         * lib/stdlib.in.h (rpl_strtod): Add declarations.
88183         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
88184         bool where appropriate.  Parse 'inf' and 'nan'.
88185         * tests/test-strtod.c: New file.
88186         * modules/strtod (Depends-on): Add stdbool, stdlib.
88187         (configure.ac): Turn on module indicator.
88188         * modules/strtod-tests: New module.
88190 2008-03-29  Eric Blake  <ebb9@byu.net>
88192         Fix ftell on mingw.
88193         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
88194         * modules/ftell-tests (Depends-on): Add binary-io.
88195         * modules/ftello-tests (Depends-on): Likewise.
88196         * tests/test-ftell.c (main): Enhance test to cover behavior after
88197         ungetc.  Enforce binary mode.
88198         * tests/test-ftello.c (main): Likewise.
88200         Pass test-freadseek on cygwin.
88201         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
88202         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
88203         ungetc buffer.
88205         * tests/test-fflush2.c (main): Fix typo.
88207 2008-03-29  Bruno Haible  <bruno@clisp.org>
88209         * tests/test-fflush2.c (main): Temporarily disable the contents of
88210         this test.
88211         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
88212         Reported by Eric Blake.
88214 2008-03-28  Simon Josefsson  <simon@josefsson.org>
88216         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
88217         (GC_SHA224_DIGEST_SIZE): Add.
88219         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
88220         (gc_hash_digest_length): Likewise.
88221         (gc_hash_buffer): Likewise.
88223 2008-03-25  Bruno Haible  <bruno@clisp.org>
88225         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
88226         detail which gettext release to use.
88227         Reported by Simon Josefsson.
88229 2008-03-26  Jim Meyering  <meyering@redhat.com>
88231         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
88232         * modules/gnumakefile (clean-GNUmakefile): Also, use
88233         test ... && ... || : syntax rather than if-then ... fi.
88235         gnumakefile: Don't double-quote-expand $(VPATH) value.
88236         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
88238 2008-03-24  Eric Blake  <ebb9@byu.net>
88240         Alter GNUmakefile to install into top directory.
88241         * modules/maintainer-makefile: Split, and add dependency...
88242         * modules/gnumakefile: to this new module.
88243         * build-aux/GNUmakefile: Move...
88244         * top/GNUmakefile: ...here.
88245         * build-aux/maint.mk: Move...
88246         * top/maint.mk: ...here.
88247         * MODULES.html.sh (Support for maintaining...): Document new
88248         module.
88250 2008-03-23  Bruno Haible  <bruno@clisp.org>
88252         * gnulib-tool: New options --vc-files, --no-vc-files.
88253         (func_usage): Document them.
88254         (vc_files): New variable.
88255         (func_import): Consider vc_files.
88256         (func_create_testdir): Set vc_files to empty.
88257         Suggested by Jim Meyering and Karl Berry.
88259 2008-03-23  Bruno Haible  <bruno@clisp.org>
88261         Fix regex compilation error on HP-UX 11.
88262         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
88263         * modules/regex (Files): Add m4/mbstate_t.m4.
88264         Reported by Ton Voon <ton.voon@altinity.com>.
88266 2008-03-23  Bruno Haible  <bruno@clisp.org>
88268         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
88270 2008-03-23  Eric Blake  <ebb9@byu.net>
88271             Bruno Haible  <bruno@clisp.org>
88273         Install files from top/ in the destination directory.
88274         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
88275         augmentation also for the files from top/.
88276         (func_import, func_create_testdir): Rewrite file names:
88277         top/filename -> filename.
88279 2008-03-23  Bruno Haible  <bruno@clisp.org>
88281         Tweak "gnulib --version" output.
88282         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
88284 2008-03-23  Bruno Haible  <bruno@clisp.org>
88286         Tweak "gnulib --version" output.
88287         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
88288         rather than contents of ChangeLog, when possible.
88290 2008-03-21  Eric Blake  <ebb9@byu.net>
88292         More --version tweaks.
88293         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
88294         date of last ChangeLog entry.
88296 2008-03-21  Jim Meyering  <meyering@redhat.com>
88298         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
88300 2008-03-20  Eric Blake  <ebb9@byu.net>
88302         VPATH fix.
88303         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
88305 2008-03-20  Simon Josefsson  <simon@josefsson.org>
88307         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
88308         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
88310 2008-03-20  Eric Blake  <ebb9@byu.net>
88312         Sync GNUmakefile with coreutils.
88313         * build-aux/GNUmakefile (have-Makefile): Rename...
88314         (_have-Makefile): ...to this, for namespace consideration.
88315         (GNUmakefile.cfg): Include, if present.
88316         (_autoreconf): Define a default.
88317         (_is-dist-target): New rule for rebuilds to pick up intra-release
88318         version.
88319         (maint-cfg.mk): Rename...
88320         (cfg.mk): ...to this.
88322 2008-03-18  Jim Meyering  <meyering@redhat.com>
88324         New script and module: mktempd
88325         * MODULES.html.sh (maint+release support): Add mktempd.
88326         * build-aux/mktempd: New file.
88327         * modules/mktempd: New file.
88329 2008-03-15  Jim Meyering  <meyering@redhat.com>
88331         Undo last change.
88332         * lib/sha1.c, lib/md5.c: 63 != ~63.
88333         Reported by Andreas Schwab.
88335         sha1.c, md5.c: Hoist a redundant expression.
88336         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
88337         "ctx->buflen" only once, before calling *_process_block.
88338         * lib/md5.c (md5_process_bytes): Likewise.
88340 2008-03-14  Eric Blake  <ebb9@byu.net>
88342         Bump copyright year in files generated by gnulib-tool.
88343         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
88344         gnulib-tool, rather than hard-coding it.
88346         Fix 'gnulib-tool --version' output to work with git.
88347         * gnulib-tool (func_gnulib_dir): New function, extracted from...
88348         (startup): ...here.
88349         (func_version): Use it to invoke git-version-gen, rather than
88350         relying on CVS keyword expansion.  Modernize wording.
88351         (cvsdatestamp, last_checkin_date, version): Kill unused
88352         variables.
88354 2008-03-12  Jim Meyering  <meyering@redhat.com>
88356         Recognize optional cast of the argument to free.
88357         * build-aux/useless-if-before-free: Update regexps.
88359         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
88361 2008-03-11  Bruno Haible  <bruno@clisp.org>
88363         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
88364         by a single package.
88365         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
88366         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
88367         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
88368         Reported by Sam Steingold <sds@gnu.org>.
88370 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
88372         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
88373         repositories.
88375 2008-03-11  Bruno Haible  <bruno@clisp.org>
88377         Avoid conflicts between local macro definitions.
88378         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
88379         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
88381 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
88382             Bruno Haible  <bruno@clisp.org>
88384         Make va_copy work with some version of xlc on AIX 5.1.
88385         * lib/stdarg.in.h: New file.
88386         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
88387         On AIX, use a <stdarg.h> file substitute.
88388         * modules/stdarg (Files): Add lib/stdarg.in.h.
88389         (Depends-on): Add include_next.
88390         (Makefile.am): Build a stdarg.h substitute if requested.
88391         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
88393 2008-03-10  Bruno Haible  <bruno@clisp.org>
88395         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
88396         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
88397         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
88399 2008-03-10  Bruno Haible  <bruno@clisp.org>
88401         * modules/stdlib (Depends-on): Add include_next, remove
88402         absolute-header.
88404 2008-03-09  Bruno Haible  <bruno@clisp.org>
88406         * lib/freadahead.h (freadahead): Document more precisely.
88407         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
88408         the sum of both buffer sizes.
88409         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
88410         * NEWS: Document the change.
88412 2008-03-09  Bruno Haible  <bruno@clisp.org>
88414         Extend freadptr to return also the buffer size.
88415         * lib/freadptr.h (freadptr): Add sizep argument.
88416         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
88417         (freadptr): Add sizep argument. Determine buffer size like freadahead
88418         does.
88419         * tests/test-freadptr.c: Don't include freadahead.h.
88420         (main): Adapt for new calling convention of freadptr.
88421         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
88422         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
88423         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
88424         tests/test-freadptr2.sh.
88425         (Depends): Remove freadahead.
88426         (TESTS): Add test-freadptr2.sh.
88427         (check_PROGRAMS): Add test-freadptr2.
88429 2008-03-09  Bruno Haible  <bruno@clisp.org>
88431         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
88432         Report and solution by Simon Josefsson.
88434 2008-03-06  Bruno Haible  <bruno@clisp.org>
88436         Make fflush after ungetc work on BSD platforms.
88437         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
88438         * tests/test-fflush2.c: New file.
88439         * tests/test-fflush2.sh: New file.
88440         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
88441         tests/test-fflush2.c.
88442         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
88443         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
88445 2008-03-06  Eric Blake  <ebb9@byu.net>
88447         Likewise for ftello.
88448         * modules/ftello (Dependencies): Add extensions.
88449         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
88451 2008-03-06  Bruno Haible  <bruno@clisp.org>
88453         * modules/fseeko (Dependencies): Add extensions.
88454         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
88455         Needed on glibc systems.
88457 2008-03-06  Bruno Haible  <bruno@clisp.org>
88459         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
88460         email address.
88461         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
88463 2008-03-06  Bruno Haible  <bruno@clisp.org>
88465         * users.txt: Add libgnupdf.
88467 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
88469         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
88470         (Header File Substitutes, Function Substitutes,
88471         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
88472         (Build robot for gnulib): Fix typo.
88474 2008-03-06  Bruno Haible  <bruno@clisp.org>
88476         * doc/gnulib-tool.texi (VCS Issues): Small updates.
88477         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
88479 2008-03-06  Bruno Haible  <bruno@clisp.org>
88481         * doc/func.texi: New file, extracted from doc/gnulib.texi.
88482         * doc/gnulib.texi: Include it.
88484 2008-03-06  Simon Josefsson  <simon@josefsson.org>
88486         * modules/func (License): Change license to unlimited; there was
88487         no LGPL parts in the module anyway.
88489 2008-03-06  Simon Josefsson  <simon@josefsson.org>
88491         * modules/__func__: Renamed to modules/func.
88492         * modules/__func__-tests: Renamed to modules/func-tests.
88493         * tests/test-__func__.c: Renamed to tests/test-func.c.
88494         * m4/__func__.m4: Renamed to m4/func.m4.
88495         * doc/gnulib.texi (__func__): Section renamed to func.
88496         Suggested by Eric Blake <ebb9@byu.net>.
88498 2008-03-06  Simon Josefsson  <simon@josefsson.org>
88500         * doc/gnulib.texi (__func__): Use C99 terminology when talking
88501         about __func__.  Make example self-contained.  Suggested by Eric
88502         Blake <ebb9@byu.net>.
88504         * tests/test-__func__.c (main): Avoid extraneous () around __func.
88505         Suggested by Eric Blake <ebb9@byu.net>.
88507 2008-03-06  Simon Josefsson  <simon@josefsson.org>
88509         * modules/__func__: New file.
88510         * modules/__func__-tests: New file.
88511         * tests/test-__func__.c: New file.
88512         * m4/__func__.m4: New file.
88513         * doc/gnulib.texi (__func__): Document __func__ module.
88515 2008-03-05  Simon Josefsson  <simon@josefsson.org>
88517         * modules/byteswap (License): Re-license as LGPLv2+.
88519 2008-03-05  Simon Josefsson  <simon@josefsson.org>
88521         * doc/Makefile: Add pdf target.
88523 2008-03-05  Simon Josefsson  <simon@josefsson.org>
88525         * modules/inline (License): Use 'unlimited', since there are only
88526         *.m4 files in this module.
88528 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
88529             Bruno Haible  <bruno@clisp.org>
88531         Add support for HP C 7.1 on OpenVMS 8.3.
88532         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
88534 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
88536         Update VMS specifics.
88537         * lib/getopt.c [VMS]: Remove include of unixlib.h.
88539 2008-03-02  Jim Meyering  <meyering@redhat.com>
88541         Remove the last dependency on the "free" module.
88542         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
88543         Reported by Bob Proulx.
88545         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
88547         Remove useless "if" tests before free.  Deprecate "free" module.
88548         * doc/posix-functions/free.texi: Mention that this
88549         module is no longer useful.
88550         * modules/free (Notice): Say this module is obsolete.
88551         * modules/readutmp (Depends-on): Remove free.
88552         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
88553         * lib/putenv.c (putenv): Likewise.
88554         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
88555         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
88556         * tests/test-c-strcasestr.c (main): Likewise.
88557         * tests/test-c-strstr.c (main): Likewise.
88558         * tests/test-mbscasestr1.c (main): Likewise.
88559         * tests/test-mbscasestr2.c (main): Likewise.
88560         * tests/test-mbsstr1.c (main): Likewise.
88561         * tests/test-mbsstr2.c (main): Likewise.
88562         * tests/test-memmem.c (main): Likewise.
88563         * tests/test-strcasestr.c (main): Likewise.
88564         * tests/test-striconv.c (main): Likewise.
88565         * tests/test-striconveh.c (main): Likewise.
88566         * tests/test-striconveha.c (main): Likewise.
88567         * tests/test-strstr.c (main): Likewise.
88569         * build-aux/git-version-gen: Adjust a comment and the Usage string.
88571         bootstrap: sync from coreutils again
88572         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
88574 2008-03-01  Jim Meyering  <meyering@redhat.com>
88576         bootstrap: sync from coreutils
88577         * build-aux/bootstrap (update_po_files): Copy a .po file into place
88578         also when the target doesn't exist.
88580 2008-03-01  Eric Blake  <ebb9@byu.net>
88582         Fix bugs in last patch.
88583         * lib/memchr2.c (memchr2): Fix typo.
88584         * tests/test-memchr2.c: Test previous bug, and don't use GNU
88585         extension.
88586         Reported by Bruce Korb.
88588         New module 'memchr2'.
88589         * modules/memchr2: New file.
88590         * modules/memchr2-tests: Likewise.
88591         * lib/memchr2.h: Likewise.
88592         * lib/memchr2.c: Likewise, based on memchr.c.
88593         * tests/test-memchr2.c: New test.
88594         * MODULES.html.sh (String handling): Add memchr2.
88596 2008-02-29  Bruno Haible  <bruno@clisp.org>
88598         * modules/freadseek-tests: New file.
88599         * tests/test-freadseek.sh: New file.
88600         * tests/test-freadseek.c: New file.
88602         New module 'freadseek'.
88603         * modules/freadseek: New file.
88604         * lib/freadseek.h: New file.
88605         * lib/freadseek.c: New file.
88606         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
88608 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
88610         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
88611         wydawca.
88613         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
88614         program_invocation_name and program_invocation_short_name are
88615         present.
88617 2008-02-28  Bruno Haible  <bruno@clisp.org>
88619         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
88620         * tests/test-freadptr.sh: Also test non-seekable stdin.
88622 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
88624         * build-aux/bootstrap (source_base, m4_base)
88625         (doc_base, tests_base): New variables.
88626         (gnulib_tool_options): Do not hardcode base directories, use
88627         the above variables instead.
88629 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
88631         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
88633 2008-02-28  Bruno Haible  <bruno@clisp.org>
88635         * modules/freadptr-tests: New file.
88636         * tests/test-freadptr.sh: New file.
88637         * tests/test-freadptr.c: New file.
88639         New module 'freadptr'.
88640         * modules/freadptr: New file.
88641         * lib/freadptr.h: New file.
88642         * lib/freadptr.c: New file.
88643         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
88645 2008-02-26  Karl Berry  <karl@freefriends.org>
88647         Sync from Libtool:
88648         * libltdl/argz.c (argz_add, argz_count): New functions.
88649         * libltdl/argz.in.h: Declare them.
88650         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
88652 2008-02-22  Bruno Haible  <bruno@clisp.org>
88654         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
88655         is a pointer type.  Needed for HP-UX 10.
88656         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
88657         * doc/posix-functions/gmtime_r.texi: Likewise.
88658         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
88660 2008-02-24  Bruno Haible  <bruno@clisp.org>
88662         * modules/environ-tests: New file.
88663         * tests/test-environ.c: New file.
88665         New module 'environ'.
88666         * modules/environ: New file.
88667         * lib/unistd.in.h (environ): New declaration.
88668         * m4/environ.m4: New file.
88669         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
88670         after use.
88671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
88672         HAVE_DECL_ENVIRON.
88673         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
88674         HAVE_DECL_ENVIRON.
88675         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
88676         wrong claim that 'environ' is missing on some systems.
88677         * modules/execute (Depends-on): Add environ.
88678         * lib/execute.c (environ): Remove fallback declaration.
88679         * modules/pipe (Depends-on): Add environ.
88680         * lib/pipe.c (environ): Remove fallback declaration.
88681         * modules/setenv (Depends-on): Add environ.
88682         * lib/setenv.c (environ): Remove fallback declaration.
88683         * modules/unsetenv (Depends-on): Add environ.
88684         * lib/unsetenv.c (environ): Remove fallback declaration.
88685         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
88686         m4/environ.m4.
88687         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
88688         (gl_PREREQ_UNSETENV): Likewise.
88690 2008-02-24  Bruno Haible  <bruno@clisp.org>
88692         * doc/posix-functions/environ.texi: Document the MacOS X problem.
88694 2008-02-20  Bob Proulx  <bob@proulx.com>
88696         Enable use of older two part flavor 'git describe'.
88697         * build-aux/git-version-gen: If using the older two part flavor of
88698         git version then recreate the third part now present in the
88699         newer three part flavor of git describe.
88701 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
88703         * lib/fts.c (fts_build): Typo correction to comment.
88705 2008-02-17  Bruno Haible  <bruno@clisp.org>
88707         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
88708         generating no-op conflicts.
88710 2008-02-17  Bruno Haible  <bruno@clisp.org>
88712         Speed up by 10%.
88713         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
88714         result_entries, rather than an index-based loop.
88716 2008-02-17  Bruno Haible  <bruno@clisp.org>
88718         Speed up by 25%.
88719         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
88720         'hashcode_cached'.
88721         (entry_create): New function.
88722         (entry_hashcode): Use the cached hashcode if possible.
88723         (read_changelog_file, try_split_merged_entry): Use entry_create.
88725 2008-02-17  Bruno Haible  <bruno@clisp.org>
88727         Speed up from O(n^2) to O(n) for long ChangeLog files.
88728         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
88729         (read_changelog_file): Change implementation of entries_reversed list
88730         to rbtreehash.
88731         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
88733 2008-02-17  Bruno Haible  <bruno@clisp.org>
88735         New option --split-merged-entry.
88736         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
88737         (find_paragraph_end, try_split_merged_entry): New functions.
88738         (long_options): Add option --split-merged-entry.
88739         (usage): Document option --split-merged-entry.
88740         (main): Implement option --split-merged-entry.
88741         Reported by Eric Blake.
88743 2008-02-17  Bruno Haible  <bruno@clisp.org>
88745         * lib/git-merge-changelog.c: Include c-strstr.h.
88746         (main): Support the "git pull --rebase" situation.
88747         * modules/git-merge-changelog (Depends-on): Add c-strstr.
88748         Reported by Eric Blake.
88750 2008-02-16  Eric Blake  <ebb9@byu.net>
88752         Avoid doubling \ in common case of "c-maybe" quoting style.
88753         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
88754         eliding outer quotes.
88755         * lib/quotearg.h: Document this.
88756         * tests/test-quotearg.c (result_strings, inputs, results_g)
88757         (flag_results, locale_results): Test it by adding a new string to
88758         each test group.
88759         (compare_strings): Test new string.
88761 2008-02-13  Eric Blake  <ebb9@byu.net>
88763         Avoid trigraph quoting in default output.
88764         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
88765         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
88766         unless explicitly requested.
88767         * tests/test-quotearg.c (flag_results, main): Add additional tests.
88769 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
88771         Don't rely on signed integer overflowing to negative value.
88772         * lib/getugroups.c (getugroups): Include <limits.h>.
88773         Instead, compare against INT_MAX, and increment only if the test passes.
88775 2008-02-13  Jim Meyering  <meyering@redhat.com>
88776         and Eric Blake  <ebb9@byu.net>
88778         Avoid shadowing warning and compile errors on Linux.
88779         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
88780         forwarding macros on Linux.
88781         (dcgettext): Define a stub, for Linux.
88782         (results_g, main): Avoid warnings.
88784 2008-02-12  Eric Blake  <ebb9@byu.net>
88786         Silence warning in last patch.
88787         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
88789         Quotearg part 4: add tests, fix c-maybe colon quoting.
88790         * lib/quotearg.h: Improve documentation.
88791         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
88792         escapes when adding outer quotes.  When quoting trigraphs, use
88793         valid C notation.  When quoting NUL, omit extra characters if next
88794         character is not digit.  Alter prototype.
88795         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
88796         callers.
88797         * modules/quotearg-tests: New module.
88798         * tests/test-quotearg.c: New test.
88800 2008-02-07  Eric Blake  <ebb9@byu.net>
88802         Quotearg part 3: add flag to control outer quote elision.
88803         * lib/quotearg.h (c_maybe_quoting_style): New style.
88804         (enum quoting_flags): Better documentation of flags.
88805         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
88806         c-maybe style.
88807         (quotearg_buffer_restyled): Handle new flag to elide outer
88808         quotes.
88810         Quotearg part 2: add flag that can control NUL elision.
88811         * lib/quotearg.h (set_quoting_flags): New prototype.
88812         * lib/quotearg.c (struct quoting_options): Add flag field.
88813         (set_quoting_flags): New function.
88814         (quotearg_buffer_restyled): Add flags parameter.
88815         (quotearg_alloc_mem): Set the flag if length cannot be returned.
88816         (quotearg_n_options): Set the flag, since length cannot be
88817         returned.
88818         (quoting_options_from_style): Default flags correctly.
88820         Quotearg part 1: more wrappers, restore quotearg_char state.
88821         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
88822         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
88823         (quotearg_colon_mem): New wrappers.
88824         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
88825         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
88826         functions.
88827         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
88828         (quotearg_colon_mem): New functions.
88830 2008-02-11  Bruno Haible  <bruno@clisp.org>
88832         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
88833         library in the current directory: it does not work with parallel make.
88834         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88836 2008-02-11  Bruno Haible  <bruno@clisp.org>
88838         * .gitattributes: New file.
88840 2008-02-11  Jim Meyering  <meyering@redhat.com>
88842         useless-if-before-free: Fix reversed exit values.
88843         * build-aux/useless-if-before-free: Use correct values
88844         for EXIT_MATCH and EXIT_NO_MATCH.
88846         * build-aux/useless-if-before-free: Close stdout carefully.
88848 2008-02-10  Bruno Haible  <bruno@clisp.org>
88850         New module 'git-merge-changelog'.
88851         * modules/git-merge-changelog: New file.
88852         * lib/git-merge-changelog.c: New file.
88854 2008-02-10  Jim Meyering  <meyering@redhat.com>
88856         useless-if-before-free: New option: --list (-l).
88858         useless-if-before-free: Don't exit immediately upon open failure.
88859         * build-aux/useless-if-before-free: Exit 2 for errors.
88860         Upon failure to open a file, don't exit immediately.
88861         Rather, just warn and continue with any remaining files.
88863 2008-02-10  Bruno Haible  <bruno@clisp.org>
88865         New abstract list operation 'node_set_value'.
88866         * lib/gl_list.h (gl_list_node_set_value): New function.
88867         (struct gl_list_implementation): New field node_set_value.
88868         * lib/gl_list.c (gl_list_node_set_value): New function.
88869         * lib/gl_array_list.c (gl_array_node_set_value): New function.
88870         (gl_array_list_implementation): Update.
88871         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
88872         (gl_carray_list_implementation): Update.
88873         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
88874         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
88875         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
88876         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
88877         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
88878         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
88879         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
88880         Update.
88881         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
88882         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
88883         (gl_sublist_list_implementation): Update.
88885 2008-02-10  Bruno Haible  <bruno@clisp.org>
88887         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
88888         Needed when ELEMENT is #defined to 'some_type *'.
88890 2008-02-10  Jim Meyering  <meyering@redhat.com>
88892         New script and module: useless-if-before-free
88893         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
88894         * build-aux/useless-if-before-free: New file.
88895         * modules/useless-if-before-free: New file.
88897         * build-aux/gitlog-to-changelog: Use committer date, not author date.
88899         xstrtol_error: Fix typo.
88900         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
88901         s/exit_failure/exit_status/.
88903 2008-02-09  Jim Meyering  <meyering@redhat.com>
88905         New script and module: gitlog-to-changelog
88906         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
88907         * modules/gitlog-to-changelog: New file.
88908         * build-aux/gitlog-to-changelog: New file.
88910 2008-02-08  Jim Meyering  <meyering@redhat.com>
88912         Avoid two "parameter unused" warnings.
88913         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
88914         Mark "st" as used.
88916         Use "git COMMAND", not "git-COMMAND".
88917         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
88918         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
88919         * build-aux/git-version-gen: Use "git status", not "git-status".
88921 2008-02-07  Bruno Haible  <bruno@clisp.org>
88923         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
88924         Avoids a crash on Windows Vista.
88925         Reported by Adam Strzelecki <ono@java.pl> via
88926         Simon Josefsson <simon@josefsson.org>.
88928 2008-02-06  Bruno Haible  <bruno@clisp.org>
88930         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
88931         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
88932         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
88933         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
88934         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
88935         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88936         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
88937         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
88938         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88939         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88940         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88941         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88942         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88943         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88944         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88945         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
88946         left-adjust flag.
88947         * tests/test-snprintf-posix.h (test_function): Likewise.
88948         * tests/test-sprintf-posix.h (test_function): Likewise.
88949         * tests/test-vasprintf-posix.c (test_function): Likewise.
88950         * doc/posix-functions/fprintf.texi: Update.
88951         * doc/posix-functions/printf.texi: Update.
88952         * doc/posix-functions/snprintf.texi: Update.
88953         * doc/posix-functions/sprintf.texi: Update.
88954         * doc/posix-functions/vfprintf.texi: Update.
88955         * doc/posix-functions/vprintf.texi: Update.
88956         * doc/posix-functions/vsnprintf.texi: Update.
88957         * doc/posix-functions/vsprintf.texi: Update.
88958         Reported by Peter Fales <psfales@alcatel-lucent.com>.
88960 2008-02-06  Bruno Haible  <bruno@clisp.org>
88962         Fix bug introduced on 2008-01-26.
88963         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
88965 2008-02-06  Bruno Haible  <bruno@clisp.org>
88967         Fix bug introduced on 2007-06-10.
88968         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
88969         !NEED_PRINTF_FLAG_ZERO.
88971 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
88973         getloadavg: use libperfstat on AIX5
88974         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
88976 2008-02-03  Bruno Haible  <bruno@clisp.org>
88978         * lib/diffseq.h: Add comments about required #includes.
88979         Reported by Michael Biggs <gnulib@doubleplum.net>.
88981 2008-02-01  Bruno Haible  <bruno@clisp.org>
88983         * users.txt: Add gnuit.
88985 2008-01-31  Bruno Haible  <bruno@clisp.org>
88987         * lib/md4.c (set_uint32): Mark as inline.
88988         * lib/md5.c (set_uint32): Likewise.
88989         * lib/sha1.c (set_uint32): Likewise.
88990         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
88991         * m4/md5.m4 (gl_MD5): Likewise.
88992         * m4/sha1.m4 (gl_SHA1): Likewise.
88994 2008-01-31  Jim Meyering  <meyering@redhat.com>
88996         Use "sizeof VAR", rather than a literal "4".
88997         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
88998         * lib/md4.c (md4_read_ctx): Likewise.
88999         * lib/sha1.c (sha1_read_ctx): Likewise.
89001 2008-01-31  Simon Josefsson  <simon@josefsson.org>
89003         * tests/test-sha1.c: New file, based on test-md5.c.
89005         * modules/crypto/sha1-tests: New file.
89007 2008-01-31  Simon Josefsson  <simon@josefsson.org>
89009         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
89011 2008-01-31  Jim Meyering  <meyering@redhat.com>
89013         Prefer "sizeof v" over the equivalent "4".
89014         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
89015         * lib/md5.c (set_uint32): Likewise.
89016         * lib/sha1.c (set_uint32): Likewise.
89018 2008-01-31  Simon Josefsson  <simon@josefsson.org>
89020         * lib/sha1.c (set_uint32): Mark function as static.
89022 2008-01-31  Simon Josefsson  <simon@josefsson.org>
89024         md2: clarify comments to say that alignment is not required.
89025         * lib/md2.h: Remove warning about alignment in comment.
89026         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
89027         never been required.
89029 2008-01-31  Simon Josefsson  <simon@josefsson.org>
89031         md4: adapt alignment constraint fix from sha1.
89032         * lib/md4.c (set_uint32): New function, from sha1.c
89033         (md4_read_ctx): Use it.
89034         (md4_finish_ctx): Doc fix.
89035         * lib/md4.h: Doc fix.
89037 2008-01-31  Simon Josefsson  <simon@josefsson.org>
89039         md5: adapt alignment constraint fix from sha1.
89040         * lib/md5.c (set_uint32): New function, from sha1.c
89041         (md5_read_ctx): Use it.
89042         (md5_finish_ctx): Doc fix.
89043         * lib/md5.h: Doc fix.
89045 2008-01-30  Peter Palfrader  <weasel@debian.org>
89047         sha1: remove the result buffer alignment constraint
89048         * lib/sha1.c (set_uint32): New function.
89049         (sha1_read_ctx): Rewrite to remove the result buffer alignment
89050         constraint.
89051         (sha1_finish_ctx): Remove comment warning about alignment constraint.
89052         * lib/sha1.h: Likewise.
89054 2008-01-30  Andreas Schwab  <schwab@suse.de>
89055             Bruno Haible  <bruno@clisp.org>
89057         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
89058         correct definition of LDBL_MIN_EXP.
89060 2008-01-30  Karl Berry  <karl@gnu.org>
89062         * config/srclist-update: try to preserve x bit on updates.
89063         * config/srclistvars.sh: update for karl.
89065 2008-01-29  Jim Meyering  <meyering@redhat.com>
89067         vasnprintf.c: Avoid warning about unused label
89068         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
89069         "overflow" label definition and associated code with the
89070         same cpp condition that guards the sole use of that label.
89072 2008-01-26  Bruno Haible  <bruno@clisp.org>
89074         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
89075         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
89076         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
89077         * lib/isnanl-nolibm.h (isnanl): Likewise.
89078         Reported by Paul Eggert <eggert@cs.ucla.edu>.
89080 2008-01-26  Bruno Haible  <bruno@clisp.org>
89082         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
89083         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
89085 2008-01-26  Bruno Haible  <bruno@clisp.org>
89087         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
89088         GCC >= 4.0 built-in.
89089         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
89091 2008-01-26  Bruno Haible  <bruno@clisp.org>
89093         Rename isnan, applicable to 'double' only, to isnand.
89094         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
89095         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
89096         (configure.ac): Update.
89097         (Include): Replace "isnan.h" with "isnand.h".
89098         * m4/isnand.m4: Renamed from m4/isnan.m4.
89099         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
89100         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
89101         instead of isnan.c.
89102         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
89103         instead of HAVE_ISNAN_IN_LIBC.
89104         (isnand): Renamed from isnan.
89105         * lib/isnand.c: New file.
89106         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
89107         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
89108         (Makefile.am): Update.
89109         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
89110         Include isnand.h instead of isnan.h.
89111         (main): Test isnand instead of isnan.
89112         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
89113         isnan-nolibm.
89114         * modules/frexp (Depends-on): Likewise.
89115         * modules/frexp-tests (Depends-on): Likewise.
89116         * modules/frexp-nolibm (Depends-on): Likewise.
89117         * modules/frexp-nolibm-tests (Depends-on): Likewise.
89118         * modules/isfinite (Depends-on): Likewise.
89119         * modules/round-tests (Depends-on): Likewise.
89120         * modules/signbit (Depends-on): Likewise.
89121         * modules/signbit-tests (Depends-on): Likewise.
89122         * modules/snprintf-posix (Depends-on): Likewise.
89123         * modules/sprintf-posix (Depends-on): Likewise.
89124         * modules/trunc-tests (Depends-on): Likewise.
89125         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
89126         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
89127         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
89128         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
89129         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
89130         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
89131         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
89132         * modules/vasnprintf-posix (Depends-on): Likewise.
89133         * modules/vasprintf-posix (Depends-on): Likewise.
89134         * modules/vfprintf-posix (Depends-on): Likewise.
89135         * modules/vsnprintf-posix (Depends-on): Likewise.
89136         * modules/vsprintf-posix (Depends-on): Likewise.
89137         * lib/frexp.c: Include isnand.h instead of isnan.h.
89138         (ISNAN): Set to isnand instead of isnan.
89139         * lib/isfinite.c: Include isnand.h instead of isnan.h.
89140         (gl_isfinited): Use isnand instead of isnan.
89141         * lib/signbitd.c: Include isnand.h instead of isnan.h.
89142         (gl_signbitd): Use isnand instead of isnan.
89143         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
89144         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
89145         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
89146         (main): Use isnand instead of isnan.
89147         * tests/test-round1.c: Include isnand.h.
89148         (main): Use isnand instead of isnan.
89149         * tests/test-round2.c: Include isnand.h instead of isnan.h.
89150         (ISNAN): Set to isnand instead of isnan.
89151         * tests/test-trunc1.c: Include isnand.h.
89152         (main): Use isnand instead of isnan.
89153         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
89154         (equal): Use isnand instead of isnan.
89155         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
89156         isnand-nolibm.
89157         * NEWS: Mention the change.
89159 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
89160             Bruno Haible  <bruno@clisp.org>
89162         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
89163         the GCC builtins for signbits are present and set
89164         REPLACE_SIGNBIT_USING_GCC if so.
89165         * lib/math.in.h (signbit): Define using GCC builtins if
89166         REPLACE_SIGNBIT_USING_GCC is set.
89167         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
89168         REPLACE_SIGNBIT_USING_GCC.
89169         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
89171 2008-01-25  Jim Meyering  <meyering@redhat.com>
89173         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
89174         * lib/poll.c: Include <config.h>, not "config.h".
89175         * tests/test-getaddrinfo.c: Likewise.
89177 2008-01-25  Simon Josefsson  <simon@josefsson.org>
89179         * modules/sockets-tests: New file.
89181 2008-01-24  Simon Josefsson  <simon@josefsson.org>
89183         * modules/sockets: New module, can be used to call WSA_Startup and
89184         WSA_Cleanup when needed.
89186         * lib/sockets.h, lib/sockets.c: New files.
89188         * m4/sockets.m4: New file.
89190         * tests/test-sockets.c: New file.
89192 2008-01-19  Bruno Haible  <bruno@clisp.org>
89194         * doc/posix-headers: Renamed from doc/headers.
89195         * doc/posix-functions: Renamed from doc/functions.
89196         * doc/gnulib.texi: Update.
89198 2008-01-19  Bruno Haible  <bruno@clisp.org>
89200         * doc/glibc-functions/strcasestr.texi: Include contents of
89201         doc/functions/strcasestr.texi, fixing the list of platforms.
89202         * doc/functions/strcasestr.texi: Remove file.
89204 2008-01-19  Bruno Haible  <bruno@clisp.org>
89206         * doc/glibc-functions/memmem.texi: Include contents of
89207         doc/functions/memmem.texi.
89208         * doc/functions/memmem.texi: Remove file.
89210 2008-01-18  Bruno Haible  <bruno@clisp.org>
89212         * doc/glibc-functions/*.texi: New files.
89213         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
89214         to use the new files.
89216 2008-01-17  Bruno Haible  <bruno@clisp.org>
89218         * tests/test-gethostname.c (main): Fix printf statement.
89220 2008-01-17  Simon Josefsson  <simon@josefsson.org>
89222         * modules/gethostname-tests: New file.
89224         * tests/test-gethostname.c: New file.
89226 2008-01-17  Simon Josefsson  <simon@josefsson.org>
89228         * lib/gethostname.c: Include string.h unconditionally, strncpy is
89229         used by the UNAME case.  Reported by Bruno Haible
89230         <bruno@clisp.org>.
89232 2008-01-17  Eric Blake  <ebb9@byu.net>
89234         Convert c-strcasestr to be more efficient.
89235         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
89236         (Depends-on): Add c-strcase, remove malloca, strnlen.
89237         * tests/test-c-strcasestr.c (main): Enhance test.
89238         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
89240 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
89242         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
89243         Use it in creating po/Makevars.
89245 2008-01-15  Simon Josefsson  <simon@josefsson.org>
89247         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
89248         Applications that requires it should initialize libgcrypt
89249         manually.
89251 2008-01-16  Simon Josefsson  <simon@josefsson.org>
89253         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
89255 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
89257         Fix problem with getdate on mingw32 reported by Simon Josefsson
89258         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
89259         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
89260         tzname", when deciding whether to declare tzname.
89261         * lib/strftime.c (tzname): Likewise.
89263 2008-01-15  Bruno Haible  <bruno@clisp.org>
89265         Work around a MacOS X 10.5 bug in frexpl().
89266         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
89267         * doc/functions/frexpl.texi: Document the bug.
89268         Reported by Elias Pipping <pipping@gentoo.org>.
89270 2008-01-14  Eric Blake  <ebb9@byu.net>
89272         Touch up previous patch.
89273         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
89274         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
89276         Convert strcasestr module to use Two-Way algorithm.
89277         * modules/strcasestr-simple: New module, based on the old
89278         strcasestr, but with Two-Way rather than KMP.
89279         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
89280         * lib/string.in.h (rpl_strcasestr): Declare.
89281         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
89282         performance.
89283         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
89284         * modules/string (Makefile.am): Support strcasestr.
89285         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
89286         * modules/strcasestr-tests (Depends-on): Check for alarm.
89287         * tests/test-strcasestr.c: Augment test.
89288         * lib/str-two-way.h: Clean up stray macro.
89289         * NEWS: Document new module.
89290         * MODULES.html.sh (string handling): Likewise.
89291         * doc/functions/strcasestr.texi: New file.
89292         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
89293         here, since it is not a POSIX function.
89295 2008-01-14  Colin Watson  <cjwatson@debian.org>
89296             Bruno Haible  <bruno@clisp.org>
89298         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
89299         works fine; if not, set REPLACE_STRSIGNAL.
89300         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
89301         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
89302         REPLACE_STRSIGNAL.
89303         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
89304         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
89305         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
89307 2008-01-14  Bruno Haible  <bruno@clisp.org>
89309         * modules/strsignal (Include): Change to <string.h>.
89311 2008-01-14  Colin Watson  <cjwatson@debian.org>
89313         * modules/argp (Notice): Add a notice recommending to change
89314         XGETTEXT_OPTIONS.
89315         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
89317 2008-01-13  Colin Watson  <cjwatson@debian.org>
89319         * modules/strsignal-tests: New file.
89320         * tests/test-strsignal.c: New file.
89322         * lib/strsignal.c: New file, from glibc with modifications.
89323         * lib/siglist.h: New file, from glibc with modifications.
89324         * lib/string.in.h (strsignal): New declaration.
89325         * m4/strsignal.m4: New file.
89326         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
89327         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
89328         * modules/strsignal: New file.
89329         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
89330         HAVE_DECL_STRSIGNAL.
89332 2008-01-13  Bruno Haible  <bruno@clisp.org>
89334         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
89335         locale encoding is not ASCII. Needed for OpenBSD 4.0.
89336         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
89337         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
89339 2008-01-13  Bruno Haible  <bruno@clisp.org>
89341         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
89342         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
89343         * lib/argp.h (__attribute__): Likewise.
89344         * lib/c-stack.c (__attribute__): Likewise.
89345         * lib/error.h (__attribute__): Likewise.
89346         * lib/fts.c (__attribute__): Likewise.
89347         * lib/openat.h (__attribute__): Likewise.
89348         * lib/stdio.in.h (__attribute__): Likewise.
89349         * lib/string.in.h (__attribute__): Likewise.
89350         * lib/utimens.c (__attribute__): Likewise.
89351         * lib/vasnprintf.h (__attribute__): Likewise.
89352         * lib/xalloc.h (__attribute__): Likewise.
89353         * lib/xprintf.h (__attribute__): Likewise.
89354         * lib/xstrtol.h (__attribute__): Likewise.
89355         * lib/xvasprintf.h (__attribute__): Likewise.
89357 2008-01-12  Bruno Haible  <bruno@clisp.org>
89359         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
89360         * doc/glibc-headers/a.out.texi: New file.
89361         * doc/glibc-headers/aliases.texi: New file.
89362         * doc/glibc-headers/alloca.texi: New file.
89363         * doc/glibc-headers/ar.texi: New file.
89364         * doc/glibc-headers/argp.texi: New file.
89365         * doc/glibc-headers/argz.texi: New file.
89366         * doc/glibc-headers/byteswap.texi: New file.
89367         * doc/glibc-headers/crypt.texi: New file.
89368         * doc/glibc-headers/endian.texi: New file.
89369         * doc/glibc-headers/envz.texi: New file.
89370         * doc/glibc-headers/err.texi: New file.
89371         * doc/glibc-headers/error.texi: New file.
89372         * doc/glibc-headers/execinfo.texi: New file.
89373         * doc/glibc-headers/fpu_control.texi: New file.
89374         * doc/glibc-headers/fstab.texi: New file.
89375         * doc/glibc-headers/fts.texi: New file.
89376         * doc/glibc-headers/getopt.texi: New file.
89377         * doc/glibc-headers/ieee754.texi: New file.
89378         * doc/glibc-headers/ifaddrs.texi: New file.
89379         * doc/glibc-headers/libintl.texi: New file.
89380         * doc/glibc-headers/mcheck.texi: New file.
89381         * doc/glibc-headers/mntent.texi: New file.
89382         * doc/glibc-headers/obstack.texi: New file.
89383         * doc/glibc-headers/paths.texi: New file.
89384         * doc/glibc-headers/printf.texi: New file.
89385         * doc/glibc-headers/pty.texi: New file.
89386         * doc/glibc-headers/resolv.texi: New file.
89387         * doc/glibc-headers/shadow.texi: New file.
89388         * doc/glibc-headers/sysexits.texi: New file.
89389         * doc/glibc-headers/ttyent.texi: New file.
89391 2008-01-12  Jim Meyering  <meyering@redhat.com>
89393         announce-gen: emit Gnulib's git-based version string.
89394         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
89395         New option --gnulib-version=V, where V is expected to be
89396         the output of running git describe in the gnulib directory.
89397         (get_tool_versions): Request feedback on xdelta.  I suspect it's
89398         not useful, and plan to stop publishing an xdelta file with each
89399         coreutils release.
89401         * build-aux/announce-gen: Also check for lzma-compressed files.
89403 2008-01-11  Bruno Haible  <bruno@clisp.org>
89405         * tests/test-memmem.c (main): Increase maximum allowed time.
89406         * tests/test-strstr.c (main): Likewise.
89408 2008-01-11  Bruno Haible  <bruno@clisp.org>
89410         * doc/functions/memmem.texi: Add more precisions about platforms.
89411         * doc/functions/strstr.texi: Likewise.
89413 2008-01-10  Eric Blake  <ebb9@byu.net>
89415         * m4/strstr.m4: Delete cruft from copy-n-paste.
89416         Reported by Bruno Haible.
89418 2008-01-10  Bruno Haible  <bruno@clisp.org>
89420         Make c-strstr rely on strstr.
89421         * lib/c-strstr.c: Don't include str-kmp.h.
89422         (c_strstr): Define in terms of strstr.
89423         * modules/c-strstr (Files): Remove lib/str-kmp.h.
89424         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
89426 2008-01-10  Bruno Haible  <bruno@clisp.org>
89428         * doc/gnulib.texi (String Functions in C Locale): New section.
89429         * doc/c-ctype.texi: New file.
89430         * doc/c-strcase.texi: New file.
89431         * doc/c-strcaseeq.texi: New file.
89432         * doc/c-strcasestr.texi: New file.
89433         * doc/c-strstr.texi: New file.
89434         * doc/c-strtod.texi: New file.
89435         * doc/c-strtold.texi: New file.
89437 2008-01-10  Eric Blake  <ebb9@byu.net>
89439         * lib/relocatable.h: Fix a comment.
89441 2008-01-10  Eric Blake  <ebb9@byu.net>
89443         Share two-way algorithm.
89444         * lib/str-two-way.h: New file, merged from...
89445         * lib/memmem.c: ...here...
89446         * lib/strstr.c: ...and here.
89447         * modules/memmem (Files): Use it.
89448         * modules/strstr (Files): Likewise.
89450         Avoid quadratic strstr implementations.
89451         * lib/strstr.c: New file.
89452         * m4/strstr.m4: Likewise.
89453         * modules/strstr: Likewise.
89454         * modules/strstr-tests: Likewise.
89455         * tests/test-strstr.c: Likewise.
89456         * lib/string.in.h (rpl_strstr): Declare.
89457         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
89458         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
89459         * modules/string (Makefile.am): Likewise.
89460         * MODULES.html.sh (string handling): Mention new module.
89461         * doc/functions/strstr.texi (strstr): Document the bug.
89463 2008-01-10  Bruno Haible  <bruno@clisp.org>
89465         * lib/relocatable.h (relocate): State whether result is freshly
89466         allocated or not.
89467         * lib/relocatable.c (relocate): Return a freshly allocated string
89468         instead of a pointer to a privately held string.
89469         Reported by Sylvain Beucler <beuc@gnu.org>.
89471 2008-01-10  Colin Watson  <cjwatson@debian.org>
89473         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
89474         s/S_ISNLK/S_ISLNK/.
89476 2008-01-09  Bruno Haible  <bruno@clisp.org>
89478         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
89479         and other files.
89480         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
89481         if it's only a guess.
89482         * modules/memmem: Simplify by depending on memmem-simple.
89484 2008-01-09  Bruno Haible  <bruno@clisp.org>
89486         Work around OpenBSD 4.0 tdelete() bug.
89487         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
89488         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
89489         macros and don't redefine the enum values.
89490         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
89491         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
89492         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
89494 2008-01-09  Bruno Haible  <bruno@clisp.org>
89496         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
89497         (main): Don't perform the tests if setlocale did not install a UTF-8
89498         locale. Needed on OpenBSD 4.0.
89499         * modules/wcwidth-tests (Depends-on): Add localcharset.
89501 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
89503         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
89504         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
89505         * NEWS: announce this.
89506         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
89508 2008-01-09  Simon Josefsson  <simon@josefsson.org>
89509         and Eric Blake  <ebb9@byu.net>
89511         Add memmem-simple module.
89512         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
89513         (gl_FUNC_MEMMEM): Separate performance from presence checks.
89514         * modules/memmem-simple: New file.
89515         * modules/memmem (Description): Tweak.
89516         * MODULES.html.sh (string handling): Mention new module.
89517         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
89518         addressed by memmem-simple.
89519         * NEWS: Document the difference.
89521 2008-01-09  Eric Blake  <ebb9@byu.net>
89523         Give gcc some memmem optimization hints.
89524         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
89525         (strcasestr): Declare as pure.
89526         * modules/memmem (Maintainer): Claim my implementation.
89528 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89530         Support AIX 6.1 and higher.
89531         * build-aux/config.libpath: Likewise.
89532         * build-aux/config.rpath: Likewise.
89534 2008-01-08  Jim Meyering  <meyering@redhat.com>
89535             Bruno Haible  <bruno@clisp.org>
89537         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
89538         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
89539         Reported by Peter Fales in
89540         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
89542 2008-01-08  Bruno Haible  <bruno@clisp.org>
89544         * modules/unictype/category-of (Depends-on): Add
89545         unictype/category-none.
89546         * modules/unictype/category-and-tests (Depends-on): Add
89547         unictype/category-{L,N,Lu,Nd}.
89548         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
89549         * modules/unictype/category-or-tests (Depends-on): Add
89550         unictype/category-{L,N}.
89551         * modules/unictype/category-name-tests (Depends-on): Add
89552         unictype/category-{Z,Nl}.
89553         Reported by Simon Josefsson.
89555 2008-01-08  Bruno Haible  <bruno@clisp.org>
89557         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
89558         convention better.
89559         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
89560         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
89561         Reported by Peter Miller <millerp@canb.auug.org.au>.
89563 2008-01-08  Eric Blake  <ebb9@byu.net>
89565         Rewrite memmem to guarantee linear complexity without malloc.
89566         * lib/memmem.c (memmem): Use Two-Way rather than
89567         Knuth-Morris-Pratt, to allow O(1) space usage.
89568         (critical_factorization, two_way_short_needle)
89569         (two_way_long_needle): New functions.
89570         (knuth_morris_pratt): Delete.
89571         * modules/memmem (Depends-on): No longer need malloca or stdbool.
89572         Add stdint.
89573         * tests/test-memmem.c (main): Add tests for periodic needle and
89574         sublinear performance.
89575         * doc/functions/memmem.texi (memmem): Document other deficiencies
89576         in cygwin and older glibc.
89578 2008-01-08  Bruno Haible  <bruno@clisp.org>
89580         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
89581         augmentation.
89583 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
89585         Add a configure time option: --disable-acl.
89586         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
89587         AC_ARG_ENABLE(acl).
89589 2008-01-06  Simon Josefsson  <simon@josefsson.org>
89591         * tests/test-localename.c: Don't include obsolete "setenv.h".
89593         * modules/localename-tests (Depends-on): Need unsetenv.
89595 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89597         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
89599 2008-01-06  Colin Watson  <cjwatson@debian.org>
89601         * users.txt: Add man-db.
89603 2008-01-07  Bruno Haible  <bruno@clisp.org>
89605         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
89606         previous section name.
89608 2008-01-07  Bruno Haible  <bruno@clisp.org>
89610         * lib/progname.c (set_program_name): Don't strip off a leading
89611         "lt-" prefix outside a .libs directory.
89612         Suggested by Paul Eggert.
89614 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
89615             Bruno Haible  <bruno@clisp.org>
89617         Improve memory cleanup in 'relocatable' module.
89618         * lib/relocatable.h (compute_curr_prefix): Change return type to
89619         'char *'.
89620         * lib/relocatable.c (compute_curr_prefix): Change return type to
89621         'char *'. Free curr_installdir after use.
89622         (relocate): Free curr_prefix_better after use.
89623         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
89625 2008-01-01  Bruno Haible  <bruno@clisp.org>
89627         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
89628         failure on older glibc systems.
89629         Reported by Peter Fales <psfales@alcatel-lucent.com>.
89631 2008-01-05  Eric Blake  <ebb9@byu.net>
89633         Avoid quadratic system memmem.
89634         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
89635         Reported by Ralf Wildenhues.
89637         Fix memmem test for mingw.
89638         * modules/memmem-tests (configure.ac): Check for alarm.
89639         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
89640         it.
89641         * doc/functions/memmem.texi: New file.
89642         * doc/gnulib.texi (Function Substitutes): Add memmem.
89643         Reported by Bruno Haible.
89645 2008-01-04  Bruno Haible  <bruno@clisp.org>
89647         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
89648         Require gl_HEADER_STRINGS_H_DEFAULTS, not
89649         gl_HEADER_STRING_H_DEFAULTS.
89651 2008-01-04  Eric Blake  <ebb9@byu.net>
89653         Shorten duration of memmem test.
89654         * tests/test-memmem.c (main): Use alarm to declare failure if test
89655         is taking too long.
89656         Reported by Ralf Wildenhues.
89658 2007-12-21  Simon Josefsson  <simon@josefsson.org>
89660         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
89661         string, needed by strerror.
89663 2008-01-03  Colin Watson  <cjwatson@debian.org>
89664             Bruno Haible  <bruno@clisp.org>
89666         * doc/gnulib-tool.texi (Localization): New section.
89668 2008-01-02  Bruno Haible  <bruno@clisp.org>
89670         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
89671         variables to 'unsigned char *' type.
89672         Reported by Paul Eggert.
89674 2008-01-02  Jim Meyering  <jim@meyering.net>
89676         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
89678 2007-12-31  Jim Meyering  <jim@meyering.net>
89680         Avoid use of private FTS type name.
89681         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
89683 2007-12-30  Karl Berry  <karl@gnu.org>
89685         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
89686         work around defect in Texinfo and/or the standalone Info browser.
89688 2007-12-30  Bruno Haible  <bruno@clisp.org>
89690         Unify 5 copies of the KMP code.
89691         * lib/str-kmp.h: New file.
89692         * lib/c-strcasestr.c: Include str-kmp.h.
89693         (knuth_morris_pratt): Remove function.
89694         (c_strcasestr): Update.
89695         * lib/c-strstr.c: Include str-kmp.h.
89696         (knuth_morris_pratt): Remove function.
89697         (c_strcasestr): Update.
89698         * lib/mbscasestr.c: Include str-kmp.h.
89699         (knuth_morris_pratt_unibyte): Remove function.
89700         * lib/mbsstr.c: Include str-kmp.h.
89701         (knuth_morris_pratt_unibyte): Remove function.
89702         * lib/strcasestr.c: Include str-kmp.h.
89703         (knuth_morris_pratt): Remove function.
89704         (strcasestr): Update.
89705         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
89706         * modules/c-strstr (Files): Likewise.
89707         * modules/mbscasestr (Files): Likewise.
89708         * modules/mbsstr (Files): Likewise.
89709         * modules/strcasestr (Files): Likewise.
89710         Suggested by Paul Eggert.
89712 2007-12-30  Bruno Haible  <bruno@clisp.org>
89714         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
89715         defined.
89717 2007-12-30  Bruno Haible  <bruno@clisp.org>
89719         * lib/xmalloca.h: Include xalloc.h.
89720         (xnmalloca): New macro.
89722 2007-12-30  Bruno Haible  <bruno@clisp.org>
89724         * lib/malloca.h (nmalloca): New macro.
89725         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
89726         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
89727         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
89728         knuth_morris_pratt_multibyte): Likewise.
89729         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
89730         knuth_morris_pratt_multibyte): Likewise.
89731         * lib/memmem.c (knuth_morris_pratt): Likewise.
89732         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
89734 2007-12-25  Bruno Haible  <bruno@clisp.org>
89736         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
89737         * lib/glob.c: Don't include openat.h.
89738         (link_exists2_p): Add back the code that deals with the
89739         !GLOB_ALTDIRFUNC case.
89740         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
89741         let it do the filename concatenation.
89742         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
89743         * modules/glob (Depends-on): Remove openat.
89745 2007-12-31  Bruno Haible  <bruno@clisp.org>
89747         * modules/dirfd (License): Change to LGPLv2+.
89748         Approved by Jim Meyering.
89750 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
89752         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
89753         when multiplying M by sizeof (size_t).
89755 2007-12-10  Martin Lambers  <marlam@marlam.de>
89757         Override getpagesize on mingw.
89758         * lib/getpagesize.c: New file.
89759         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
89760         * modules/getpagesize (Files): Add lib/getpagesize.c.
89761         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
89762         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89763         REPLACE_GETPAGESIZE.
89764         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
89766 2007-12-25  Bruno Haible  <bruno@clisp.org>
89768         * modules/localcharset (Notice): New field.
89769         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
89770         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
89772 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
89773             Bruno Haible  <bruno@clisp.org>
89775         Avoid using the syntax symbol() in formatted documentation.
89776         * MODULES.html.sh (func_module): When replacing symbol() with a
89777         hyperlink, remove the parentheses. Show an error if some remain.
89778         Recognize and render the '...' syntax.
89779         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
89780         Rework. Add paragraph about GCC's inlining.
89781         * doc/alloca.texi: Likewise.
89782         * doc/error.texi: Remove parentheses from symbol reference.
89783         * doc/gnulib-intro.texi: Likewise.
89784         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
89785         * modules/fnmatch (Description): Reword to say "the ... function".
89786         * modules/full-read (Description): Likewise.
89787         * modules/full-write (Description): Likewise.
89788         * modules/safe-read (Description): Likewise.
89789         * modules/safe-write (Description): Likewise.
89790         * modules/strchrnul (Description): Likewise.
89791         * modules/trim (Description): Likewise.
89792         * modules/error (Description): Remove parentheses from symbol
89793         references.
89794         * modules/verror (Description): Likewise.
89795         Reported by Karl Berry.
89797 2007-12-25  Bruno Haible  <bruno@clisp.org>
89799         Fixup after 2007-10-16 commit.
89800         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
89802 2007-12-24  Bruno Haible  <bruno@clisp.org>
89804         Make --enable-relocatable work with DESTDIR.
89805         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
89806         to compute installdir from destprog.
89807         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
89808         also set the RELOC_DESTDIR variable.
89809         Reported by Левашев Иван <octagram@bluebottle.com>.
89811 2007-12-24  Bruno Haible  <bruno@clisp.org>
89813         Fix link error due to xalloc_die().
89814         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
89815         of xreadlink.
89816         * lib/relocwrapper.c: Update comments.
89817         * build-aux/install-reloc: Remove xreadlink.c from file list.
89818         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
89819         xreadlink.c.
89820         Reported by Левашев Иван <octagram@bluebottle.com>.
89822 2007-12-24  Bruno Haible  <bruno@clisp.org>
89824         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
89825         * lib/setenv.h: Remove file.
89826         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
89827         lib/setenv.h.
89828         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
89829         (Depends-on): Add stdlib.
89830         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
89831         gl_FUNC_UNSETENV.
89832         (Include): Replace setenv.h with <stdlib.h>.
89833         * modules/unsetenv: New file.
89834         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
89835         * lib/unsetenv.c: Include <stdlib.h> first.
89836         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
89837         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
89838         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
89839         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
89840         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
89841         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
89842         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
89843         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
89844         * doc/functions/unsetenv.texi: Update.
89845         * modules/xsetenv (Depends-on): Add unsetenv.
89846         * modules/getdate (Depends-on): Likewise.
89847         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
89848         * lib/xsetenv.c: Don't include setenv.h.
89849         * lib/getdate.y: Likewise.
89850         * lib/relocwrapper.c: Likewise.
89851         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
89852         (Depends-on): Add stdlib.
89853         * NEWS: Mention the changes.
89854         Reported by Левашев Иван <octagram@bluebottle.com>.
89856 2007-12-23  Bruno Haible  <bruno@clisp.org>
89858         * lib/memmem.c (memmem): Use lowercase variable names. Tab
89859         indentation.
89861 2007-12-23  Bruno Haible  <bruno@clisp.org>
89863         * lib/c-strcasestr.c: Add more comments.
89864         * lib/c-strstr.c: Likewise.
89865         * lib/mbscasestr.c: Likewise.
89866         * lib/mbsstr.c: Likewise.
89867         * lib/strcasestr.c: Likewise.
89868         * lib/memmem.c: Likewise.
89870 2007-12-23  Bruno Haible  <bruno@clisp.org>
89872         * tests/test-memmem.c: Include <string.h> first.
89874 2007-12-22  Bruno Haible  <bruno@clisp.org>
89876         * gnulib-tool (func_create_testdir): Change $auxdir while generating
89877         the contents of $testsbase.
89878         Reported by Ralf Wildenhues.
89880 2007-12-22  Bruno Haible  <bruno@clisp.org>
89882         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
89883         two variables local_ldadd_before, local_ldadd_last.
89885 2007-12-20  Eric Blake  <ebb9@byu.net>
89887         Work around circular library issue when cross-compiling.
89888         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
89889         that progname.o does not need to pull in rpl_memcmp.
89891 2007-12-19  Eric Blake  <ebb9@byu.net>
89893         Fix memmem to avoid O(n^2) worst-case complexity.
89894         * lib/memmem.c (knuth_morris_pratt): New function.
89895         (memmem): Use it if first few naive iterations fail.
89896         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
89897         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
89898         * modules/memchr (License): Likewise.
89899         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
89900         malloca.
89901         * tests/test-memmem.c: Rewrite, borrowing ideas from
89902         test-mbsstr1.c; the old version wouldn't even compile!
89903         * modules/memmem-tests: New file.
89904         * lib/string.in.h (rpl_memmem): Add declaration.
89905         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
89906         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
89907         REPLACE_MEMMEM.
89909 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
89911         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
89912         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
89913         before any system include files, and undef after them all.  This
89914         should fix a problem on VMS reported by John E. Malmberg in
89915         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
89917 2007-12-17  Eric Blake  <ebb9@byu.net>
89919         Revert addition of verify, for BSD/OS.
89920         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
89921         can't handle large files, for the sake of obsolete platforms.
89922         * modules/fseeko (Depends-on): Remove verify.
89923         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
89924         * doc/functions/ftello.texi (ftello): Likewise.
89925         * doc/functions/fgetpos.texi (fgetpos): Likewise.
89926         Reported by Larry Jones.
89928 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
89930         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
89931         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
89933 2007-12-17  Jim Meyering  <meyering@redhat.com>
89935         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
89936         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
89937         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
89938         * modules/getcwd (Depends-on): Add openat.
89939         Reported by Petr Salinger.
89941 2007-12-17  Bruno Haible  <bruno@clisp.org>
89943         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
89944         avoid a segmentation fault of the configure test on x86_64 systems.
89946 2007-12-15  Jim Meyering  <meyering@redhat.com>
89948         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
89950 2007-12-13  Eric Blake  <ebb9@byu.net>
89952         Another fseek test.
89953         * tests/test-fseek.c (main): Also test ungetc handling.
89954         * tests/test-fseeko.c (main): Likewise.
89955         * modules/fseeko (Depends-on): Add verify.
89956         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
89957         large.
89958         Reported by Larry Jones.
89960         Fix fseeko on mingw.
89961         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
89962         seek.
89964         Beef up fseek tests.
89965         * tests/test-fseek.c (main): Also test eof handling.
89966         * tests/test-fseeko.c (main): Likewise.
89967         Reported by Larry Jones.
89969 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
89971         Fix fseeko on BSD-based platforms.
89972         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
89973         successful seek.
89975 2007-12-12  Eric Blake  <ebb9@byu.net>
89977         Allow circular dependency of separate libtests.a
89978         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
89979         when use_libtests.
89981 2007-12-11  Eric Blake  <ebb9@byu.net>
89983         Fix bug with -0.0L in previous patch.
89984         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
89985         * tests/test-isnan.c (main): Also test on zeroes.
89986         * tests/test-isnanf.c (main): Likewise.
89987         * tests/test-isnanl.h (main): Likewise.
89989         Detect pseudo-denormals on x86 even when cross-compiling.
89990         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
89991         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
89992         invalid bit patterns that happen to satisfy ==.
89994         Avoid link failures with separate libtests.a.
89995         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
89996         last, to satisfy circular dependencies.
89998 2007-12-11  Eric Blake  <ebb9@byu.net>
89999         and Bruno Haible  <bruno@clisp.org>
90001         Fix OpenBSD 4.0 <float.h> handling of long double.
90002         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
90003         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
90004         * doc/headers/float.texi (float.h): Document OpenBSD bug.
90006 2007-12-11  Jim Meyering  <meyering@redhat.com>
90008         * users.txt: Add libvirt.
90010         Support versions of autoconf prior to 2.59c.
90011         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
90012         if it is not already defined.
90014 2007-12-09  Bruno Haible  <bruno@clisp.org>
90016         Let 'gnulib-tool --import' collect sources needed for the tests in
90017         tests/ rather than in lib/.
90018         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
90019         argument. If true, add rules to generate libtests.a, and put libtests.a
90020         into $(LDADD). Consider source files in subdirectories and set
90021         uses_subdirs.
90022         (func_emit_initmacro_start, func_emit_initmacro_end,
90023         func_emit_initmacro_done): Pass all arguments explicitly.
90024         (func_import): Determine two module lists main_modules,
90025         testsrelated_modules. Determine use_libtests. Determine two variables
90026         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
90027         instead of just sed_transform_lib_file. Determine two variables
90028         main_files and testsrelated_files. Compute 'files' as the union of
90029         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
90030         func_add_or_update. In the generated gnulib-comp.m4, collect the
90031         object files for tests/ in different variables than those for lib/.
90032         Substitute LIBTESTS_LIBDEPS.
90033         (func_create_testdir): Combine the uses_subdirs results from
90034         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
90036 2007-12-09  Bruno Haible  <bruno@clisp.org>
90038         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
90039         the build-aux directory.
90041 2007-12-09  Bruno Haible  <bruno@clisp.org>
90043         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
90044         introduced on 2006-09-09.
90046 2007-12-07  Jim Meyering  <meyering@redhat.com>
90048         Let these macros work also with autoconf-2.59.
90049         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
90050         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
90051         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
90053 2007-12-06  Jim Meyering  <meyering@redhat.com>
90055         Avoid a configure-time syntax error in gl_FUNC_ACL.
90056         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
90057         function in each branch, before testing the cache variable.
90059 2007-12-04  Eric Blake  <ebb9@byu.net>
90061         Make scripts executable.
90062         * build-aux/config.guess: Add execute permissions.
90063         * build-aux/config.sub: Likewise.
90064         * build-aux/gendocs.sh: Likewise.
90066         Fix frexp on mingw.
90067         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
90068         cross-compiling.
90069         * doc/functions/frexp.texi (frexp): Document the bug.
90071         Make cygwin fseeko check more reliable.
90072         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
90073         version numbers, rather than unrelated feature check.
90074         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
90075         * doc/functions/ftello.texi (ftello): Likewise.
90076         Reported by Bruno Haible.
90078         * m4/strerror.m4: Bump version number.
90080 2007-12-03  Bruno Haible  <bruno@clisp.org>
90082         * doc/functions/mprotect.texi: Mention the mingw problem.
90084 2007-12-03  Eric Blake  <ebb9@byu.net>
90086         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
90087         REPLACE_STRERROR is initialized before this macro.
90089 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
90091         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
90092         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
90093         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
90094         put -lsec in even for programs other than 'ls'.  This fixes a problem
90095         for gettext reported by Bruno Haible in
90096         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
90097         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
90098         Add support for Solaris 10.  This isn't efficient, but should get the
90099         job done for now.
90101 2007-12-03  James Youngman  <jay@gnu.org>
90103         * doc/regexprops-generic.texi: change "an close-group" to "a
90104         close-group" and "illegal" to "not allowed".
90106 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90108         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
90109         pr_byname.h. Needed for the rare case when the maintainer has done
90110         "make maintainer-clean" in the source directory and then attempts a
90111         build outside the source directory.
90112         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
90113         scripts_byname.h.
90115 2007-12-02  Martin Lambers  <marlam@marlam.de>
90116             Bruno Haible  <bruno@clisp.org>
90118         * lib/getpagesize.h: Remove file.
90119         * lib/unistd.in.h: Include declaration of getpagesize here.
90120         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
90121         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
90122         HAVE_SYS_PARAM_H.
90123         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
90124         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
90125         * modules/getpagesize (Files): Remove lib/getpagesize.h.
90126         (Depends-on): Add unistd.
90127         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90128         (Include): Use <unistd.h> instead of getpagesize.h.
90129         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
90130         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
90131         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
90132         gl_GETPAGESIZE invocation, already handled by module dependency.
90133         * lib/pagealign_alloc.c: Don't include getpagesize.h.
90135 2007-12-02  Bruno Haible  <bruno@clisp.org>
90137         * modules/strings-tests: New file.
90138         * tests/test-strings.c: New file.
90140         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
90141         * lib/strings.in.h: New file.
90142         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
90143         * m4/strings_h.m4: New file.
90144         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
90145         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
90146         * modules/strings: New file.
90147         * modules/string (Makefile.am): Update.
90148         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
90149         Reported by Karl Berry.
90151 2007-12-01  Eric Blake  <ebb9@byu.net>
90153         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
90154         accommodate fix in cygwin 1.5.25.
90156 2007-12-01  Jim Meyering  <meyering@redhat.com>
90158         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
90159         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
90160         that would inhibit utf8-optimization of a regexp containing line-
90161         or buffer-anchors, e.g., `^', `$'.
90163 2007-11-30  Bruno Haible  <bruno@clisp.org>
90165         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
90166         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
90167         glthread_recursive_lock_init.
90168         * lib/lock.c (glthread_recursive_lock_init)
90169         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
90170         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
90172 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
90174         New function qset_acl, like set_acl but with syscall semantics.
90175         * lib/acl.h (qset_acl): New decl.
90176         * lib/acl.c (qset_acl): New function.
90177         (set_acl): Use new function.  Use more-consistent diagnostics.
90179 2007-11-28  Jim Meyering  <meyering@redhat.com>
90181         * modules/physmem (License): Change from GPL to LGPLv2+.
90183 2007-11-26  Bruno Haible  <bruno@clisp.org>
90185         * lib/vasnprintf.c (decode_long_double): Don't abort if the
90186         'long double' type has excess precision.
90187         Reported by Jim Meyering in
90188         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
90190 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90192         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
90193         Sync from <http://gnu.org/licenses>.
90194         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
90195         with license text from same location.
90196         * doc/maintain.texi, doc/standards.texi:  Sync from
90197         <http://savannah.gnu.org/projects/gnustandards>.
90199 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
90200         and Jim Meyering  <meyering@redhat.com>
90202         Adjust getdate' grammar to accept a slightly more regular language.
90203         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
90204         Before, the former was rejected.
90205         * lib/getdate.y (digits_to_date_time): New function, factored
90206         out of ...
90207         (number): ...here.  Just call digits_to_date_time.
90208         (hybrid): New non-terminal to handle an <unsigned number,
90209         signed relative offset> sequence consistently.
90211 2007-11-18  Jim Meyering  <meyering@redhat.com>
90213         Pull my changes from coreutils:
90214         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
90215         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
90216         use of $gnulib_tool_option_extras, so that it's separated from the
90217         preceding argument.
90219         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
90220         * build-aux/bootstrap (cp_mark_as_generated): Create any required
90221         parent destination directories before copying a file into place.
90223 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
90225         bootstrap: work also with 4-argument variant of AC_INIT
90226         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
90228 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90230         Port test-getaddrinfo to Solaris.
90231         Problem reported by Bruno Haible in
90232         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
90233         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
90234         explanation of setting 'hints'.
90235         Don't reject an implementation merely because it returns EAI_SERVICE.
90236         (EAI_SERVICE): Define to 0 if not defined.
90238 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
90240         The license of gnu-make and posix-shell is now "GPLed build tool".
90241         * modules/gnu-make (License): Likewise.
90242         * modules/posix-shell (License): Likewise.
90244         New module posix-shell, for determining a POSIX shell
90245         or perhaps something that is close enough to a POSIX shell.
90246         * m4/posix-shell.m4: New file.
90247         * modules/posix-shell: New file.
90249         * MODULES.html.sh: Mention new module.
90251         New module gnu-make, for determining whether we're using GNU Make.
90252         * m4/gnu-make.m4: New file.
90253         * modules/gnu-make: New file.
90254         * MODULES.html.sh: Mention new module.
90256 2007-11-14  Jim Meyering  <meyering@redhat.com>
90258         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
90259         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
90260         use this macro to create a function _definition_.
90261         Remove useless "#undef ARGMATCH_DIE".
90263 2007-11-14  Bruno Haible  <bruno@clisp.org>
90265         * lib/config.charset: Update for OpenBSD 4.1.
90266         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
90268 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
90270         Document 64-bit #if problems in stdint.texi.
90271         * doc/headers/stdint.texi (stdint.h): Mention problems with
90272         64-bit-#if, and how to work around them.
90274         Don't insist on 'long long int' support in the preprocessor.  It
90275         breaks too many things.  For example, PRIdMAX still uses a 'long
90276         long int' format with the latest Sun compiler, even though
90277         HAVE_LONG_LONG_INT isn't defined due to that compiler's
90278         preprocessor problem.  This causes the latest coreutils to dump
90279         core on Solaris 10 sparc with the Sun C compiler.
90280         Instead, fix the 2007-10-16 problem in a different way, by evaluating
90281         the troublesome expressions at configure-time, not at #if-time.
90282         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
90283         preprocessor.
90284         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
90285         compile-time C checks, done at 'configure'-time.
90286         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
90287         * modules/inttypes (Makefile): Substitute the new symbols that
90288         gl_INTTYPES_H now generates.
90289         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
90291 2007-11-12  Bruno Haible  <bruno@clisp.org>
90293         Tests for Unicode character classification functions.
90295         * modules/unictype/bidicategory-byname-tests: New file.
90296         * modules/unictype/bidicategory-name-tests: New file.
90297         * modules/unictype/bidicategory-of-tests: New file.
90298         * modules/unictype/bidicategory-test-tests: New file.
90299         * modules/unictype/block-list-tests: New file.
90300         * modules/unictype/block-of-tests: New file.
90301         * modules/unictype/block-test-tests: New file.
90302         * modules/unictype/category-C-tests: New file.
90303         * modules/unictype/category-Cc-tests: New file.
90304         * modules/unictype/category-Cf-tests: New file.
90305         * modules/unictype/category-Cn-tests: New file.
90306         * modules/unictype/category-Co-tests: New file.
90307         * modules/unictype/category-Cs-tests: New file.
90308         * modules/unictype/category-L-tests: New file.
90309         * modules/unictype/category-Ll-tests: New file.
90310         * modules/unictype/category-Lm-tests: New file.
90311         * modules/unictype/category-Lo-tests: New file.
90312         * modules/unictype/category-Lt-tests: New file.
90313         * modules/unictype/category-Lu-tests: New file.
90314         * modules/unictype/category-M-tests: New file.
90315         * modules/unictype/category-Mc-tests: New file.
90316         * modules/unictype/category-Me-tests: New file.
90317         * modules/unictype/category-Mn-tests: New file.
90318         * modules/unictype/category-N-tests: New file.
90319         * modules/unictype/category-Nd-tests: New file.
90320         * modules/unictype/category-Nl-tests: New file.
90321         * modules/unictype/category-No-tests: New file.
90322         * modules/unictype/category-P-tests: New file.
90323         * modules/unictype/category-Pc-tests: New file.
90324         * modules/unictype/category-Pd-tests: New file.
90325         * modules/unictype/category-Pe-tests: New file.
90326         * modules/unictype/category-Pf-tests: New file.
90327         * modules/unictype/category-Pi-tests: New file.
90328         * modules/unictype/category-Po-tests: New file.
90329         * modules/unictype/category-Ps-tests: New file.
90330         * modules/unictype/category-S-tests: New file.
90331         * modules/unictype/category-Sc-tests: New file.
90332         * modules/unictype/category-Sk-tests: New file.
90333         * modules/unictype/category-Sm-tests: New file.
90334         * modules/unictype/category-So-tests: New file.
90335         * modules/unictype/category-Z-tests: New file.
90336         * modules/unictype/category-Zl-tests: New file.
90337         * modules/unictype/category-Zp-tests: New file.
90338         * modules/unictype/category-Zs-tests: New file.
90339         * modules/unictype/category-and-not-tests: New file.
90340         * modules/unictype/category-and-tests: New file.
90341         * modules/unictype/category-byname-tests: New file.
90342         * modules/unictype/category-name-tests: New file.
90343         * modules/unictype/category-none-tests: New file.
90344         * modules/unictype/category-of-tests: New file.
90345         * modules/unictype/category-or-tests: New file.
90346         * modules/unictype/category-test-withtable-tests: New file.
90347         * modules/unictype/combining-class-tests: New file.
90348         * modules/unictype/ctype-alnum-tests: New file.
90349         * modules/unictype/ctype-alpha-tests: New file.
90350         * modules/unictype/ctype-blank-tests: New file.
90351         * modules/unictype/ctype-cntrl-tests: New file.
90352         * modules/unictype/ctype-digit-tests: New file.
90353         * modules/unictype/ctype-graph-tests: New file.
90354         * modules/unictype/ctype-lower-tests: New file.
90355         * modules/unictype/ctype-print-tests: New file.
90356         * modules/unictype/ctype-punct-tests: New file.
90357         * modules/unictype/ctype-space-tests: New file.
90358         * modules/unictype/ctype-upper-tests: New file.
90359         * modules/unictype/ctype-xdigit-tests: New file.
90360         * modules/unictype/decimal-digit-tests: New file.
90361         * modules/unictype/digit-tests: New file.
90362         * modules/unictype/mirror-tests: New file.
90363         * modules/unictype/numeric-tests: New file.
90364         * modules/unictype/property-alphabetic-tests: New file.
90365         * modules/unictype/property-ascii-hex-digit-tests: New file.
90366         * modules/unictype/property-bidi-arabic-digit-tests: New file.
90367         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
90368         * modules/unictype/property-bidi-block-separator-tests: New file.
90369         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
90370         * modules/unictype/property-bidi-common-separator-tests: New file.
90371         * modules/unictype/property-bidi-control-tests: New file.
90372         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
90373         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
90374         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
90375         * modules/unictype/property-bidi-european-digit-tests: New file.
90376         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
90377         * modules/unictype/property-bidi-left-to-right-tests: New file.
90378         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
90379         * modules/unictype/property-bidi-other-neutral-tests: New file.
90380         * modules/unictype/property-bidi-pdf-tests: New file.
90381         * modules/unictype/property-bidi-segment-separator-tests: New file.
90382         * modules/unictype/property-bidi-whitespace-tests: New file.
90383         * modules/unictype/property-byname-tests: New file.
90384         * modules/unictype/property-combining-tests: New file.
90385         * modules/unictype/property-composite-tests: New file.
90386         * modules/unictype/property-currency-symbol-tests: New file.
90387         * modules/unictype/property-dash-tests: New file.
90388         * modules/unictype/property-decimal-digit-tests: New file.
90389         * modules/unictype/property-default-ignorable-code-point-tests: New file.
90390         * modules/unictype/property-deprecated-tests: New file.
90391         * modules/unictype/property-diacritic-tests: New file.
90392         * modules/unictype/property-extender-tests: New file.
90393         * modules/unictype/property-format-control-tests: New file.
90394         * modules/unictype/property-grapheme-base-tests: New file.
90395         * modules/unictype/property-grapheme-extend-tests: New file.
90396         * modules/unictype/property-grapheme-link-tests: New file.
90397         * modules/unictype/property-hex-digit-tests: New file.
90398         * modules/unictype/property-hyphen-tests: New file.
90399         * modules/unictype/property-id-continue-tests: New file.
90400         * modules/unictype/property-id-start-tests: New file.
90401         * modules/unictype/property-ideographic-tests: New file.
90402         * modules/unictype/property-ids-binary-operator-tests: New file.
90403         * modules/unictype/property-ids-trinary-operator-tests: New file.
90404         * modules/unictype/property-ignorable-control-tests: New file.
90405         * modules/unictype/property-iso-control-tests: New file.
90406         * modules/unictype/property-join-control-tests: New file.
90407         * modules/unictype/property-left-of-pair-tests: New file.
90408         * modules/unictype/property-line-separator-tests: New file.
90409         * modules/unictype/property-logical-order-exception-tests: New file.
90410         * modules/unictype/property-lowercase-tests: New file.
90411         * modules/unictype/property-math-tests: New file.
90412         * modules/unictype/property-non-break-tests: New file.
90413         * modules/unictype/property-not-a-character-tests: New file.
90414         * modules/unictype/property-numeric-tests: New file.
90415         * modules/unictype/property-other-alphabetic-tests: New file.
90416         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
90417         * modules/unictype/property-other-grapheme-extend-tests: New file.
90418         * modules/unictype/property-other-id-continue-tests: New file.
90419         * modules/unictype/property-other-id-start-tests: New file.
90420         * modules/unictype/property-other-lowercase-tests: New file.
90421         * modules/unictype/property-other-math-tests: New file.
90422         * modules/unictype/property-other-uppercase-tests: New file.
90423         * modules/unictype/property-paired-punctuation-tests: New file.
90424         * modules/unictype/property-paragraph-separator-tests: New file.
90425         * modules/unictype/property-pattern-syntax-tests: New file.
90426         * modules/unictype/property-pattern-white-space-tests: New file.
90427         * modules/unictype/property-private-use-tests: New file.
90428         * modules/unictype/property-punctuation-tests: New file.
90429         * modules/unictype/property-quotation-mark-tests: New file.
90430         * modules/unictype/property-radical-tests: New file.
90431         * modules/unictype/property-sentence-terminal-tests: New file.
90432         * modules/unictype/property-soft-dotted-tests: New file.
90433         * modules/unictype/property-space-tests: New file.
90434         * modules/unictype/property-terminal-punctuation-tests: New file.
90435         * modules/unictype/property-test-tests: New file.
90436         * modules/unictype/property-titlecase-tests: New file.
90437         * modules/unictype/property-unassigned-code-value-tests: New file.
90438         * modules/unictype/property-unified-ideograph-tests: New file.
90439         * modules/unictype/property-uppercase-tests: New file.
90440         * modules/unictype/property-variation-selector-tests: New file.
90441         * modules/unictype/property-white-space-tests: New file.
90442         * modules/unictype/property-xid-continue-tests: New file.
90443         * modules/unictype/property-xid-start-tests: New file.
90444         * modules/unictype/property-zero-width-tests: New file.
90445         * modules/unictype/scripts-tests: New file.
90446         * modules/unictype/syntax-c-ident-tests: New file.
90447         * modules/unictype/syntax-c-whitespace-tests: New file.
90448         * modules/unictype/syntax-java-ident-tests: New file.
90449         * modules/unictype/syntax-java-whitespace-tests: New file.
90450         * tests/unictype/test-bidi_byname.c: New file.
90451         * tests/unictype/test-bidi_name.c: New file.
90452         * tests/unictype/test-bidi_of.c: New file.
90453         * tests/unictype/test-bidi_test.c: New file.
90454         * tests/unictype/test-block_list.c: New file.
90455         * tests/unictype/test-block_of.c: New file.
90456         * tests/unictype/test-block_test.c: New file.
90457         * tests/unictype/test-categ_and.c: New file.
90458         * tests/unictype/test-categ_and_not.c: New file.
90459         * tests/unictype/test-categ_byname.c: New file.
90460         * tests/unictype/test-categ_name.c: New file.
90461         * tests/unictype/test-categ_none.c: New file.
90462         * tests/unictype/test-categ_of.c: New file.
90463         * tests/unictype/test-categ_or.c: New file.
90464         * tests/unictype/test-categ_test_withtable.c: New file.
90465         * tests/unictype/test-combining.c: New file.
90466         * tests/unictype/test-decdigit.c: New file.
90467         * tests/unictype/test-digit.c: New file.
90468         * tests/unictype/test-mirror.c: New file.
90469         * tests/unictype/test-numeric.c: New file.
90470         * tests/unictype/test-pr_byname.c: New file.
90471         * tests/unictype/test-pr_test.c: New file.
90472         * tests/unictype/test-predicate-part1.h: New file.
90473         * tests/unictype/test-predicate-part2.h: New file.
90474         * tests/unictype/test-scripts.c: New file.
90475         * tests/unictype/test-sy_c_ident.c: New file.
90476         * tests/unictype/test-sy_java_ident.c: New file.
90478         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
90479         for Unicode 5.0.0.
90480         * tests/unictype/test-categ_Cc.c: Likewise.
90481         * tests/unictype/test-categ_Cf.c: Likewise.
90482         * tests/unictype/test-categ_Cn.c: Likewise.
90483         * tests/unictype/test-categ_Co.c: Likewise.
90484         * tests/unictype/test-categ_Cs.c: Likewise.
90485         * tests/unictype/test-categ_L.c: Likewise.
90486         * tests/unictype/test-categ_Ll.c: Likewise.
90487         * tests/unictype/test-categ_Lm.c: Likewise.
90488         * tests/unictype/test-categ_Lo.c: Likewise.
90489         * tests/unictype/test-categ_Lt.c: Likewise.
90490         * tests/unictype/test-categ_Lu.c: Likewise.
90491         * tests/unictype/test-categ_M.c: Likewise.
90492         * tests/unictype/test-categ_Mc.c: Likewise.
90493         * tests/unictype/test-categ_Me.c: Likewise.
90494         * tests/unictype/test-categ_Mn.c: Likewise.
90495         * tests/unictype/test-categ_N.c: Likewise.
90496         * tests/unictype/test-categ_Nd.c: Likewise.
90497         * tests/unictype/test-categ_Nl.c: Likewise.
90498         * tests/unictype/test-categ_No.c: Likewise.
90499         * tests/unictype/test-categ_P.c: Likewise.
90500         * tests/unictype/test-categ_Pc.c: Likewise.
90501         * tests/unictype/test-categ_Pd.c: Likewise.
90502         * tests/unictype/test-categ_Pe.c: Likewise.
90503         * tests/unictype/test-categ_Pf.c: Likewise.
90504         * tests/unictype/test-categ_Pi.c: Likewise.
90505         * tests/unictype/test-categ_Po.c: Likewise.
90506         * tests/unictype/test-categ_Ps.c: Likewise.
90507         * tests/unictype/test-categ_S.c: Likewise.
90508         * tests/unictype/test-categ_Sc.c: Likewise.
90509         * tests/unictype/test-categ_Sk.c: Likewise.
90510         * tests/unictype/test-categ_Sm.c: Likewise.
90511         * tests/unictype/test-categ_So.c: Likewise.
90512         * tests/unictype/test-categ_Z.c: Likewise.
90513         * tests/unictype/test-categ_Zl.c: Likewise.
90514         * tests/unictype/test-categ_Zp.c: Likewise.
90515         * tests/unictype/test-categ_Zs.c: Likewise.
90516         * tests/unictype/test-ctype_alnum.c: Likewise.
90517         * tests/unictype/test-ctype_alpha.c: Likewise.
90518         * tests/unictype/test-ctype_blank.c: Likewise.
90519         * tests/unictype/test-ctype_cntrl.c: Likewise.
90520         * tests/unictype/test-ctype_digit.c: Likewise.
90521         * tests/unictype/test-ctype_graph.c: Likewise.
90522         * tests/unictype/test-ctype_lower.c: Likewise.
90523         * tests/unictype/test-ctype_print.c: Likewise.
90524         * tests/unictype/test-ctype_punct.c: Likewise.
90525         * tests/unictype/test-ctype_space.c: Likewise.
90526         * tests/unictype/test-ctype_upper.c: Likewise.
90527         * tests/unictype/test-ctype_xdigit.c: Likewise.
90528         * tests/unictype/test-decdigit.h: Likewise.
90529         * tests/unictype/test-digit.h: Likewise.
90530         * tests/unictype/test-numeric.h: Likewise.
90531         * tests/unictype/test-pr_alphabetic.c: Likewise.
90532         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
90533         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
90534         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
90535         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
90536         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
90537         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
90538         * tests/unictype/test-pr_bidi_control.c: Likewise.
90539         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
90540         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
90541         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
90542         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
90543         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
90544         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
90545         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
90546         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
90547         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
90548         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
90549         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
90550         * tests/unictype/test-pr_combining.c: Likewise.
90551         * tests/unictype/test-pr_composite.c: Likewise.
90552         * tests/unictype/test-pr_currency_symbol.c: Likewise.
90553         * tests/unictype/test-pr_dash.c: Likewise.
90554         * tests/unictype/test-pr_decimal_digit.c: Likewise.
90555         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
90556         * tests/unictype/test-pr_deprecated.c: Likewise.
90557         * tests/unictype/test-pr_diacritic.c: Likewise.
90558         * tests/unictype/test-pr_extender.c: Likewise.
90559         * tests/unictype/test-pr_format_control.c: Likewise.
90560         * tests/unictype/test-pr_grapheme_base.c: Likewise.
90561         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
90562         * tests/unictype/test-pr_grapheme_link.c: Likewise.
90563         * tests/unictype/test-pr_hex_digit.c: Likewise.
90564         * tests/unictype/test-pr_hyphen.c: Likewise.
90565         * tests/unictype/test-pr_id_continue.c: Likewise.
90566         * tests/unictype/test-pr_id_start.c: Likewise.
90567         * tests/unictype/test-pr_ideographic.c: Likewise.
90568         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
90569         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
90570         * tests/unictype/test-pr_ignorable_control.c: Likewise.
90571         * tests/unictype/test-pr_iso_control.c: Likewise.
90572         * tests/unictype/test-pr_join_control.c: Likewise.
90573         * tests/unictype/test-pr_left_of_pair.c: Likewise.
90574         * tests/unictype/test-pr_line_separator.c: Likewise.
90575         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
90576         * tests/unictype/test-pr_lowercase.c: Likewise.
90577         * tests/unictype/test-pr_math.c: Likewise.
90578         * tests/unictype/test-pr_non_break.c: Likewise.
90579         * tests/unictype/test-pr_not_a_character.c: Likewise.
90580         * tests/unictype/test-pr_numeric.c: Likewise.
90581         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
90582         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
90583         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
90584         * tests/unictype/test-pr_other_id_continue.c: Likewise.
90585         * tests/unictype/test-pr_other_id_start.c: Likewise.
90586         * tests/unictype/test-pr_other_lowercase.c: Likewise.
90587         * tests/unictype/test-pr_other_math.c: Likewise.
90588         * tests/unictype/test-pr_other_uppercase.c: Likewise.
90589         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
90590         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
90591         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
90592         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
90593         * tests/unictype/test-pr_private_use.c: Likewise.
90594         * tests/unictype/test-pr_punctuation.c: Likewise.
90595         * tests/unictype/test-pr_quotation_mark.c: Likewise.
90596         * tests/unictype/test-pr_radical.c: Likewise.
90597         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
90598         * tests/unictype/test-pr_soft_dotted.c: Likewise.
90599         * tests/unictype/test-pr_space.c: Likewise.
90600         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
90601         * tests/unictype/test-pr_titlecase.c: Likewise.
90602         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
90603         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
90604         * tests/unictype/test-pr_uppercase.c: Likewise.
90605         * tests/unictype/test-pr_variation_selector.c: Likewise.
90606         * tests/unictype/test-pr_white_space.c: Likewise.
90607         * tests/unictype/test-pr_xid_continue.c: Likewise.
90608         * tests/unictype/test-pr_xid_start.c: Likewise.
90609         * tests/unictype/test-pr_zero_width.c: Likewise.
90610         * tests/unictype/test-sy_c_whitespace.c: Likewise.
90611         * tests/unictype/test-sy_java_whitespace.c: Likewise.
90613 2007-11-12  Bruno Haible  <bruno@clisp.org>
90615         Unicode character classification functions.
90616         * lib/unictype.h: New file.
90617         * modules/unictype/base: New file.
90618         * modules/unictype/category-L: New file.
90619         * modules/unictype/category-Lu: New file.
90620         * modules/unictype/category-Ll: New file.
90621         * modules/unictype/category-Lt: New file.
90622         * modules/unictype/category-Lm: New file.
90623         * modules/unictype/category-Lo: New file.
90624         * modules/unictype/category-M: New file.
90625         * modules/unictype/category-Mn: New file.
90626         * modules/unictype/category-Mc: New file.
90627         * modules/unictype/category-Me: New file.
90628         * modules/unictype/category-N: New file.
90629         * modules/unictype/category-Nd: New file.
90630         * modules/unictype/category-Nl: New file.
90631         * modules/unictype/category-No: New file.
90632         * modules/unictype/category-P: New file.
90633         * modules/unictype/category-Pc: New file.
90634         * modules/unictype/category-Pd: New file.
90635         * modules/unictype/category-Ps: New file.
90636         * modules/unictype/category-Pe: New file.
90637         * modules/unictype/category-Pi: New file.
90638         * modules/unictype/category-Pf: New file.
90639         * modules/unictype/category-Po: New file.
90640         * modules/unictype/category-S: New file.
90641         * modules/unictype/category-Sm: New file.
90642         * modules/unictype/category-Sc: New file.
90643         * modules/unictype/category-Sk: New file.
90644         * modules/unictype/category-So: New file.
90645         * modules/unictype/category-Z: New file.
90646         * modules/unictype/category-Zs: New file.
90647         * modules/unictype/category-Zl: New file.
90648         * modules/unictype/category-Zp: New file.
90649         * modules/unictype/category-C: New file.
90650         * modules/unictype/category-Cc: New file.
90651         * modules/unictype/category-Cf: New file.
90652         * modules/unictype/category-Cs: New file.
90653         * modules/unictype/category-Co: New file.
90654         * modules/unictype/category-Cn: New file.
90655         * modules/unictype/category-or: New file.
90656         * modules/unictype/category-of: New file.
90657         * modules/unictype/category-test: New file.
90658         * modules/unictype/category-test-withtable: New file.
90659         * modules/unictype/category-byname: New file.
90660         * modules/unictype/category-none: New file.
90661         * modules/unictype/category-and: New file.
90662         * modules/unictype/category-and-not: New file.
90663         * modules/unictype/category-name: New file.
90664         * modules/unictype/combining-class: New file.
90665         * modules/unictype/category-all: New file.
90666         * modules/unictype/bidicategory-all: New file.
90667         * modules/unictype/bidicategory-byname: New file.
90668         * modules/unictype/bidicategory-name: New file.
90669         * modules/unictype/bidicategory-of: New file.
90670         * modules/unictype/bidicategory-test: New file.
90671         * modules/unictype/decimal-digit: New file.
90672         * modules/unictype/digit: New file.
90673         * modules/unictype/numeric: New file.
90674         * modules/unictype/mirror: New file.
90675         * modules/unictype/property-white-space: New file.
90676         * modules/unictype/property-alphabetic: New file.
90677         * modules/unictype/property-other-alphabetic: New file.
90678         * modules/unictype/property-not-a-character: New file.
90679         * modules/unictype/property-default-ignorable-code-point: New file.
90680         * modules/unictype/property-other-default-ignorable-code-point: New
90681         file.
90682         * modules/unictype/property-deprecated: New file.
90683         * modules/unictype/property-logical-order-exception: New file.
90684         * modules/unictype/property-variation-selector: New file.
90685         * modules/unictype/property-private-use: New file.
90686         * modules/unictype/property-unassigned-code-value: New file.
90687         * modules/unictype/property-uppercase: New file.
90688         * modules/unictype/property-other-uppercase: New file.
90689         * modules/unictype/property-lowercase: New file.
90690         * modules/unictype/property-other-lowercase: New file.
90691         * modules/unictype/property-titlecase: New file.
90692         * modules/unictype/property-soft-dotted: New file.
90693         * modules/unictype/property-id-start: New file.
90694         * modules/unictype/property-other-id-start: New file.
90695         * modules/unictype/property-id-continue: New file.
90696         * modules/unictype/property-other-id-continue: New file.
90697         * modules/unictype/property-xid-start: New file.
90698         * modules/unictype/property-xid-continue: New file.
90699         * modules/unictype/property-pattern-white-space: New file.
90700         * modules/unictype/property-pattern-syntax: New file.
90701         * modules/unictype/property-join-control: New file.
90702         * modules/unictype/property-grapheme-base: New file.
90703         * modules/unictype/property-grapheme-extend: New file.
90704         * modules/unictype/property-other-grapheme-extend: New file.
90705         * modules/unictype/property-grapheme-link: New file.
90706         * modules/unictype/property-bidi-control: New file.
90707         * modules/unictype/property-bidi-left-to-right: New file.
90708         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
90709         * modules/unictype/property-bidi-arabic-right-to-left: New file.
90710         * modules/unictype/property-bidi-european-digit: New file.
90711         * modules/unictype/property-bidi-eur-num-separator: New file.
90712         * modules/unictype/property-bidi-eur-num-terminator: New file.
90713         * modules/unictype/property-bidi-arabic-digit: New file.
90714         * modules/unictype/property-bidi-common-separator: New file.
90715         * modules/unictype/property-bidi-block-separator: New file.
90716         * modules/unictype/property-bidi-segment-separator: New file.
90717         * modules/unictype/property-bidi-whitespace: New file.
90718         * modules/unictype/property-bidi-non-spacing-mark: New file.
90719         * modules/unictype/property-bidi-boundary-neutral: New file.
90720         * modules/unictype/property-bidi-pdf: New file.
90721         * modules/unictype/property-bidi-embedding-or-override: New file.
90722         * modules/unictype/property-bidi-other-neutral: New file.
90723         * modules/unictype/property-hex-digit: New file.
90724         * modules/unictype/property-ascii-hex-digit: New file.
90725         * modules/unictype/property-ideographic: New file.
90726         * modules/unictype/property-unified-ideograph: New file.
90727         * modules/unictype/property-radical: New file.
90728         * modules/unictype/property-ids-binary-operator: New file.
90729         * modules/unictype/property-ids-trinary-operator: New file.
90730         * modules/unictype/property-zero-width: New file.
90731         * modules/unictype/property-space: New file.
90732         * modules/unictype/property-non-break: New file.
90733         * modules/unictype/property-iso-control: New file.
90734         * modules/unictype/property-format-control: New file.
90735         * modules/unictype/property-dash: New file.
90736         * modules/unictype/property-hyphen: New file.
90737         * modules/unictype/property-punctuation: New file.
90738         * modules/unictype/property-line-separator: New file.
90739         * modules/unictype/property-paragraph-separator: New file.
90740         * modules/unictype/property-quotation-mark: New file.
90741         * modules/unictype/property-sentence-terminal: New file.
90742         * modules/unictype/property-terminal-punctuation: New file.
90743         * modules/unictype/property-currency-symbol: New file.
90744         * modules/unictype/property-math: New file.
90745         * modules/unictype/property-other-math: New file.
90746         * modules/unictype/property-paired-punctuation: New file.
90747         * modules/unictype/property-left-of-pair: New file.
90748         * modules/unictype/property-combining: New file.
90749         * modules/unictype/property-composite: New file.
90750         * modules/unictype/property-decimal-digit: New file.
90751         * modules/unictype/property-numeric: New file.
90752         * modules/unictype/property-diacritic: New file.
90753         * modules/unictype/property-extender: New file.
90754         * modules/unictype/property-ignorable-control: New file.
90755         * modules/unictype/property-test: New file.
90756         * modules/unictype/property-byname: New file.
90757         * modules/unictype/property-all: New file.
90758         * modules/unictype/scripts: New file.
90759         * modules/unictype/scripts-all: New file.
90760         * modules/unictype/block-of: New file.
90761         * modules/unictype/block-test: New file.
90762         * modules/unictype/block-list: New file.
90763         * modules/unictype/block-all: New file.
90764         * modules/unictype/syntax-c-whitespace: New file.
90765         * modules/unictype/syntax-java-whitespace: New file.
90766         * modules/unictype/syntax-c-ident: New file.
90767         * modules/unictype/syntax-java-ident: New file.
90768         * modules/unictype/ctype-alnum: New file.
90769         * modules/unictype/ctype-alpha: New file.
90770         * modules/unictype/ctype-cntrl: New file.
90771         * modules/unictype/ctype-digit: New file.
90772         * modules/unictype/ctype-graph: New file.
90773         * modules/unictype/ctype-lower: New file.
90774         * modules/unictype/ctype-print: New file.
90775         * modules/unictype/ctype-punct: New file.
90776         * modules/unictype/ctype-space: New file.
90777         * modules/unictype/ctype-upper: New file.
90778         * modules/unictype/ctype-xdigit: New file.
90779         * modules/unictype/ctype-blank: New file.
90780         * lib/unictype/bidi_byname.c: New file.
90781         * lib/unictype/bidi_name.c: New file.
90782         * lib/unictype/bidi_of.c: New file.
90783         * lib/unictype/bidi_test.c: New file.
90784         * lib/unictype/bitmap.h: New file.
90785         * lib/unictype/block_test.c: New file.
90786         * lib/unictype/blocks.c: New file.
90787         * lib/unictype/categ_C.c: New file.
90788         * lib/unictype/categ_Cc.c: New file.
90789         * lib/unictype/categ_Cf.c: New file.
90790         * lib/unictype/categ_Cn.c: New file.
90791         * lib/unictype/categ_Co.c: New file.
90792         * lib/unictype/categ_Cs.c: New file.
90793         * lib/unictype/categ_L.c: New file.
90794         * lib/unictype/categ_Ll.c: New file.
90795         * lib/unictype/categ_Lm.c: New file.
90796         * lib/unictype/categ_Lo.c: New file.
90797         * lib/unictype/categ_Lt.c: New file.
90798         * lib/unictype/categ_Lu.c: New file.
90799         * lib/unictype/categ_M.c: New file.
90800         * lib/unictype/categ_Mc.c: New file.
90801         * lib/unictype/categ_Me.c: New file.
90802         * lib/unictype/categ_Mn.c: New file.
90803         * lib/unictype/categ_N.c: New file.
90804         * lib/unictype/categ_Nd.c: New file.
90805         * lib/unictype/categ_Nl.c: New file.
90806         * lib/unictype/categ_No.c: New file.
90807         * lib/unictype/categ_P.c: New file.
90808         * lib/unictype/categ_Pc.c: New file.
90809         * lib/unictype/categ_Pd.c: New file.
90810         * lib/unictype/categ_Pe.c: New file.
90811         * lib/unictype/categ_Pf.c: New file.
90812         * lib/unictype/categ_Pi.c: New file.
90813         * lib/unictype/categ_Po.c: New file.
90814         * lib/unictype/categ_Ps.c: New file.
90815         * lib/unictype/categ_S.c: New file.
90816         * lib/unictype/categ_Sc.c: New file.
90817         * lib/unictype/categ_Sk.c: New file.
90818         * lib/unictype/categ_Sm.c: New file.
90819         * lib/unictype/categ_So.c: New file.
90820         * lib/unictype/categ_Z.c: New file.
90821         * lib/unictype/categ_Zl.c: New file.
90822         * lib/unictype/categ_Zp.c: New file.
90823         * lib/unictype/categ_Zs.c: New file.
90824         * lib/unictype/categ_and.c: New file.
90825         * lib/unictype/categ_and_not.c: New file.
90826         * lib/unictype/categ_byname.c: New file.
90827         * lib/unictype/categ_name.c: New file.
90828         * lib/unictype/categ_none.c: New file.
90829         * lib/unictype/categ_of.c: New file.
90830         * lib/unictype/categ_or.c: New file.
90831         * lib/unictype/categ_test.c: New file.
90832         * lib/unictype/combining.c: New file.
90833         * lib/unictype/ctype_alnum.c: New file.
90834         * lib/unictype/ctype_alpha.c: New file.
90835         * lib/unictype/ctype_blank.c: New file.
90836         * lib/unictype/ctype_cntrl.c: New file.
90837         * lib/unictype/ctype_digit.c: New file.
90838         * lib/unictype/ctype_graph.c: New file.
90839         * lib/unictype/ctype_lower.c: New file.
90840         * lib/unictype/ctype_print.c: New file.
90841         * lib/unictype/ctype_punct.c: New file.
90842         * lib/unictype/ctype_space.c: New file.
90843         * lib/unictype/ctype_upper.c: New file.
90844         * lib/unictype/ctype_xdigit.c: New file.
90845         * lib/unictype/decdigit.c: New file.
90846         * lib/unictype/digit.c: New file.
90847         * lib/unictype/identsyntaxmap.h: New file.
90848         * lib/unictype/mirror.c: New file.
90849         * lib/unictype/numeric.c: New file.
90850         * lib/unictype/pr_alphabetic.c: New file.
90851         * lib/unictype/pr_ascii_hex_digit.c: New file.
90852         * lib/unictype/pr_bidi_arabic_digit.c: New file.
90853         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
90854         * lib/unictype/pr_bidi_block_separator.c: New file.
90855         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
90856         * lib/unictype/pr_bidi_common_separator.c: New file.
90857         * lib/unictype/pr_bidi_control.c: New file.
90858         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
90859         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
90860         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
90861         * lib/unictype/pr_bidi_european_digit.c: New file.
90862         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
90863         * lib/unictype/pr_bidi_left_to_right.c: New file.
90864         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
90865         * lib/unictype/pr_bidi_other_neutral.c: New file.
90866         * lib/unictype/pr_bidi_pdf.c: New file.
90867         * lib/unictype/pr_bidi_segment_separator.c: New file.
90868         * lib/unictype/pr_bidi_whitespace.c: New file.
90869         * lib/unictype/pr_byname.c: New file.
90870         * lib/unictype/pr_byname.gperf: New file.
90871         * lib/unictype/pr_combining.c: New file.
90872         * lib/unictype/pr_composite.c: New file.
90873         * lib/unictype/pr_currency_symbol.c: New file.
90874         * lib/unictype/pr_dash.c: New file.
90875         * lib/unictype/pr_decimal_digit.c: New file.
90876         * lib/unictype/pr_default_ignorable_code_point.c: New file.
90877         * lib/unictype/pr_deprecated.c: New file.
90878         * lib/unictype/pr_diacritic.c: New file.
90879         * lib/unictype/pr_extender.c: New file.
90880         * lib/unictype/pr_format_control.c: New file.
90881         * lib/unictype/pr_grapheme_base.c: New file.
90882         * lib/unictype/pr_grapheme_extend.c: New file.
90883         * lib/unictype/pr_grapheme_link.c: New file.
90884         * lib/unictype/pr_hex_digit.c: New file.
90885         * lib/unictype/pr_hyphen.c: New file.
90886         * lib/unictype/pr_id_continue.c: New file.
90887         * lib/unictype/pr_id_start.c: New file.
90888         * lib/unictype/pr_ideographic.c: New file.
90889         * lib/unictype/pr_ids_binary_operator.c: New file.
90890         * lib/unictype/pr_ids_trinary_operator.c: New file.
90891         * lib/unictype/pr_ignorable_control.c: New file.
90892         * lib/unictype/pr_iso_control.c: New file.
90893         * lib/unictype/pr_join_control.c: New file.
90894         * lib/unictype/pr_left_of_pair.c: New file.
90895         * lib/unictype/pr_line_separator.c: New file.
90896         * lib/unictype/pr_logical_order_exception.c: New file.
90897         * lib/unictype/pr_lowercase.c: New file.
90898         * lib/unictype/pr_math.c: New file.
90899         * lib/unictype/pr_non_break.c: New file.
90900         * lib/unictype/pr_not_a_character.c: New file.
90901         * lib/unictype/pr_numeric.c: New file.
90902         * lib/unictype/pr_other_alphabetic.c: New file.
90903         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
90904         * lib/unictype/pr_other_grapheme_extend.c: New file.
90905         * lib/unictype/pr_other_id_continue.c: New file.
90906         * lib/unictype/pr_other_id_start.c: New file.
90907         * lib/unictype/pr_other_lowercase.c: New file.
90908         * lib/unictype/pr_other_math.c: New file.
90909         * lib/unictype/pr_other_uppercase.c: New file.
90910         * lib/unictype/pr_paired_punctuation.c: New file.
90911         * lib/unictype/pr_paragraph_separator.c: New file.
90912         * lib/unictype/pr_pattern_syntax.c: New file.
90913         * lib/unictype/pr_pattern_white_space.c: New file.
90914         * lib/unictype/pr_private_use.c: New file.
90915         * lib/unictype/pr_punctuation.c: New file.
90916         * lib/unictype/pr_quotation_mark.c: New file.
90917         * lib/unictype/pr_radical.c: New file.
90918         * lib/unictype/pr_sentence_terminal.c: New file.
90919         * lib/unictype/pr_soft_dotted.c: New file.
90920         * lib/unictype/pr_space.c: New file.
90921         * lib/unictype/pr_terminal_punctuation.c: New file.
90922         * lib/unictype/pr_test.c: New file.
90923         * lib/unictype/pr_titlecase.c: New file.
90924         * lib/unictype/pr_unassigned_code_value.c: New file.
90925         * lib/unictype/pr_unified_ideograph.c: New file.
90926         * lib/unictype/pr_uppercase.c: New file.
90927         * lib/unictype/pr_variation_selector.c: New file.
90928         * lib/unictype/pr_white_space.c: New file.
90929         * lib/unictype/pr_xid_continue.c: New file.
90930         * lib/unictype/pr_xid_start.c: New file.
90931         * lib/unictype/pr_zero_width.c: New file.
90932         * lib/unictype/scripts.c: New file.
90933         * lib/unictype/sy_c_ident.c: New file.
90934         * lib/unictype/sy_c_whitespace.c: New file.
90935         * lib/unictype/sy_java_ident.c: New file.
90936         * lib/unictype/sy_java_whitespace.c: New file.
90938         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
90939         Unicode 5.0.0.
90940         * lib/unictype/blocks.h: Likewise.
90941         * lib/unictype/categ_C.h: Likewise.
90942         * lib/unictype/categ_Cc.h: Likewise.
90943         * lib/unictype/categ_Cf.h: Likewise.
90944         * lib/unictype/categ_Cn.h: Likewise.
90945         * lib/unictype/categ_Co.h: Likewise.
90946         * lib/unictype/categ_Cs.h: Likewise.
90947         * lib/unictype/categ_L.h: Likewise.
90948         * lib/unictype/categ_Ll.h: Likewise.
90949         * lib/unictype/categ_Lm.h: Likewise.
90950         * lib/unictype/categ_Lo.h: Likewise.
90951         * lib/unictype/categ_Lt.h: Likewise.
90952         * lib/unictype/categ_Lu.h: Likewise.
90953         * lib/unictype/categ_M.h: Likewise.
90954         * lib/unictype/categ_Mc.h: Likewise.
90955         * lib/unictype/categ_Me.h: Likewise.
90956         * lib/unictype/categ_Mn.h: Likewise.
90957         * lib/unictype/categ_N.h: Likewise.
90958         * lib/unictype/categ_Nd.h: Likewise.
90959         * lib/unictype/categ_Nl.h: Likewise.
90960         * lib/unictype/categ_No.h: Likewise.
90961         * lib/unictype/categ_P.h: Likewise.
90962         * lib/unictype/categ_Pc.h: Likewise.
90963         * lib/unictype/categ_Pd.h: Likewise.
90964         * lib/unictype/categ_Pe.h: Likewise.
90965         * lib/unictype/categ_Pf.h: Likewise.
90966         * lib/unictype/categ_Pi.h: Likewise.
90967         * lib/unictype/categ_Po.h: Likewise.
90968         * lib/unictype/categ_Ps.h: Likewise.
90969         * lib/unictype/categ_S.h: Likewise.
90970         * lib/unictype/categ_Sc.h: Likewise.
90971         * lib/unictype/categ_Sk.h: Likewise.
90972         * lib/unictype/categ_Sm.h: Likewise.
90973         * lib/unictype/categ_So.h: Likewise.
90974         * lib/unictype/categ_Z.h: Likewise.
90975         * lib/unictype/categ_Zl.h: Likewise.
90976         * lib/unictype/categ_Zp.h: Likewise.
90977         * lib/unictype/categ_Zs.h: Likewise.
90978         * lib/unictype/categ_of.h: Likewise.
90979         * lib/unictype/combining.h: Likewise.
90980         * lib/unictype/ctype_alnum.h: Likewise.
90981         * lib/unictype/ctype_alpha.h: Likewise.
90982         * lib/unictype/ctype_blank.h: Likewise.
90983         * lib/unictype/ctype_cntrl.h: Likewise.
90984         * lib/unictype/ctype_digit.h: Likewise.
90985         * lib/unictype/ctype_graph.h: Likewise.
90986         * lib/unictype/ctype_lower.h: Likewise.
90987         * lib/unictype/ctype_print.h: Likewise.
90988         * lib/unictype/ctype_punct.h: Likewise.
90989         * lib/unictype/ctype_space.h: Likewise.
90990         * lib/unictype/ctype_upper.h: Likewise.
90991         * lib/unictype/ctype_xdigit.h: Likewise.
90992         * lib/unictype/decdigit.h: Likewise.
90993         * lib/unictype/digit.h: Likewise.
90994         * lib/unictype/mirror.h: Likewise.
90995         * lib/unictype/numeric.h: Likewise.
90996         * lib/unictype/pr_alphabetic.h: Likewise.
90997         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
90998         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
90999         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
91000         * lib/unictype/pr_bidi_block_separator.h: Likewise.
91001         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
91002         * lib/unictype/pr_bidi_common_separator.h: Likewise.
91003         * lib/unictype/pr_bidi_control.h: Likewise.
91004         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
91005         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
91006         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
91007         * lib/unictype/pr_bidi_european_digit.h: Likewise.
91008         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
91009         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
91010         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
91011         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
91012         * lib/unictype/pr_bidi_pdf.h: Likewise.
91013         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
91014         * lib/unictype/pr_bidi_whitespace.h: Likewise.
91015         * lib/unictype/pr_combining.h: Likewise.
91016         * lib/unictype/pr_composite.h: Likewise.
91017         * lib/unictype/pr_currency_symbol.h: Likewise.
91018         * lib/unictype/pr_dash.h: Likewise.
91019         * lib/unictype/pr_decimal_digit.h: Likewise.
91020         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
91021         * lib/unictype/pr_deprecated.h: Likewise.
91022         * lib/unictype/pr_diacritic.h: Likewise.
91023         * lib/unictype/pr_extender.h: Likewise.
91024         * lib/unictype/pr_format_control.h: Likewise.
91025         * lib/unictype/pr_grapheme_base.h: Likewise.
91026         * lib/unictype/pr_grapheme_extend.h: Likewise.
91027         * lib/unictype/pr_grapheme_link.h: Likewise.
91028         * lib/unictype/pr_hex_digit.h: Likewise.
91029         * lib/unictype/pr_hyphen.h: Likewise.
91030         * lib/unictype/pr_id_continue.h: Likewise.
91031         * lib/unictype/pr_id_start.h: Likewise.
91032         * lib/unictype/pr_ideographic.h: Likewise.
91033         * lib/unictype/pr_ids_binary_operator.h: Likewise.
91034         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
91035         * lib/unictype/pr_ignorable_control.h: Likewise.
91036         * lib/unictype/pr_iso_control.h: Likewise.
91037         * lib/unictype/pr_join_control.h: Likewise.
91038         * lib/unictype/pr_left_of_pair.h: Likewise.
91039         * lib/unictype/pr_line_separator.h: Likewise.
91040         * lib/unictype/pr_logical_order_exception.h: Likewise.
91041         * lib/unictype/pr_lowercase.h: Likewise.
91042         * lib/unictype/pr_math.h: Likewise.
91043         * lib/unictype/pr_non_break.h: Likewise.
91044         * lib/unictype/pr_not_a_character.h: Likewise.
91045         * lib/unictype/pr_numeric.h: Likewise.
91046         * lib/unictype/pr_other_alphabetic.h: Likewise.
91047         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
91048         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
91049         * lib/unictype/pr_other_id_continue.h: Likewise.
91050         * lib/unictype/pr_other_id_start.h: Likewise.
91051         * lib/unictype/pr_other_lowercase.h: Likewise.
91052         * lib/unictype/pr_other_math.h: Likewise.
91053         * lib/unictype/pr_other_uppercase.h: Likewise.
91054         * lib/unictype/pr_paired_punctuation.h: Likewise.
91055         * lib/unictype/pr_paragraph_separator.h: Likewise.
91056         * lib/unictype/pr_pattern_syntax.h: Likewise.
91057         * lib/unictype/pr_pattern_white_space.h: Likewise.
91058         * lib/unictype/pr_private_use.h: Likewise.
91059         * lib/unictype/pr_punctuation.h: Likewise.
91060         * lib/unictype/pr_quotation_mark.h: Likewise.
91061         * lib/unictype/pr_radical.h: Likewise.
91062         * lib/unictype/pr_sentence_terminal.h: Likewise.
91063         * lib/unictype/pr_soft_dotted.h: Likewise.
91064         * lib/unictype/pr_space.h: Likewise.
91065         * lib/unictype/pr_terminal_punctuation.h: Likewise.
91066         * lib/unictype/pr_titlecase.h: Likewise.
91067         * lib/unictype/pr_unassigned_code_value.h: Likewise.
91068         * lib/unictype/pr_unified_ideograph.h: Likewise.
91069         * lib/unictype/pr_uppercase.h: Likewise.
91070         * lib/unictype/pr_variation_selector.h: Likewise.
91071         * lib/unictype/pr_white_space.h: Likewise.
91072         * lib/unictype/pr_xid_continue.h: Likewise.
91073         * lib/unictype/pr_xid_start.h: Likewise.
91074         * lib/unictype/pr_zero_width.h: Likewise.
91075         * lib/unictype/scripts.h: Likewise.
91076         * lib/unictype/scripts_byname.gperf: Likewise.
91077         * lib/unictype/sy_c_ident.h: Likewise.
91078         * lib/unictype/sy_c_whitespace.h: Likewise.
91079         * lib/unictype/sy_java_ident.h: Likewise.
91080         * lib/unictype/sy_java_whitespace.h: Likewise.
91082         * lib/unictype/Makefile: New file.
91083         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
91084         glibc.
91085         * lib/unictype/3level.h: New file, copied from glibc.
91086         * lib/unictype/3levelbit.h: New file.
91088 2007-11-11  Bruno Haible  <bruno@clisp.org>
91090         * modules/gperf: New file.
91091         * modules/iconv_open (Depends-on): Add it.
91092         (Makefile.am): Remove the GPERF definition.
91094 2007-11-11  Bruno Haible  <bruno@clisp.org>
91096         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
91097         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
91099 2007-11-11  Bruno Haible  <bruno@clisp.org>
91101         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
91102         (usage): Remove function.
91104 2007-11-11  Bruno Haible  <bruno@clisp.org>
91106         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
91107         gl_FUNC_CEILF_LIBS.
91108         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
91109         gl_FUNC_CEIL_LIBS.
91110         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
91111         gl_FUNC_CEILL_LIBS.
91112         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
91113         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
91114         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
91116 2007-11-11  Bruno Haible  <bruno@clisp.org>
91118         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
91119         roundf were declared but do not exist on functions.
91120         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
91121         roundl were declared but do not exist on functions.
91122         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
91123         HAVE_FLOORL_AND_CEILL, respectively.
91124         Needed for Sun C on Solaris 10.
91126 2007-11-11  Bruno Haible  <bruno@clisp.org>
91128         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
91129         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
91130         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
91131         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
91132         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
91133         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
91134         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
91135         HAVE_DECL_ROUNDF.
91136         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
91137         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
91138         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
91139         of HAVE_DECL_ROUND*.
91140         * modules/math (Makefile.am): Update.
91142 2007-11-10  Bruno Haible  <bruno@clisp.org>
91144         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
91145         ptrdiff_t as m4/intl.m4.
91147 2007-11-10  Jim Meyering  <meyering@redhat.com>
91149         Avoid link failure for the argmatch test.
91150         * tests/test-argmatch.c (usage): Define function to avoid a link
91151         failure: argmatch_die requires a usage function.
91153 2007-11-09  Bruno Haible  <bruno@clisp.org>
91155         * doc/functions/snprintf.texi: Mention BeOS deficiency.
91156         * doc/functions/vsnprintf.texi: Likewise.
91157         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
91158         with a size argument < 2.
91160 2007-11-09  Bruno Haible  <bruno@clisp.org>
91162         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
91163         buffer. Fixes an inefficiency introduced on 2007-11-03.
91165 2007-11-09  Bruno Haible  <bruno@clisp.org>
91167         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
91168         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
91170 2007-11-08  Jim Meyering  <meyering@redhat.com>
91172         Change cache variable name prefix "jm_" to "gl_" everywhere.
91173         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
91174         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
91175         * m4/uptime.m4: s/gl_/jm_/
91177 2007-11-07  Bruno Haible  <bruno@clisp.org>
91179         Update to GNU gettext 0.17.
91180         * m4/intl.m4: Update to GNU gettext 0.17.
91181         * m4/po.m4: Likewise.
91182         * modules/gettext (Files): Remove m4/ulonglong.m4.
91183         (configure.ac): Require gettext infrastructure from version 0.17.
91185 2007-11-06  Bruno Haible  <bruno@clisp.org>
91187         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
91188         symbolic values are not defined in a public header.
91189         * lib/freadable.c (freadable) [QNX]: Likewise.
91190         * lib/freadahead.c (freadahead) [QNX]: Likewise.
91191         * lib/freading.c (freading) [QNX]: Likewise.
91192         * lib/fseterr.c (fseterr) [QNX]: Likewise.
91193         * lib/fwritable.c (fwritable) [QNX]: Likewise.
91194         * lib/fwriting.c (fwriting) [QNX]: Likewise.
91195         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
91196         Reported by Alain Magloire.
91198         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
91200 2007-11-05  Bruno Haible  <bruno@clisp.org>
91202         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
91203         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
91204         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
91205         Reported by Eric Blake.
91207 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91208             Bruno Haible  <bruno@clisp.org>
91210         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
91211         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
91212         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
91213         (malloc): Undefine also before including <stdlib.h>.
91214         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
91215         Needed on OSF/1 4.0.
91217 2007-11-05  Jim Meyering  <meyering@redhat.com>
91219         git-version-gen: sync from coreutils.
91220         * build-aux/git-version-gen: Add comments.
91221         Change the first '-' to '.' in the snapshot version string,
91222         e.g., 6.9-377-08144 -> 6.9.377-08144
91223         Remove first parameter.
91224         Don't declare a version "-dirty" merely because a time
91225         stamp has changed.
91227 2007-11-04  Bruno Haible  <bruno@clisp.org>
91229         * lib/lock.h: Protect all macro definitions containing an 'if'
91230         statement through a "do { ... } while (0)".
91231         * lib/tls.h: Likewise.
91233 2007-11-04  Bruno Haible  <bruno@clisp.org>
91235         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
91237 2007-11-04  Bruno Haible  <bruno@clisp.org>
91239         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
91240         * modules/fprintf-posix (Depends-on): Add nocrash.
91241         * modules/snprintf-posix (Depends-on): Likewise.
91242         * modules/sprintf-posix (Depends-on): Likewise.
91243         * modules/vasnprintf-posix (Depends-on): Likewise.
91244         * modules/vasprintf-posix (Depends-on): Likewise.
91245         * modules/vfprintf-posix (Depends-on): Likewise.
91246         * modules/vsnprintf-posix (Depends-on): Likewise.
91247         * modules/vsprintf-posix (Depends-on): Likewise.
91248         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
91249         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
91250         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
91251         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
91252         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
91253         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
91254         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
91256 2007-11-04  Bruno Haible  <bruno@clisp.org>
91258         * modules/nocrash: New file.
91259         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
91260         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
91262 2007-11-04  Bruno Haible  <bruno@clisp.org>
91264         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
91265         precision handling.
91266         * tests/test-vasprintf-posix.c (test_function): Likewise.
91267         * tests/test-snprintf-posix.h (test_function): Likewise.
91268         * tests/test-sprintf-posix.h (test_function): Likewise.
91270         Fix *printf behaviour for large precisions on mingw and BeOS.
91271         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
91272         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
91273         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
91274         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
91275         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
91276         gl_PRINTF_PRECISION and test its result. Invoke
91277         gl_PREREQ_VASNPRINTF_PRECISION.
91278         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
91279         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
91280         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
91281         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
91282         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
91283         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
91284         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
91285         * doc/functions/fprintf.texi: Update.
91286         * doc/functions/printf.texi: Update.
91287         * doc/functions/snprintf.texi: Update.
91288         * doc/functions/sprintf.texi: Update.
91289         * doc/functions/vfprintf.texi: Update.
91290         * doc/functions/vprintf.texi: Update.
91291         * doc/functions/vsnprintf.texi: Update.
91292         * doc/functions/vsprintf.texi: Update.
91294 2007-11-04  Bruno Haible  <bruno@clisp.org>
91296         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
91298 2007-11-04  Bruno Haible  <bruno@clisp.org>
91300         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
91301         Reported by Sylvain Beucler <beuc@gnu.org>.
91303 2007-11-03  Bruno Haible  <bruno@clisp.org>
91305         * tests/test-fprintf-posix2.sh: New file.
91306         * tests/test-fprintf-posix2.c: New file.
91307         * modules/fprintf-posix-tests (Files): Add them.
91308         (TESTS): Add test-fprintf-posix2.sh.
91309         (configure.ac): Check for getrlimit and setrlimit.
91310         (check_PROGRAMS): Add test-fprintf-posix2.
91312         * tests/test-printf-posix2.sh: New file.
91313         * tests/test-printf-posix2.c: New file.
91314         * modules/printf-posix-tests (Files): Add them.
91315         (TESTS): Add test-printf-posix2.sh.
91316         (configure.ac): Check for getrlimit and setrlimit.
91317         (check_PROGRAMS): Add test-printf-posix2.
91319         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
91320         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
91321         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
91322         (decode_double): New function, copied from decode_long_double.
91323         (scale10_round_decimal_decoded): New function, extracted from
91324         scale10_round_decimal_long_double.
91325         (scale10_round_decimal_long_double): Use it.
91326         (scale10_round_decimal_double): New function.
91327         (floorlog10): New function.
91328         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
91329         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
91330         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
91331         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
91332         gl_PRINTF_ENOMEM and test its result. Invoke
91333         gl_PREREQ_VASNPRINTF_ENOMEM.
91334         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
91335         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
91336         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
91337         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
91338         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
91339         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
91340         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
91341         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
91342         * modules/snprintf-posix (Depends-on): Likewise.
91343         * modules/sprintf-posix (Depends-on): Likewise.
91344         * modules/vasnprintf-posix (Depends-on): Likewise.
91345         * modules/vasprintf-posix (Depends-on): Likewise.
91346         * modules/vfprintf-posix (Depends-on): Likewise.
91347         * modules/vsnprintf-posix (Depends-on): Likewise.
91348         * modules/vsprintf-posix (Depends-on): Likewise.
91349         * doc/functions/fprintf.texi: Update.
91350         * doc/functions/printf.texi: Update.
91351         * doc/functions/snprintf.texi: Update.
91352         * doc/functions/sprintf.texi: Update.
91353         * doc/functions/vfprintf.texi: Update.
91354         * doc/functions/vprintf.texi: Update.
91355         * doc/functions/vsnprintf.texi: Update.
91356         * doc/functions/vsprintf.texi: Update.
91358 2007-11-03  Bruno Haible  <bruno@clisp.org>
91360         * modules/frexp-nolibm-tests: New file.
91362         * modules/frexp-nolibm: New file.
91363         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
91365 2007-11-03  Bruno Haible  <bruno@clisp.org>
91367         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
91368         value is C99 compliant.
91369         Needed for OSF/1 5.1.
91371 2007-11-03  Bruno Haible  <bruno@clisp.org>
91373         Fix out-of-memory handling of vasnprintf.
91374         * lib/printf-parse.c: Include <errno.h>.
91375         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
91376         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
91377         is already set.
91379 2007-11-02  Eric Blake  <ebb9@byu.net>
91381         Fix tests on cygwin.
91382         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
91384 2007-11-01  Bruno Haible  <bruno@clisp.org>
91386         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
91387         warning.
91388         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
91389         needed for POSIX compatibility.
91391 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
91393         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
91394         for compatibility with GNU.
91396 2007-11-01  Bruno Haible  <bruno@clisp.org>
91398         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
91399         (putenv): Renamed from rpl_putenv. Change argument type from
91400         'const char *' to 'char *'.
91401         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
91402         of defining putenv in config.h, just set REPLACE_PUTENV.
91403         * modules/putenv (Depends-on): Add stdlib.
91404         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91405         (Include): Use <stdlib.h>.
91406         * lib/stdlib.in.h (putenv): New declaration.
91407         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
91408         REPLACE_PUTENV.
91409         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
91410         REPLACE_PUTENV.
91411         Needed for MacOS X 10.5.0.
91412         Reported by Peter O'Gorman <peter@pogma.com>.
91414 2007-11-01  Jim Meyering  <meyering@redhat.com>
91416         Treat an empty date string exactly like "0".
91417         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
91418         if the remaining date string (to be parsed) is empty, use "0".
91419         Reported by Mischa Molhoek and discussed in this thread:
91420         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
91422 2007-10-31  Bruno Haible  <bruno@clisp.org>
91424         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
91425         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
91426         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
91427         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
91428         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
91429         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
91431 2007-10-31  Bruno Haible  <bruno@clisp.org>
91433         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
91434         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
91435         (AC_TYPE_LONG_LONG_INT): Use it.
91436         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
91437         it as well.
91438         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
91439         to m4/longlong.m4.
91440         * modules/stdint (Files): Remove m4/ulonglong.m4.
91441         * modules/strtoull (Files): Use m4/longlong.m4 instead of
91442         m4/ulonglong.m4.
91443         * modules/strtoumax (Files): Likewise.
91445 2007-10-30  Bruno Haible  <bruno@clisp.org>
91447         * modules/xvasprintf-posix: New file.
91448         Suggested by Eric Blake.
91450 2007-10-30  Bruno Haible  <bruno@clisp.org>
91452         * modules/xprintf-posix-tests: New file.
91453         * tests/test-xprintf-posix.sh: New file.
91454         * tests/test-xprintf-posix.c: New file.
91455         * tests/test-xfprintf-posix.c: New file.
91457         * modules/xprintf-posix: New file.
91459 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91461         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
91462         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
91463         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
91465 2007-10-29  Bruno Haible  <bruno@clisp.org>
91467         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
91468         contain the special marker '_cv_'.
91469         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
91470         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
91471         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
91472         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
91473         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
91474         Reported by Ralf Wildenhues.
91476 2007-10-29  Bruno Haible  <bruno@clisp.org>
91478         * gnulib-tool (func_import): When --lgpl is not specified, set
91479         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
91480         GPLv3.
91481         Reported by Simon Josefsson.
91483 2007-10-28  Bruno Haible  <bruno@clisp.org>
91485         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
91486         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
91487         HAVE_DECL_ISFINITE.
91488         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
91489         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
91490         HAVE_DECL_ISFINITE.
91492 2007-10-28  Bruno Haible  <bruno@clisp.org>
91494         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
91495         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
91497 2007-10-28  Bruno Haible  <bruno@clisp.org>
91499         Fix link errors with Sun C 5.0 on Solaris 10.
91500         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
91501         function is declared but not present in the compiler's libm.
91502         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
91503         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
91504         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
91505         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
91506         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
91507         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
91508         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
91509         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
91510         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
91511         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
91512         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
91513         HAVE_DECL_FLOORL.
91515 2007-10-28  Bruno Haible  <bruno@clisp.org>
91517         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
91518         gl_FUNC_FLOORL. Cache the result.
91519         (gl_FUNC_FLOORL): Use it.
91520         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
91521         gl_FUNC_CEILL. Cache the result.
91522         (gl_FUNC_CEILL): Use it.
91524         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
91525         gl_FUNC_FLOOR. Cache the result.
91526         (gl_FUNC_FLOOR): Use it.
91527         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
91528         gl_FUNC_CEIL. Cache the result.
91529         (gl_FUNC_CEIL): Use it.
91531         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
91532         gl_FUNC_FLOORF. Cache the result.
91533         (gl_FUNC_FLOORF): Use it.
91534         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
91535         gl_FUNC_CEILF. Cache the result.
91536         (gl_FUNC_CEILF): Use it.
91538 2007-10-28  Bruno Haible  <bruno@clisp.org>
91540         * gnulib-tool: Allow specifying the LGPL version number through
91541         --lgpl=2 or --lgpl=3.
91542         (func_usage): Document --lgpl with argument.
91543         Handle --lgpl=... arguments.
91544         (func_import): Recognize also gl_LGPL calls with an argument. When
91545         --lgpl=2 is used and the module's license is just LGPL, report an
91546         error. Set sed_transform_lib_file according to the lgpl variable. In
91547         the generated files, use --lgpl or gl_LGPL invocations with argument,
91548         if necessary.
91549         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
91550         an LGPv2+ license.
91551         * doc/gnulib-tool.texi (Modified imports): Update explanation of
91552         gl_LGPL macro.
91554 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91555             Bruno Haible  <bruno@clisp.org>
91557         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
91558         (u16_uctomb_aux): Likewise.
91559         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
91560         !HAVE_INLINE.
91561         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
91563 2007-10-28  Bruno Haible  <bruno@clisp.org>
91565         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
91566         Invoke AM_GETTEXT_OPTION if it exists.
91567         * modules/vasprintf: Likewise.
91568         * modules/verror: Likewise.
91569         * modules/xprintf: Likewise.
91570         * modules/xvasprintf: Likewise.
91572 2007-10-27  Ben Pfaff  <blp@gnu.org>
91574         * lib/math.in.h: Define isfinite macro and prototypes for
91575         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
91576         implementations.
91577         * m4/math_h.m4: New substitutions for isfinite module.
91578         * lib/isfinite.c: New file.
91579         * m4/isfinite.m4: New file.
91580         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
91581         * modules/isfinite: New file.
91582         * modules/isfinite-tests: New file.
91583         * tests/tests-isfinite.c: New file.
91584         * doc/functions/isfinite.texi: Mention isfinite module.
91585         * MODULES.html.sh: Mention new module.
91587 2007-10-27  Ben Pfaff  <blp@gnu.org>
91589         Ralf Wildenhues reported that Tru64 4.0D declares the round
91590         functions but does not have definitions.
91591         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
91592         cannot be found in any library, set the output variable to
91593         "missing" instead of "".
91594         * m4/round.m4: Also use our substitute if we cannot find round in
91595         any library, even if it is declared.
91596         * m4/roundf.m4: Likewise for roundf.
91597         * m4/roundl.m4: Likewise for roundl.
91598         * lib/math.in.h: Undefine roundf, round, roundl before defining
91599         their replacements, to allow for hypothetical systems where these
91600         may be defined as macros but not available in libraries.
91602 2007-10-27  Bruno Haible  <bruno@clisp.org>
91604         * doc/gnulib.texi: Invoke @firstparagraphindent.
91605         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
91606         changes in gnulib.
91607         (Source changes): New section.
91609 2007-10-26  Bruno Haible  <bruno@clisp.org>
91611         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
91612         borrowed from autoconf.
91614 2007-10-26  Bruno Haible  <bruno@clisp.org>
91616         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
91617         strerror returned the empty string. Needed on HP-UX 11.00.
91619 2007-10-24  Micah Cowan  <micah@cowan.name>
91621         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
91622         * build-aux/bootstrap: Remove support for now-unnecessary option,
91623         --cvs-user, and envvars CVS_USER, CVS_RSH.
91625 2007-10-24  Jim Meyering  <meyering@redhat.com>
91627         Avoid diagnostics from sha1sum when there is no cached checksum.
91628         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
91629         if the po.s1 file hasn't been created yet.
91631         * build-aux/bootstrap: Sync from coreutils:
91632         2007-10-24  Jim Meyering  <meyering@redhat.com>
91633         Get gnulib from the git repository, not from an obsolete cvs one.
91634         * build-aux/bootstrap: Suggestion from Micah Cowan.
91635         2007-10-04  Jim Meyering  <jim@meyering.net>
91636         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
91637         (update_po_files): Work also when there are no .po files in po/.
91639 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
91641         * README: Append ".git" to git and cg examples.
91642         Problem reported by Benoit Sigoure.
91644 2007-10-23  Micah Cowan  <micah@cowan.name>
91646         * users.txt: Add wget.
91648 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91650         Fix linking of some unistdio tests on FreeBSD.
91651         * modules/unistdio/u16-vsnprintf-tests
91652         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
91653         * modules/unistdio/u16-vsprintf-tests
91654         (test_u16_vsnprintf1_LDADD): Likewise.
91655         * modules/unistdio/u32-vsnprintf-tests
91656         (test_u32_vsnprintf1_LDADD): Likewise.
91657         * modules/unistdio/u32-vsprintf-tests
91658         (test_u32_vsprintf1_LDADD): Likewise.
91659         * modules/unistdio/u8-vsnprintf-tests
91660         (test_u8_vsnprintf1_LDADD): Likewise.
91661         * modules/unistdio/u8-vsprintf-tests
91662         (test_u8_vsprintf1_LDADD): Likewise.
91663         * modules/unistdio/ulc-vsnprintf-tests
91664         (test_ulc_vsnprintf1_LDADD): Likewise.
91665         * modules/unistdio/ulc-vsprintf-tests
91666         (test_ulc_vsprintf1_LDADD): Likewise.
91668         Fix linking of some uniconv tests on FreeBSD.
91669         * modules/uniconv/u16-conv-from-enc-tests
91670         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
91671         * modules/uniconv/u16-conv-to-enc-tests
91672         (test_u16_conv_to_enc_LDADD): Likewise.
91673         * modules/uniconv/u16-strconv-from-enc-tests
91674         (test_u16_strconv_from_enc_LDADD): Likewise.
91675         * modules/uniconv/u16-strconv-to-enc-tests
91676         (test_u16_strconv_to_enc_LDADD): Likewise.
91677         * modules/uniconv/u32-conv-from-enc-tests
91678         (test_u32_conv_from_enc_LDADD): Likewise.
91679         * modules/uniconv/u32-conv-to-enc-tests
91680         (test_u32_conv_to_enc_LDADD): Likewise.
91681         * modules/uniconv/u32-strconv-from-enc-tests
91682         (test_u32_strconv_from_enc_LDADD): Likewise.
91683         * modules/uniconv/u32-strconv-to-enc-tests
91684         (test_u32_strconv_to_enc_LDADD): Likewise.
91685         * modules/uniconv/u8-conv-from-enc-tests
91686         (test_u8_conv_from_enc_LDADD): Likewise.
91687         * modules/uniconv/u8-conv-to-enc-tests
91688         (test_u8_conv_to_enc_LDADD): Likewise.
91689         * modules/uniconv/u8-strconv-from-enc-tests
91690         (test_u8_strconv_from_enc_LDADD): Likewise.
91691         * modules/uniconv/u8-strconv-to-enc-tests
91692         (test_u8_strconv_to_enc_LDADD): Likewise.
91694 2007-10-22  Bruno Haible  <bruno@clisp.org>
91696         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
91697         size.
91699 2007-10-22  Eric Blake  <ebb9@byu.net>
91701         Tweak x*printf documentation.
91702         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
91703         variable name and comments.
91704         Suggested by Bruno Haible.
91706 2007-10-22  Bruno Haible  <bruno@clisp.org>
91708         * lib/acl.c (copy_acl): Fix file name in comment.
91710 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
91712         Fix Tru64 problem with stdbool.h.
91713         * lib/stdbool.in.h (false, true):
91714         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
91715         Don't declare as an enum in this situation; it runs afoul of Tru64.
91716         Problem reported by Steven M. Schweda in
91717         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
91719 2007-10-22  Eric Blake  <ebb9@byu.net>
91721         Also wrap vf?printf.
91722         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
91723         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
91724         (xvprintf, xvfprintf): New functions.
91726 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91728         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
91729         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
91731         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
91732         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
91734 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
91736         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
91737         by Bruno Haible.
91739 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91741         * lib/getloadavg.c
91742         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
91743         Undef `sys' after including sys/table.h, for Tru64 4.0D.
91745         * tests/test-i-ring.c: Work for C89.
91747 2007-10-22  Bruno Haible  <bruno@clisp.org>
91749         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
91750         -1u, in preprocessor expression, so that we don't test for the bug
91751         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
91752         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
91754 2007-10-22  Eric Blake  <ebb9@byu.net>
91756         * tests/test-yesno.sh: Silence stderr during test.
91758 2007-10-22  Simon Josefsson  <simon@josefsson.org>
91760         * modules/crypto/gc-camellia: New file.
91762         * m4/gc-camellia.m4: New file.
91764         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
91766         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
91768 2007-10-22  Simon Josefsson  <simon@josefsson.org>
91770         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
91771         --help to stdout.  Reported by sms@antinode.org (Steven
91772         M. Schweda).
91774 2007-10-22  Simon Josefsson  <simon@josefsson.org>
91776         * users.txt: Fix link to libksba.
91778 2007-10-21  Ben Pfaff  <blp@gnu.org>
91780         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
91781         round.c roundf implementation that depends on floorf and ceilf to
91782         be tested unconditionally.
91784 2007-10-21  Ben Pfaff  <blp@gnu.org>
91786         * m4/check-libm-func.m4: Removed.
91787         * m4/check-math-lib.m4: New file.
91788         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
91789         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
91790         definition and lack of AC_LIBOBJ([roundf]).
91791         * m4/roundl.m4: Ditto, and similarly for roundl.
91792         * modules/round: Reference new m4 file.
91793         * modules/roundf: Ditto.
91794         * modules/roundl: Ditto.
91795         * tests/test-round2.c (main): Use ROUND instead of round.
91796         Bug report from Bruno Haible.
91798 2007-10-21  Bruno Haible  <bruno@clisp.org>
91800         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
91801         context.
91803 2007-10-21  Bruno Haible  <bruno@clisp.org>
91805         * tests/test-wcwidth.c (main): Allow negative result for some control
91806         characters.
91808         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
91809         Needed on OSF/1 5.1.
91811 2007-10-21  Bruno Haible  <bruno@clisp.org>
91813         * tests/test-floorf1.c: Include isnanf.h.
91814         (main): Use isnanf() instead of isnan().
91815         * tests/test-ceilf1.c: Include isnanf.h.
91816         (main): Use isnanf() instead of isnan().
91817         * tests/test-truncf1.c: Include isnanf.h.
91818         (main): Use isnanf() instead of isnan().
91819         * tests/test-roundf1.c: Include isnanf.h.
91820         (main): Use isnanf() instead of isnan().
91822 2007-10-21  Eric Blake  <ebb9@byu.net>
91824         * users.txt: Update URL for m4.
91826 2007-10-21  Bruno Haible  <bruno@clisp.org>
91828         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
91830 2007-10-21  Bruno Haible  <bruno@clisp.org>
91832         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
91833         Git's management files if the CVS files are not present.
91835 2007-10-20  Bruno Haible  <bruno@clisp.org>
91837         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
91838         gcc-3.4.x.
91840 2007-10-20  Ben Pfaff  <blp@gnu.org>
91842         * lib/math.in.h: Declare round, roundf, roundl if we are providing
91843         implementations.
91844         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
91845         * lib/round.c: New file.
91846         * lib/roundf.c: New file.
91847         * lib/roundl.c: New file.
91848         * m4/round.m4: New file.
91849         * m4/roundf.m4: New file.
91850         * m4/roundl.m4: New file.
91851         * m4/check-libm-func-m4: New file.
91852         * modules/math: Replace round, roundf, roundl related @VARS@ in
91853         math.in.h.
91854         * modules/round: New file.
91855         * modules/round-tests: New file.
91856         * modules/roundf: New file.
91857         * modules/roundf-tests: New file.
91858         * modules/roundl: New file.
91859         * modules/roundl-tests: New file.
91860         * tests/test-round1.c: New file.
91861         * tests/test-round2.c: New file.
91862         * tests/test-roundf1.c: New file.
91863         * tests/test-roundf2.c: New file.
91864         * tests/test-roundl.c: New file.
91865         * doc/functions/round.texi: Mention round module.
91866         * doc/functions/roundf.texi: Mention roundf module.
91867         * doc/functions/roundl.texi: Mention roundl module.
91868         * MODULES.html.sh: Mention new modules.
91869         Thanks to Bruno Haible for suggestions.
91871 2007-10-20  Jim Meyering  <meyering@redhat.com>
91873         * lib/xprintf.c: Include <config.h> unconditionally.
91875         Change xprintf's license to GPL.
91876         * modules/xprintf (License): s/LGPL/GPL/, since this module
91877         depends on modules (exit and exitfail) which are GPL.
91878         Suggestion from Bruno Haible.
91880         xprintf fixes.
91881         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
91882         Use a clearer diagnostic.
91883         Patch from Bruno Haible.
91885 2007-10-20  Bruno Haible  <bruno@clisp.org>
91887         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
91888         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
91889         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91891 2007-10-20  Bruno Haible  <bruno@clisp.org>
91893         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
91894         precision in the comparison result > x - 1 or similar.
91895         * tests/test-ceilf2.c (correct_result_p): Likewise.
91896         * tests/test-truncf2.c (correct_result_p): Likewise.
91897         * tests/test-trunc2.c (correct_result_p): Likewise.
91898         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91900 2007-10-20  Bruno Haible  <bruno@clisp.org>
91902         * modules/ceil: New file.
91903         * m4/ceil.m4: New file.
91904         * doc/functions/ceil.texi: Mention the 'ceil' module.
91906 2007-10-20  Bruno Haible  <bruno@clisp.org>
91908         * modules/floor: New file.
91909         * m4/floor.m4: New file.
91910         * doc/functions/floor.texi: Mention the 'floor' module.
91912 2007-10-20  Bruno Haible  <bruno@clisp.org>
91914         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
91915         of %a.
91916         * modules/floorf-tests (Depends-on): Likewise.
91917         * modules/truncf-tests (Depends-on): Likewise.
91918         * modules/trunc-tests (Depends-on): Likewise.
91919         Reported by Ben Pfaff.
91921 2007-10-19  Jim Meyering  <meyering@redhat.com>
91923         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
91924         Don't bother testing specific errno values.  Just test ferror.
91926         New module: xprintf
91927         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
91929 2007-10-19  Bruno Haible  <bruno@clisp.org>
91931         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
91932         syntax.
91933         * modules/javaexec (Makefile.am): Likewise.
91934         * modules/relocatable-prog (Makefile.am): Likewise.
91935         Suggested by Jim Meyering.
91937 2007-10-18  Bruno Haible  <bruno@clisp.org>
91939         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
91940         Reported by Jim Meyering.
91942 2007-10-18  Eric Blake  <ebb9@byu.net>
91944         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
91946 2007-10-18  Bruno Haible  <bruno@clisp.org>
91948         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
91949         the format string into writable memory. Needed in Fortify conditions.
91951 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
91952             Bruno Haible  <bruno@clisp.org>
91954         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
91955         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
91956         * modules/trim (Depends-on): Add mbchar.
91957         (configure.ac): Add gl_FUNC_MBRTOWC.
91958         (Makefile.am): Augment lib_SOURCES.
91960 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
91962         Modify glob.c to use fstatat and dirfd, to simplify it.
91963         Suggested by Eric Blake.
91964         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
91965         Don't include <stdbool.h>; not used.
91966         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
91967         (link_exists_p): Simplify implementation, since we can now assume
91968         dirfd and fstatat.
91969         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
91971 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91973         * gnulib-tool (func_get_dependencies): Fix sed script to
91974         match only tests.
91976 2007-10-17  Bruno Haible  <bruno@clisp.org>
91978         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
91979         allow locale names without encoding suffix.
91980         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
91981         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
91983 2007-10-16  Bruno Haible  <bruno@clisp.org>
91985         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
91986         * lib/getgroups.c (getgroups): Likewise.
91987         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
91989 2007-10-16  Bruno Haible  <bruno@clisp.org>
91991         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
91992         * modules/malloc-posix (License): Likewise.
91993         * modules/realloc-posix (License): Likewise.
91994         * modules/calloc-posix (License): Likewise.
91995         * modules/intprops (License): Change from GPL to LGPL, with
91996         Paul Eggert's approval.
91998 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
92000         Merge glibc changes into lib/glob.c.
92002         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
92003         2007-10-15 04:59:03 UTC.  Here are the changes:
92005         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
92007         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
92009         * lib/glob.c: Add some branch prediction throughout.
92011         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
92013         [BZ #5103]
92014         * lib/glob.c (glob): Recognize patterns starting \/.
92016         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
92018         [BZ #3996]
92019         * lib/glob.c (attribute_hidden): Define if not defined.
92020         (glob): Unescape dirname, filename or username when needed and not
92021         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
92022         is NULL.  Handle unescaped [ in pattern without closing ].
92023         Don't pass GLOB_CHECK down to recursive glob for directories.
92024         (__glob_pattern_type): New function.
92025         (__glob_pattern_p): Implement using __glob_pattern_type.
92026         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
92027         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
92028         Remove unreachable code.
92030         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
92032         * lib/glob.c (glob_in_dir): Add some comments and asserts to
92033         explain why there are no leaks.
92035         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
92037         [BZ #3253]
92038         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
92039         time, rather allocate increasingly bigger arrays of pointers, if
92040         possible with alloca, if too large with malloc.
92042 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
92044         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
92045         Problem reported by H.Merijn Brand in
92046         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
92047         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
92048         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
92050 2007-10-15  Bruno Haible  <bruno@clisp.org>
92052         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
92053         with explicit rpl_ prefix.
92054         * lib/fopen.c (fopen): Likewise.
92055         * lib/freopen.c (freopen): Likewise.
92056         * lib/iconv.c (iconv): Likewise.
92057         * lib/iconv_close.c (iconv_close): Likewise.
92059 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92061         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
92063 2007-10-15  Bruno Haible  <bruno@clisp.org>
92065         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
92066         <stddef.h> instead of <stdlib.h> since we only need NULL.
92067         Reported by Ben Pfaff <blp@cs.stanford.edu>.
92069 2007-10-15  Bruno Haible  <bruno@clisp.org>
92071         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
92072         Replace paragraph talking about LIBOBJS.
92073         Reported by Colin Watson <cjwatson@debian.org>.
92075 2007-10-15  Bruno Haible  <bruno@clisp.org>
92077         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
92078         <stdlib.h> before using NULL.
92080 2007-10-15  Simon Josefsson  <simon@josefsson.org>
92082         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
92083         Reported by Albert Chin <china@thewrittenword.com>.
92085 2007-10-14  Bruno Haible  <bruno@clisp.org>
92087         * modules/iconv_open-utf-tests: New file.
92088         * tests/test-iconv-utf.c: New file.
92090         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
92091         * modules/iconv_open-utf: New file.
92092         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
92093         (iconv, iconv_close): New declarations.
92094         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
92095         be defined.
92096         (iconv_open): Add special handling of conversion between UTF-8 and
92097         UTF-{16,32}{BE,LE}.
92098         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
92099         * lib/iconv_close.c: New file.
92100         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
92101         gl_FUNC_ICONV_OPEN.
92102         (gl_FUNC_ICONV_OPEN): Use it.
92103         (gl_FUNC_ICONV_OPEN_UTF): New macro.
92104         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
92105         and REPLACE_ICONV_UTF.
92106         * modules/iconv_open (Depends-on): Add c-strcase.
92107         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
92108         ICONV_CONST.
92109         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
92111 2007-10-13  Albert Chin  <china@thewrittenword.com>
92112             Bruno Haible  <bruno@clisp.org>
92114         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
92115         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
92117 2007-10-13  Bruno Haible  <bruno@clisp.org>
92119         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
92120         defined, use the ISO C99 inline semantics.
92121         * lib/argp.h (ARGP_EI): Likewise.
92123 2007-10-13  Bruno Haible  <bruno@clisp.org>
92125         Handle 'inline' change in gcc 4.3.0.
92126         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
92127         argp_fmtstream_write, argp_fmtstream_set_lmargin,
92128         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
92129         argp_fmtstream_point): Disable 'extern' declaration if the function
92130         definition is going to be provided inline.
92131         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
92132         semantics, not the ISO C99 inline semantics.
92133         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
92134         'extern' declaration if the function definition is going to be provided
92135         inline.
92136         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
92137         the GNU C inline semantics, not the ISO C99 inline semantics. With
92138         GCC 4.2, avoid a warning.
92140 2007-10-13  Bruno Haible  <bruno@clisp.org>
92142         * lib/freading.h (freading): Enable the use of __freading for
92143         glibc >= 2.7.
92144         * lib/freading.c (freading): Likewise.
92146 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
92148         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
92149         "warning: C99 inline functions are not supported; using GNU89".
92151 2007-10-12  Bruno Haible  <bruno@clisp.org>
92153         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
92154         of 2.
92155         * tests/test-ceilf2.c: New file.
92156         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
92158         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
92159         * modules/ceilf-tests: Update.
92161 2007-10-12  Bruno Haible  <bruno@clisp.org>
92163         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
92164         of 2.
92165         * tests/test-floorf2.c: New file.
92166         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
92168         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
92169         * modules/floorf-tests: Update.
92171 2007-10-12  Bruno Haible  <bruno@clisp.org>
92173         * tests/test-trunc2.c: New file.
92174         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
92176         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
92177         * modules/trunc-tests: Update.
92179 2007-10-12  Bruno Haible  <bruno@clisp.org>
92181         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
92182         of 2.
92183         * tests/test-truncf2.c: New file.
92184         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
92186         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
92187         * modules/truncf-tests: Update.
92189 2007-10-11  Eric Blake  <ebb9@byu.net>
92191         Don't claim strerror is broken on Interix.
92192         * doc/functions/strerror.texi (strerror): Known broken systems are
92193         now Solaris 8, and not Interix.
92194         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
92195         Interix on cross-compile.
92196         Reported by Martin Koeppe in
92197         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
92199 2007-10-11  Bruno Haible  <bruno@clisp.org>
92201         * modules/i-ring-tests: New file.
92202         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
92203         instead of assert.
92205 2007-10-11  Bruno Haible  <bruno@clisp.org>
92207         * modules/filenamecat-tests: New file.
92208         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
92209         * lib/filenamecat.c: Remove test code.
92211 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
92213         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
92215         * lib/strerror.c: Include <string.h> always, to test interface,
92216         and to remove the need for the dummy.
92217         Include intprops.h to compute width instead of doing it ourselves
92218         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
92219         (strerror): Define it to return NULL if there's no system strerror.
92220         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
92221         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
92222         ancient pre-strerror Unix systems well any more.  Saying "unknown
92223         system error" is enough.
92224         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
92225         simpler strerror.c implementation.
92226         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
92227         Simplify the tests to reflect the simpler strerror implementation.
92228         * modules/strerror (Depends-on): Add intprops.
92230 2007-10-09  Eric Blake  <ebb9@byu.net>
92232         Silence test-fpending.
92233         * modules/fpending-tests (Files): Add wrapper script.
92234         * tests/test-fpending.sh: New file.
92236 2007-10-09  Bruno Haible  <bruno@clisp.org>
92238         * MODULES.html.sh (func_module): Don't create a hyperlink for
92239         function names like 'printf_frexp'.
92240         (Misc): Add crc, memxor.
92241         (Characteristics of floating types): New section.
92242         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
92243         isnanf-nolibm, signbit, trunc, truncf, truncl.
92244         (Enhancements for ISO C 99 functions): New subsection Input/output.
92245         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
92246         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
92247         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
92248         (Compatibility checks for POSIX:2001 functions): Add clock-time.
92249         (Enhancements for POSIX:2001 functions): Add chdir-long.
92250         (File system functions): Add areadlink, chdir-safer, read-file.
92251         Remove cycle-check.
92252         (File system as inode set): New section.
92253         (Date and time): Add gethrxtime.
92254         (Multithreading): Add openmp.
92255         (Internationalization functions): Add localename.
92256         (Unicode string functions): Add unistr/u*-mbsnlen.
92257         (Support for maintaining and releasing projects): Add git-version-gen.
92258         (Lone files): Remove directories.
92260 2007-10-08  Ben Pfaff  <blp@gnu.org>
92262         * lib/xmalloca.h: Fix typo in comment.
92264 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
92266         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
92267         when avoiding problems with integer overflow.  Use a portable test
92268         instead.
92270 2007-10-08  Simon Josefsson  <simon@josefsson.org>
92272         * modules/dummy (License): Change to LGPLv2+.
92273         * modules/float (License): Likewise
92274         * modules/realloc (License): Likewise
92275         * modules/stdlib (License): Likewise
92277 2007-10-07  Bruno Haible  <bruno@clisp.org>
92279         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
92280         * floor.c (TWO_MANT_DIG): Likewise.
92281         * ceil.c (TWO_MANT_DIG): Likewise.
92282         Reported by Ben Pfaff.
92284 2007-10-07  Bruno Haible  <bruno@clisp.org>
92286         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
92287         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
92288         * lib/frexp.c (FUNC): Likewise.
92289         * lib/printf-frexp.h (printf_frexp): Likewise.
92290         * lib/printf-frexpl.h (printf_frexpl): Likewise.
92291         * lib/printf-frexp.c (FUNC): Likewise.
92292         Suggested by Jim Meyering.
92294 2007-10-07  Jim Meyering  <meyering@redhat.com>
92296         Make xnanosleep's integer overflow test more robust.
92297         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
92298         so that gcc-4.3.0 doesn't optimize away this test for overflow.
92300 2007-10-07  Bruno Haible  <bruno@clisp.org>
92302         * NEWS: Mention the license change.
92304         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
92305         abbreviations in the modules files.
92307         Change copyright notice from GPLv2+ to GPLv3+.
92308         * README: Change copyright notice.
92309         * MODULES.html.sh: Likewise.
92310         * build-aux/bootstrap.conf: Likewise.
92311         * build-aux/config.libpath: Likewise.
92312         * build-aux/csharpcomp.sh.in: Likewise.
92313         * build-aux/csharpexec.sh.in: Likewise.
92314         * build-aux/install-reloc: Likewise.
92315         * build-aux/javacomp.sh.in: Likewise.
92316         * build-aux/javaexec.sh.in: Likewise.
92317         * build-aux/ldd.sh.in: Likewise.
92318         * build-aux/reloc-ldflags: Likewise.
92319         * build-aux/relocatable.sh.in: Likewise.
92320         * build-aux/x-to-1.in: Likewise.
92321         * check-module: Likewise.
92322         * config/srclistvars.sh: Likewise.
92323         * gnulib-tool: Likewise.
92324         * lib/acl-internal.h: Likewise.
92325         * lib/acl.c: Likewise.
92326         * lib/acl.h: Likewise.
92327         * lib/acl_entries.c: Likewise.
92328         * lib/areadlink-with-size.c: Likewise.
92329         * lib/areadlink.c: Likewise.
92330         * lib/areadlink.h: Likewise.
92331         * lib/argmatch.c: Likewise.
92332         * lib/argmatch.h: Likewise.
92333         * lib/argp-ba.c: Likewise.
92334         * lib/argp-eexst.c: Likewise.
92335         * lib/argp-fmtstream.c: Likewise.
92336         * lib/argp-fmtstream.h: Likewise.
92337         * lib/argp-fs-xinl.c: Likewise.
92338         * lib/argp-help.c: Likewise.
92339         * lib/argp-namefrob.h: Likewise.
92340         * lib/argp-parse.c: Likewise.
92341         * lib/argp-pin.c: Likewise.
92342         * lib/argp-pv.c: Likewise.
92343         * lib/argp-pvh.c: Likewise.
92344         * lib/argp-xinl.c: Likewise.
92345         * lib/argp.h: Likewise.
92346         * lib/at-func.c: Likewise.
92347         * lib/atanl.c: Likewise.
92348         * lib/backupfile.c: Likewise.
92349         * lib/backupfile.h: Likewise.
92350         * lib/basename.c: Likewise.
92351         * lib/binary-io.h: Likewise.
92352         * lib/byteswap.in.h: Likewise.
92353         * lib/c-stack.c: Likewise.
92354         * lib/c-stack.h: Likewise.
92355         * lib/c-strcasestr.c: Likewise.
92356         * lib/c-strcasestr.h: Likewise.
92357         * lib/c-strstr.c: Likewise.
92358         * lib/c-strstr.h: Likewise.
92359         * lib/c-strtod.c: Likewise.
92360         * lib/calloc.c: Likewise.
92361         * lib/canon-host.c: Likewise.
92362         * lib/canon-host.h: Likewise.
92363         * lib/canonicalize-lgpl.c: Likewise.
92364         * lib/canonicalize.c: Likewise.
92365         * lib/canonicalize.h: Likewise.
92366         * lib/ceil.c: Likewise.
92367         * lib/ceilf.c: Likewise.
92368         * lib/ceill.c: Likewise.
92369         * lib/chdir-long.c: Likewise.
92370         * lib/chdir-long.h: Likewise.
92371         * lib/chdir-safer.c: Likewise.
92372         * lib/chdir-safer.h: Likewise.
92373         * lib/chown.c: Likewise.
92374         * lib/classpath.c: Likewise.
92375         * lib/classpath.h: Likewise.
92376         * lib/clean-temp.c: Likewise.
92377         * lib/clean-temp.h: Likewise.
92378         * lib/cloexec.c: Likewise.
92379         * lib/close-stream.c: Likewise.
92380         * lib/closein.c: Likewise.
92381         * lib/closein.h: Likewise.
92382         * lib/closeout.c: Likewise.
92383         * lib/closeout.h: Likewise.
92384         * lib/concat-filename.c: Likewise.
92385         * lib/copy-file.c: Likewise.
92386         * lib/copy-file.h: Likewise.
92387         * lib/count-one-bits.h: Likewise.
92388         * lib/crc.c: Likewise.
92389         * lib/crc.h: Likewise.
92390         * lib/creat-safer.c: Likewise.
92391         * lib/csharpcomp.c: Likewise.
92392         * lib/csharpcomp.h: Likewise.
92393         * lib/csharpexec.c: Likewise.
92394         * lib/csharpexec.h: Likewise.
92395         * lib/cycle-check.c: Likewise.
92396         * lib/cycle-check.h: Likewise.
92397         * lib/diacrit.c: Likewise.
92398         * lib/diacrit.h: Likewise.
92399         * lib/diffseq.h: Likewise.
92400         * lib/dirchownmod.c: Likewise.
92401         * lib/dirent.in.h: Likewise.
92402         * lib/dirfd.c: Likewise.
92403         * lib/dirfd.h: Likewise.
92404         * lib/dirname.c: Likewise.
92405         * lib/dirname.h: Likewise.
92406         * lib/dummy.c: Likewise.
92407         * lib/dup-safer.c: Likewise.
92408         * lib/dup2.c: Likewise.
92409         * lib/eealloc.h: Likewise.
92410         * lib/error.c: Likewise.
92411         * lib/error.h: Likewise.
92412         * lib/euidaccess.c: Likewise.
92413         * lib/exclude.c: Likewise.
92414         * lib/exclude.h: Likewise.
92415         * lib/execute.c: Likewise.
92416         * lib/execute.h: Likewise.
92417         * lib/exitfail.c: Likewise.
92418         * lib/exitfail.h: Likewise.
92419         * lib/expl.c: Likewise.
92420         * lib/fatal-signal.c: Likewise.
92421         * lib/fatal-signal.h: Likewise.
92422         * lib/fbufmode.c: Likewise.
92423         * lib/fbufmode.h: Likewise.
92424         * lib/fchdir.c: Likewise.
92425         * lib/fchmodat.c: Likewise.
92426         * lib/fchownat.c: Likewise.
92427         * lib/fcntl--.h: Likewise.
92428         * lib/fcntl-safer.h: Likewise.
92429         * lib/fcntl.in.h: Likewise.
92430         * lib/fd-safer.c: Likewise.
92431         * lib/fflush.c: Likewise.
92432         * lib/file-has-acl.c: Likewise.
92433         * lib/file-set.c: Likewise.
92434         * lib/file-type.c: Likewise.
92435         * lib/file-type.h: Likewise.
92436         * lib/fileblocks.c: Likewise.
92437         * lib/filemode.c: Likewise.
92438         * lib/filemode.h: Likewise.
92439         * lib/filename.h: Likewise.
92440         * lib/filenamecat.c: Likewise.
92441         * lib/filenamecat.h: Likewise.
92442         * lib/findprog.c: Likewise.
92443         * lib/findprog.h: Likewise.
92444         * lib/float.in.h: Likewise.
92445         * lib/floor.c: Likewise.
92446         * lib/floorf.c: Likewise.
92447         * lib/floorl.c: Likewise.
92448         * lib/fopen-safer.c: Likewise.
92449         * lib/fopen.c: Likewise.
92450         * lib/fpending.c: Likewise.
92451         * lib/fpending.h: Likewise.
92452         * lib/fprintf.c: Likewise.
92453         * lib/fprintftime.h: Likewise.
92454         * lib/fpucw.h: Likewise.
92455         * lib/fpurge.c: Likewise.
92456         * lib/fpurge.h: Likewise.
92457         * lib/freadable.c: Likewise.
92458         * lib/freadable.h: Likewise.
92459         * lib/freadahead.c: Likewise.
92460         * lib/freadahead.h: Likewise.
92461         * lib/freading.c: Likewise.
92462         * lib/freading.h: Likewise.
92463         * lib/free.c: Likewise.
92464         * lib/freopen.c: Likewise.
92465         * lib/frexp.c: Likewise.
92466         * lib/frexpl.c: Likewise.
92467         * lib/fseek.c: Likewise.
92468         * lib/fseterr.c: Likewise.
92469         * lib/fseterr.h: Likewise.
92470         * lib/fstatat.c: Likewise.
92471         * lib/fstrcmp.c: Likewise.
92472         * lib/fstrcmp.h: Likewise.
92473         * lib/fsusage.c: Likewise.
92474         * lib/fsusage.h: Likewise.
92475         * lib/ftell.c: Likewise.
92476         * lib/ftello.c: Likewise.
92477         * lib/fts-cycle.c: Likewise.
92478         * lib/fts.c: Likewise.
92479         * lib/fts_.h: Likewise.
92480         * lib/full-read.c: Likewise.
92481         * lib/full-read.h: Likewise.
92482         * lib/full-write.c: Likewise.
92483         * lib/full-write.h: Likewise.
92484         * lib/fwritable.c: Likewise.
92485         * lib/fwritable.h: Likewise.
92486         * lib/fwriteerror.c: Likewise.
92487         * lib/fwriteerror.h: Likewise.
92488         * lib/fwriting.c: Likewise.
92489         * lib/fwriting.h: Likewise.
92490         * lib/gcd.c: Likewise.
92491         * lib/gcd.h: Likewise.
92492         * lib/getcwd.c: Likewise.
92493         * lib/getdate.h: Likewise.
92494         * lib/getdate.y: Likewise.
92495         * lib/getdomainname.c: Likewise.
92496         * lib/getdomainname.h: Likewise.
92497         * lib/getgroups.c: Likewise.
92498         * lib/gethostname.c: Likewise.
92499         * lib/gethrxtime.c: Likewise.
92500         * lib/gethrxtime.h: Likewise.
92501         * lib/getloadavg.c: Likewise.
92502         * lib/getndelim2.c: Likewise.
92503         * lib/getndelim2.h: Likewise.
92504         * lib/getnline.c: Likewise.
92505         * lib/getnline.h: Likewise.
92506         * lib/getopt.c: Likewise.
92507         * lib/getopt.in.h: Likewise.
92508         * lib/getopt1.c: Likewise.
92509         * lib/getopt_int.h: Likewise.
92510         * lib/getpagesize.h: Likewise.
92511         * lib/getsubopt.c: Likewise.
92512         * lib/gettime.c: Likewise.
92513         * lib/getugroups.c: Likewise.
92514         * lib/getugroups.h: Likewise.
92515         * lib/getusershell.c: Likewise.
92516         * lib/gl_anyavltree_list1.h: Likewise.
92517         * lib/gl_anyavltree_list2.h: Likewise.
92518         * lib/gl_anyhash_list1.h: Likewise.
92519         * lib/gl_anyhash_list2.h: Likewise.
92520         * lib/gl_anylinked_list1.h: Likewise.
92521         * lib/gl_anylinked_list2.h: Likewise.
92522         * lib/gl_anyrbtree_list1.h: Likewise.
92523         * lib/gl_anyrbtree_list2.h: Likewise.
92524         * lib/gl_anytree_list1.h: Likewise.
92525         * lib/gl_anytree_list2.h: Likewise.
92526         * lib/gl_anytree_oset.h: Likewise.
92527         * lib/gl_anytreehash_list1.h: Likewise.
92528         * lib/gl_anytreehash_list2.h: Likewise.
92529         * lib/gl_array_list.c: Likewise.
92530         * lib/gl_array_list.h: Likewise.
92531         * lib/gl_array_oset.c: Likewise.
92532         * lib/gl_array_oset.h: Likewise.
92533         * lib/gl_avltree_list.c: Likewise.
92534         * lib/gl_avltree_list.h: Likewise.
92535         * lib/gl_avltree_oset.c: Likewise.
92536         * lib/gl_avltree_oset.h: Likewise.
92537         * lib/gl_avltreehash_list.c: Likewise.
92538         * lib/gl_avltreehash_list.h: Likewise.
92539         * lib/gl_carray_list.c: Likewise.
92540         * lib/gl_carray_list.h: Likewise.
92541         * lib/gl_linked_list.c: Likewise.
92542         * lib/gl_linked_list.h: Likewise.
92543         * lib/gl_linkedhash_list.c: Likewise.
92544         * lib/gl_linkedhash_list.h: Likewise.
92545         * lib/gl_list.c: Likewise.
92546         * lib/gl_list.h: Likewise.
92547         * lib/gl_oset.c: Likewise.
92548         * lib/gl_oset.h: Likewise.
92549         * lib/gl_rbtree_list.c: Likewise.
92550         * lib/gl_rbtree_list.h: Likewise.
92551         * lib/gl_rbtree_oset.c: Likewise.
92552         * lib/gl_rbtree_oset.h: Likewise.
92553         * lib/gl_rbtreehash_list.c: Likewise.
92554         * lib/gl_rbtreehash_list.h: Likewise.
92555         * lib/gl_sublist.c: Likewise.
92556         * lib/gl_sublist.h: Likewise.
92557         * lib/group-member.c: Likewise.
92558         * lib/group-member.h: Likewise.
92559         * lib/hard-locale.c: Likewise.
92560         * lib/hard-locale.h: Likewise.
92561         * lib/hash-pjw.c: Likewise.
92562         * lib/hash-pjw.h: Likewise.
92563         * lib/hash-triple.c: Likewise.
92564         * lib/hash.c: Likewise.
92565         * lib/hash.h: Likewise.
92566         * lib/human.c: Likewise.
92567         * lib/human.h: Likewise.
92568         * lib/i-ring.c: Likewise.
92569         * lib/i-ring.h: Likewise.
92570         * lib/idcache.c: Likewise.
92571         * lib/imaxabs.c: Likewise.
92572         * lib/imaxdiv.c: Likewise.
92573         * lib/inet_pton.c: Likewise.
92574         * lib/inet_pton.h: Likewise.
92575         * lib/intprops.h: Likewise.
92576         * lib/inttostr.c: Likewise.
92577         * lib/inttostr.h: Likewise.
92578         * lib/inttypes.in.h: Likewise.
92579         * lib/isapipe.c: Likewise.
92580         * lib/isdir.c: Likewise.
92581         * lib/isnan.c: Likewise.
92582         * lib/isnan.h: Likewise.
92583         * lib/isnanf.c: Likewise.
92584         * lib/isnanf.h: Likewise.
92585         * lib/isnanl-nolibm.h: Likewise.
92586         * lib/isnanl.c: Likewise.
92587         * lib/isnanl.h: Likewise.
92588         * lib/javacomp.c: Likewise.
92589         * lib/javacomp.h: Likewise.
92590         * lib/javaexec.c: Likewise.
92591         * lib/javaexec.h: Likewise.
92592         * lib/javaversion.c: Likewise.
92593         * lib/javaversion.h: Likewise.
92594         * lib/javaversion.java: Likewise.
92595         * lib/lbrkprop.h: Likewise.
92596         * lib/lchmod.h: Likewise.
92597         * lib/lchown.c: Likewise.
92598         * lib/ldexpl.c: Likewise.
92599         * lib/linebreak.c: Likewise.
92600         * lib/linebreak.h: Likewise.
92601         * lib/linebuffer.c: Likewise.
92602         * lib/linebuffer.h: Likewise.
92603         * lib/locale.in.h: Likewise.
92604         * lib/logl.c: Likewise.
92605         * lib/long-options.c: Likewise.
92606         * lib/long-options.h: Likewise.
92607         * lib/lstat.c: Likewise.
92608         * lib/lstat.h: Likewise.
92609         * lib/math.in.h: Likewise.
92610         * lib/mbchar.c: Likewise.
92611         * lib/mbchar.h: Likewise.
92612         * lib/mbfile.h: Likewise.
92613         * lib/mbiter.h: Likewise.
92614         * lib/mbscasecmp.c: Likewise.
92615         * lib/mbscasestr.c: Likewise.
92616         * lib/mbschr.c: Likewise.
92617         * lib/mbscspn.c: Likewise.
92618         * lib/mbslen.c: Likewise.
92619         * lib/mbsncasecmp.c: Likewise.
92620         * lib/mbsnlen.c: Likewise.
92621         * lib/mbspbrk.c: Likewise.
92622         * lib/mbspcasecmp.c: Likewise.
92623         * lib/mbsrchr.c: Likewise.
92624         * lib/mbssep.c: Likewise.
92625         * lib/mbsspn.c: Likewise.
92626         * lib/mbsstr.c: Likewise.
92627         * lib/mbstok_r.c: Likewise.
92628         * lib/mbswidth.c: Likewise.
92629         * lib/mbswidth.h: Likewise.
92630         * lib/mbuiter.h: Likewise.
92631         * lib/memcasecmp.c: Likewise.
92632         * lib/memcasecmp.h: Likewise.
92633         * lib/memchr.c: Likewise.
92634         * lib/memcmp.c: Likewise.
92635         * lib/memcoll.c: Likewise.
92636         * lib/memcoll.h: Likewise.
92637         * lib/memcpy.c: Likewise.
92638         * lib/memrchr.c: Likewise.
92639         * lib/mkancesdirs.c: Likewise.
92640         * lib/mkdir-p.c: Likewise.
92641         * lib/mkdir-p.h: Likewise.
92642         * lib/mkdir.c: Likewise.
92643         * lib/mkdirat.c: Likewise.
92644         * lib/mkdtemp.c: Likewise.
92645         * lib/mkstemp-safer.c: Likewise.
92646         * lib/mkstemp.c: Likewise.
92647         * lib/modechange.c: Likewise.
92648         * lib/modechange.h: Likewise.
92649         * lib/mountlist.c: Likewise.
92650         * lib/mountlist.h: Likewise.
92651         * lib/mpsort.c: Likewise.
92652         * lib/nanosleep.c: Likewise.
92653         * lib/obstack.c: Likewise.
92654         * lib/obstack.h: Likewise.
92655         * lib/open-safer.c: Likewise.
92656         * lib/open.c: Likewise.
92657         * lib/openat-die.c: Likewise.
92658         * lib/openat-priv.h: Likewise.
92659         * lib/openat-proc.c: Likewise.
92660         * lib/openat.c: Likewise.
92661         * lib/openat.h: Likewise.
92662         * lib/pagealign_alloc.c: Likewise.
92663         * lib/pagealign_alloc.h: Likewise.
92664         * lib/physmem.c: Likewise.
92665         * lib/physmem.h: Likewise.
92666         * lib/pipe-safer.c: Likewise.
92667         * lib/pipe.c: Likewise.
92668         * lib/pipe.h: Likewise.
92669         * lib/posixtm.c: Likewise.
92670         * lib/posixtm.h: Likewise.
92671         * lib/posixver.c: Likewise.
92672         * lib/printf-frexp.c: Likewise.
92673         * lib/printf-frexp.h: Likewise.
92674         * lib/printf-frexpl.c: Likewise.
92675         * lib/printf-frexpl.h: Likewise.
92676         * lib/printf.c: Likewise.
92677         * lib/progname.c: Likewise.
92678         * lib/progname.h: Likewise.
92679         * lib/progreloc.c: Likewise.
92680         * lib/putenv.c: Likewise.
92681         * lib/quote.c: Likewise.
92682         * lib/quote.h: Likewise.
92683         * lib/quotearg.c: Likewise.
92684         * lib/quotearg.h: Likewise.
92685         * lib/raise.c: Likewise.
92686         * lib/readline.c: Likewise.
92687         * lib/readline.h: Likewise.
92688         * lib/readlink.c: Likewise.
92689         * lib/readtokens.c: Likewise.
92690         * lib/readtokens.h: Likewise.
92691         * lib/readtokens0.c: Likewise.
92692         * lib/readtokens0.h: Likewise.
92693         * lib/readutmp.c: Likewise.
92694         * lib/readutmp.h: Likewise.
92695         * lib/realloc.c: Likewise.
92696         * lib/relocwrapper.c: Likewise.
92697         * lib/rename-dest-slash.c: Likewise.
92698         * lib/rename.c: Likewise.
92699         * lib/rmdir.c: Likewise.
92700         * lib/rpmatch.c: Likewise.
92701         * lib/safe-read.c: Likewise.
92702         * lib/safe-read.h: Likewise.
92703         * lib/safe-write.c: Likewise.
92704         * lib/safe-write.h: Likewise.
92705         * lib/same-inode.h: Likewise.
92706         * lib/same.c: Likewise.
92707         * lib/same.h: Likewise.
92708         * lib/save-cwd.c: Likewise.
92709         * lib/save-cwd.h: Likewise.
92710         * lib/savedir.c: Likewise.
92711         * lib/savedir.h: Likewise.
92712         * lib/savewd.c: Likewise.
92713         * lib/savewd.h: Likewise.
92714         * lib/search.in.h: Likewise.
92715         * lib/setenv.c: Likewise.
92716         * lib/setenv.h: Likewise.
92717         * lib/settime.c: Likewise.
92718         * lib/sh-quote.c: Likewise.
92719         * lib/sh-quote.h: Likewise.
92720         * lib/sig2str.c: Likewise.
92721         * lib/sig2str.h: Likewise.
92722         * lib/signal.in.h: Likewise.
92723         * lib/signbitd.c: Likewise.
92724         * lib/signbitf.c: Likewise.
92725         * lib/signbitl.c: Likewise.
92726         * lib/sigprocmask.c: Likewise.
92727         * lib/sincosl.c: Likewise.
92728         * lib/sleep.c: Likewise.
92729         * lib/sprintf.c: Likewise.
92730         * lib/sqrtl.c: Likewise.
92731         * lib/stat-time.h: Likewise.
92732         * lib/stdio--.h: Likewise.
92733         * lib/stdio-safer.h: Likewise.
92734         * lib/stdlib--.h: Likewise.
92735         * lib/stdlib-safer.h: Likewise.
92736         * lib/stdlib.in.h: Likewise.
92737         * lib/stpcpy.c: Likewise.
92738         * lib/stpncpy.c: Likewise.
92739         * lib/strchrnul.c: Likewise.
92740         * lib/strcspn.c: Likewise.
92741         * lib/strerror.c: Likewise.
92742         * lib/strftime.c: Likewise.
92743         * lib/strftime.h: Likewise.
92744         * lib/striconveh.c: Likewise.
92745         * lib/striconveh.h: Likewise.
92746         * lib/striconveha.c: Likewise.
92747         * lib/striconveha.h: Likewise.
92748         * lib/stripslash.c: Likewise.
92749         * lib/strnlen1.c: Likewise.
92750         * lib/strnlen1.h: Likewise.
92751         * lib/strtod.c: Likewise.
92752         * lib/strtoimax.c: Likewise.
92753         * lib/strtok_r.c: Likewise.
92754         * lib/strtol.c: Likewise.
92755         * lib/strtoll.c: Likewise.
92756         * lib/strtoul.c: Likewise.
92757         * lib/strtoull.c: Likewise.
92758         * lib/sysexits.in.h: Likewise.
92759         * lib/tempname.c: Likewise.
92760         * lib/tempname.h: Likewise.
92761         * lib/timespec.h: Likewise.
92762         * lib/tls.c: Likewise.
92763         * lib/tls.h: Likewise.
92764         * lib/tmpdir.c: Likewise.
92765         * lib/tmpdir.h: Likewise.
92766         * lib/tmpfile-safer.c: Likewise.
92767         * lib/tmpfile.c: Likewise.
92768         * lib/trigl.c: Likewise.
92769         * lib/trigl.h: Likewise.
92770         * lib/trim.c: Likewise.
92771         * lib/trim.h: Likewise.
92772         * lib/trunc.c: Likewise.
92773         * lib/truncf.c: Likewise.
92774         * lib/truncl.c: Likewise.
92775         * lib/tsearch.c: Likewise.
92776         * lib/unicodeio.c: Likewise.
92777         * lib/unicodeio.h: Likewise.
92778         * lib/unistd--.h: Likewise.
92779         * lib/unistd-safer.h: Likewise.
92780         * lib/unistdio/ulc-fprintf.c: Likewise.
92781         * lib/unistdio/ulc-vfprintf.c: Likewise.
92782         * lib/unlinkdir.c: Likewise.
92783         * lib/unlinkdir.h: Likewise.
92784         * lib/unlocked-io.h: Likewise.
92785         * lib/unsetenv.c: Likewise.
92786         * lib/userspec.c: Likewise.
92787         * lib/utime.c: Likewise.
92788         * lib/utimecmp.c: Likewise.
92789         * lib/utimecmp.h: Likewise.
92790         * lib/utimens.c: Likewise.
92791         * lib/verify.h: Likewise.
92792         * lib/verror.c: Likewise.
92793         * lib/verror.h: Likewise.
92794         * lib/version-etc-fsf.c: Likewise.
92795         * lib/version-etc.c: Likewise.
92796         * lib/version-etc.h: Likewise.
92797         * lib/vfprintf.c: Likewise.
92798         * lib/vprintf.c: Likewise.
92799         * lib/vsprintf.c: Likewise.
92800         * lib/w32spawn.h: Likewise.
92801         * lib/wait-process.c: Likewise.
92802         * lib/wait-process.h: Likewise.
92803         * lib/wcwidth.c: Likewise.
92804         * lib/write-any-file.c: Likewise.
92805         * lib/xalloc-die.c: Likewise.
92806         * lib/xalloc.h: Likewise.
92807         * lib/xasprintf.c: Likewise.
92808         * lib/xgetcwd.c: Likewise.
92809         * lib/xgetcwd.h: Likewise.
92810         * lib/xgetdomainname.c: Likewise.
92811         * lib/xgetdomainname.h: Likewise.
92812         * lib/xgethostname.c: Likewise.
92813         * lib/xmalloc.c: Likewise.
92814         * lib/xmalloca.c: Likewise.
92815         * lib/xmalloca.h: Likewise.
92816         * lib/xmemcoll.c: Likewise.
92817         * lib/xnanosleep.c: Likewise.
92818         * lib/xreadlink.c: Likewise.
92819         * lib/xreadlink.h: Likewise.
92820         * lib/xsetenv.c: Likewise.
92821         * lib/xsetenv.h: Likewise.
92822         * lib/xstriconv.c: Likewise.
92823         * lib/xstriconv.h: Likewise.
92824         * lib/xstrndup.c: Likewise.
92825         * lib/xstrndup.h: Likewise.
92826         * lib/xstrtod.c: Likewise.
92827         * lib/xstrtod.h: Likewise.
92828         * lib/xstrtol-error.c: Likewise.
92829         * lib/xstrtol.c: Likewise.
92830         * lib/xstrtol.h: Likewise.
92831         * lib/xtime.h: Likewise.
92832         * lib/xvasprintf.c: Likewise.
92833         * lib/xvasprintf.h: Likewise.
92834         * lib/yesno.c: Likewise.
92835         * lib/yesno.h: Likewise.
92836         * posix-modules: Likewise.
92837         * tests/test-alloca-opt.c: Likewise.
92838         * tests/test-arcfour.c: Likewise.
92839         * tests/test-arctwo.c: Likewise.
92840         * tests/test-argmatch.c: Likewise.
92841         * tests/test-argp-2.sh: Likewise.
92842         * tests/test-argp.c: Likewise.
92843         * tests/test-arpa_inet.c: Likewise.
92844         * tests/test-array_list.c: Likewise.
92845         * tests/test-array_oset.c: Likewise.
92846         * tests/test-atexit.c: Likewise.
92847         * tests/test-avltree_list.c: Likewise.
92848         * tests/test-avltree_oset.c: Likewise.
92849         * tests/test-avltreehash_list.c: Likewise.
92850         * tests/test-base64.c: Likewise.
92851         * tests/test-binary-io.c: Likewise.
92852         * tests/test-byteswap.c: Likewise.
92853         * tests/test-c-ctype.c: Likewise.
92854         * tests/test-c-strcasecmp.c: Likewise.
92855         * tests/test-c-strcasestr.c: Likewise.
92856         * tests/test-c-strncasecmp.c: Likewise.
92857         * tests/test-c-strstr.c: Likewise.
92858         * tests/test-canonicalize-lgpl.c: Likewise.
92859         * tests/test-canonicalize.c: Likewise.
92860         * tests/test-carray_list.c: Likewise.
92861         * tests/test-ceilf.c: Likewise.
92862         * tests/test-ceill.c: Likewise.
92863         * tests/test-count-one-bits.c: Likewise.
92864         * tests/test-crc.c: Likewise.
92865         * tests/test-dirname.c: Likewise.
92866         * tests/test-fbufmode.c: Likewise.
92867         * tests/test-fcntl.c: Likewise.
92868         * tests/test-fflush.c: Likewise.
92869         * tests/test-floorf.c: Likewise.
92870         * tests/test-floorl.c: Likewise.
92871         * tests/test-fopen.c: Likewise.
92872         * tests/test-fprintf-posix.c: Likewise.
92873         * tests/test-fprintf-posix.h: Likewise.
92874         * tests/test-fpurge.c: Likewise.
92875         * tests/test-freadable.c: Likewise.
92876         * tests/test-freadahead.c: Likewise.
92877         * tests/test-freading.c: Likewise.
92878         * tests/test-freopen.c: Likewise.
92879         * tests/test-frexp.c: Likewise.
92880         * tests/test-frexpl.c: Likewise.
92881         * tests/test-fseek.c: Likewise.
92882         * tests/test-fseeko.c: Likewise.
92883         * tests/test-fseterr.c: Likewise.
92884         * tests/test-fstrcmp.c: Likewise.
92885         * tests/test-ftell.c: Likewise.
92886         * tests/test-ftello.c: Likewise.
92887         * tests/test-fwritable.c: Likewise.
92888         * tests/test-fwriting.c: Likewise.
92889         * tests/test-getaddrinfo.c: Likewise.
92890         * tests/test-getpass.c: Likewise.
92891         * tests/test-gettimeofday.c: Likewise.
92892         * tests/test-hmac-md5.c: Likewise.
92893         * tests/test-hmac-sha1.c: Likewise.
92894         * tests/test-iconv.c: Likewise.
92895         * tests/test-iconvme.c: Likewise.
92896         * tests/test-inttypes.c: Likewise.
92897         * tests/test-isnan.c: Likewise.
92898         * tests/test-isnanf.c: Likewise.
92899         * tests/test-isnanl-nolibm.c: Likewise.
92900         * tests/test-isnanl.c: Likewise.
92901         * tests/test-isnanl.h: Likewise.
92902         * tests/test-ldexpl.c: Likewise.
92903         * tests/test-linked_list.c: Likewise.
92904         * tests/test-linkedhash_list.c: Likewise.
92905         * tests/test-locale.c: Likewise.
92906         * tests/test-localename.c: Likewise.
92907         * tests/test-lock.c: Likewise.
92908         * tests/test-lseek.c: Likewise.
92909         * tests/test-malloca.c: Likewise.
92910         * tests/test-math.c: Likewise.
92911         * tests/test-mbscasecmp.c: Likewise.
92912         * tests/test-mbscasestr1.c: Likewise.
92913         * tests/test-mbscasestr2.c: Likewise.
92914         * tests/test-mbscasestr3.c: Likewise.
92915         * tests/test-mbscasestr4.c: Likewise.
92916         * tests/test-mbschr.c: Likewise.
92917         * tests/test-mbscspn.c: Likewise.
92918         * tests/test-mbsncasecmp.c: Likewise.
92919         * tests/test-mbspbrk.c: Likewise.
92920         * tests/test-mbspcasecmp.c: Likewise.
92921         * tests/test-mbsrchr.c: Likewise.
92922         * tests/test-mbsspn.c: Likewise.
92923         * tests/test-mbsstr1.c: Likewise.
92924         * tests/test-mbsstr2.c: Likewise.
92925         * tests/test-mbsstr3.c: Likewise.
92926         * tests/test-md5.c: Likewise.
92927         * tests/test-memmem.c: Likewise.
92928         * tests/test-netinet_in.c: Likewise.
92929         * tests/test-open.c: Likewise.
92930         * tests/test-printf-frexp.c: Likewise.
92931         * tests/test-printf-frexpl.c: Likewise.
92932         * tests/test-printf-posix.c: Likewise.
92933         * tests/test-printf-posix.h: Likewise.
92934         * tests/test-rbtree_list.c: Likewise.
92935         * tests/test-rbtree_oset.c: Likewise.
92936         * tests/test-rbtreehash_list.c: Likewise.
92937         * tests/test-read-file.c: Likewise.
92938         * tests/test-rijndael.c: Likewise.
92939         * tests/test-search.c: Likewise.
92940         * tests/test-signbit.c: Likewise.
92941         * tests/test-sleep.c: Likewise.
92942         * tests/test-snprintf-posix.c: Likewise.
92943         * tests/test-snprintf-posix.h: Likewise.
92944         * tests/test-snprintf.c: Likewise.
92945         * tests/test-sprintf-posix.c: Likewise.
92946         * tests/test-sprintf-posix.h: Likewise.
92947         * tests/test-stat-time.c: Likewise.
92948         * tests/test-stdbool.c: Likewise.
92949         * tests/test-stdint.c: Likewise.
92950         * tests/test-stdio.c: Likewise.
92951         * tests/test-stdlib.c: Likewise.
92952         * tests/test-stpncpy.c: Likewise.
92953         * tests/test-strcasestr.c: Likewise.
92954         * tests/test-striconv.c: Likewise.
92955         * tests/test-striconveh.c: Likewise.
92956         * tests/test-striconveha.c: Likewise.
92957         * tests/test-string.c: Likewise.
92958         * tests/test-sys_select.c: Likewise.
92959         * tests/test-sys_socket.c: Likewise.
92960         * tests/test-sys_stat.c: Likewise.
92961         * tests/test-sys_time.c: Likewise.
92962         * tests/test-sysexits.c: Likewise.
92963         * tests/test-time.c: Likewise.
92964         * tests/test-tls.c: Likewise.
92965         * tests/test-trunc.c: Likewise.
92966         * tests/test-truncf.c: Likewise.
92967         * tests/test-truncl.c: Likewise.
92968         * tests/test-unistd.c: Likewise.
92969         * tests/test-vasnprintf-posix.c: Likewise.
92970         * tests/test-vasnprintf-posix2.c: Likewise.
92971         * tests/test-vasnprintf.c: Likewise.
92972         * tests/test-vasprintf-posix.c: Likewise.
92973         * tests/test-vasprintf.c: Likewise.
92974         * tests/test-verify.c: Likewise.
92975         * tests/test-vfprintf-posix.c: Likewise.
92976         * tests/test-vprintf-posix.c: Likewise.
92977         * tests/test-vsnprintf-posix.c: Likewise.
92978         * tests/test-vsnprintf.c: Likewise.
92979         * tests/test-vsprintf-posix.c: Likewise.
92980         * tests/test-wchar.c: Likewise.
92981         * tests/test-wctype.c: Likewise.
92982         * tests/test-wcwidth.c: Likewise.
92983         * tests/test-xstrtol.c: Likewise.
92984         * tests/test-xvasprintf.c: Likewise.
92985         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
92986         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
92987         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
92988         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
92989         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
92990         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
92991         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
92992         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
92993         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
92994         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
92995         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
92996         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
92997         * tests/uniname/test-uninames.c: Likewise.
92998         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
92999         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
93000         * tests/unistdio/test-u16-printf1.h: Likewise.
93001         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
93002         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
93003         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
93004         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
93005         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
93006         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
93007         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
93008         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
93009         * tests/unistdio/test-u32-printf1.h: Likewise.
93010         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
93011         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
93012         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
93013         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
93014         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
93015         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
93016         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
93017         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
93018         * tests/unistdio/test-u8-printf1.h: Likewise.
93019         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
93020         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
93021         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
93022         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
93023         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
93024         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
93025         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
93026         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
93027         * tests/unistdio/test-ulc-printf1.h: Likewise.
93028         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
93029         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
93030         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
93031         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
93032         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
93033         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
93034         * tests/uniwidth/test-u16-strwidth.c: Likewise.
93035         * tests/uniwidth/test-u16-width.c: Likewise.
93036         * tests/uniwidth/test-u32-strwidth.c: Likewise.
93037         * tests/uniwidth/test-u32-width.c: Likewise.
93038         * tests/uniwidth/test-u8-strwidth.c: Likewise.
93039         * tests/uniwidth/test-u8-width.c: Likewise.
93040         * tests/uniwidth/test-uc_width.c: Likewise.
93041         * config/srclist-update: Likewise.
93042         (fixlicense): Update to GPLv3+.
93044         Change copyright notice from LGPLv2.1+ to LGPLv3+.
93045         * tests/test-tsearch.c: Change copyright notice.
93047         Change copyright notice from LGPLv2.0+ to LGPLv3+.
93048         * lib/c-strcaseeq.h: Change copyright notice.
93049         * lib/streq.h: Likewise.
93050         * lib/uniconv.h: Likewise.
93051         * lib/uniconv/u-conv-from-enc.h: Likewise.
93052         * lib/uniconv/u-conv-to-enc.h: Likewise.
93053         * lib/uniconv/u-strconv-from-enc.h: Likewise.
93054         * lib/uniconv/u-strconv-to-enc.h: Likewise.
93055         * lib/uniconv/u16-conv-from-enc.c: Likewise.
93056         * lib/uniconv/u16-conv-to-enc.c: Likewise.
93057         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
93058         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
93059         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
93060         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
93061         * lib/uniconv/u32-conv-from-enc.c: Likewise.
93062         * lib/uniconv/u32-conv-to-enc.c: Likewise.
93063         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
93064         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
93065         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
93066         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
93067         * lib/uniconv/u8-conv-from-enc.c: Likewise.
93068         * lib/uniconv/u8-conv-to-enc.c: Likewise.
93069         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
93070         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
93071         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
93072         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
93073         * lib/uniname.h: Likewise.
93074         * lib/uniname/uniname.c: Likewise.
93075         * lib/unistdio.h: Likewise.
93076         * lib/unistdio/u-asnprintf.h: Likewise.
93077         * lib/unistdio/u-asprintf.h: Likewise.
93078         * lib/unistdio/u-printf-args.c: Likewise.
93079         * lib/unistdio/u-printf-args.h: Likewise.
93080         * lib/unistdio/u-printf-parse.h: Likewise.
93081         * lib/unistdio/u-snprintf.h: Likewise.
93082         * lib/unistdio/u-sprintf.h: Likewise.
93083         * lib/unistdio/u-vasprintf.h: Likewise.
93084         * lib/unistdio/u-vsnprintf.h: Likewise.
93085         * lib/unistdio/u-vsprintf.h: Likewise.
93086         * lib/unistdio/u16-asnprintf.c: Likewise.
93087         * lib/unistdio/u16-asprintf.c: Likewise.
93088         * lib/unistdio/u16-printf-parse.c: Likewise.
93089         * lib/unistdio/u16-snprintf.c: Likewise.
93090         * lib/unistdio/u16-sprintf.c: Likewise.
93091         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
93092         * lib/unistdio/u16-u16-asprintf.c: Likewise.
93093         * lib/unistdio/u16-u16-snprintf.c: Likewise.
93094         * lib/unistdio/u16-u16-sprintf.c: Likewise.
93095         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
93096         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
93097         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
93098         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
93099         * lib/unistdio/u16-vasnprintf.c: Likewise.
93100         * lib/unistdio/u16-vasprintf.c: Likewise.
93101         * lib/unistdio/u16-vsnprintf.c: Likewise.
93102         * lib/unistdio/u16-vsprintf.c: Likewise.
93103         * lib/unistdio/u32-asnprintf.c: Likewise.
93104         * lib/unistdio/u32-asprintf.c: Likewise.
93105         * lib/unistdio/u32-printf-parse.c: Likewise.
93106         * lib/unistdio/u32-snprintf.c: Likewise.
93107         * lib/unistdio/u32-sprintf.c: Likewise.
93108         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
93109         * lib/unistdio/u32-u32-asprintf.c: Likewise.
93110         * lib/unistdio/u32-u32-snprintf.c: Likewise.
93111         * lib/unistdio/u32-u32-sprintf.c: Likewise.
93112         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
93113         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
93114         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
93115         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
93116         * lib/unistdio/u32-vasnprintf.c: Likewise.
93117         * lib/unistdio/u32-vasprintf.c: Likewise.
93118         * lib/unistdio/u32-vsnprintf.c: Likewise.
93119         * lib/unistdio/u32-vsprintf.c: Likewise.
93120         * lib/unistdio/u8-asnprintf.c: Likewise.
93121         * lib/unistdio/u8-asprintf.c: Likewise.
93122         * lib/unistdio/u8-printf-parse.c: Likewise.
93123         * lib/unistdio/u8-snprintf.c: Likewise.
93124         * lib/unistdio/u8-sprintf.c: Likewise.
93125         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
93126         * lib/unistdio/u8-u8-asprintf.c: Likewise.
93127         * lib/unistdio/u8-u8-snprintf.c: Likewise.
93128         * lib/unistdio/u8-u8-sprintf.c: Likewise.
93129         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
93130         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
93131         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
93132         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
93133         * lib/unistdio/u8-vasnprintf.c: Likewise.
93134         * lib/unistdio/u8-vasprintf.c: Likewise.
93135         * lib/unistdio/u8-vsnprintf.c: Likewise.
93136         * lib/unistdio/u8-vsprintf.c: Likewise.
93137         * lib/unistdio/ulc-asnprintf.c: Likewise.
93138         * lib/unistdio/ulc-asprintf.c: Likewise.
93139         * lib/unistdio/ulc-printf-parse.c: Likewise.
93140         * lib/unistdio/ulc-snprintf.c: Likewise.
93141         * lib/unistdio/ulc-sprintf.c: Likewise.
93142         * lib/unistdio/ulc-vasnprintf.c: Likewise.
93143         * lib/unistdio/ulc-vasprintf.c: Likewise.
93144         * lib/unistdio/ulc-vsnprintf.c: Likewise.
93145         * lib/unistdio/ulc-vsprintf.c: Likewise.
93146         * lib/unistr.h: Likewise.
93147         * lib/unistr/u-cpy-alloc.h: Likewise.
93148         * lib/unistr/u-cpy.h: Likewise.
93149         * lib/unistr/u-endswith.h: Likewise.
93150         * lib/unistr/u-move.h: Likewise.
93151         * lib/unistr/u-set.h: Likewise.
93152         * lib/unistr/u-startswith.h: Likewise.
93153         * lib/unistr/u-stpcpy.h: Likewise.
93154         * lib/unistr/u-stpncpy.h: Likewise.
93155         * lib/unistr/u-strcat.h: Likewise.
93156         * lib/unistr/u-strcpy.h: Likewise.
93157         * lib/unistr/u-strcspn.h: Likewise.
93158         * lib/unistr/u-strdup.h: Likewise.
93159         * lib/unistr/u-strlen.h: Likewise.
93160         * lib/unistr/u-strncat.h: Likewise.
93161         * lib/unistr/u-strncpy.h: Likewise.
93162         * lib/unistr/u-strnlen.h: Likewise.
93163         * lib/unistr/u-strpbrk.h: Likewise.
93164         * lib/unistr/u-strspn.h: Likewise.
93165         * lib/unistr/u-strstr.h: Likewise.
93166         * lib/unistr/u-strtok.h: Likewise.
93167         * lib/unistr/u16-check.c: Likewise.
93168         * lib/unistr/u16-chr.c: Likewise.
93169         * lib/unistr/u16-cmp.c: Likewise.
93170         * lib/unistr/u16-cpy-alloc.c: Likewise.
93171         * lib/unistr/u16-cpy.c: Likewise.
93172         * lib/unistr/u16-endswith.c: Likewise.
93173         * lib/unistr/u16-mblen.c: Likewise.
93174         * lib/unistr/u16-mbsnlen.c: Likewise.
93175         * lib/unistr/u16-mbtouc-aux.c: Likewise.
93176         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
93177         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
93178         * lib/unistr/u16-mbtouc.c: Likewise.
93179         * lib/unistr/u16-mbtoucr.c: Likewise.
93180         * lib/unistr/u16-move.c: Likewise.
93181         * lib/unistr/u16-next.c: Likewise.
93182         * lib/unistr/u16-prev.c: Likewise.
93183         * lib/unistr/u16-set.c: Likewise.
93184         * lib/unistr/u16-startswith.c: Likewise.
93185         * lib/unistr/u16-stpcpy.c: Likewise.
93186         * lib/unistr/u16-stpncpy.c: Likewise.
93187         * lib/unistr/u16-strcat.c: Likewise.
93188         * lib/unistr/u16-strchr.c: Likewise.
93189         * lib/unistr/u16-strcmp.c: Likewise.
93190         * lib/unistr/u16-strcpy.c: Likewise.
93191         * lib/unistr/u16-strcspn.c: Likewise.
93192         * lib/unistr/u16-strdup.c: Likewise.
93193         * lib/unistr/u16-strlen.c: Likewise.
93194         * lib/unistr/u16-strmblen.c: Likewise.
93195         * lib/unistr/u16-strmbtouc.c: Likewise.
93196         * lib/unistr/u16-strncat.c: Likewise.
93197         * lib/unistr/u16-strncmp.c: Likewise.
93198         * lib/unistr/u16-strncpy.c: Likewise.
93199         * lib/unistr/u16-strnlen.c: Likewise.
93200         * lib/unistr/u16-strpbrk.c: Likewise.
93201         * lib/unistr/u16-strrchr.c: Likewise.
93202         * lib/unistr/u16-strspn.c: Likewise.
93203         * lib/unistr/u16-strstr.c: Likewise.
93204         * lib/unistr/u16-strtok.c: Likewise.
93205         * lib/unistr/u16-to-u32.c: Likewise.
93206         * lib/unistr/u16-to-u8.c: Likewise.
93207         * lib/unistr/u16-uctomb-aux.c: Likewise.
93208         * lib/unistr/u16-uctomb.c: Likewise.
93209         * lib/unistr/u32-check.c: Likewise.
93210         * lib/unistr/u32-chr.c: Likewise.
93211         * lib/unistr/u32-cmp.c: Likewise.
93212         * lib/unistr/u32-cpy-alloc.c: Likewise.
93213         * lib/unistr/u32-cpy.c: Likewise.
93214         * lib/unistr/u32-endswith.c: Likewise.
93215         * lib/unistr/u32-mblen.c: Likewise.
93216         * lib/unistr/u32-mbsnlen.c: Likewise.
93217         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
93218         * lib/unistr/u32-mbtouc.c: Likewise.
93219         * lib/unistr/u32-mbtoucr.c: Likewise.
93220         * lib/unistr/u32-move.c: Likewise.
93221         * lib/unistr/u32-next.c: Likewise.
93222         * lib/unistr/u32-prev.c: Likewise.
93223         * lib/unistr/u32-set.c: Likewise.
93224         * lib/unistr/u32-startswith.c: Likewise.
93225         * lib/unistr/u32-stpcpy.c: Likewise.
93226         * lib/unistr/u32-stpncpy.c: Likewise.
93227         * lib/unistr/u32-strcat.c: Likewise.
93228         * lib/unistr/u32-strchr.c: Likewise.
93229         * lib/unistr/u32-strcmp.c: Likewise.
93230         * lib/unistr/u32-strcpy.c: Likewise.
93231         * lib/unistr/u32-strcspn.c: Likewise.
93232         * lib/unistr/u32-strdup.c: Likewise.
93233         * lib/unistr/u32-strlen.c: Likewise.
93234         * lib/unistr/u32-strmblen.c: Likewise.
93235         * lib/unistr/u32-strmbtouc.c: Likewise.
93236         * lib/unistr/u32-strncat.c: Likewise.
93237         * lib/unistr/u32-strncmp.c: Likewise.
93238         * lib/unistr/u32-strncpy.c: Likewise.
93239         * lib/unistr/u32-strnlen.c: Likewise.
93240         * lib/unistr/u32-strpbrk.c: Likewise.
93241         * lib/unistr/u32-strrchr.c: Likewise.
93242         * lib/unistr/u32-strspn.c: Likewise.
93243         * lib/unistr/u32-strstr.c: Likewise.
93244         * lib/unistr/u32-strtok.c: Likewise.
93245         * lib/unistr/u32-to-u16.c: Likewise.
93246         * lib/unistr/u32-to-u8.c: Likewise.
93247         * lib/unistr/u32-uctomb.c: Likewise.
93248         * lib/unistr/u8-check.c: Likewise.
93249         * lib/unistr/u8-chr.c: Likewise.
93250         * lib/unistr/u8-cmp.c: Likewise.
93251         * lib/unistr/u8-cpy-alloc.c: Likewise.
93252         * lib/unistr/u8-cpy.c: Likewise.
93253         * lib/unistr/u8-endswith.c: Likewise.
93254         * lib/unistr/u8-mblen.c: Likewise.
93255         * lib/unistr/u8-mbsnlen.c: Likewise.
93256         * lib/unistr/u8-mbtouc-aux.c: Likewise.
93257         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
93258         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
93259         * lib/unistr/u8-mbtouc.c: Likewise.
93260         * lib/unistr/u8-mbtoucr.c: Likewise.
93261         * lib/unistr/u8-move.c: Likewise.
93262         * lib/unistr/u8-next.c: Likewise.
93263         * lib/unistr/u8-prev.c: Likewise.
93264         * lib/unistr/u8-set.c: Likewise.
93265         * lib/unistr/u8-startswith.c: Likewise.
93266         * lib/unistr/u8-stpcpy.c: Likewise.
93267         * lib/unistr/u8-stpncpy.c: Likewise.
93268         * lib/unistr/u8-strcat.c: Likewise.
93269         * lib/unistr/u8-strchr.c: Likewise.
93270         * lib/unistr/u8-strcmp.c: Likewise.
93271         * lib/unistr/u8-strcpy.c: Likewise.
93272         * lib/unistr/u8-strcspn.c: Likewise.
93273         * lib/unistr/u8-strdup.c: Likewise.
93274         * lib/unistr/u8-strlen.c: Likewise.
93275         * lib/unistr/u8-strmblen.c: Likewise.
93276         * lib/unistr/u8-strmbtouc.c: Likewise.
93277         * lib/unistr/u8-strncat.c: Likewise.
93278         * lib/unistr/u8-strncmp.c: Likewise.
93279         * lib/unistr/u8-strncpy.c: Likewise.
93280         * lib/unistr/u8-strnlen.c: Likewise.
93281         * lib/unistr/u8-strpbrk.c: Likewise.
93282         * lib/unistr/u8-strrchr.c: Likewise.
93283         * lib/unistr/u8-strspn.c: Likewise.
93284         * lib/unistr/u8-strstr.c: Likewise.
93285         * lib/unistr/u8-strtok.c: Likewise.
93286         * lib/unistr/u8-to-u16.c: Likewise.
93287         * lib/unistr/u8-to-u32.c: Likewise.
93288         * lib/unistr/u8-uctomb-aux.c: Likewise.
93289         * lib/unistr/u8-uctomb.c: Likewise.
93290         * lib/unitypes.h: Likewise.
93291         * lib/uniwidth.h: Likewise.
93292         * lib/uniwidth/cjk.h: Likewise.
93293         * lib/uniwidth/u16-strwidth.c: Likewise.
93294         * lib/uniwidth/u16-width.c: Likewise.
93295         * lib/uniwidth/u32-strwidth.c: Likewise.
93296         * lib/uniwidth/u32-width.c: Likewise.
93297         * lib/uniwidth/u8-strwidth.c: Likewise.
93298         * lib/uniwidth/u8-width.c: Likewise.
93299         * lib/uniwidth/width.c: Likewise.
93301 2007-10-07  Bruno Haible  <bruno@clisp.org>
93303         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
93304         The file is still under LGPL (see modules/inttypes).
93306 2007-10-06  Bruno Haible  <bruno@clisp.org>
93308         * modules/trunc (Dependencies): Add 'extensions'.
93309         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
93310         Reported by Ben Pfaff <blp@gnu.org>.
93312 2007-10-06  Bruno Haible  <bruno@clisp.org>
93314         * modules/freopen-tests: New file.
93315         * tests/test-freopen.c: New file.
93317         * modules/fopen-tests: New file.
93318         * tests/test-fopen.c: New file.
93320         * modules/fopen: New file.
93321         * lib/fopen.c: New file.
93322         * m4/fopen.m4: New file.
93323         * modules/freopen: New file.
93324         * lib/freopen.c: New file.
93325         * m4/freopen.m4: New file.
93326         * lib/stdio.in.h (fopen, freopen): New declarations.
93327         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
93328         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
93329         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
93330         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
93331         * doc/functions/fopen.texi: Mention the 'fopen' module.
93332         * doc/functions/freopen.texi: Mention the 'freopen' module.
93334 2007-10-06  Bruno Haible  <bruno@clisp.org>
93336         * modules/open-tests: New file.
93337         * tests/test-open.c: New file.
93339         * modules/open: New file.
93340         * lib/open.c: New file.
93341         * m4/open.m4: New file.
93342         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
93343         lib/open.c does.
93344         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
93345         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
93346         macros.
93347         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
93348         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
93349         REPLACE_OPEN.
93350         * doc/functions/open.texi: Mention the 'open' module.
93352 2007-10-04  Bruno Haible  <bruno@clisp.org>
93354         * modules/ceill-tests: New file.
93355         * tests/test-ceill.c: New file.
93357         * modules/ceill: New file.
93358         * lib/ceill.c: Replace entire file.
93359         * m4/ceill.m4: New file.
93360         * lib/math.in.h (ceill): Replace declaration.
93361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
93362         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
93363         * doc/functions/ceill.texi: Mention the 'ceill' module.
93364         * modules/mathl (Files): Remove lib/ceill.c.
93365         (Depends-on): Add ceill.
93367 2007-10-04  Bruno Haible  <bruno@clisp.org>
93369         * modules/ceilf-tests: New file.
93370         * tests/test-ceilf.c: New file.
93372         * modules/ceilf: New file.
93373         * lib/ceil.c: New file.
93374         * lib/ceilf.c: New file.
93375         * m4/ceilf.m4: New file.
93376         * lib/math.in.h (ceilf): New declaration.
93377         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
93378         HAVE_DECL_CEILF.
93379         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
93380         HAVE_DECL_CEILF.
93381         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
93383 2007-10-04  Bruno Haible  <bruno@clisp.org>
93385         * modules/floorl-tests: New file.
93386         * tests/test-floorl.c: New file.
93388         * modules/floorl: New file.
93389         * lib/floorl.c: Replace entire file.
93390         * m4/floorl.m4: New file.
93391         * lib/math.in.h (floorl): Replace declaration.
93392         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
93393         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
93394         * doc/functions/floorl.texi: Mention the 'floorl' module.
93395         * modules/mathl (Files): Remove lib/floorl.c.
93396         (Depends-on): Add floorl.
93398 2007-10-04  Bruno Haible  <bruno@clisp.org>
93400         * modules/floorf-tests: New file.
93401         * tests/test-floorf.c: New file.
93403         * modules/floorf: New file.
93404         * lib/floor.c: New file.
93405         * lib/floorf.c: New file.
93406         * m4/floorf.m4: New file.
93407         * lib/math.in.h (floorf): New declaration.
93408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
93409         HAVE_DECL_FLOORF.
93410         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
93411         HAVE_DECL_FLOORF.
93412         * doc/functions/floorf.texi: Mention the 'floorf' module.
93414 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
93415             Bruno Haible  <bruno@clisp.org>
93417         Advertise for the Git server instead of the CVS server.
93418         * doc/gnulib-intro.texi (Steady Development): Mention the Git
93419         repository instead of the CVS one.
93420         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
93421         about all VCS systems generically.
93422         * doc/gnulib.texi (Introduction): Capitalize `Git'.
93424 2007-10-04  Bruno Haible  <bruno@clisp.org>
93426         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
93427         means.
93428         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
93430 2007-10-04  Bruno Haible  <bruno@clisp.org>
93432         * modules/truncl-tests: New file.
93433         * tests/test-truncl.c: New file.
93435         * modules/truncl: New file.
93436         * lib/truncl.c: New file.
93437         * m4/truncl.m4: New file.
93438         * lib/math.in.h (truncl): New declaration.
93439         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
93440         HAVE_DECL_TRUNCL.
93441         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
93442         HAVE_DECL_TRUNCL.
93443         * doc/functions/truncl.texi: Mention the 'truncl' module.
93445 2007-10-04  Bruno Haible  <bruno@clisp.org>
93447         * modules/truncf-tests: New file.
93448         * tests/test-truncf.c: New file.
93450         * modules/truncf: New file.
93451         * lib/trunc.c: Make paramerizable through USE_* macros.
93452         * lib/truncf.c: New file.
93453         * m4/truncf.m4: New file.
93454         * lib/math.in.h (truncf): New declaration.
93455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
93456         HAVE_DECL_TRUNCF.
93457         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
93458         HAVE_DECL_TRUNCF.
93459         * doc/functions/truncf.texi: Mention the 'truncf' module.
93461 2007-10-03  Bruno Haible  <bruno@clisp.org>
93463         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
93464         augmentation also for tests modules.
93465         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
93466         * modules/atexit-tests (Makefile.am): Likewise.
93467         * modules/binary-io-tests (Makefile.am): Likewise.
93468         * modules/c-strcase-tests (Makefile.am): Likewise.
93469         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
93470         * modules/canonicalize-tests (Makefile.am): Likewise.
93471         * modules/closein-tests (Makefile.am): Likewise.
93472         * modules/fprintf-posix-tests (Makefile.am): Likewise.
93473         * modules/freadahead-tests (Makefile.am): Likewise.
93474         * modules/fseek-tests (Makefile.am): Likewise.
93475         * modules/fseeko-tests (Makefile.am): Likewise.
93476         * modules/ftell-tests (Makefile.am): Likewise.
93477         * modules/ftello-tests (Makefile.am): Likewise.
93478         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
93479         * modules/isnanl-tests (Makefile.am): Likewise.
93480         * modules/lseek-tests (Makefile.am): Likewise.
93481         * modules/mbscasecmp-tests (Makefile.am): Likewise.
93482         * modules/mbscasestr-tests (Makefile.am): Likewise.
93483         * modules/mbschr-tests (Makefile.am): Likewise.
93484         * modules/mbscspn-tests (Makefile.am): Likewise.
93485         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
93486         * modules/mbspbrk-tests (Makefile.am): Likewise.
93487         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
93488         * modules/mbsrchr-tests (Makefile.am): Likewise.
93489         * modules/mbsspn-tests (Makefile.am): Likewise.
93490         * modules/mbsstr-tests (Makefile.am): Likewise.
93491         * modules/printf-posix-tests (Makefile.am): Likewise.
93492         * modules/snprintf-posix-tests (Makefile.am): Likewise.
93493         * modules/sprintf-posix-tests (Makefile.am): Likewise.
93494         * modules/tsearch-tests (Makefile.am): Likewise.
93495         * modules/uniname/uniname-tests (Makefile.am): Likewise.
93496         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
93497         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
93498         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
93499         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
93500         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
93501         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
93502         * modules/vprintf-posix-tests (Makefile.am): Likewise.
93503         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
93504         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
93505         * modules/xstrtoimax-tests (Makefile.am): Likewise.
93506         * modules/xstrtol-tests (Makefile.am): Likewise.
93507         * modules/xstrtoumax-tests (Makefile.am): Likewise.
93508         * modules/yesno-tests (Makefile.am): Likewise.
93510 2007-10-03  Bruno Haible  <bruno@clisp.org>
93512         * modules/trunc-tests: New file.
93513         * tests/test-trunc.c: New file.
93515         * modules/trunc: New file.
93516         * lib/trunc.c: New file.
93517         * m4/trunc.m4: New file.
93518         * lib/math.in.h (trunc): New declaration.
93519         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
93520         HAVE_DECL_TRUNC.
93521         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
93522         HAVE_DECL_TRUNC.
93523         * doc/functions/trunc.texi: Mention the 'trunc' module.
93525 2007-10-03  Bruno Haible  <bruno@clisp.org>
93527         * tests/test-fpending.c: New file, mostly copied
93528         from coreutils/lib/t-fpending.c.
93529         * modules/fpending-tests: New file.
93531 2007-10-03  Bruno Haible  <bruno@clisp.org>
93533         Port the stdio extensions to QNX (untested).
93534         * lib/fseterr.c (fseterr): Add support for QNX.
93535         * lib/fbufmode.c (fbufmode): Likewise.
93536         * lib/freadable.c (freadable): Likewise.
93537         * lib/fwritable.c (fwritable): Likewise.
93538         * lib/freading.c (freading): Likewise.
93539         * lib/fwriting.c (fwriting): Likewise.
93540         * lib/freadahead.c (freadahed): Likewise.
93541         * lib/fpurge.c (fpurge): Likewise.
93542         * lib/fseeko.c (rpl_fseeko): Likewise.
93544 2007-10-03  Bruno Haible  <bruno@clisp.org>
93545             Jim Meyering  <jim@meyering.net>
93546             Eric Blake  <ebb9@byu.net>
93548         * doc/relocatable.texi: Use @command instead of @program.
93550 2007-10-02  Jim Meyering  <jim@meyering.net>
93552         Perform one more "_.h" -> ".in.h" substitution.
93553         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
93554         instead of unistd_.h here, too.
93556 2007-10-01  Bruno Haible  <bruno@clisp.org>
93558         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
93559         Needed for the alloca-opt module.
93561 2007-09-30  Bruno Haible  <bruno@clisp.org>
93563         * lib/alloca.in.h: Renamed from lib/alloca_.h.
93564         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
93565         alloca_.h.
93566         * lib/argz.in.h: Renamed from lib/argz_.h.
93567         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
93568         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
93569         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
93570         byteswap_.h.
93571         * lib/dirent.in.h: Renamed from lib/dirent_.h.
93572         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
93573         dirent_.h.
93574         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
93575         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
93576         fcntl_.h.
93577         * lib/float.in.h: Renamed from lib/float_.h.
93578         * modules/float (Files, Makefile.am): Use float.in.h instead of
93579         float_.h.
93580         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
93581         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
93582         fnmatch_.h.
93583         * lib/getopt.in.h: Renamed from lib/getopt_.h.
93584         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
93585         getopt_.h.
93586         * lib/glob.in.h: Renamed from lib/glob_.h.
93587         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
93588         * lib/iconv.in.h: Renamed from lib/iconv_.h.
93589         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
93590         iconv_.h.
93591         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
93592         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
93593         inttypes_.h.
93594         * lib/locale.in.h: Renamed from lib/locale_.h.
93595         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
93596         locale_.h.
93597         * lib/math.in.h: Renamed from lib/math_.h.
93598         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
93599         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
93600         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
93601         of netinet_in_.h. Add dependency.
93602         * lib/poll.in.h: Renamed from lib/poll_.h.
93603         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
93604         * lib/search.in.h: Renamed from lib/search_.h.
93605         * modules/search (Files, Makefile.am): Use search.in.h instead of
93606         search_.h.
93607         * lib/signal.in.h: Renamed from lib/signal_.h.
93608         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
93609         _signal.h.
93610         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
93611         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
93612         stdbool_.h.
93613         * lib/stdint.in.h: Renamed from lib/stdint_.h.
93614         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
93615         stdint_.h.
93616         * lib/stdio.in.h: Renamed from lib/stdio_.h.
93617         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
93618         stdio_.h.
93619         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
93620         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
93621         stdlib_.h.
93622         * lib/string.in.h: Renamed from lib/string_.h.
93623         * modules/string (Files, Makefile.am): Use string.in.h instead of
93624         string_.h.
93625         * doc/gnulib-tool.texi (Initial import): Update.
93626         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
93627         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
93628         of sys_select_.h. Add dependency.
93629         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
93630         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
93631         of sys_socket_.h.
93632         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
93633         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
93634         sys_stat_.h.
93635         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
93636         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
93637         sys_time_.h.
93638         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
93639         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
93640         sysexits_.h.
93641         * lib/time.in.h: Renamed from lib/time_.h.
93642         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
93643         * lib/unistd.in.h: Renamed from lib/unistd_.h.
93644         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
93645         unistd_.h.
93646         * lib/wchar.in.h: Renamed from lib/wchar_.h.
93647         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
93648         wchar_.h.
93649         * lib/wctype.in.h: Renamed from lib/wctype_.h.
93650         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
93651         wctype_.h.
93652         * build-aux/bootstrap (slurp): Update.
93653         * lib/.cppi-disable: Update.
93655 2007-09-30  Bruno Haible  <bruno@clisp.org>
93657         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
93658         Needed on BeOS.
93660 2007-09-30  Bruno Haible  <bruno@clisp.org>
93662         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
93664 2007-09-29  Bruno Haible  <bruno@clisp.org>
93666         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
93668 2007-09-29  Bruno Haible  <bruno@clisp.org>
93670         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
93671         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
93672         * build-aux/install-reloc: Compile also areadlink.c.
93673         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
93675 2007-09-29  Bruno Haible  <bruno@clisp.org>
93677         * gnulib-tool (func_emit_initmacro_done): Indentation.
93679 2007-09-29  Bruno Haible  <bruno@clisp.org>
93681         * README: Add CVS checkout update instructions.
93682         Info from Bob Proulx <bob@proulx.com>.
93684 2007-09-28  Eric Blake  <ebb9@byu.net>
93686         Provide move-if-change.
93687         * build-aux/move-if-change: New file, based on best practice
93688         rather than any canonical upstream location.
93690 2007-09-28  Jim Meyering  <jim@meyering.net>
93692         Fix canonicalize loop-detection corner case.
93693         Do not attempt to stat the symlink values stored via seen_triple.
93694         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
93695         on linux-2.6.18, (but not 2.6.22).
93696         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
93697         triple_compare.  The former compares dev,ino,filename, while the latter
93698         would actually stat dirname(filename) when dev and ino were equal.
93699         * lib/hash-triple.c: Install <string.h>.
93700         (STREQ): Define.
93701         (triple_compare_ino_str): New function.
93702         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
93704 2007-09-28  Eric Blake  <ebb9@byu.net>
93706         Enforce that AC_REPLACE_FUNCS files exist.
93707         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
93708         override check for typos.
93710         Fix test-closein on Solaris 10.
93711         * tests/test-closein.c (main): Don't assume stdin can be inherited
93712         closed on all systems.
93713         * tests/test-closein.sh: Likewise.
93714         Reported by Piotr Tarnowski.
93716 2007-09-28  Jim Meyering  <jim@meyering.net>
93718         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
93720 2007-09-27  Jim Meyering  <jim@meyering.net>
93722         canonicalize: Avoid a false-positive cycle failure.
93723         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
93724         Sort.  Remove cycle-check.
93725         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
93726         not cycle-check.h.
93727         (seen_triple): New function.
93728         (canonicalize_filename_mode): Use it instead of cycle-check.
93729         * tests/test-canonicalize.c: Add a test for this bug.
93730         * tests/test-canonicalize.sh: Set up and run the test.
93732         New module, file-set, from coreutils.
93733         * modules/file-set: Define it.
93734         * lib/file-set.c, lib/file-set.h: Implement.
93736         New module, hash-triple, from coreutils.
93737         * modules/hash-triple: Define it.
93738         * lib/hash-triple.c, lib/hash-triple.h: Implement.
93740 2007-09-25  Eric Blake  <ebb9@byu.net>
93742         Fix strerror on Interix.
93743         * lib/string_.h (strerror): Declare replacement.
93744         * doc/functions/strerror.texi (strerror): Document the Interix
93745         shortcoming.
93746         * modules/string (Makefile.am): Support new hooks.
93747         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
93748         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
93749         gl_FUNC_STRERROR_SEPARATE.
93750         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
93751         * lib/strerror.c (rpl_strerror): Provide replacement.
93752         * modules/strerror (Depends-on): Add string.
93753         (configure.ac): Detect use of module.
93754         * tests/test-strerror.c: New file.
93755         * modules/strerror-tests: New test module.
93756         * modules/argp (Depends-on): Add strerror.
93757         * modules/error (Depends-on): Likewise.
93758         Reported by Martin Koeppe.
93760 2007-09-24  Bruno Haible  <bruno@clisp.org>
93762         * README: Update git instructions.
93764 2007-09-24  Eric Blake  <ebb9@byu.net>
93766         Revert fpending breakage from 2007-09-08.
93767         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
93768         __fpending.c.
93770 2007-09-24  Jim Meyering  <jim@meyering.net>
93772         filenamecat.c: Add a test.
93773         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
93774         showing how the function works when DIR is the empty string.
93776 2007-09-21  Simon Josefsson  <simon@josefsson.org>
93778         * tests/test-canonicalize.sh: Turn on executable bit.
93780 2007-09-19  Eric Blake  <ebb9@byu.net>
93782         * README: Update CVS instructions.
93784 2007-09-18  Bruno Haible  <bruno@clisp.org>
93786         * modules/areadlink: New file.
93787         * lib/areadlink.h (areadlink): New declaration.
93788         * lib/areadlink.c: New file, based on lib/xreadlink.c.
93790 2007-09-17  Jim Meyering  <jim@meyering.net>
93792         * lib/savewd.c (ESTALE) [!defined]: Define.
93793         Reported to be required on Interix by Martin Koeppe.
93795 2007-09-17  Bruno Haible  <bruno@clisp.org>
93797         * gnulib-tool (func_version): Use $version.
93799 2007-09-16  Bruno Haible  <bruno@clisp.org>
93801         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
93802         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
93803         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
93804         Reported by Greg Schafer <gschafer@zip.com.au>.
93806 2007-09-15  Bruno Haible  <bruno@clisp.org>
93808         * gnulib-tool (sed): Try a little harder to make bash understand the
93809         alias.
93810         Reported by Bruce Korb <bruce.korb@gmail.com>.
93812 2007-09-13  Eric Blake  <ebb9@byu.net>
93814         * ChangeLog: Remove conflict markers.
93816 2007-09-13  Simon Josefsson  <simon@josefsson.org>
93818         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
93819         Reported by Bruno Haible <bruno@clisp.org>.
93821 2007-09-12  Bruno Haible  <bruno@clisp.org>
93823         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
93824         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
93825         is not defined.
93827 2007-09-12  Eric Blake  <ebb9@byu.net>
93829         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
93830         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
93831         Autoconf definition.
93832         * modules/euidaccess (Depends-on): Add extensions, for
93833         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
93834         * modules/fnmatch (Depends-on): Likewise.
93835         * modules/getaddrinfo (Depends-on): Likewise.
93836         * modules/getdelim (Depends-on): Likewise.
93837         * modules/getline (Depends-on): Likewise.
93838         * modules/getsubopt (Depends-on): Likewise.
93839         * modules/gettext (Depends-on): Likewise.
93840         * modules/group-member (Depends-on): Likewise.
93841         * modules/mbchar (Depends-on): Likewise.
93842         * modules/memmem (Depends-on): Likewise.
93843         * modules/mempcpy (Depends-on): Likewise.
93844         * modules/memrchr (Depends-on): Likewise.
93845         * modules/pagealign_alloc (Depends-on): Likewise.
93846         * modules/readutmp (Depends-on): Likewise.
93847         * modules/stpcpy (Depends-on): Likewise.
93848         * modules/stpncpy (Depends-on): Likewise.
93849         * modules/strchrnul (Depends-on): Likewise.
93850         * modules/strndup (Depends-on): Likewise.
93851         * modules/strsep (Depends-on): Likewise.
93852         * modules/strverscmp (Depends-on): Likewise.
93853         * modules/vasprintf (Depends-on): Likewise.
93854         * modules/wcwidth (Depends-on): Likewise.
93855         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
93856         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
93857         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
93858         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
93859         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
93860         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
93861         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
93862         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
93863         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
93864         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
93865         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
93866         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
93867         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
93868         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
93869         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
93870         * m4/readutmp.m4 (gl_READUTMP): Likewise.
93871         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
93872         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
93873         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
93874         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
93875         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
93876         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
93877         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
93878         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
93879         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
93880         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
93881         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
93882         so that lock.m4 can be used in gettext without extensions module.
93884 2007-09-11  Bruno Haible  <bruno@clisp.org>
93886         * m4/isc-posix.m4: Remove file.
93887         Suggested by Eric Blake.
93889 2007-09-11  Eric Blake  <ebb9@byu.net>
93891         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
93893 2007-09-10  Bruno Haible  <bruno@clisp.org>
93895         * posix-modules: Fix typo in error message.
93896         Reported by Matt <mkraai@beckman.com>.
93898 2007-09-09  Bruno Haible  <bruno@clisp.org>
93900         * doc/functions/getdelim.texi: Update list of platforms lacking the
93901         function.
93902         * doc/functions/getline.texi: Likewise.
93904 2007-09-09  Jim Meyering  <jim@meyering.net>
93906         * lib/hash.c (hash_initialize): Detect calloc failure.
93907         Reported by Bruno Haible.
93909 2007-09-09  Bruno Haible  <bruno@clisp.org>
93911         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
93912         malloc or realloc fails.
93914 2007-09-09  Bruno Haible  <bruno@clisp.org>
93916         * modules/getcwd (Depends-on): Add malloc-posix.
93917         * modules/glob (Depends-on): Likewise.
93918         * modules/putenv (Depends-on): Likewise.
93919         * modules/strdup (Depends-on): Likewise.
93920         * modules/getdelim (Depends-on): Add realloc-posix.
93921         * modules/read-file (Depends-on): Likewise.
93923 2007-09-09  Bruno Haible  <bruno@clisp.org>
93925         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
93926         (gl_FUNC_MALLOC_POSIX): Require it.
93927         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
93928         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
93929         * modules/realloc (Files): Add m4/malloc.m4.
93930         * modules/calloc (Files): Likewise.
93932 2007-09-09  Bruno Haible  <bruno@clisp.org>
93934         * modules/malloc-posix: New file.
93935         * modules/malloc (Depends-on): Add malloc-posix.
93936         * lib/malloc.c: Include errno.h.
93937         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
93938         and a POSIX-compatible malloc into a single function. Set ENOMEM
93939         when returning NULL.
93940         * m4/malloc.m4: New file.
93941         * doc/functions/malloc.texi: Mention the malloc-posix module.
93942         * lib/stdlib_.h (malloc): New declaration.
93943         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
93944         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
93945         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
93946         and HAVE_MALLOC_POSIX.
93948 2007-09-09  Bruno Haible  <bruno@clisp.org>
93950         * modules/realloc-posix: New file.
93951         * modules/realloc (Depends-on): Add realloc-posix.
93952         * lib/realloc.c: Include errno.h.
93953         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
93954         and a POSIX-compatible realloc into a single function. Set ENOMEM
93955         when returning NULL.
93956         * m4/realloc.m4: New file.
93957         * doc/functions/realloc.texi: Mention the realloc-posix module.
93958         * lib/stdlib_.h (realloc): New declaration.
93959         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
93960         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
93961         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
93962         and HAVE_REALLOC_POSIX.
93964 2007-09-09  Bruno Haible  <bruno@clisp.org>
93966         * modules/calloc-posix: New file.
93967         * modules/calloc (Depends-on): Add calloc-posix.
93968         * lib/calloc.c: Include errno.h.
93969         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
93970         and a POSIX-compatible calloc into a single function. Set ENOMEM
93971         when returning NULL.
93972         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
93973         * doc/functions/calloc.texi: Mention the calloc-posix module.
93974         * lib/stdlib_.h (calloc): New declaration.
93975         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
93976         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
93977         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
93978         and HAVE_CALLOC_POSIX.
93980 2007-09-09  Bruno Haible  <bruno@clisp.org>
93982         Allow for modules to show an arbitrary notice.
93983         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
93984         * gnulib-tool: New option --extract-notice.
93985         (func_usage): Document it.
93986         (sed_extract_prog): Update.
93987         (func_get_notice): New function.
93988         (func_modules_notice): New function.
93989         (func_import, func_create_testdir): Invoke it.
93990         Suggested by Jim Meyering.
93992 2007-09-09  Bruno Haible  <bruno@clisp.org>
93994         * gnulib-tool: New options --verbose, --quiet.
93995         (func_usage): Document them.
93996         (verbose): New variable.
93997         (func_execute_command): New function.
93998         (func_import): Don't show the module list and the file list if
93999         $verbose < 0.
94000         (func_create_testdir): Likewise. Use func_execute_command.
94001         (func_create_megatestdir): Use func_execute_command.
94003 2007-09-08  Bruno Haible  <bruno@clisp.org>
94005         * gnulib-tool (func_import): Prefer rsync over wget when available,
94006         for fetching the PO files.
94008 2007-09-08  Bruno Haible  <bruno@clisp.org>
94010         * posix-modules: New file. Portions copied from gnulib-tool.
94011         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
94013 2007-09-08  Jim Meyering  <jim@meyering.net>
94015         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
94016         * lib/fpending.h: Rename from __fpending.h.
94017         * lib/fpending.c: Rename from __fpending.c.
94018         Include "fpending.h", not "__fpending.h".
94019         * lib/__fpending.h, lib/__fpending.c: Remove files.
94020         * modules/fpending (Files): Reflect new file names.
94021         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
94023 2007-09-08  Bruno Haible  <bruno@clisp.org>
94025         * m4/inttypes-h.m4: Remove stub file.
94027 2007-09-07  Simon Josefsson  <simon@josefsson.org>
94029         * doc/headers/stdint.texi: Discuss #include_next issue.
94031 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
94033         * build-aux/bootstrap: Remove obsolete comment about wget --help.
94035 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94037         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
94038         in variable name.
94040 2007-09-03  Jim Meyering  <jim@meyering.net>
94042         New module: git-version-gen.
94043         * modules/git-version-gen: New file.
94045         Import changes from coreutils for bootstrap script.
94047         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
94049         bootstrap: uses rsync to download the .po files
94050         * build-aux/bootstrap (po_download_command_format): New global.
94051         (download_po_files): Use rsync.
94052         (update_po_files): Don't remove .po files after download,
94053         so future rsync runs can take advantage of the copies.
94055         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
94057         Solve the unnecessary-.po-file-regeneration problem once and for all.
94058         * build-aux/bootstrap (download_po_files): New function, renamed from
94059         get_translations.  Now, downloads, but doesn't update LINGUAS.
94060         (update_po_files): New function.
94062         bootstrap: Ignore more.
94063         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
94064         uniwidth to e.g., lib/.gitignore.
94065         (slurp): Handle the sys_stat_.h -> sys mapping, too.
94067         * build-aux/bootstrap: New setting: vc_ignore.
94068         (insert_sorted_if_absent): Create $file if absent.
94069         Adapt to new, possibly empty, list: $vc_ignore.
94071         bootstrap: generate more ignorable names
94072         * build-aux/bootstrap (slurp): When generating ignorable names,
94073         also map .sin to .sed, .gperf to .c, and .y to .c.
94075 2007-09-03  Jim Meyering  <jim@meyering.net>
94077         * build-aux/git-version-gen: New file, from coreutils.  For details, see
94078         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
94080 2007-09-02  Bruno Haible  <bruno@clisp.org>
94082         Fix mis-recognition of 'mcs' on QNX 6.
94083         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
94084         output contains the string "Mono".
94085         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
94086         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
94088 2007-09-01  Bruno Haible  <bruno@clisp.org>
94090         Fix collision between uniwidth/* and linebreak modules.
94091         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
94092         u32_width): Remove declarations.
94093         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
94094         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
94095         streq3, streq2, streq1, streq0): Remove functions.
94096         (STREQ): Remove macro.
94097         (is_cjk_encoding): Remove function.
94098         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
94099         (uc_width, u8_width, u16_width, u32_width): Remove functions.
94100         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
94101         * NEWS: Document the change.
94103 2007-09-01  Bruno Haible  <bruno@clisp.org>
94105         * lib/streq.h: Add double-inclusion guard.
94107 2007-09-01  Karl Berry  <karl@gnu.org>
94109         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
94111 2007-08-28  Jim Meyering  <jim@meyering.net>
94113         Rename mreadlink_with_size to areadlink_with_size.
94114         * NEWS: Document the change.
94115         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
94116         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
94117         * lib/mreadlink.h: Rename this to...
94118         * lib/areadlink.h: ...this.
94119         * modules/mreadlink-with-size: Rename this to...
94120         * modules/areadlink-with-size: ...this.
94121         * lib/canonicalize.c: Reflect the renaming.
94122         * modules/canonicalize: Likewise.
94124 2007-08-26  Bruno Haible  <bruno@clisp.org>
94126         * gnulib-tool (func_import): When deciding which files to remove,
94127         consider also dangling symbolic links.
94128         Reported by Eric Blake.
94130 2007-08-26  Bruno Haible  <bruno@clisp.org>
94132         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
94134 2007-08-23  Simon Josefsson  <simon@josefsson.org>
94136         * lib/readline.c: Don't include getline.h, the prototype is now
94137         found in stdio.h.
94139 2007-08-23  Jim Meyering  <jim@meyering.net>
94141         Getdelim touchup.
94142         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
94143         around the funlockfile call, since funlockfile never sets errno.
94144         Don't set errno upon failed realloc.
94146 2007-08-22  Eric Blake  <ebb9@byu.net>
94148         Getline touchups.
94149         * lib/getdelim.c (getdelim): Revert regression that required *n to
94150         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
94151         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
94152         getdelim, rather than whether implementation is missing.
94153         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
94154         * lib/stdio_.h (getline): Also declare if replacement is
94155         required.
94156         * doc/functions/getdelim.texi: New file.
94157         * doc/functions/getline.texi: Likewise.
94158         * doc/gnulib.texi (Function Substitutes): Add new files.
94159         Reported by Bruno Haible.
94161 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
94163         * users.txt: Add Guile.
94165 2007-08-22  Eric Blake  <ebb9@byu.net>
94167         * tests/test-getdelim.c (main): Use remove, not unlink.
94168         * tests/test-getline.c (main): Likewise.
94170         Move getline and getdelim into stdio.h, per POSIX 200x.
94171         * modules/getline (Files): Remove getline.h.
94172         (Depends-on): Add stdio.
94173         (configure.ac): Add module indicator.
94174         * modules/getdelim (Files): Remove getdelim.h.
94175         (Depends-on): Add stdio.
94176         (configure.ac): Add module indicator.
94177         * modules/stdio (Makefile.am): Work with new indicators.
94178         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
94179         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
94180         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
94181         * lib/getdelim.h: Delete.
94182         * lib/getline.h: Delete.
94183         * lib/stdio_.h (getdelim, getline): Declare.
94184         * modules/getdelim-tests: New module.
94185         * modules/getline-tests: Likewise.
94186         * tests/test-getdelim.c: New file.
94187         * tests/test-getline.c: Likewise.
94188         * NEWS: Document the change.
94189         * lib/getline.c: Update choice of header.
94190         * lib/csharpcomp.c: Likewise.
94191         * lib/getpass.c: Likewise.
94192         * lib/javacomp.c: Likewise.
94193         * lib/javaversion.c: Likewise.
94194         * lib/yesno.c: Likewise.
94195         * lib/getdelim.c: Likewise.
94196         (getdelim): Set errno on failure, and avoid memory leak.
94198 2007-08-19  Bruno Haible  <bruno@clisp.org>
94200         * modules/closein (Depends-on): Add freadahead.
94201         * lib/closein.c: Include freadahead.h.
94202         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
94203         is zero.
94205 2007-08-19  Bruno Haible  <bruno@clisp.org>
94207         * modules/freadahead-tests: New file.
94208         * tests/test-freadahead.sh: New file.
94209         * tests/test-freadahead.c: New file.
94211         * modules/freadahead: New file.
94212         * lib/freadahead.h: New file.
94213         * lib/freadahead.c: New file.
94214         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
94215         fbufmode, fpurge, freadable, fwritable.
94217 2007-08-19  Eric Blake  <ebb9@byu.net>
94219         Test yesno in combination with closein.
94220         * lib/yesno.c (yesno): Document use of stdin.
94221         * modules/yesno-tests (Files): New module.
94222         * tests/test-yesno.c (main): New file.
94223         * tests/test-yesno.sh: Likewise.
94225 2007-08-19  Bruno Haible  <bruno@clisp.org>
94227         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
94228         * lib/fseeko.c (rpl_fseeko): Likewise.
94229         * lib/fseterr.c (fseterr): Likewise.
94231 2007-08-19  Bruno Haible  <bruno@clisp.org>
94233         * tests/test-lseek.c (main): Disable a test for BeOS.
94234         * doc/functions/lseek.texi: Document the BeOS bug.
94236 2007-08-19  Bruno Haible  <bruno@clisp.org>
94237             Eric Blake  <ebb9@byu.net>
94239         * lib/lseek.c: Include <sys/stat.h>.
94240         (rpl_lseek): Add workaround code also for Unix platforms.
94241         Needed for BeOS.
94242         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
94243         * doc/functions/lseek.texi: Document BeOS definiency.
94245 2007-08-18  Bruno Haible  <bruno@clisp.org>
94247         * modules/fstrcmp-tests: New file.
94248         * tests/test-fstrcmp.c: New file.
94250 2007-08-18  Bruno Haible  <bruno@clisp.org>
94252         * modules/fstrcmp: New file, from GNU gettext with modifications.
94253         * lib/fstrcmp.h: New file, from GNU gettext.
94254         * lib/fstrcmp.c: New file, from GNU gettext.
94255         * MODULES.html.sh (String handling): Add fstrcmp.
94257 2007-08-18  Bruno Haible  <bruno@clisp.org>
94259         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
94260         'bool'.
94261         (diag, compareseq): Remove const from the ctxt argument.
94262         (USE_HEURISTIC): Undefine at the end.
94264 2007-08-18  Jim Meyering  <jim@meyering.net>
94266         New file: lib/idcache.h
94267         * NEWS: Mention the addition.
94268         * modules/idcache (Files): Add lib/idcache.h
94269         * lib/idcache.c: Include "idcache.h".
94270         Don't include <sys/types.h>.
94271         Add a FIXME comment.
94272         Move file-scoped "static" declarations to the top.
94273         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
94275 2007-08-17  Bruno Haible  <bruno@clisp.org>
94276         and Paul Eggert  <eggert@cs.ucla.edu>
94278         * MODULES.html.sh: Add diffseq.
94279         * modules/diffseq: New file.
94280         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
94281         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
94283 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
94285         Import changes from coreutils for bootstrap script.
94287         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
94289         * build-aux/bootstrap (slurp): Work even in environments where
94290         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
94291         current code does not slurp files whose names start with ".", and
94292         this looks like it might be a troublesome area.
94294         2007-07-11  Jim Meyering  <jim@meyering.net>
94296         If there's a GPL vN copyright comment, require that N == 3.
94298         2007-07-08  Jim Meyering  <jim@meyering.net>
94300         Run the coreutils-specific code only if tests/Makefile.am.in exists.
94301         * build-aux/bootstrap (mam_template): Move definition out of loop.
94303         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
94305         * build-aux/bootstrap (symlink_to_dir): Rename function from
94306         symlink_to_gnulib.  Add a directory parameter.  Update all
94307         callers.
94308         (cp_mark_as_generated): Also check for -- and link to -- files in
94309         gl/.
94311         2007-07-08  Jim Meyering  <jim@meyering.net>
94313         Adapt to deeper hierarchy in gnulib.
94314         * build-aux/bootstrap (symlink_to_dir): If the destination
94315         directory doesn't exist, create it. This is required at least for
94316         "lib/uniwidth/cjk.h".
94318         2007-05-15  Jim Meyering  <jim@meyering.net>
94320         * build-aux/bootstrap: Now that generated Makefile.am files
94321         are no longer under version control, they must be created at
94322         bootstrap time.
94324 2007-08-14  Ben Pfaff  <blp@gnu.org>
94326         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
94328 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
94330         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
94331         given the changes below.
94332         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
94333         even on hosts that have padding bits beyond the supported 64.
94335 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
94337         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
94338         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
94339         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
94340         depends on it.
94341         (xstrtol_error): Remove.
94342         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
94343         but with a different signature.
94344         (ATTRIBUTE_NORETURN, __attribute__): New macros.
94345         * lib/xstrtol-error.c: Include exitfail.h.
94346         (xstrtol_fatal): New function, with a different signature from the
94347         old xstrtol_error, so that the caller need not worry about passing
94348         in an exit status, or about storage management of the option argument.
94349         (xstrtol_error): Now a static function.  Redo signature to
94350         implement xstrtol_fatal.  Output the correct number of hyphens in
94351         front of the option so that the caller need not worry about
94352         storage management.
94353         (N_): New macro.
94354         (_): Remove; not used now.
94355         * modules/xstrtol: Depend on getopt.
94356         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
94357         of old STRTOL_FATAL_ERROR macro.
94358         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
94359         of test program.
94360         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
94361         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
94363 2007-08-08  Eric Blake  <ebb9@byu.net>
94365         * lib/xstrtol-error.c: Add missing include.
94367         Move xstrtol messages into gnulib domain, when --pobase is used.
94368         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
94369         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
94370         * modules/xstrtol (Files): Distribute new file.
94371         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
94372         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
94373         * tests/test-xstrtol.c: ...into new file.
94374         * tests/test-xstrtoul.c: Also test xstrtoul.
94375         * tests/test-xstrtoimax.c: Also test xstrtoimax.
94376         * tests/test-xstrtoumax.c: Also test xstrtoumax.
94377         * tests/test-xstrtol.sh: Drive the tests.
94378         * tests/test-xstrtoimax.sh: Likewise.
94379         * tests/test-xstrtoumax.sh: Likewise.
94380         * modules/xstrtol-tests: New module.
94381         * modules/xstrtoimax-tests: Likewise.
94382         * modules/xstrtoumax-tests: Likewise.
94384 2007-08-08  Jim Meyering  <jim@meyering.net>
94386         New function: mfile_name_concat.
94387         * lib/filenamecat.c (mfile_name_concat): New function, just like
94388         file_name_concat, but return NULL upon failure rather than exiting
94389         with a diagnostic.
94390         * lib/filenamecat.h: Declare it.
94392 2007-08-07  Bruno Haible  <bruno@clisp.org>
94394         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
94395         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
94396         warning from gcc.
94397         Reported by Eric Blake.
94399 2007-08-07  Simon Josefsson  <simon@josefsson.org>
94401         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
94402         * modules/crypto/arcfour (License): Likewise.
94403         * modules/crypto/des-tests (License): Likewise.
94404         * modules/crypto/gc-arctwo-tests (License): Likewise.
94405         * modules/crypto/gc-des-tests (License): Likewise.
94406         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
94407         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
94408         * modules/crypto/gc-md2-tests (License): Likewise.
94409         * modules/crypto/gc-md4-tests (License): Likewise.
94410         * modules/crypto/gc-md5-tests (License): Likewise.
94411         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
94412         * modules/crypto/gc-rijndael-tests (License): Likewise.
94413         * modules/crypto/gc-sha1-tests (License): Likewise.
94414         * modules/crypto/gc-tests (License): Likewise.
94415         * modules/crypto/hmac-md5 (License): Likewise.
94416         * modules/crypto/hmac-sha1 (License): Likewise.
94417         * modules/crypto/md2-tests (License): Likewise.
94418         * modules/crypto/md4-tests (License): Likewise.
94419         * modules/crypto/md5 (License): Likewise.
94420         * modules/crypto/rijndael (License): Likewise.
94421         * modules/crypto/sha1 (License): Likewise.
94422         * modules/memxor (License): Likewise.
94424 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
94425         and Bruno Haible  <bruno@clisp.org>
94427         * NEWS: Describe interface changes to human, xstrtol.
94428         * lib/human.h: Include <xstrtol.h>.
94429         (human_options): Return enum strtol_error, not int.  Remove
94430         bool arg; take int * instead.
94431         * lib/human.c: Don't include "gettext.h".
94432         (_): Remove; no longer used.
94433         Don't include <xstrtol.h>, since human.h does it.
94434         (human_options): Adjust to abovementioned interface changes.
94435         Do not report error to stderr; that's now the caller's
94436         responsibility.
94437         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
94438         interface change.
94439         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
94440         Str, Argument_type_string.  All uses changed.  Put " argument"
94441         in diagnostics to make them clearer.  Change wording of suffix
94442         message for clarity.
94443         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
94444         Argument_type_string.
94445         (STRTOL_FATAL_WARN): Remove; no longer used.
94446         * modules/human (Depends-on): Remove gettext-h.
94448 2007-08-06  Simon Josefsson  <simon@josefsson.org>
94450         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
94452 2007-07-31  Bruno Haible  <bruno@clisp.org>
94454         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
94455         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
94456         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
94458 2007-07-31  Bruno Haible  <bruno@clisp.org>
94460         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
94461         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
94463 2007-07-30  Bruno Haible  <bruno@clisp.org>
94465         * modules/base64 (License): Use the synonymous term "LGPLv2+".
94466         * modules/c-ctype (License): Likewise.
94467         * modules/c-strcase (License): Likewise.
94468         * modules/check-version (License): Likewise.
94469         * modules/iconv (License): Likewise.
94470         * modules/iconv_open (License): Likewise.
94471         * modules/read-file (License): Likewise.
94472         * modules/striconv (License): Likewise.
94473         * modules/strverscmp (License): Likewise.
94474         * modules/vasprintf (License): Likewise.
94475         * modules/crypto/des (License): Likewise.
94476         * modules/crypto/gc (License): Likewise.
94477         * modules/crypto/gc-arcfour (License): Likewise.
94478         * modules/crypto/gc-arctwo (License): Likewise.
94479         * modules/crypto/gc-des (License): Likewise.
94480         * modules/crypto/gc-hmac-md5 (License): Likewise.
94481         * modules/crypto/gc-hmac-sha1 (License): Likewise.
94482         * modules/crypto/gc-md2 (License): Likewise.
94483         * modules/crypto/gc-md4 (License): Likewise.
94484         * modules/crypto/gc-md5 (License): Likewise.
94485         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
94486         * modules/crypto/gc-random (License): Likewise.
94487         * modules/crypto/gc-rijndael (License): Likewise.
94488         * modules/crypto/gc-sha1 (License): Likewise.
94489         * modules/crypto/md2 (License): Likewise.
94490         * modules/crypto/md4 (License): Likewise.
94492 2007-07-30  Jim Meyering  <jim@meyering.net>
94494         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
94495         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
94496         it has valid stat data.  This bug would cause du not to count the
94497         sizes of inaccessible directories.
94498         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
94499         in <http://bugzilla.redhat.com/250077>.
94501 2007-07-25  Peter O'Gorman  <peter@pogma.com>
94502             Bruno Haible  <bruno@clisp.org>
94504         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
94505         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
94506         #include_next, gives a diagnostic about it, but reports no error in
94507         the exit code.
94508         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
94510 2007-07-24  Ben Pfaff  <blp@gnu.org>
94512         Improve name: "count-one-bits" is better than "popcount".
94513         * MODULES.html.sh: Update name.
94514         * lib/popcount.h: Renamed lib/count-one-bits.h.
94515         (popcount): Renamed count_one_bits.
94516         (popcountl): Renamed count_one_bits_l.
94517         (popcountll): Renamed count_one_bits_ll.
94518         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
94519         * modules/popcount: Renamed module/count-one-bits.
94520         * modules/popcount-tests: Renamed module/count-one-bits-tests.
94521         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
94523 2007-07-23  Ben Pfaff  <blp@gnu.org>
94525         * lib/popcount.h (popcount32): Reduce size of constants, to allow
94526         better code generation, and add U to large constants to avoid
94527         warnings, in non-GCC case.
94528         Suggested by Bruno Haible.
94530 2007-07-23  Ben Pfaff  <blp@gnu.org>
94532         * lib/popcount.h: Use verify_true instead of if...abort.
94533         * modules/popcount: Depend on verify module.
94534         Suggested by Jim Meyering.
94536 2007-07-23  Bruno Haible  <bruno@clisp.org>
94538         * gnulib-tool (func_import): Create a .cvsignore file also when the
94539         directory is not yet in CVS but the toplevel directory is. When
94540         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
94541         Reported by Karl Berry.
94543 2007-07-22  Ben Pfaff  <blp@gnu.org>
94545         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
94546         case.
94547         Suggested by Eric Blake.
94549 2007-07-22  Ben Pfaff  <blp@gnu.org>
94551         New module: popcount.
94552         * MODULES.html.sh: Add popcount.
94553         * modules/popcount: New file.
94554         * modules/popcount-tests: New file.
94555         * tests/test-popcount.c: New file.
94556         * lib/popcount.h: New file.
94557         * m4/popcount.m4: New file.
94559 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
94561         * build-aux/announce-gen: Update to GPLv3.
94563         * build-aux/config.guess: Update from config.
94565 2007-07-21  Bruno Haible  <bruno@clisp.org>
94567         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
94568         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
94570 2007-07-20  Jim Meyering  <jim@meyering.net>
94572         * check-module: Diagnose a self-dependency.
94574 2007-07-19  Bruno Haible  <bruno@clisp.org>
94576         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
94577         empty.
94578         Reported by Eric Blake.
94580 2007-07-18  Bruno Haible  <bruno@clisp.org>
94582         * gnulib-tool: New options --po-base, --po-domain.
94583         (func_usage): Document them.
94584         (pobase, po_domain): New variables.
94585         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
94586         DEFAULT_TEXT_DOMAIN.
94587         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
94588         (func_import): Consider pobase and po_domain. Create a po/ directory.
94589         (func_create_testdir): Set pobase and po_domain to empty.
94590         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
94591         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
94593 2007-07-18  Bruno Haible  <bruno@clisp.org>
94595         * gnulib-tool (func_get_automake_snippet): Synthesize also an
94596         EXTRA_DIST augmentation for files in build-aux/.
94598 2007-07-16  Bruno Haible  <bruno@clisp.org>
94600         * modules/lseek (License): Use the synonymous term "LGPLv2+".
94601         * modules/getdelim (License): Likewise.
94603 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94605         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
94606         * modules/d-type (License): Likewise.
94607         * modules/extensions (License): Likewise.
94608         * modules/fnmatch (License): Likewise.
94609         * modules/fseeko (License): Likewise.
94610         * modules/getaddrinfo (License): Likewise.
94611         * modules/getline (License): Likewise.
94612         * modules/getlogin_r (License): Likewise.
94613         * modules/getpass (License): Likewise.
94614         * modules/gettimeofday (License): Likewise.
94615         * modules/glob (License): Likewise.
94616         * modules/inet_ntop (License): Likewise.
94617         * modules/malloc (License): Likewise.
94618         * modules/malloca (License): Likewise.
94619         * modules/memmem (License): Likewise.
94620         * modules/mempcpy (License): Likewise.
94621         * modules/memset (License): Likewise.
94622         * modules/minmax (License): Likewise.
94623         * modules/mktime (License): Likewise.
94624         * modules/netinet_in (License): Likewise.
94625         * modules/pathmax (License): Likewise.
94626         * modules/poll (License): Likewise.
94627         * modules/regex (License): Likewise.
94628         * modules/snprintf (License): Likewise.
94629         * modules/stdbool (License): Likewise.
94630         * modules/stdint (License): Likewise.
94631         * modules/stdio (License): Likewise.
94632         * modules/strcase (License): Likewise.
94633         * modules/strcasestr (License): Likewise.
94634         * modules/strdup (License): Likewise.
94635         * modules/string (License): Likewise.
94636         * modules/strndup (License): Likewise.
94637         * modules/strnlen (License): Likewise.
94638         * modules/strpbrk (License): Likewise.
94639         * modules/strptime (License): Likewise.
94640         * modules/strsep (License): Likewise.
94641         * modules/sys_select (License): Likewise.
94642         * modules/sys_socket (License): Likewise.
94643         * modules/sys_stat (License): Likewise.
94644         * modules/sys_time (License): Likewise.
94645         * modules/time (License): Likewise.
94646         * modules/time_r (License): Likewise.
94647         * modules/timegm (License): Likewise.
94648         * modules/unistd (License): Likewise.
94649         * modules/vsnprintf (License): Likewise.
94650         * modules/wctype (License): Likewise.
94652 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94654         * modules/argz (License): LGPLv2+.
94656 2007-07-15  Karl Berry  <karl@gnu.org>
94658         * doc/gnulib.texi: revise node structure per new fdl.texi.
94660 2007-07-14  Bruno Haible  <bruno@clisp.org>
94662         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
94663         the output file.
94664         * lib/uniname/uninames.h: Regenerated.
94666 2007-07-14  Karl Berry  <karl@gnu.org>
94668         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
94669         omitting sectioning and index commands.
94671 2007-07-13  Bruno Haible  <bruno@clisp.org>
94673         New gnulib-tool option --more-symlinks.
94674         * gnulib-tool (func_usage): Document --more-symlinks.
94675         (do_copyrights): New variable.
94676         Recognize option --more-symlinks.
94677         (func_import): Don't add a copyright notice transform to
94678         sed_transform_lib_file if do_copyrights is empty.
94680 2007-07-13  Bruno Haible  <bruno@clisp.org>
94682         * lib/vasnprintf.c (decimal_point_char): Define also if
94683         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
94684         && !NEED_PRINTF_DIRECTIVE_A.
94685         Reported by Clemens Koller <clemens.koller@anagramm.de> via
94686         Gary V. Vaughan <gary@gnu.org>.
94688 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
94690         * lib/inttypes_.h: Undo previous change, since it was fixed
94691         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
94693 2007-07-13  Bruno Haible  <bruno@clisp.org>
94695         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
94696         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
94698 2007-07-13  Jim Meyering  <jim@meyering.net>
94700         df: Don't fail for Tru64's "file-on-file mount".
94701         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
94702         so we fall through and use statfs instead.  Details here:
94703         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
94704         Reported by Albert Chin.
94706 2007-07-13  Bruno Haible  <bruno@clisp.org>
94708         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
94709         * modules/configmake (License): Likewise.
94710         * modules/gettext (License): Likewise.
94711         * modules/gettext-h (License): Likewise.
94712         * modules/include_next (License): Likewise.
94713         * modules/link-warning (License): Likewise.
94714         * modules/localcharset (License): Likewise.
94715         * modules/localename (License): Likewise.
94716         * modules/lock (License): Likewise.
94717         * modules/relocatable-lib-lgpl (License): Likewise.
94718         * modules/size_max (License): Likewise.
94719         * modules/vasnprintf (License): Likewise.
94720         * modules/wchar (License): Likewise.
94721         * modules/xsize (License): Likewise.
94723 2007-07-13  Bruno Haible  <bruno@clisp.org>
94725         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
94726         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
94728 2007-07-12  Bruno Haible  <bruno@clisp.org>
94730         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
94731         in the modules files.
94733 2007-07-11  Karl Berry  <karl@gnu.org>
94735         * MODULES.html.sh (func_module): use
94736          sed -e '\|^'"${includefile}"'$|d'
94737          instead of /.../d, to avoid errors on $includefile's containing /.
94739 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
94741         * gnulib-tool (func_import): Avoid duplication of --avoid
94742         statements
94743         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
94744         names to `_' in variable names.
94746 2007-07-10  Eric Blake  <ebb9@byu.net>
94748         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
94749         * NEWS: Document this change.
94751 2007-07-08  Bruno Haible  <bruno@clisp.org>
94753         Update to Unicode 5.0.
94754         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
94755         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
94756         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
94757         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
94758         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
94759         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
94760         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
94761         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
94762         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
94763         U+10A3F, U+1D242..U+1D244.
94764         (nonspacing_table_ind): Update.
94765         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
94766         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
94768 2007-07-08  Bruno Haible  <bruno@clisp.org>
94770         Update to Unicode 5.0.
94771         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
94772         code transform. Extend the name index field of unicode_name_to_code and
94773         unicode_code_to_name from 16 to 24 bits.
94774         * lib/uniname/uniname.c (unicode_character_name,
94775         unicode_name_character): Add the range 0x12xxx to the code transform.
94776         * lib/uniname/uninames.h: Regenerated.
94777         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
94779 2007-07-07  Bruno Haible  <bruno@clisp.org>
94781         * modules/wcwidth-tests: New file.
94782         * tests/test-wcwidth.c: New file.
94784         Work around MacOS X wcwidth() bug.
94785         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
94786         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
94787         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
94788         original wcwidth in non-UTF-8 locales.
94789         * modules/wcwidth (Depends-on): Add localcharset, streq,
94790         uniwidth/width.
94791         * doc/functions/wcwidth.texi: Update.
94793 2007-07-07  Bruno Haible  <bruno@clisp.org>
94795         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
94796         (wcwidth): New declaration.
94797         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
94798         macros.
94799         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
94800         here. Prepare for creating <wchar.h> unconditionally.
94801         * modules/wchar (Depends-on): Add link-warning.
94802         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
94803         REPLACE_WCWIDTH, and GL_LINK_WARNING.
94804         * lib/wcwidth.h: Remove file.
94805         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
94806         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
94807         * modules/wcwidth (Files): Remove lib/wcwidth.h.
94808         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
94809         (Include): Replace wcwidth.h with <wchar.h>.
94810         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
94811         * lib/mbchar.h: Don't include wcwidth.h.
94812         * lib/mbswidth.c: Likewise.
94813         * NEWS: Mention the change.
94815 2007-07-07  Bruno Haible  <bruno@clisp.org>
94817         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
94818         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
94819         definition with an external declaration.
94820         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
94821         defined as a function. Remove AC_C_INLINE requirement.
94822         * modules/wcwidth (Files): Add lib/wcwidth.c.
94823         (Makefile.am): Remove redundant statement.
94825 2007-07-07  Bruno Haible  <bruno@clisp.org>
94827         * MODULES.html.sh (Unicode string functions): Add the new modules.
94829         * tests/uniwidth/test-u32-strwidth.c: New file.
94830         * modules/uniwidth/u32-strwidth-tests: New file.
94832         * lib/uniwidth/u32-strwidth.c: New file.
94833         * modules/uniwidth/u32-strwidth: New file.
94835         * tests/uniwidth/test-u16-strwidth.c: New file.
94836         * modules/uniwidth/u16-strwidth-tests: New file.
94838         * lib/uniwidth/u16-strwidth.c: New file.
94839         * modules/uniwidth/u16-strwidth: New file.
94841         * tests/uniwidth/test-u8-strwidth.c: New file.
94842         * modules/uniwidth/u8-strwidth-tests: New file.
94844         * lib/uniwidth/u8-strwidth.c: New file.
94845         * modules/uniwidth/u8-strwidth: New file.
94847         * tests/uniwidth/test-u32-width.c: New file.
94848         * modules/uniwidth/u32-width-tests: New file.
94850         * lib/uniwidth/u32-width.c: New file.
94851         * modules/uniwidth/u32-width: New file.
94853         * tests/uniwidth/test-u16-width.c: New file.
94854         * modules/uniwidth/u16-width-tests: New file.
94856         * lib/uniwidth/u16-width.c: New file.
94857         * modules/uniwidth/u16-width: New file.
94859         * tests/uniwidth/test-u8-width.c: New file.
94860         * modules/uniwidth/u8-width-tests: New file.
94862         * lib/uniwidth/u8-width.c: New file.
94863         * modules/uniwidth/u8-width: New file.
94865         * tests/uniwidth/test-uc_width.c: New file.
94866         * modules/uniwidth/width-tests: New file.
94868         * lib/uniwidth/width.c: New file, from GNU libiconv.
94869         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
94870         * modules/uniwidth/width: New file.
94872         * lib/uniwidth.h: New file, from GNU libiconv.
94873         * modules/uniwidth/base: New file.
94875 2007-07-07  Bruno Haible  <bruno@clisp.org>
94877         * lib/uniname.h: New file, from GNU gettext.
94878         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
94879         * lib/uniname/uninames.h: New file, from GNU gettext.
94880         * lib/uniname/uniname.c: New file, from GNU gettext.
94881         * tests/uniname/test-uninames.sh: New file.
94882         * tests/uniname/test-uninames.c: New file, from GNU gettext.
94883         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
94884         * modules/uniname/base: New file.
94885         * modules/uniname/uniname: New file.
94886         * modules/uniname/uniname-tests: New file.
94887         * MODULES.html.sh (Unicode string functions): Add the new modules.
94889 2007-07-06  Bruno Haible  <bruno@clisp.org>
94891         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
94893 2007-07-06  Bruno Haible  <bruno@clisp.org>
94895         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
94896         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
94897         includes <cygwin/sys_time.h> which includes <sys/select.h> which
94898         include <sys/time.h>.
94899         Reported by Eric Blake.
94901 2007-07-06  Eric Blake  <ebb9@byu.net>
94903         Fix testing canonicalize on cygwin.
94904         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
94905         Revert patch from 2007-06-19.
94906         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
94907         canonicalize module is also in use.
94908         * tests/test-canonicalize.c: New file.
94909         * tests/test-canonicalize.sh: Likewise.
94910         * modules/canonicalize-tests: Likewise.
94912 2007-07-06  Jim Meyering  <jim@meyering.net>
94914         * lib/getugroups.c (getugroups): Detect getgrent failure.
94915         Adjust comment to reflect reality: this function may return -1.
94917 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
94919         * build-aux/bootstrap (TP_URL,get_translations): Update to use
94920         the new TP address.
94921         (usage): Fix typo
94922         (gnulib_mk): New variable.
94924 2007-07-05  Jim Meyering  <jim@meyering.net>
94926         Don't let endgrent clobber errno, no matter how improbable.
94927         * lib/getugroups.c (getugroups): Save and restore errno around
94928         endgrent call.
94930         Close the group DB even when failing with 2^31 or more members.
94931         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
94933 2007-07-04  Jim Meyering  <jim@meyering.net>
94935         * lib/getugroups.h: New file.
94936         * lib/getugroups.c: Include "getugroups.h".
94937         Remove uses of "register" keyword.
94938         Move local variable, "cp", down into scope where used.
94939         Give "username" parameter the "const" attribute.
94940         * modules/getugroups (Files): Add lib/getugroups.h
94942 2007-07-04  Karl Berry  <karl@gnu.org>
94944         * MODULES.html.sh (func_all_modules): Complete rename of
94945         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
94947 2007-07-02  Bruno Haible  <bruno@clisp.org>
94949         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
94950         mode, when inttypes.h comes from gnulib.
94951         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
94953 2007-07-02  Simon Josefsson  <simon@josefsson.org>
94955         * NEWS: Mention lgpl module name change.
94957         * modules/lgpl-2.1: Renamed from lgpl.
94959         * NEWS: Mention gpl module name change.
94961         * modules/gpl-3.0: New file, based on gpl-2.0.
94963         * modules/gpl-2.0: Renamed from gpl.
94965         * modules/gpl: Fix filename, doc/gpl.texi is now found at
94966         doc/gpl-2.0.texi.
94968 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
94970         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
94971         #define __STDC_LIMIT_MACROS temporarily while including
94972         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
94973         Problem reported by Joel E. Denny in
94974         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
94976 2007-07-01  Bruno Haible  <bruno@clisp.org>
94978         * lib/unistdio.h: New file.
94979         * lib/unistdio/u-asnprintf.h: New file.
94980         * lib/unistdio/u-asprintf.h: New file.
94981         * lib/unistdio/u-printf-args.c: New file.
94982         * lib/unistdio/u-printf-args.h: New file.
94983         * lib/unistdio/u-printf-parse.h: New file.
94984         * lib/unistdio/u-snprintf.h: New file.
94985         * lib/unistdio/u-sprintf.h: New file.
94986         * lib/unistdio/u-vasprintf.h: New file.
94987         * lib/unistdio/u-vsnprintf.h: New file.
94988         * lib/unistdio/u-vsprintf.h: New file.
94989         * lib/unistdio/ulc-asnprintf.c: New file.
94990         * lib/unistdio/ulc-asprintf.c: New file.
94991         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
94992         * lib/unistdio/ulc-printf-parse.c: New file.
94993         * lib/unistdio/ulc-snprintf.c: New file.
94994         * lib/unistdio/ulc-sprintf.c: New file.
94995         * lib/unistdio/ulc-vasnprintf.c: New file.
94996         * lib/unistdio/ulc-vasprintf.c: New file.
94997         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
94998         * lib/unistdio/ulc-vsnprintf.c: New file.
94999         * lib/unistdio/ulc-vsprintf.c: New file.
95000         * lib/unistdio/u8-asnprintf.c: New file.
95001         * lib/unistdio/u8-asprintf.c: New file.
95002         * lib/unistdio/u8-printf-parse.c: New file.
95003         * lib/unistdio/u8-snprintf.c: New file.
95004         * lib/unistdio/u8-sprintf.c: New file.
95005         * lib/unistdio/u8-vasnprintf.c: New file.
95006         * lib/unistdio/u8-vasprintf.c: New file.
95007         * lib/unistdio/u8-vsnprintf.c: New file.
95008         * lib/unistdio/u8-vsprintf.c: New file.
95009         * lib/unistdio/u8-u8-asnprintf.c: New file.
95010         * lib/unistdio/u8-u8-asprintf.c: New file.
95011         * lib/unistdio/u8-u8-snprintf.c: New file.
95012         * lib/unistdio/u8-u8-sprintf.c: New file.
95013         * lib/unistdio/u8-u8-vasnprintf.c: New file.
95014         * lib/unistdio/u8-u8-vasprintf.c: New file.
95015         * lib/unistdio/u8-u8-vsnprintf.c: New file.
95016         * lib/unistdio/u8-u8-vsprintf.c: New file.
95017         * lib/unistdio/u16-asnprintf.c: New file.
95018         * lib/unistdio/u16-asprintf.c: New file.
95019         * lib/unistdio/u16-printf-parse.c: New file.
95020         * lib/unistdio/u16-snprintf.c: New file.
95021         * lib/unistdio/u16-sprintf.c: New file.
95022         * lib/unistdio/u16-vasnprintf.c: New file.
95023         * lib/unistdio/u16-vasprintf.c: New file.
95024         * lib/unistdio/u16-vsnprintf.c: New file.
95025         * lib/unistdio/u16-vsprintf.c: New file.
95026         * lib/unistdio/u16-u16-asnprintf.c: New file.
95027         * lib/unistdio/u16-u16-asprintf.c: New file.
95028         * lib/unistdio/u16-u16-snprintf.c: New file.
95029         * lib/unistdio/u16-u16-sprintf.c: New file.
95030         * lib/unistdio/u16-u16-vasnprintf.c: New file.
95031         * lib/unistdio/u16-u16-vasprintf.c: New file.
95032         * lib/unistdio/u16-u16-vsnprintf.c: New file.
95033         * lib/unistdio/u16-u16-vsprintf.c: New file.
95034         * lib/unistdio/u32-asnprintf.c: New file.
95035         * lib/unistdio/u32-asprintf.c: New file.
95036         * lib/unistdio/u32-printf-parse.c: New file.
95037         * lib/unistdio/u32-snprintf.c: New file.
95038         * lib/unistdio/u32-sprintf.c: New file.
95039         * lib/unistdio/u32-vasnprintf.c: New file.
95040         * lib/unistdio/u32-vasprintf.c: New file.
95041         * lib/unistdio/u32-vsnprintf.c: New file.
95042         * lib/unistdio/u32-vsprintf.c: New file.
95043         * lib/unistdio/u32-u32-asnprintf.c: New file.
95044         * lib/unistdio/u32-u32-asprintf.c: New file.
95045         * lib/unistdio/u32-u32-snprintf.c: New file.
95046         * lib/unistdio/u32-u32-sprintf.c: New file.
95047         * lib/unistdio/u32-u32-vasnprintf.c: New file.
95048         * lib/unistdio/u32-u32-vasprintf.c: New file.
95049         * lib/unistdio/u32-u32-vsnprintf.c: New file.
95050         * lib/unistdio/u32-u32-vsprintf.c: New file.
95051         * tests/unistdio/test-ulc-asnprintf1.c: New file.
95052         * tests/unistdio/test-ulc-asnprintf1.h: New file.
95053         * tests/unistdio/test-ulc-printf1.h: New file.
95054         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
95055         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
95056         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
95057         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
95058         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
95059         * tests/unistdio/test-ulc-vasprintf1.c: New file.
95060         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
95061         * tests/unistdio/test-ulc-vsprintf1.c: New file.
95062         * tests/unistdio/test-u8-asnprintf1.c: New file.
95063         * tests/unistdio/test-u8-asnprintf1.h: New file.
95064         * tests/unistdio/test-u8-printf1.h: New file.
95065         * tests/unistdio/test-u8-vasnprintf1.c: New file.
95066         * tests/unistdio/test-u8-vasnprintf2.c: New file.
95067         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
95068         * tests/unistdio/test-u8-vasnprintf3.c: New file.
95069         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
95070         * tests/unistdio/test-u8-vasprintf1.c: New file.
95071         * tests/unistdio/test-u8-vsnprintf1.c: New file.
95072         * tests/unistdio/test-u8-vsprintf1.c: New file.
95073         * tests/unistdio/test-u16-asnprintf1.c: New file.
95074         * tests/unistdio/test-u16-asnprintf1.h: New file.
95075         * tests/unistdio/test-u16-printf1.h: New file.
95076         * tests/unistdio/test-u16-vasnprintf1.c: New file.
95077         * tests/unistdio/test-u16-vasnprintf2.c: New file.
95078         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
95079         * tests/unistdio/test-u16-vasnprintf3.c: New file.
95080         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
95081         * tests/unistdio/test-u16-vasprintf1.c: New file.
95082         * tests/unistdio/test-u16-vsnprintf1.c: New file.
95083         * tests/unistdio/test-u16-vsprintf1.c: New file.
95084         * tests/unistdio/test-u32-asnprintf1.c: New file.
95085         * tests/unistdio/test-u32-asnprintf1.h: New file.
95086         * tests/unistdio/test-u32-printf1.h: New file.
95087         * tests/unistdio/test-u32-vasnprintf1.c: New file.
95088         * tests/unistdio/test-u32-vasnprintf2.c: New file.
95089         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
95090         * tests/unistdio/test-u32-vasnprintf3.c: New file.
95091         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
95092         * tests/unistdio/test-u32-vasprintf1.c: New file.
95093         * tests/unistdio/test-u32-vsnprintf1.c: New file.
95094         * tests/unistdio/test-u32-vsprintf1.c: New file.
95095         * modules/unistdio/base: New file.
95096         * modules/unistdio/u-printf-args: New file.
95097         * modules/unistdio/ulc-asnprintf: New file.
95098         * modules/unistdio/ulc-asprintf: New file.
95099         * modules/unistdio/ulc-fprintf: New file.
95100         * modules/unistdio/ulc-printf-parse: New file.
95101         * modules/unistdio/ulc-snprintf: New file.
95102         * modules/unistdio/ulc-sprintf: New file.
95103         * modules/unistdio/ulc-vasnprintf: New file.
95104         * modules/unistdio/ulc-vasprintf: New file.
95105         * modules/unistdio/ulc-vfprintf: New file.
95106         * modules/unistdio/ulc-vsnprintf: New file.
95107         * modules/unistdio/ulc-vsprintf: New file.
95108         * modules/unistdio/u8-asnprintf: New file.
95109         * modules/unistdio/u8-asprintf: New file.
95110         * modules/unistdio/u8-printf-parse: New file.
95111         * modules/unistdio/u8-snprintf: New file.
95112         * modules/unistdio/u8-sprintf: New file.
95113         * modules/unistdio/u8-vasnprintf: New file.
95114         * modules/unistdio/u8-vasprintf: New file.
95115         * modules/unistdio/u8-vsnprintf: New file.
95116         * modules/unistdio/u8-vsprintf: New file.
95117         * modules/unistdio/u8-u8-asnprintf: New file.
95118         * modules/unistdio/u8-u8-asprintf: New file.
95119         * modules/unistdio/u8-u8-snprintf: New file.
95120         * modules/unistdio/u8-u8-sprintf: New file.
95121         * modules/unistdio/u8-u8-vasnprintf: New file.
95122         * modules/unistdio/u8-u8-vasprintf: New file.
95123         * modules/unistdio/u8-u8-vsnprintf: New file.
95124         * modules/unistdio/u8-u8-vsprintf: New file.
95125         * modules/unistdio/u16-asnprintf: New file.
95126         * modules/unistdio/u16-asprintf: New file.
95127         * modules/unistdio/u16-printf-parse: New file.
95128         * modules/unistdio/u16-snprintf: New file.
95129         * modules/unistdio/u16-sprintf: New file.
95130         * modules/unistdio/u16-vasnprintf: New file.
95131         * modules/unistdio/u16-vasprintf: New file.
95132         * modules/unistdio/u16-vsnprintf: New file.
95133         * modules/unistdio/u16-vsprintf: New file.
95134         * modules/unistdio/u16-u16-asnprintf: New file.
95135         * modules/unistdio/u16-u16-asprintf: New file.
95136         * modules/unistdio/u16-u16-snprintf: New file.
95137         * modules/unistdio/u16-u16-sprintf: New file.
95138         * modules/unistdio/u16-u16-vasnprintf: New file.
95139         * modules/unistdio/u16-u16-vasprintf: New file.
95140         * modules/unistdio/u16-u16-vsnprintf: New file.
95141         * modules/unistdio/u16-u16-vsprintf: New file.
95142         * modules/unistdio/u32-asnprintf: New file.
95143         * modules/unistdio/u32-asprintf: New file.
95144         * modules/unistdio/u32-printf-parse: New file.
95145         * modules/unistdio/u32-snprintf: New file.
95146         * modules/unistdio/u32-sprintf: New file.
95147         * modules/unistdio/u32-vasnprintf: New file.
95148         * modules/unistdio/u32-vasprintf: New file.
95149         * modules/unistdio/u32-vsnprintf: New file.
95150         * modules/unistdio/u32-vsprintf: New file.
95151         * modules/unistdio/u32-u32-asnprintf: New file.
95152         * modules/unistdio/u32-u32-asprintf: New file.
95153         * modules/unistdio/u32-u32-snprintf: New file.
95154         * modules/unistdio/u32-u32-sprintf: New file.
95155         * modules/unistdio/u32-u32-vasnprintf: New file.
95156         * modules/unistdio/u32-u32-vasprintf: New file.
95157         * modules/unistdio/u32-u32-vsnprintf: New file.
95158         * modules/unistdio/u32-u32-vsprintf: New file.
95159         * modules/unistdio/ulc-asnprintf-tests: New file.
95160         * modules/unistdio/ulc-vasnprintf-tests: New file.
95161         * modules/unistdio/ulc-vasprintf-tests: New file.
95162         * modules/unistdio/ulc-vsnprintf-tests: New file.
95163         * modules/unistdio/ulc-vsprintf-tests: New file.
95164         * modules/unistdio/u8-asnprintf-tests: New file.
95165         * modules/unistdio/u8-vasnprintf-tests: New file.
95166         * modules/unistdio/u8-vasprintf-tests: New file.
95167         * modules/unistdio/u8-vsnprintf-tests: New file.
95168         * modules/unistdio/u8-vsprintf-tests: New file.
95169         * modules/unistdio/u16-asnprintf-tests: New file.
95170         * modules/unistdio/u16-vasnprintf-tests: New file.
95171         * modules/unistdio/u16-vasprintf-tests: New file.
95172         * modules/unistdio/u16-vsnprintf-tests: New file.
95173         * modules/unistdio/u16-vsprintf-tests: New file.
95174         * modules/unistdio/u32-asnprintf-tests: New file.
95175         * modules/unistdio/u32-vasnprintf-tests: New file.
95176         * modules/unistdio/u32-vasprintf-tests: New file.
95177         * modules/unistdio/u32-vsnprintf-tests: New file.
95178         * modules/unistdio/u32-vsprintf-tests: New file.
95179         * MODULES.html.sh (Unicode string functions): Add the new modules.
95181 2007-07-01  Bruno Haible  <bruno@clisp.org>
95183         * lib/sprintf.c (sprintf): Limit the available length estimation,
95184         to avoid address wraparound.
95185         * lib/vsprintf.c (vsprintf): Likewise.
95186         * modules/sprintf-posix (Dependencies): Add stdint.
95187         * modules/vsprintf-posix (Dependencies): Likewise.
95189 2007-07-01  Bruno Haible  <bruno@clisp.org>
95191         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
95192         Windows PATH as well. Conservative double-quoting. Comments.
95194 2007-07-01  Bruno Haible  <bruno@clisp.org>
95195             Eric Blake  <ebb9@byu.net>
95196             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95198         * gnulib-tool (self_abspathname): Fix algorithm to cope with
95199         empty components in $PATH, denoting '.'.
95201 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95203         * gnulib-tool: Fix indentation.
95204         (func_create_megatestdir): Likewise.
95205         Report by Bruno Haible.
95207 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95209         Sync from Automake.
95210         * build-aux/gnupload: Fix shell portability issues with for loops.
95211         Report by Karl Berry.
95213 2007-06-29  Simon Josefsson  <simon@josefsson.org>
95215         * build-aux/maint.mk (POURL): Use translationproject.org.
95217 2007-06-27  Simon Josefsson  <simon@josefsson.org>
95218             Bruno Haible  <bruno@clisp.org>
95220         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
95221         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
95222         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
95223         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
95224         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
95226 2007-06-27  Bruno Haible  <bruno@clisp.org>
95228         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
95229         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
95231 2007-06-26  Karl Berry  <karl@gnu.org>
95233         * MODULES.html.sh: remove xreadlink-with-size.
95235 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
95237         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
95238         method that I hope also handles the double-include problem noted
95239         by Bruno Haible in
95240         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
95242 2007-06-23  Bruno Haible  <bruno@clisp.org>
95244         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95245         Don't let the 'mostlyclean' target fail if the last subdirectory could
95246         not be removed.
95247         Reported by Karl Berry.
95249 2007-06-23  Bruno Haible  <bruno@clisp.org>
95251         * gnulib-tool (echo): Add a speedier workaround for ksh.
95252         * tests/test-echo.sh: Likewise.
95254 2007-06-23  Bruno Haible  <bruno@clisp.org>
95256         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
95257         * tests/test-echo.sh: Likewise.
95259 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95261         * gnulib-tool (IFS): Initialize early, so we don't set it to
95262         empty later.
95263         (self_abspathname): Rewrite algorithm to set it, reindent.
95264         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
95265         (func_create_megatestdir): Merge some sed scripts.
95267 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
95269         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
95270         exposed by Sun Studio 11 cc on Solaris 8.
95272 2007-06-22  Bruno Haible  <bruno@clisp.org>
95274         * gnulib-tool (echo): Ensure the echo primitive does not interpret
95275         backslashes.
95276         * tests/test-echo.sh: New file.
95278 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95280         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
95281         simplify `sed_replace_build_aux' scripts, they are portable but
95282         echoing them with `echo' is not.
95283         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
95285 2007-06-21  Karl Berry  <karl@gnu.org>
95287         * config/srclist.txt: guess we can't handle the licenses via
95288         srclist at the moment.
95290 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
95292         * MODULES.html.sh: Add include_next.
95293         * modules/include_next: New file.
95295 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
95297         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
95298         INCLUDE_NEXT.
95299         (gl_CHECK_NEXT_HEADERS): New macro.
95300         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
95301         the obsolescent gl_ABSOLUTE_HEADER.
95302         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
95303         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
95304         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
95305         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
95306         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
95307         * m4/math_h.m4 (gl_MATH_H): Likewise.
95308         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
95309         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
95310         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
95311         * m4/stdint.m4 (gl_STDINT_H): Likewise.
95312         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
95313         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
95314         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
95315         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
95316         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
95317         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
95318         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
95319         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
95320         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
95321         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
95322         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
95323         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
95324         * m4/inttypes.m4 (gl_INTTYPES_H): Define
95325         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
95326         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
95327         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
95328         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
95329         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
95330         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
95331         * lib/float_.h: Likewise.
95332         * lib/inttypes_.h: Likewise.
95333         * lib/math_.h: Likewise.
95334         * lib/search_.h: Likewise.
95335         * lib/signal_.h: Likewise.
95336         * lib/stdint_.h: Likewise.
95337         * lib/stdio_.h: Likewise.
95338         * lib/stdlib_.h: Likewise.
95339         * lib/string_.h: Likewise.
95340         * lib/sys_stat_.h: Likewise.
95341         * lib/sys_time_.h: Likewise.
95342         * lib/time_.h: Likewise.
95343         * lib/unistd_.h: Likewise.
95344         * lib/wchar_.h: Likewise.
95345         * lib/wctype_.h: Likewise.
95346         * lib/dirent_.h: Likewise.
95347         * lib/iconv_.h: Likewise.
95348         * lib/locale_.h: Likewise.
95349         * lib/netinet_in_.h: Likewise.
95350         * lib/sys_select_.h: Likewise.
95351         * lib/sys_socket_.h: Likewise.
95352         * lib/sysexits_.h: Likewise.
95353         * modules/fcntl (Depends-on): Depend on include_next, not
95354         absolute_header.
95355         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
95356         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
95357         * modules/fchdir: Likewise.
95358         * modules/float: Likewise.
95359         * modules/iconv_open: Likewise.
95360         * modules/inttypes: Likewise.
95361         * modules/locale: Likewise.
95362         * modules/math: Likewise.
95363         * modules/netinet_in: Likewise.
95364         * modules/search: Likewise.
95365         * modules/signal: Likewise.
95366         * modules/stdint: Likewise.
95367         * modules/stdio: Likewise.
95368         * modules/stdlib: Likewise.
95369         * modules/string: Likewise.
95370         * modules/sys_select: Likewise.
95371         * modules/sys_socket: Likewise.
95372         * modules/sys_stat: Likewise.
95373         * modules/sys_time: Likewise.
95374         * modules/sysexits: Likewise.
95375         * modules/time: Likewise.
95376         * modules/unistd: Likewise.
95377         * modules/wchar: Likewise.
95378         * modules/wctype: Likewise.
95379         * modules/sys_stat: Change maintainer to "all".
95380         * modules/unistd: Likewise.
95382 2007-06-20  Karl Berry  <karl@gnu.org>
95384         * config/srclist.txt: track www changes in license files.
95386 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
95388         * build-aux/bootstrap: Remove stray dot.
95389         Make sure build_aux settings are honored when linking
95390         gnulib_extra_files.
95392 2007-06-19  Eric Blake  <ebb9@byu.net>
95394         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
95395         Allow compilation on cygwin.
95397 2007-06-19  Jim Meyering  <jim@meyering.net>
95399         xreadlink-with-size: Remove module.  No longer used.
95400         Ex-callers now use xreadlink or mreadlink-with-size.
95401         * modules/xreadlink-with-size: Remove module.
95402         * lib/xreadlink-with-size.c: Remove file.
95403         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
95404         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
95405         just before the function definition *is* accurate.
95407         Eliminate one way canonicalize_filename_mode could exit.
95408         * lib/canonicalize.c (canonicalize_filename_mode):
95409         Use mreadlink_with_size, not xreadlink_with_size.
95411 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
95413         Detect porting problems to FreeBSD/arm, which has time_t wider than
95414         long int.  Original problem reported for GNU diff by Xin Li in
95415         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
95416         * modules/getdate (Depends-on): Add intprops, verify.
95417         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
95418         is an integer type no wider than long int.
95420 2007-06-18  Jim Meyering  <jim@meyering.net>
95422         New module: mreadlink-with-size.
95423         * MODULES.html.sh: Add mreadlink-with-size.
95424         * modules/mreadlink-with-size: New module
95425         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
95426         not xreadlink-with-size.
95427         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
95429 2007-06-16  Bruno Haible  <bruno@clisp.org>
95431         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
95432         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
95433         Reported by Gary V. Vaughan <gary@gnu.org>.
95435 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
95437         Revamp lchown so that it lives in unistd.h where it belongs.
95438         * lib/lchown.h: Remove.
95439         * lib/dirchownmod.c: Don't include lib/lchown.h.
95440         * lib/fchownat.c: Likewise.
95441         * lib/openat.c: Likewise.
95442         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
95443         does not follow symlinks.
95444         (EOPNOTSUPP): Define if not defined.
95445         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
95446         is defined to 0.
95447         (lchown): New decl.
95448         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
95449         Do not check for lchown decl.
95450         Set REPLACE_LCHOWN.
95451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
95452         REPLACE_LCHOWN.
95453         * modules/chown: Make it clear it follows symlinks.
95454         * modules/lchown: Make it clear it doesn't follow symlinks.
95455         (Files): Remove lib/lchown.h
95456         (Depends-on): Add unistd.
95457         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
95458         (Include): Include <unistd.h>, not "lchown.h".
95459         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
95460         REPLACE_LCHOWN.
95462 2007-06-15  Jim Meyering  <jim@meyering.net>
95464         Change license (GPL to LGPL) of fsusage and dependents.
95465         * modules/fsusage (License): Change to LGPL.
95466         * modules/full-read (License): Likewise.
95467         * modules/full-write (License): Likewise.
95468         * modules/safe-read (License): Likewise.
95469         * modules/safe-write (License): Likewise.
95471 2007-06-14  Ben Pfaff  <blp@gnu.org>
95473         Missing part of allocsa -> malloca transition.
95474         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
95475         gl_MALLOCA.
95477 2007-06-12  Bruno Haible  <bruno@clisp.org>
95479         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
95480         to ia64, x86_64, i386.
95481         Reported by Eric Blake.
95483 2007-06-12  Bruno Haible  <bruno@clisp.org>
95485         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
95486         cross-compiling to x86_64.
95488 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
95490         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
95491         glitch reported by Ralf Wildenhues in
95492         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
95494         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
95495         Vin Shelton.
95497 2007-06-11  Bruno Haible  <bruno@clisp.org>
95499         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
95500         replacement string.
95501         Reported by Eric Blake.
95503 2007-06-10  Bruno Haible  <bruno@clisp.org>
95505         Prepare vasnprintf code for use with Unicode strings.
95506         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
95507         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
95508         TYPE_U32_STRING.
95509         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
95510         a_u32_string variants.
95511         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
95512         * lib/printf-args.c: Don't include config.h and the specification
95513         header if PRINTF_FETCHARGS is already defined.
95514         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
95515         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
95516         TYPE_U16_STRING, TYPE_U32_STRING.
95517         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
95518         u16_directive, u16_directives, u32_directive, u32_directives): New
95519         types.
95520         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
95521         New declarations.
95522         * lib/printf-parse.c: Don't include config.h and the specification
95523         header if PRINTF_PARSE is already defined. Eliminate the set of
95524         parameters for WIDE_CHAR_VERSION; the user of this file must provide
95525         them now. Include c-ctype.h.
95526         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
95527         directive and CHAR_T_ONLY_ASCII.
95528         * lib/vasnprintf.c: Don't include config.h and the specification header
95529         if VASNPRINTF is already defined.
95530         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
95531         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
95532         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
95533         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
95534         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
95535         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
95536         code accordingly.
95537         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
95538         pad_ourselves also in this case, with the 'c' and 's' directives, and
95539         with a different notion of "width".
95540         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
95542 2007-06-10  Bruno Haible  <bruno@clisp.org>
95544         * modules/unistr/u32-mbsnlen: New file.
95545         * lib/unistr/u32-mbsnlen.c: New file.
95547         * modules/unistr/u16-mbsnlen: New file.
95548         * lib/unistr/u16-mbsnlen.c: New file.
95550         * modules/unistr/u8-mbsnlen: New file.
95551         * lib/unistr/u8-mbsnlen.c: New file.
95553         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
95554         declarations.
95556 2007-06-10  Bruno Haible  <bruno@clisp.org>
95558         * lib/string_.h (mbsnlen): New declaration.
95559         * lib/mbsnlen.c: New file.
95560         * m4/mbsnlen.m4: New file.
95561         * modules/mbsnlen: New file.
95562         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
95563         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
95564         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
95566 2007-06-10  Bruno Haible  <bruno@clisp.org>
95568         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
95570 2007-06-10  Bruno Haible  <bruno@clisp.org>
95572         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
95573         * lib/mbuiter.h: Likewise.
95575 2007-06-10  Bruno Haible  <bruno@clisp.org>
95577         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
95578         declaration.
95580 2007-06-10  Karl Berry  <karl@gnu.org>
95582         * config/srclist.txt: remove gettext entries, Bruno prefers
95583         to update individually.
95585 2007-06-10  Bruno Haible  <bruno@clisp.org>
95587         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
95588         'maxlen'. Ensure only length + width bytes are allocated, not
95589         length + 1 + width.
95591 2007-06-09  Bruno Haible  <bruno@clisp.org>
95593         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
95594         (CHAR_T): Remove macro.
95595         (VASNPRINTF): Update.
95597 2007-06-09  Bruno Haible  <bruno@clisp.org>
95599         * MODULES.html.sh (Unicode string functions): Add the new modules.
95601         * modules/uniconv/u32-conv-to-enc: New file.
95602         * lib/uniconv/u32-conv-to-enc.c: New file.
95603         * modules/uniconv/u32-conv-to-enc-tests: New file.
95604         * tests/uniconv/test-u32-conv-to-enc.c: New file.
95606         * modules/uniconv/u16-conv-to-enc: New file.
95607         * lib/uniconv/u16-conv-to-enc.c: New file.
95608         * lib/uniconv/u-conv-to-enc.h: New file.
95609         * modules/uniconv/u16-conv-to-enc-tests: New file.
95610         * tests/uniconv/test-u16-conv-to-enc.c: New file.
95612         * modules/uniconv/u8-conv-to-enc: New file.
95613         * lib/uniconv/u8-conv-to-enc.c: New file.
95614         * modules/uniconv/u8-conv-to-enc-tests: New file.
95615         * tests/uniconv/test-u8-conv-to-enc.c: New file.
95617         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
95618         u32_conv_to_encoding): New declarations.
95620 2007-06-09  Bruno Haible  <bruno@clisp.org>
95622         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
95624 2007-06-09  Bruno Haible  <bruno@clisp.org>
95626         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
95627         * modules/malloca: Renamed from modules/allocsa, updated.
95628         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
95629         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
95630         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
95631         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
95632         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
95633         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
95634         * modules/xmalloca: Renamed from modules/xallocsa, updated.
95635         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
95636         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
95637         * modules/c-strcasestr (Depends-on): Update.
95638         * lib/c-strcasestr.c: Update.
95639         * modules/c-strstr (Depends-on): Update.
95640         * lib/c-strstr.c: Update.
95641         * modules/canonicalize-lgpl (Depends-on): Update.
95642         * lib/canonicalize-lgpl.c: Update.
95643         * modules/clean-temp (Depends-on): Update.
95644         * lib/clean-temp.c: Update.
95645         * modules/csharpcomp (Depends-on): Update.
95646         * lib/csharpcomp.c: Update.
95647         * modules/csharpexec (Depends-on): Update.
95648         * lib/csharpexec.c: Update.
95649         * modules/javacomp (Depends-on): Update.
95650         * lib/javacomp.c: Update.
95651         * modules/javaexec (Depends-on): Update.
95652         * lib/javaexec.c: Update.
95653         * modules/mbscasestr (Depends-on): Update.
95654         * lib/mbscasestr.c: Update.
95655         * modules/mbsstr (Depends-on): Update.
95656         * lib/mbsstr.c: Update.
95657         * modules/setenv (Depends-on): Update.
95658         * lib/setenv.c: Update.
95659         * modules/strcasestr (Depends-on): Update.
95660         * lib/strcasestr.c: Update.
95661         * modules/striconveha (Depends-on): Update.
95662         * lib/striconveha.c: Update.
95663         * modules/relocatable-prog-wrapper (Files): Update.
95664         * lib/relocwrapper.c: Update.
95665         * build-aux/install-reloc: Update.
95666         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
95668 2007-06-08  Bruno Haible  <bruno@clisp.org>
95670         Port to uClibc.
95671         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
95672         * lib/fpurge.c (fpurge): Likewise.
95673         * lib/freading.c (freading): Likewise.
95674         * lib/fseeko.c (rpl_fseeko): Likewise.
95675         * lib/fseterr.c (fseterr): Likewise.
95676         * lib/fwriting.c (fwriting): Likewise.
95677         * tests/test-fflush.c (main): Avoid a failure on uClibc.
95679 2007-06-08  Bruno Haible  <bruno@clisp.org>
95681         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
95682         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
95683         * modules/gettext (Files): Add m4/intlmacosx.m4.
95685 2007-06-07  Bruno Haible  <bruno@clisp.org>
95687         * modules/localename-tests: New file.
95688         * tests/test-localename.c: New file.
95690         New module 'localename'.
95691         * lib/localename.h: New file.
95692         * lib/localename.c: New file, from GNU gettext.
95693         * m4/localename.m4: New file.
95694         * modules/localename: New file.
95696 2007-06-07  Bruno Haible  <bruno@clisp.org>
95698         Work around the lack of <wchar.h> on some builds of uClibc.
95699         * doc/headers/wchar.texi: Update.
95700         * lib/wchar_.h: Include <wchar.h> only if it exists.
95701         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
95702         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
95703         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
95704         doesn't exist.
95705         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
95706         * modules/mbfile (Depends-on): Add wchar.
95707         * modules/mbiter (Depends-on): Likewise.
95708         * modules/mbuiter (Depends-on): Likewise.
95709         Reported by Simon Josefsson.
95711 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
95713         Work around problem reported by Steven M. Schweda in
95714         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
95715         Tru64 5.1B with the Compaq compiler environment installed declares
95716         an 'isblank' function but does not define it in the C library.
95717         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
95718         * lib/regex_internal.h (isblank): Likewise.
95719         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
95720         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
95722 2007-06-05  Bruno Haible  <bruno@clisp.org>
95724         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
95725         ia64.
95726         * modules/printf-safe: New file.
95727         * modules/fprintf-posix (Depends-on): Add printf-safe.
95728         * modules/printf-posix (Depends-on): Likewise.
95729         * modules/snprintf-posix (Depends-on): Likewise.
95730         * modules/sprintf-posix (Depends-on): Likewise.
95731         * modules/vasnprintf-posix (Depends-on): Likewise.
95732         * modules/vasprintf-posix (Depends-on): Likewise.
95733         * modules/vfprintf-posix (Depends-on): Likewise.
95734         * modules/vprintf-posix (Depends-on): Likewise.
95735         * modules/vsnprintf-posix (Depends-on): Likewise.
95736         * modules/vsprintf-posix (Depends-on): Likewise.
95737         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
95738         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
95739         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
95740         "no" on i386, x86_64, ia64.
95741         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
95742         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
95743         on i386, x86_64, ia64.
95744         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
95745         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
95746         on i386, x86_64, ia64.
95747         * tests/test-vasnprintf-posix.c: Include float.h.
95748         (LDBL80_WORDS): New macro.
95749         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
95750         on i386, x86_64, ia64.
95751         * tests/test-vasprintf-posix.c: Include float.h.
95752         (LDBL80_WORDS): New macro.
95753         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
95754         on i386, x86_64, ia64.
95755         * tests/test-snprintf-posix.c: Include float.h.
95756         * tests/test-sprintf-posix.c: Likewise.
95757         * tests/test-vsnprintf-posix.c: Likewise.
95758         * tests/test-vsprintf-posix.c: Likewise.
95760 2007-06-05  Bruno Haible  <bruno@clisp.org>
95762         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
95763         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
95764         non-IEEE numbers on i386, x86_64, ia64.
95765         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
95766         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
95767         * tests/test-isnanl.h: Include float.h.
95768         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
95770 2007-06-05  Bruno Haible  <bruno@clisp.org>
95772         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
95773         also the %a / %A. Handle the %a / %A code before this extra handling.
95775 2007-06-05  Bruno Haible  <bruno@clisp.org>
95777         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
95778         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
95780 2007-06-05  Bruno Haible  <bruno@clisp.org>
95782         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
95783         typo in variable name.
95785 2007-06-05  Eric Blake  <ebb9@byu.net>
95787         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
95788         Reported by Simon Josefsson.
95790 2007-06-04  Bruno Haible  <bruno@clisp.org>
95792         Avoid test failures on some PowerPC platforms.
95793         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
95794         Define differently for PowerPC.
95795         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
95796         Reported by Gary V. Vaughan <gary@gnu.org>.
95798 2007-06-02  Bruno Haible  <bruno@clisp.org>
95800         Fix test-stdint failure on FreeBSD/ia64.
95801         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
95802         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
95803         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
95804         * doc/headers/stdint.texi: Update.
95806 2007-06-01  Bruno Haible  <bruno@clisp.org>
95808         * tests/test-binary-io.c (main): Pass a third argument to open().
95809         Reported by Gary V. Vaughan <gary@gnu.org>.
95811 2007-06-01  Bruno Haible  <bruno@clisp.org>
95813         * doc/functions/frexpl.texi: Update for mingw.
95815 2007-06-01  Bruno Haible  <bruno@clisp.org>
95817         * tests/test-lseek.c (main): Disable test of errno for invalid third
95818         argument.
95819         * doc/functions/lseek.texi: Update.
95820         Reported by Gary V. Vaughan <gary@gnu.org>.
95822 2007-05-28  Bruno Haible  <bruno@clisp.org>
95824         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
95826 2007-05-31  Eric Blake  <ebb9@byu.net>
95828         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
95829         cross compiling.
95831 2007-05-30  Eric Blake  <ebb9@byu.net>
95832         and Bruno Haible  <bruno@clisp.org>
95834         Work around mingw test failures exposed by m4-1.4.9b.
95835         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
95836         * tests/test-unistd.c: Disable uid_t and git_t tests for the
95837         moment.
95839 2007-05-30  Bruno Haible  <bruno@clisp.org>
95841         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
95842         assuming that they are closed. Needed on HP-UX 11.
95844 2007-05-29  Bruno Haible  <bruno@clisp.org>
95846         Fix a problem with #include_next.
95847         * lib/dirent_.h: Split the double-inclusion guard.
95848         * lib/fcntl_.h: Likewise.
95849         * lib/float_.h: Likewise.
95850         * lib/iconv_.h: Likewise.
95851         * lib/inttypes_.h: Likewise.
95852         * lib/locale_.h: Likewise.
95853         * lib/math_.h: Likewise.
95854         * lib/netinet_in_.h: Likewise.
95855         * lib/search_.h: Likewise.
95856         * lib/signal_.h: Likewise.
95857         * lib/stdint_.h: Likewise.
95858         * lib/stdio_.h: Likewise.
95859         * lib/stdlib_.h: Likewise.
95860         * lib/string_.h: Likewise.
95861         * lib/sys_select_.h: Likewise.
95862         * lib/sys_socket_.h: Likewise.
95863         * lib/sys_stat_.h: Likewise.
95864         * lib/sys_time_.h: Likewise.
95865         * lib/sysexits_.h: Likewise.
95866         * lib/time_.h: Likewise.
95867         * lib/unistd_.h: Likewise.
95868         * lib/wchar_.h: Likewise.
95869         * lib/wctype_.h: Likewise.
95871 2007-05-29  Bruno Haible  <bruno@clisp.org>
95873         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
95874         for the moment.
95876 2007-05-29  Bruno Haible  <bruno@clisp.org>
95878         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
95879         invocation.
95880         Reported by Eric Blake.
95882 2007-05-29  Bruno Haible  <bruno@clisp.org>
95884         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
95885         compiling case.
95887 2007-05-29  Eric Blake  <ebb9@byu.net>
95888             Bruno Haible  <bruno@clisp.org>
95890         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
95891         cross compiles.
95893 2007-05-28  Eric Blake  <ebb9@byu.net>
95895         * modules/closein-tests (test_closein_LDADD): Support test on
95896         cygwin with libtool.
95898 2007-05-28  Bruno Haible  <bruno@clisp.org>
95900         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
95901         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
95902         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
95903         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
95904         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
95905         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
95906         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
95907         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
95908         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
95910 2007-05-28  Eric Blake  <ebb9@byu.net>
95912         Unconditionally include <config.h> in unit tests.
95913         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
95914         * tests/test-allocsa.c, tests/test-arcfour.c,
95915         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
95916         tests/test-array_list.c, tests/test-array_oset.c,
95917         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
95918         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
95919         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
95920         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
95921         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
95922         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
95923         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
95924         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
95925         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
95926         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
95927         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
95928         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
95929         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
95930         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
95931         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
95932         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
95933         test-md5.c, test-memmem.c, test-printf-posix.c,
95934         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
95935         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
95936         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
95937         test-strcasestr.c, test-striconv.c, test-striconveh.c,
95938         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
95939         test-vasnprintf-posix2.c, test-vasnprintf.c,
95940         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
95941         test-vfprintf-posix.c, test-vprintf-posix.c,
95942         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
95943         test-xvasprintf.c: Likewise.
95945 2007-05-28  Bruno Haible  <bruno@clisp.org>
95947         * gnulib-tool (func_import): Remember the --with-tests command-line
95948         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
95949         Reported by Eric Blake.
95951 2007-05-28  Bruno Haible  <bruno@clisp.org>
95953         * modules/ftell-tests: New file.
95954         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
95955         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
95957         * lib/ftell.c: New file.
95958         * modules/ftell: New file.
95959         * m4/ftell.m4: New file.
95960         * doc/functions/ftell.texi: Update.
95961         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
95962         REPLACE_FTELL.
95963         * lib/stdio_.h (rpl_ftell): New declaration.
95964         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
95965         REPLACE_FTELL.
95967 2007-05-28  Eric Blake  <ebb9@byu.net>
95969         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
95971 2007-05-28  Bruno Haible  <bruno@clisp.org>
95973         * modules/fseek-tests: New file.
95974         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
95975         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
95977         * lib/fseek.c: New file.
95978         * modules/fseek: New file.
95979         * m4/fseek.m4: New file.
95980         * doc/functions/fseek.texi: Update.
95981         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
95982         REPLACE_FSEEK.
95983         * lib/stdio_.h (rpl_fseek): New declaration.
95984         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
95985         REPLACE_FSEEK.
95987 2007-05-28  Bruno Haible  <bruno@clisp.org>
95989         * lib/stdio_.h (fflush): More comments.
95991 2007-05-28  Bruno Haible  <bruno@clisp.org>
95993         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
95994         runtime test.
95996 2007-05-28  Eric Blake  <ebb9@byu.net>
95998         Improve lseek module.
95999         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
96000         * lib/unistd_.h (lseek): Scale back link warning message.
96001         * tests/test-lseek.c: Beef up test.
96002         * tests/test-lseek.sh: Exercise more facets of lseek.
96003         Reported by Bruno Haible.
96005 2007-05-28  Bruno Haible  <bruno@clisp.org>
96007         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
96008         to define.
96010 2007-05-27  Bruno Haible  <bruno@clisp.org>
96012         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
96014 2007-05-27  Bruno Haible  <bruno@clisp.org>
96016         * modules/openmp: New file.
96017         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
96018         Noah Misch.
96020 2007-05-26  Bruno Haible  <bruno@clisp.org>
96022         * modules/chdir-long (Depends-on): Add fchdir.
96023         * modules/chdir-safer (Depends-on): Likewise.
96024         * modules/fts (Depends-on): Likewise.
96025         * modules/fts-lgpl (Depends-on): Likewise.
96026         * modules/openat (Depends-on): Likewise.
96027         * modules/savewd (Depends-on): Likewise.
96029 2007-05-24  Eric Blake  <ebb9@byu.net>
96031         Fix lseek on mingw.
96032         * modules/lseek: New module.
96033         * m4/lseek.m4: New file.
96034         * lib/lseek.c: New file.
96035         * modules/lseek-tests: New file.
96036         * tests/test-lseek.c: New file.
96037         * tests/test-lseek.sh: New file.
96038         * MODULES.html.sh: Document lseek module.
96039         * modules/fflush (Depends-on): Add lseek, fseeko.
96040         * modules/fseeko (Depends-on): Likewise.
96041         * modules/ftello (Depends-on): Likewise.
96042         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
96043         broken.
96044         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
96045         broken.
96046         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
96047         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
96048         * lib/ftello.c (rpl_ftello): Likewise.
96049         * tests/test-fseeko.c (main): Test this.
96050         * tests/test-fseeko.sh: Likewise.
96051         * tests/test-ftello.c (main): Likewise.
96052         * tests/test-ftello.sh: Likewise.
96053         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
96054         implies replacing fseek.
96055         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
96056         HAVE_FTELLO.
96057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
96058         * modules/unistd (Makefile.am): Likewise.
96059         * lib/unistd_.h (lseek): Declare a replacement.
96060         * doc/functions/lseek.texi (lseek): Document this fix.
96061         * doc/functions/fseek.texi (fseek): Likewise.
96062         * doc/functions/ftell.texi (ftell): Likewise.
96064 2007-05-24  Bruno Haible  <bruno@clisp.org>
96066         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
96067         in the printed representation of a NaN.
96068         * tests/test-vasprintf-posix.c (test_function): Likewise.
96069         * tests/test-snprintf-posix.h (test_function): Likewise.
96070         * tests/test-sprintf-posix.h (test_function): Likewise.
96071         Reported by Eric Blake.
96073 2007-05-23  Eric Blake  <ebb9@byu.net>
96075         Fix fseeko/ftello on cygwin 1.5.24.
96076         * doc/functions/fseeko.texi (fseeko): Document the fix.
96077         * doc/functions/ftello.texi (ftello): Document the fix.
96078         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
96079         * doc/functions/stdout.text (stdout): New file.
96080         * doc/functions/stderr.text (stderr): New file.
96081         * doc/gnulib.texi (Function Substitutes): Use new files.
96082         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
96083         prior to 1.7.0.
96084         * tests/test-ftello.c (main): Likewise for ftello.
96085         * tests/test-fseeko.sh: New file.
96086         * tests/test-ftello.sh: New file.
96087         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
96088         with seekable stdin.
96089         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
96090         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
96091         (gl_REPLACE_FSEEKO): New macro.
96092         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
96093         * modules/fseeko (Files): Distribute fseeko.c.
96094         * modules/ftello (Files): Distribute ftello.c.
96095         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
96096         mode.
96097         * lib/ftello.c (rpl_ftello): New file.
96098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
96099         fseeko, ftello.
96100         (gl_STDIN_LARGE_OFFSET): New macro.
96101         * modules/stdio (Makefile.am): Perform the replacement.
96102         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
96104 2007-05-23  Bruno Haible  <bruno@clisp.org>
96106         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
96107         GNULIB_POSIXCHECK is defined.
96109 2007-05-21  Bruno Haible  <bruno@clisp.org>
96111         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
96112         Check also the output for NaN arguments. When cross-compiling, guess
96113         no on IRIX.
96114         * lib/vasnprintf.c: Update comments.
96115         * tests/test-vasnprintf-posix.c (strisnan): New function.
96116         (test_function): Use it.
96117         * tests/test-vasprintf-posix.c (strisnan): New function.
96118         (test_function): Use it.
96119         * tests/test-snprintf-posix.h (strisnan): New function.
96120         (test_function): Use it.
96121         * tests/test-sprintf-posix.h (strisnan): New function.
96122         (test_function): Use it.
96123         Reported by Eric Blake.
96125 2007-05-20  Bruno Haible  <bruno@clisp.org>
96127         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
96128         numbers that fails on BeOS.
96129         * doc/functions/frexpl.texi: Update.
96131 2007-05-20  Jim Meyering  <jim@meyering.net>
96133         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
96134         forced upon us by glibc-2.6.
96136 2007-05-20  Bruno Haible  <bruno@clisp.org>
96138         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
96139         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
96140         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
96141         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
96142         NEED_PRINTF_INFINITE.
96143         (is_infinitel): New function.
96144         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
96145         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
96146         gl_PREREQ_VASNPRINTF_INFINITE.
96147         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
96148         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
96149         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
96150         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
96151         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
96152         gl_PREREQ_VASNPRINTF_INFINITE.
96153         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
96154         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96155         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96156         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96157         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96158         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96159         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96160         * doc/functions/fprintf.texi: Update.
96161         * doc/functions/printf.texi: Update.
96162         * doc/functions/snprintf.texi: Update.
96163         * doc/functions/sprintf.texi: Update.
96164         * doc/functions/vfprintf.texi: Update.
96165         * doc/functions/vprintf.texi: Update.
96166         * doc/functions/vsnprintf.texi: Update.
96167         * doc/functions/vsprintf.texi: Update.
96169 2007-05-20  Bruno Haible  <bruno@clisp.org>
96171         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
96172         was not found in libc.
96173         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
96175 2007-05-20  Bruno Haible  <bruno@clisp.org>
96177         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
96178         printed as "-nan" instead of "nan".
96179         * tests/test-vasprintf-posix.c (test_function): Likewise.
96180         * tests/test-snprintf-posix.h (test_function): Likewise.
96181         * tests/test-sprintf-posix.h (test_function): Likewise.
96182         Needed for HP-UX 11.
96184 2007-05-20  Jim Meyering  <jim@meyering.net>
96186         Fix buggy test for the fchownat-deref bug.
96187         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
96188         symlink required for the run-test.  Without it, this test would
96189         always declare that fchownat doesn't work, and client code would
96190         unnecessarily use the replacement function with fixed libc.
96191         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
96192         Reported by Greg Schafer.
96194 2007-05-19  Bruno Haible  <bruno@clisp.org>
96196         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
96197         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
96198         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
96199         Needed for IRIX 6.5 and Solaris 2.5.1.
96201 2007-05-19  Bruno Haible  <bruno@clisp.org>
96203         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
96204         (test_function): Skip tests involving -0.0 on platforms where
96205         -0.0 = 0.0.
96206         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
96207         (test_function): Skip tests involving -0.0 on platforms where
96208         -0.0 = 0.0.
96209         * tests/test-snprintf-posix.h (have_minus_zero): New function.
96210         (test_function): Skip tests involving -0.0 on platforms where
96211         -0.0 = 0.0.
96212         * tests/test-sprintf-posix.h (have_minus_zero): New function.
96213         (test_function): Skip tests involving -0.0 on platforms where
96214         -0.0 = 0.0.
96215         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
96216         tests.
96217         * tests/test-printf-posix.h (test_function): Likewise.
96218         * tests/test-printf-posix.output: Remove all -0.0 related results.
96219         Needed for IRIX 6.5.
96221 2007-05-19  Bruno Haible  <bruno@clisp.org>
96223         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
96224         printed as "nan0x7fffffff" instead of "nan".
96225         * tests/test-vasprintf-posix.c (test_function): Likewise.
96226         * tests/test-snprintf-posix.h (test_function): Likewise.
96227         * tests/test-sprintf-posix.h (test_function): Likewise.
96228         * tests/test-fprintf-posix.h (NaN): Remove macro.
96229         (test_function): Remove all NaN related tests.
96230         * tests/test-printf-posix.h (NaN): Remove macro.
96231         (test_function): Remove all NaN related tests.
96232         * tests/test-printf-posix.output: Remove all NaN related results.
96233         Needed for IRIX 6.5.
96235 2007-05-19  Bruno Haible  <bruno@clisp.org>
96237         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
96238         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
96240 2007-05-19  Bruno Haible  <bruno@clisp.org>
96242         * lib/float_.h: New file.
96243         * m4/float_h.m4: New file.
96244         * modules/float: New file.
96245         * modules/isnanl (Dependencies): Add float.
96246         * modules/isnanl-nolibm (Dependencies): Likewise.
96247         * modules/mathl (Dependencies): Likewise.
96248         * modules/printf-frexpl (Dependencies): Likewise.
96249         * modules/signbit (Dependencies): Likewise.
96250         * modules/vasnprintf (Dependencies): Likewise.
96251         * doc/headers/float.texi: Update.
96253 2007-05-19  Jim Meyering  <jim@meyering.net>
96255         * lib/utimens.c (gl_futimens): Rename from futimens,
96256         now that glibc-2.6 declares futimens.
96257         * lib/utimens.h: Likewise.
96259 2007-05-19  Bruno Haible  <bruno@clisp.org>
96261         Avoid test failures on mingw.
96262         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
96263         * tests/test-printf-posix.sh: Likewise.
96264         * tests/test-vfprintf-posix.sh: Likewise.
96265         * tests/test-vprintf-posix.sh: Likewise.
96267 2007-05-19  Bruno Haible  <bruno@clisp.org>
96269         Fix *printf result for NaN, Inf, -0.0 on mingw.
96270         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
96271         * lib/vasnprintf.c: Include math.h and isnan.h.
96272         (is_infinite_or_zero): New function.
96273         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
96274         values in the %f, %F, %e, %E, %g, %G directives.
96275         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
96276         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
96277         gl_PRINTF_INFINITE and test its result. Invoke
96278         gl_PREREQ_VASNPRINTF_INFINITE.
96279         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
96280         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96281         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96282         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96283         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96284         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96285         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96286         * doc/functions/fprintf.texi: Update.
96287         * doc/functions/printf.texi: Update.
96288         * doc/functions/snprintf.texi: Update.
96289         * doc/functions/sprintf.texi: Update.
96290         * doc/functions/vfprintf.texi: Update.
96291         * doc/functions/vprintf.texi: Update.
96292         * doc/functions/vsnprintf.texi: Update.
96293         * doc/functions/vsprintf.texi: Update.
96295 2007-05-19  Bruno Haible  <bruno@clisp.org>
96297         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
96298         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
96299         Instead of multiplying with 10^k, set extra_zeroes to k.
96300         (scale10_round_long_double): Remove function.
96302 2007-05-18  Bruno Haible  <bruno@clisp.org>
96304         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
96305         introduced on 2007-05-06.
96307 2007-05-18  Bruno Haible  <bruno@clisp.org>
96309         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
96310         %g directives.
96311         * tests/test-vasprintf-posix.c (test_function): Likewise.
96312         * tests/test-snprintf-posix.h (test_function): Likewise.
96313         * tests/test-sprintf-posix.h (test_function): Likewise.
96315 2007-05-18  Bruno Haible  <bruno@clisp.org>
96317         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
96318         (strmatch): New function.
96319         (test_function): Test the %f directive on numbers of various exponents.
96320         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
96321         (strmatch): New function.
96322         (test_function): Test the %f directive on numbers of various exponents.
96323         * tests/test-snprintf-posix.h (strmatch): New function.
96324         (test_function): Test the %f directive on numbers of various exponents.
96325         * tests/test-sprintf-posix.h (strmatch): New function.
96326         (test_function): Test the %f directive on numbers of various exponents.
96327         * tests/test-snprintf-posix.c (SIZEOF): New macro.
96328         * tests/test-sprintf-posix.c (SIZEOF): New macro.
96329         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
96330         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
96332 2007-05-18  Bruno Haible  <bruno@clisp.org>
96334         Add support for 'long double' number output.
96335         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
96336         * lib/vasnprintf.c: Include math.h and float+.h.
96337         (mp_limb_t): New type.
96338         (GMP_LIMB_BITS): New macro.
96339         (mp_twolimb_t): New type.
96340         (GMP_TWOLIMB_BITS): New macro.
96341         (mpn_t): New type.
96342         (multiply, divide, convert_to_decimal, decode_long_double,
96343         scale10_round_long_double, scale10_round_decimal_long_double,
96344         floorlog10l): New functions.
96345         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
96346         for the %f, %F, %e, %E, %g, %G directives.
96347         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
96348         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
96349         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
96350         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
96351         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
96352         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96353         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96354         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96355         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96356         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96357         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96358         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
96359         * modules/snprintf-posix (Depends-on): Likewise.
96360         * modules/sprintf-posix (Depends-on): Likewise.
96361         * modules/vasnprintf-posix (Depends-on): Likewise.
96362         * modules/vasprintf-posix (Depends-on): Likewise.
96363         * modules/vfprintf-posix (Depends-on): Likewise.
96364         * modules/vsnprintf-posix (Depends-on): Likewise.
96365         * modules/vsprintf-posix (Depends-on): Likewise.
96366         * modules/vasnprintf (Files): Add lib/float+.h.
96367         * doc/functions/fprintf.texi: Update.
96368         * doc/functions/printf.texi: Update.
96369         * doc/functions/snprintf.texi: Update.
96370         * doc/functions/sprintf.texi: Update.
96371         * doc/functions/vfprintf.texi: Update.
96372         * doc/functions/vprintf.texi: Update.
96373         * doc/functions/vsnprintf.texi: Update.
96374         * doc/functions/vsprintf.texi: Update.
96376 2007-05-18  Bruno Haible  <bruno@clisp.org>
96378         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
96380 2007-05-18  Bruno Haible  <bruno@clisp.org>
96382         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
96383         for printing 64-bit integers. Needed for mingw.
96385 2007-05-18  Bruno Haible  <bruno@clisp.org>
96387         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
96388         gl_FUNC_FREXPL_WORKS.
96389         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
96391 2007-05-18  Bruno Haible  <bruno@clisp.org>
96393         * modules/frexpl-nolibm-tests: New file.
96395         * modules/frexpl-nolibm: New file.
96396         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
96398 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
96400         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
96401         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
96402         GCC 4.2, which otherwise issues a lot of warnings.
96403         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
96404         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
96405         Likewise.
96406         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
96407         * modules/iconv_open (iconv.h): Likewise.
96408         * modules/locale (locale.h): Likewise.
96409         * modules/netinet_in (netinet/in.h): Likewise.
96410         * modules/sys_select (sys_select.h): Likewise.
96411         * modules/sys_socket (sys/socket.h): Likewise.
96412         * modules/sys_stat (sys/stat.h): Likewise.
96413         * modules/sysexits (sysexits.h): Likewise.
96414         * modules/unistd (unistd.h): Likewise.
96416 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96418         * modules/closein-tests (Makefile.am): Distribute
96419         `test-closein.sh'.
96421 2007-05-17  Bruno Haible  <bruno@clisp.org>
96423         * tests/test-printf-posix.output: Renamed from
96424         tests/test-fprintf-posix.out.
96425         * modules/fprintf-posix-tests: Update.
96426         * modules/printf-posix-tests: Update.
96427         * modules/vfprintf-posix-tests: Update.
96428         * modules/vprintf-posix-tests: Update.
96429         * tests/test-fprintf-posix.sh: Update.
96430         * tests/test-printf-posix.sh: Update.
96431         * tests/test-vfprintf-posix.sh: Update.
96432         * tests/test-vprintf-posix.sh: Update.
96433         Reported by Ralf Wildenhues.
96435 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
96437         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
96438         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
96439         GCC 4.2, which otherwise issues a lot of warnings.
96440         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
96441         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
96442         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
96443         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
96444         it should no longer be needed.
96445         * lib/string_.h: Likewise.
96446         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
96447         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
96448         * modules/inttypes (inttypes.h): Likewise.
96449         * modules/math (math.h): Likewise.
96450         * modules/search (search.h): Likewise.
96451         * modules/signal (signal.h): Likewise.
96452         * modules/stdint (stdint.h): Likewise.
96453         * modules/stdio (stdio.h): Likewise.
96454         * modules/stdlib (stdlib.h): Likewise.
96455         * modules/string (string.h): Likewise.
96456         * modules/sys_time (sys/time.h): Likewise.
96457         * modules/time (time.h): Likewise.
96458         * modules/wchar (wchar.h): Likewise.
96459         * modules/wctype (wtype.h): Likewise.
96461 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
96463         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
96465 2007-05-13  Bruno Haible  <bruno@clisp.org>
96467         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
96468         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
96469         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
96470         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
96471         (gl_PREREQ_STRTOK_R): Don't require it here.
96473 2007-05-13  Bruno Haible  <bruno@clisp.org>
96475         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
96476         when used in C++ mode.
96478 2007-05-12  Bruno Haible  <bruno@clisp.org>
96480         * lib/linebuffer.h: Tweak doc.
96481         * lib/linebuffer.c: Likewise.
96483 2007-05-12  James Youngman  <jay@gnu.org>
96485         * lib/linebuffer.c (readlinebuffer_delim): New function,
96486         like readlinebuffer, but use a caller-specified delimiter.
96487         (readlinebuffer): Just call readlinebuffer_delim with '\n'
96488         as the delimiter.
96489         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
96491 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
96493         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
96494         * modules/openat (Files): Remove openat-die.c.
96495         (Depends-on): Add openat-die.
96496         * modules/openat-die: New module.
96498 2007-05-06  Bruno Haible  <bruno@clisp.org>
96500         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
96501         Update with info about Cygwin.
96502         * doc/functions/fprintf.texi: Update.
96503         * doc/functions/printf.texi: Update.
96504         * doc/functions/snprintf.texi: Update.
96505         * doc/functions/sprintf.texi: Update.
96506         * doc/functions/vfprintf.texi: Update.
96507         * doc/functions/vprintf.texi: Update.
96508         * doc/functions/vsnprintf.texi: Update.
96509         * doc/functions/vsprintf.texi: Update.
96510         Reported by Eric Blake.
96512 2007-05-06  Bruno Haible  <bruno@clisp.org>
96514         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
96515         padding ourselves for the floating-point directives.
96516         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
96517         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
96518         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
96519         gl_PRINTF_FLAG_ZERO and test its result. Invoke
96520         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
96521         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96522         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
96523         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96524         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96525         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96526         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96527         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96528         * tests/test-snprintf-posix.h (test_function): Also check the width
96529         and some flags in the %f directive.
96530         * tests/test-sprintf-posix.h (test_function): Likewise.
96531         * tests/test-vasnprintf-posix.c (test_function): Likewise.
96532         * tests/test-vasprintf-posix.c (test_function): Likewise.
96533         * doc/functions/fprintf.texi: Update.
96534         * doc/functions/printf.texi: Update.
96535         * doc/functions/snprintf.texi: Update.
96536         * doc/functions/sprintf.texi: Update.
96537         * doc/functions/vfprintf.texi: Update.
96538         * doc/functions/vprintf.texi: Update.
96539         * doc/functions/vsnprintf.texi: Update.
96540         * doc/functions/vsprintf.texi: Update.
96542 2007-05-06  Bruno Haible  <bruno@clisp.org>
96544         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
96545         pass the ' flag character to sprintf or snprintf.
96546         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
96547         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
96548         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
96549         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
96550         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
96551         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96552         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
96553         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96554         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96555         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96556         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96557         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96558         * tests/test-snprintf-posix.h (test_function): Also check the grouping
96559         flag.
96560         * tests/test-sprintf-posix.h (test_function): Likewise.
96561         * tests/test-vasnprintf-posix.c (test_function): Likewise.
96562         * tests/test-vasprintf-posix.c (test_function): Likewise.
96563         * doc/functions/fprintf.texi: Update.
96564         * doc/functions/printf.texi: Update.
96565         * doc/functions/snprintf.texi: Update.
96566         * doc/functions/sprintf.texi: Update.
96567         * doc/functions/vfprintf.texi: Update.
96568         * doc/functions/vprintf.texi: Update.
96569         * doc/functions/vsnprintf.texi: Update.
96570         * doc/functions/vsprintf.texi: Update.
96572 2007-05-01  Bruno Haible  <bruno@clisp.org>
96574         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
96576 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
96578         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
96579         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
96581 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
96583         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
96584         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
96585         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
96587 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
96589         * lib/argp-help.c (struct hol_entry): New member `ord'.
96590         (HOL_ENTRY_PTRCMP): Use ord for comparison
96591         (hol_sort): Initialize ord.
96593 2007-05-01  Bruno Haible  <bruno@clisp.org>
96595         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
96596         Reported by Eric Blake.
96597         * doc/gnulib.texi (Function Substitutes): Update.
96599 2007-05-01  Bruno Haible  <bruno@clisp.org>
96601         * doc/functions.texi: Remove file, now redundant through
96602         doc/functions/*.texi.
96604 2007-05-01  Bruno Haible  <bruno@clisp.org>
96606         * modules/argp (Depends-on): Add sleep.
96608 2007-05-01  Bruno Haible  <bruno@clisp.org>
96610         * modules/sleep-tests: New file.
96611         * tests/test-sleep.c: New file.
96613         * modules/sleep: New file.
96614         * lib/sleep.c: New file.
96615         * m4/sleep.m4: New file.
96616         * lib/unistd_.h (sleep): New declaration.
96617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
96618         HAVE_SLEEP.
96619         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
96620         * doc/functions/sleep.texi: Document the sleep module.
96622 2007-05-01  Bruno Haible  <bruno@clisp.org>
96624         * lib/sigprocmask.h: Remove file.
96625         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
96626         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
96627         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
96628         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
96629         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
96630         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
96631         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
96632         HAVE_SIGSET_T as a shell variable.
96633         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
96634         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
96635         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
96636         (Depends-on): Add signal. Remove verify.
96637         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
96638         (Include): Mention <signal.h> instead of sigprocmask.h.
96639         * NEWS: Mention the change.
96640         * lib/fatal-signal.c: Don't include sigprocmask.h.
96642 2007-05-01  Bruno Haible  <bruno@clisp.org>
96644         * modules/signal: New file.
96645         * lib/signal_.h: New file.
96646         * m4/signal_h.m4: New file.
96648 2007-05-01  Bruno Haible  <bruno@clisp.org>
96650         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
96651         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
96652         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
96653         HAVE_WCTYPE_CTMP_BUG into wctype.h.
96655 2007-05-01  Bruno Haible  <bruno@clisp.org>
96657         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
96658         configure time.
96659         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
96660         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
96661         * modules/sys_stat (Makefile.am): Substitute their values into
96662         sys/stat.h.
96664 2007-05-01  Bruno Haible  <bruno@clisp.org>
96666         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
96667         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
96668         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
96670 2007-05-01  Bruno Haible  <bruno@clisp.org>
96672         * doc/header/assert.texi: Undo last change: don't mention the gnulib
96673         'assert' module here.
96675 2007-05-01  Bruno Haible  <bruno@clisp.org>
96677         * doc/functions/*.texi: New files.
96678         * doc/functions/google-ranking.txt: New file.
96679         * doc/gnulib.texi (Function Substitutes): New chapter.
96680         (ctime, inet_ntoa): Remove sections.
96681         * doc/ctime.texi: Remove file.
96682         * doc/inet_ntoa.texi: Remove file.
96683         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
96684         dependencies.
96685         (%.info): New rule, specifying a --reference-limit.
96687 2007-05-01  Bruno Haible  <bruno@clisp.org>
96689         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
96691 2007-05-01  Bruno Haible  <bruno@clisp.org>
96693         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
96694         the portability of 'mkdir' to mingw systems.
96696 2007-05-01  Bruno Haible  <bruno@clisp.org>
96698         * doc/headers/google-ranking.txt: New file.
96700 2007-04-30  Eric Blake  <ebb9@byu.net>
96702         Prefer fseeko to fseek.
96703         * modules/getpass (Depends-on): Add fseeko.
96704         * lib/getpass.c (getpass): Use fseeko, not fseek.
96706 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
96708         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
96709         assumes the sorting is stable, while most qsort implementations
96710         are not.  Use argument addresses to ensure they never compare as
96711         equal.
96713         * tests/test-argp-2.sh (usage-indent test): Fix output
96714         (func_compare): Restore diff options
96715         * tests/test-argp.c: Restore #include "progname.h"
96717 2007-04-29  Bruno Haible  <bruno@clisp.org>
96719         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
96720         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
96721         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
96722         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96723         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
96724         (configure.ac): Define CHECK_SNPRINTF_POSIX.
96725         (TESTS, check_PROGRAMS): Add test-snprintf.
96726         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
96727         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
96728         (TESTS, check_PROGRAMS): Add test-vsnprintf.
96729         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
96730         assertions that fail on HP-UX, OSF/1, or IRIX.
96731         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
96733 2007-04-29  Bruno Haible  <bruno@clisp.org>
96735         * MODULES.html.sh (posix_functions): Remove 'contents'.
96737 2007-04-29  Karl Berry  <karl@gnu.org>
96739         * config/srclist.txt (gendocs_template_min): new entry.
96741 2007-04-29  Bruno Haible  <bruno@clisp.org>
96743         Work around fpurge bug on BSD systems.
96744         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
96745         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
96746         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
96747         fpurge to rpl_fpurge if the system already has this function.
96748         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
96749         the case where the system already has this function. Correct invariants
96750         on BSD systems.
96751         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
96752         BSD systems.
96754 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
96756         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
96757         proposed by Sven Verdoolaege.
96759         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
96760         options.
96761         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
96762         (usage and help tests): Update
96764 2007-04-29  Bruno Haible  <bruno@clisp.org>
96766         * tests/test-fflush.c (main): Use a file of size 17, not 10.
96767         Print more information in case of failure. Disable a test on BeOS.
96769 2007-04-29  Bruno Haible  <bruno@clisp.org>
96771         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
96772         This helps debugging on systems on which no gdb is available.
96774 2007-04-29  Bruno Haible  <bruno@clisp.org>
96776         * lib/freading.h: Improve comments.
96777         * lib/fwriting.h: Likewise.
96778         * tests/test-freading.c (main): Don't check freading immediately after
96779         repositioning. Needed for glibc.
96781 2007-04-29  Bruno Haible  <bruno@clisp.org>
96783         * lib/freading.c (freading): Trivial simplification.
96785 2007-04-28  Bruno Haible  <bruno@clisp.org>
96787         * tests/test-fwriting.c (main): Also test the interaction between
96788         fflush and fwriting.
96789         * modules/fwriting-tests (Depends-on): Add fflush.
96791         * tests/test-freading.c (main): Also test the interaction between
96792         fflush and freading.
96793         * modules/freading-tests (Depends-on): Add fflush.
96795 2007-04-28  Bruno Haible  <bruno@clisp.org>
96797         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
96798         fseeko and ftello.
96799         Suggested by Eric Blake.
96801 2007-04-28  Jim Meyering  <jim@meyering.net>
96803         Avoid false-negative in gl_STDINT_H's C99 conformance test.
96804         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
96805         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
96807 2007-04-27  Eric Blake  <ebb9@byu.net>
96809         * doc/headers/assert.texi (assert.h): Document assert module use.
96811 2007-04-27  Bruno Haible  <bruno@clisp.org>
96813         * doc/headers/*.texi: New files.
96814         * doc/gnulib.texi (Header File Substitutes): New chapter.
96815         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
96816         dependencies.
96817         (standards.info ,standards.html, standards.dvi): Update dependencies.
96818         (mostlyclean, clean): New targets.
96820 2007-04-27  Bruno Haible  <bruno@clisp.org>
96822         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
96823         * modules/sysexits (Files, Makefile.am): Update.
96825         * lib/sys_socket_.h: Renamed from lib/socket_.h.
96826         * modules/sys_socket (Files, Makefile.am): Update.
96828         * lib/sys_stat_.h: Renamed from lib/stat_.h.
96829         * modules/sys_stat (Files, Makefile.am): Update.
96831 2007-04-27  Eric Blake  <ebb9@byu.net>
96833         * lib/freading.h: Improve comments.
96834         * lib/fwriting.h: Likewise.
96835         * lib/fflush.c: Likewise.
96837         Fix closein for mingw.
96838         * modules/closein-tests: Add tests for closein.
96839         * tests/test-closein.c: New file.
96840         * tests/test-closein.sh: Likewise.
96841         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
96842         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
96844 2007-04-27  Bruno Haible  <bruno@clisp.org>
96846         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
96847         version is < 6.
96848         * lib/math_.h [__DECC]: Likewise.
96849         * lib/stdio_.h [__DECC]: Likewise.
96850         * lib/stdlib_.h [__DECC]: Likewise.
96851         * lib/string_.h [__DECC]: Likewise.
96852         * lib/time_.h [__DECC]: Likewise.
96853         * lib/wchar_.h [__DECC]: Likewise.
96854         * lib/wctype_.h [__DECC]: Likewise.
96856 2007-04-27  Bruno Haible  <bruno@clisp.org>
96858         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
96860 2007-04-27  Bruno Haible  <bruno@clisp.org>
96862         * lib/fflush.c: Add comments.
96863         * modules/fpurge-tests (Depends-on): Add fflush.
96864         * modules/freadable-tests (Depends-on): Likewise.
96865         * modules/fwritable-tests (Depends-on): Likewise.
96867 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
96869         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
96870         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
96871         Report by Bruno Haible <bruno@clisp.org>.
96873 2007-04-26  Eric Blake  <ebb9@byu.net>
96875         Fix fflush on mingw.
96876         * modules/fflush (Depends-on): Add freading.
96877         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
96878         but unread data.
96880 2007-04-26  Eric Blake  <ebb9@byu.net>
96881         and Bruno Haible  <bruno@clisp.org>
96883         Implement freading and fwriting.
96884         * lib/freading.c: New file.
96885         * lib/freading.h: Likewise.
96886         * m4/freading.m4: Likewise.
96887         * modules/freading: Likewise.
96888         * modules/freading-tests: Likewise.
96889         * tests/test-freading.c: Likewise.
96890         * lib/fwriting.c: New file.
96891         * lib/fwriting.h: Likewise.
96892         * m4/fwriting.m4: Likewise.
96893         * modules/fwriting: Likewise.
96894         * modules/fwriting-tests: Likewise.
96895         * tests/test-fwriting.c: Likewise.
96896         * MODULES.html.sh (File stream based Input/Output): Mention them.
96898 2007-04-26  Bruno Haible  <bruno@clisp.org>
96900         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
96901         'long' when we assume it.
96902         Suggested by Eric Blake.
96904 2007-04-26  Bruno Haible  <bruno@clisp.org>
96906         Ensure fseeko, ftello are declared on glibc systems.
96907         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
96908         * modules/fseeko (configure.ac-early): Likewise.
96909         * modules/ftello (configure.ac-early): Likewise.
96910         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
96911         AC_FUNC_FSEEKO for this.
96912         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
96913         (gl_CHECK_FSEEKO): Remove macro.
96915 2007-04-26  Bruno Haible  <bruno@clisp.org>
96917         * tests/test-fflush.c (main): Also check the ftell result after
96918         fflush and fseek/fseeko.
96919         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
96920         file descriptor position cache in the stream.
96921         * lib/fseeko.c (rpl_fseeko): Likewise.
96923 2007-04-26  Bruno Haible  <bruno@clisp.org>
96925         * modules/fflush-tests (Depends-on): Add fseeko.
96927 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
96928             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96930         * lib/argz_.h: ensure error_t definition is obtained in same
96931         mechanism system argz.h would have.
96932         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
96933         argz facilities are known bad.  Err on the side of caution if
96934         cross-compiling.
96936 2007-04-25  Eric Blake  <ebb9@byu.net>
96938         * lib/fpurge.c (includes): Use stdlib.h for free.
96939         * tests/test-fflush.c (main): Also test fflush-fseeko.
96941 2007-04-25  Bruno Haible  <bruno@clisp.org>
96943         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
96944         * lib/fseeko.c: New file.
96945         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
96946         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
96947         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
96948         gl_FUNC_FSEEKO.
96949         (gl_FUNC_FSEEKO): Invoke it.
96950         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
96951         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
96952         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
96954 2007-04-25  Bruno Haible  <bruno@clisp.org>
96956         * modules/fflush (Depends-on): Add ftello.
96958 2007-04-25  Bruno Haible  <bruno@clisp.org>
96960         * modules/ftello-tests: New file.
96961         * tests/test-ftello.c: New file.
96963         * modules/ftello: New file.
96964         * m4/ftello.m4: New file.
96965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
96966         HAVE_FTELLO.
96967         * lib/stdio_.h (ftello): New declaration.
96968         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
96969         HAVE_FTELLO.
96971 2007-04-25  Bruno Haible  <bruno@clisp.org>
96973         * modules/fseeko-tests: New file.
96974         * tests/test-fseeko.c: New file.
96976         * modules/fseeko: New file.
96977         * m4/fseeko.m4: New file.
96978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
96979         HAVE_FSEEKO.
96980         * lib/stdio_.h (fseeko): New declaration.
96981         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
96982         HAVE_FSEEKO.
96984 2007-04-25  Bruno Haible  <bruno@clisp.org>
96986         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
96988 2007-04-25  Bruno Haible  <bruno@clisp.org>
96990         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
96991         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
96992         * tests/test-unistd.c: Likewise.
96993         * tests/test-fcntl.c: Likewise.
96995 2007-04-23  Eric Blake  <ebb9@byu.net>
96997         * lib/fflush.c: Fix missing include.
96998         Reported by Bruno Haible.
97000 2007-04-23  Bruno Haible  <bruno@clisp.org>
97002         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
97003         Reported by Eric Blake.
97005 2007-04-23  Bruno Haible  <bruno@clisp.org>
97007         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
97009 2007-04-23  Bruno Haible  <bruno@clisp.org>
97011         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
97013 2007-04-23  Bruno Haible  <bruno@clisp.org>
97015         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
97016         Needed on HP-UX 11.
97018 2007-04-16  Eric Blake  <ebb9@byu.net>
97020         Make fflush rely on fpurge.
97021         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
97022         open coding all variants.
97023         * modules/fflush (Depends-on): Add fpurge and unistd.
97024         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
97025         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
97027         Fix --with-tests compilation on cygwin.
97028         * modules/argmatch-tests (Makefile.am): List gnulib library first
97029         in LDADD.
97030         * modules/argp-tests (Makefile.am): Likewise.
97031         * modules/array-list-tests (Makefile.am): Likewise.
97032         * modules/array-oset-tests (Makefile.am): Likewise.
97033         * modules/avltree-list-tests (Makefile.am): Likewise.
97034         * modules/avltree-oset-tests (Makefile.am): Likewise.
97035         * modules/avltreehash-list-tests (Makefile.am): Likewise.
97036         * modules/carray-list-tests (Makefile.am): Likewise.
97037         * modules/dirname-tests (Makefile.am): Likewise.
97038         * modules/frexp-tests (Makefile.am): Likewise.
97039         * modules/isnanl-tests (Makefile.am): Likewise.
97040         * modules/linked-list-tests (Makefile.am): Likewise.
97041         * modules/linkedhash-list-tests (Makefile.am): Likewise.
97042         * modules/lock-tests (Makefile.am): Likewise.
97043         * modules/rbtree-list-tests (Makefile.am): Likewise.
97044         * modules/rbtree-oset-tests (Makefile.am): Likewise.
97045         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
97046         * modules/tls-tests (Makefile.am): Likewise.
97047         * modules/tsearch-tests (Makefile.am): Likewise.
97048         * modules/xvasprintf-tests (Makefile.am): Likewise.
97050         Fix fpurge for cygwin.
97051         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
97052         value.
97053         * modules/fpurge-tests (Depends-on): Clean up trash.
97055 2007-04-16  Simon Josefsson  <simon@josefsson.org>
97057         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
97059         * m4/autobuild.m4: Re-indent.
97061 2007-04-13  Bruno Haible  <bruno@clisp.org>
97063         * modules/fpurge-tests: New file.
97064         * tests/test-fpurge.c: New file.
97066         * modules/fpurge: New file.
97067         * lib/fpurge.h: New file.
97068         * lib/fpurge.c: New file.
97069         * m4/fpurge.m4: New file.
97071 2007-04-13  Bruno Haible  <bruno@clisp.org>
97073         * modules/fbufmode-tests: New file.
97074         * tests/test-fbufmode.c: New file.
97076         * modules/fbufmode: New file.
97077         * lib/fbufmode.h: New file.
97078         * lib/fbufmode.c: New file.
97079         * m4/fbufmode.m4: New file.
97081 2007-04-13  Bruno Haible  <bruno@clisp.org>
97083         * modules/fwritable-tests: New file.
97084         * tests/test-fwritable.c: New file.
97086         * modules/fwritable: New file.
97087         * lib/fwritable.h: New file.
97088         * lib/fwritable.c: New file.
97089         * m4/fwritable.m4: New file.
97091 2007-04-13  Bruno Haible  <bruno@clisp.org>
97093         * modules/freadable-tests: New file.
97094         * tests/test-freadable.c: New file.
97096         * modules/freadable: New file.
97097         * lib/freadable.h: New file.
97098         * lib/freadable.c: New file.
97099         * m4/freadable.m4: New file.
97101 2007-04-13  Bruno Haible  <bruno@clisp.org>
97103         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
97104         MOSTLYCLEANFILES.
97106 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
97108         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
97109         gzip bootstrap.conf to avoid dragging in i18n machinery.
97110         (gnulib_tool_option): Use it.
97112 2007-04-13  Bruno Haible  <bruno@clisp.org>
97114         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
97115         %F directives.
97116         * tests/test-vasprintf-posix.c (test_function): Likewise.
97117         * tests/test-snprintf-posix.h (test_function): Likewise.
97118         * tests/test-sprintf-posix.h (test_function): Likewise.
97119         * tests/test-fprintf-posix.h (test_function): Likewise.
97120         * tests/test-printf-posix.h (test_function): Likewise.
97121         * tests/test-fprintf-posix.out: Likewise.
97123 2007-04-13  Bruno Haible  <bruno@clisp.org>
97125         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
97126         * modules/tls-tests (configure.ac): Likewise.
97127         Reported by Arto C. Nirkko <anirkko@insel.ch>.
97129 2007-04-13  Bruno Haible  <bruno@clisp.org>
97131         * lib/tls.c (glthread_tls_get): Fix return type.
97132         Patch by Arto C. Nirkko <anirkko@insel.ch>.
97134 2007-04-12  Eric Blake  <ebb9@byu.net>
97136         * modules/gettime (Depends-on): Remove gettime.
97137         Reported by Dmitry V. Levin.
97139 2007-04-12  Bruno Haible  <bruno@clisp.org>
97141         * modules/fflush (Include): Mention <stdio.h>.
97142         * modules/strtoimax (Include): Mention <inttypes.h>.
97143         * modules/strtoumax (Include): Likewise.
97145 2007-04-12  Eric Blake  <ebb9@byu.net>
97147         * .cvsignore: New file.
97148         * .gitignore: Likewise.
97150 2007-04-12  Bruno Haible  <bruno@clisp.org>
97152         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
97153         not before, since $(LDADD) often contains libgnu.a.
97154         * modules/striconv-tests (test_striconv_LDADD): Likewise.
97155         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
97156         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
97157         Needed on Cygwin.
97159 2007-04-12  Eric Blake  <ebb9@byu.net>
97161         Work around glibc's failure to flush stdin on fclose.
97162         * lib/closein.c (close_stdin): Flush stdin before closing.
97164         Work around glibc's failure to reset seekable stdin on exit.
97165         * modules/closein: New module.
97166         * lib/closein.c: New file.
97167         * lib/closein.h: Likewise.
97168         * m4/closein.m4: Likewise.
97169         * MODULES.html.sh (File stream based Input/Output): Document it.
97171 2007-04-12  Simon Josefsson  <simon@josefsson.org>
97173         * gnulib-tool: Rename generated 'autobuild' script to
97174         'do-autobuild' in --create-megatestdir output.
97176         * doc/gnulib.texi (Build robot for gnulib): Fix.
97178 2007-04-12  Simon Josefsson  <simon@josefsson.org>
97180         * modules/sysexits (Depends-on): Add absolute-header.
97182 2007-04-12  Eric Blake  <ebb9@byu.net>
97184         No need to preserve errno on success.
97185         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
97186         Reported by Bruno Haible.
97188 2007-04-12  Simon Josefsson  <simon@josefsson.org>
97190         * MODULES.html.sh (Support for maintaining and releasing
97191         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
97193 2007-04-12  Simon Josefsson  <simon@josefsson.org>
97195         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
97197 2007-04-12  Simon Josefsson  <simon@josefsson.org>
97199         * modules/autobuild: New module.
97201         * m4/autobuild.m4: New file.
97203 2007-04-11  Bruno Haible  <bruno@clisp.org>
97205         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
97206         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
97207         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
97208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
97209         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
97210         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
97211         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
97212         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
97213         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
97214         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
97215         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
97216         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
97217         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
97218         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
97219         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
97220         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
97221         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
97222         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
97223         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
97224         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
97225         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
97226         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
97227         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
97228         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
97229         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
97230         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
97231         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
97232         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
97233         Reported by Eric Blake.
97235 2007-04-11  Bruno Haible  <bruno@clisp.org>
97237         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
97239 2007-04-10  Bruno Haible  <bruno@clisp.org>
97241         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
97242         for NaN and Infinity. Needed on FreeBSD 6.1.
97243         * tests/test-vasnprintf-posix.c (test_function): Undo last change
97244         regarding results for "%010a" of Infinity and NaN.
97245         * tests/test-vasprintf-posix.c (test_function): Likewise.
97246         * tests/test-snprintf-posix.h (test_function): Likewise.
97247         * tests/test-sprintf-posix.h (test_function): Likewise.
97248         * tests/test-fprintf-posix.h (test_function): Likewise.
97249         * tests/test-printf-posix.h (test_function): Likewise.
97250         * tests/test-fprintf-posix.out: Likewise.
97252 2007-04-10  Bruno Haible  <bruno@clisp.org>
97254         * modules/locale-tests: New file.
97255         * tests/test-locale.c: New file.
97257         * modules/locale: New file.
97258         * lib/locale_.h: New file.
97259         * m4/locale_h.m4: New file.
97261 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
97262             Bruno Haible  <bruno@clisp.org>
97264         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
97265         be determined, test for availability of the copysignf, copysign,
97266         copysignl functions.
97267         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
97268         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
97269         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
97271 2007-04-09  Eric Blake  <ebb9@byu.net>
97273         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
97274         * modules/stdio (Makefile.am): Support fflush.
97275         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
97276         * modules/fflush: New file.
97277         * lib/fflush.c: Likewise.
97278         * m4/fflush.m4: Likewise.
97279         * modules/fflush-tests: New test.
97280         * tests/test-fflush.c: Likewise.
97281         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
97283 2007-04-06  Bruno Haible  <bruno@clisp.org>
97285         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
97286         (VASNPRINTF): Use signbit for faster determination whether to print a
97287         minus sign.
97288         * modules/vasnprintf (Files): Remove lib/float+.h.
97289         * modules/fprintf-posix (Depends-on): Add signbit.
97290         * modules/snprintf-posix (Depends-on): Likewise.
97291         * modules/sprintf-posix (Depends-on): Likewise.
97292         * modules/vasnprintf-posix (Depends-on): Likewise.
97293         * modules/vasprintf-posix (Depends-on): Likewise.
97294         * modules/vfprintf-posix (Depends-on): Likewise.
97295         * modules/vsnprintf-posix (Depends-on): Likewise.
97296         * modules/vsprintf-posix (Depends-on): Likewise.
97298 2007-04-06  Bruno Haible  <bruno@clisp.org>
97300         * tests/test-frexp.c (main): Test also the sign bit of zero results.
97301         * tests/test-frexpl.c (main): Likewise.
97302         * tests/test-ldexpl.c (main): Likewise.
97303         * modules/frexp-tests (Depends-on): Add signbit.
97304         * modules/frexpl-tests (Depdends-on): Likewise.
97305         * modules/ldexpl-tests (Depdends-on): Likewise.
97307 2007-04-06  Bruno Haible  <bruno@clisp.org>
97309         * modules/signbit-tests: New file.
97310         * tests/test-signbit.c: New file.
97312         * modules/signbit: New file.
97313         * lib/signbitf.c: New file.
97314         * lib/signbitd.c: New file.
97315         * lib/signbitl.c: New file.
97316         * m4/signbit.m4: New file.
97317         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
97318         (signbit): New macro.
97319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
97320         REPLACE_SIGNBIT.
97321         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
97322         REPLACE_FREXPL into math.h.
97324 2007-04-06  Bruno Haible  <bruno@clisp.org>
97326         * modules/isnanf-nolibm-tests: New file.
97327         * tests/test-isnanf.c: New file.
97329         * modules/isnanf-nolibm: New file.
97330         * lib/isnanf.h: New file.
97331         * lib/isnanf.c: New file.
97332         * lib/isnan.c: Consider the USE_FLOAT macro.
97333         * m4/isnanf.m4: New file.
97335 2007-04-06  Bruno Haible  <bruno@clisp.org>
97337         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
97338         (Link): New section.
97340         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
97342 2007-04-06  Bruno Haible  <bruno@clisp.org>
97344         Assume the 'long double' type.
97345         * m4/longdouble.m4: Remove file.
97346         * config/srclist.txt: Don't mention longdouble.m4.
97347         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
97348         * lib/float+.h: Likewise.
97349         * lib/frexp.c: Likewise.
97350         * lib/printf-args.h: Likewise.
97351         * lib/printf-args.c: Likewise.
97352         * lib/printf-frexp.c: Likewise.
97353         * lib/printf-parse.c: Likewise.
97354         * lib/vasnprintf.c: Likewise.
97355         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
97356         * m4/intl.m4: Likewise.
97357         * m4/isnanl.m4: Likewise.
97358         * m4/printf.m4: Likewise.
97359         * m4/printf-frexpl.m4: Likewise.
97360         * m4/vasnprintf.m4: Likewise.
97361         * modules/allocsa (Files): Remove m4/longdouble.m4.
97362         * modules/gettext (Files): Likewise.
97363         * modules/relocatable-prog-wrapper (Files): Likewise.
97364         * modules/vasnprintf (Files): Likewise.
97365         * modules/isnanl (Files): Likewise.
97366         (Include): Simplify.
97367         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
97368         (Include): Simplify.
97369         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
97370         (Include): Simplify.
97371         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
97372         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
97373         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
97374         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
97375         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
97376         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
97377         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
97378         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
97379         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
97380         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
97381         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
97382         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
97383         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
97384         * tests/test-isnanl.c: Likewise.
97385         * tests/test-snprintf-posix.h: Likewise.
97386         * tests/test-sprintf-posix.h: Likewise.
97387         * tests/test-vasnprintf-posix.c: Likewise.
97388         * tests/test-vasnprintf-posix2.c: Likewise.
97389         * tests/test-vasprintf-posix.c: Likewise.
97391 2007-04-06  Bruno Haible  <bruno@clisp.org>
97393         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
97394         * lib/math_.h [__DECC]: Include the overridden include file through
97395         #include_next, outside the double-inclusion guard.
97396         * lib/stdio_.h [__DECC]: Likewise.
97397         * lib/stdlib_.h [__DECC]: Likewise.
97398         * lib/string_.h [__DECC]: Likewise.
97399         * lib/time_.h [__DECC]: Likewise.
97400         * lib/wchar_.h [__DECC]: Likewise.
97401         * lib/wctype_.h [__DECC]: Likewise.
97402         * lib/inttypes_.h [__DECC]: Likewise.
97403         Reported by Albert Chin <china@thewrittenword.com> in
97404         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
97406 2007-04-04  Eric Blake  <ebb9@byu.net>
97408         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
97409         1.5.x.
97411 2007-04-04  Bruno Haible  <bruno@clisp.org>
97413         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
97414         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
97416 2007-04-04  Bruno Haible  <bruno@clisp.org>
97418         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
97419         results for "%010a" of Infinity and NaN.
97420         * tests/test-vasprintf-posix.c (test_function): Likewise.
97421         * tests/test-snprintf-posix.h (test_function): Likewise.
97422         * tests/test-sprintf-posix.h (test_function): Likewise.
97423         * tests/test-fprintf-posix.h (test_function): Remove these tests.
97424         * tests/test-printf-posix.h (test_function): Likewise.
97425         * tests/test-fprintf-posix.out: Update.
97426         Needed for FreeBSD 6.1.
97428 2007-04-04  Bruno Haible  <bruno@clisp.org>
97430         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
97431         directly used by the gnulib modules nor by gnulib-tool.
97433 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
97435         * DEPENDENCIES: Give overall description of version dependency
97436         desirability.  Use more-typical names for apps.
97437         Add shell, coreutils, diffutils, grep, tar, gzip.
97439 2007-04-04  Simon Josefsson  <simon@josefsson.org>
97441         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
97443 2007-04-04  Karl Berry  <karl@gnu.org>
97445         * MODULES.html.sh (func_module): missing '.
97447 2007-04-03  Bruno Haible  <bruno@clisp.org>
97449         * modules/argmatch-tests (Makefile.am): New variable
97450         test_argmatch_LDADD.
97451         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
97452         * modules/array-list-tests (Makefile.am): New variable
97453         test_array_list_LDADD.
97454         * modules/array-oset-tests (Makefile.am): New variable
97455         test_array_oset_LDADD.
97456         * modules/avltree-list-tests (Makefile.am): New variable
97457         test_avltree_list_LDADD.
97458         * modules/avltree-oset-tests (Makefile.am): New variable
97459         test_avltree_oset_LDADD.
97460         * modules/avltreehash-list-tests (Makefile.am): New variable
97461         test_avltreehash_list_LDADD.
97462         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
97463         test_canonicalize_lgpl_LDADD.
97464         * modules/carray-list-tests (Makefile.am): New variable
97465         test_carray_list_LDADD.
97466         * modules/dirname-tests (Makefile.am): New variable
97467         test_dirname_LDADD.
97468         * modules/linked-list-tests (Makefile.am): New variable
97469         test_linked_list_LDADD.
97470         * modules/linkedhash-list-tests (Makefile.am): New variable
97471         test_linkedhash_list_LDADD.
97472         * modules/rbtree-list-tests (Makefile.am): New variable
97473         test_rbtree_list_LDADD.
97474         * modules/rbtree-oset-tests (Makefile.am): New variable
97475         test_rbtree_oset_LDADD.
97476         * modules/rbtreehash-list-tests (Makefile.am): New variable
97477         test_rbtreehash_list_LDADD.
97478         * modules/xvasprintf-tests (Makefile.am): New variable
97479         test_xvasprintf_LDADD.
97480         Reported by Eric Blake.
97482 2007-04-03  Eric Blake  <ebb9@byu.net>
97484         * DEPENDENCIES: Weaken m4 requirements.
97486 2007-04-03  Bruno Haible  <bruno@clisp.org>
97488         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
97489         * modules/isnanl-tests (configure.ac): Likewise.
97491 2007-04-03  Ben Pfaff  <blp@gnu.org>
97493         * modules/iconv_open: Add $(srcdir)/ to source directory
97494         references in Makefile fragments that call gperf, to fix VPATH
97495         builds.
97497 2007-04-03  Bruno Haible  <bruno@clisp.org>
97499         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
97500         * lib/ldexpl.c: Undo last change.
97502 2007-04-03  Bruno Haible  <bruno@clisp.org>
97504         * modules/printf-frexpl (Depends-on): Undo last change.
97505         (Files): Add m4/ldexpl.m4.
97507 2007-04-03  Bruno Haible  <bruno@clisp.org>
97509         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
97510         * modules/isnanl (Link): New section.
97512         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
97513         * modules/frexp (Link): New section.
97515         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
97516         * modules/frexpl (Link): New section.
97518         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
97519         * modules/ldexpl (Link): New section.
97521 2007-04-03  Bruno Haible  <bruno@clisp.org>
97523         * modules/TEMPLATE-EXTENDED: New file.
97524         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
97526 2007-04-03  Bruno Haible  <bruno@clisp.org>
97528         * DEPENDENCIES: New file.
97529         Suggested by Simon Josefsson.
97531 2007-04-03  Bruno Haible  <bruno@clisp.org>
97533         * doc/gnulib.texi: Escape @.
97535 2007-04-03  James Youngman  <jay@gnu.org>
97536         and Paul Eggert  <eggert@cs.ucla.edu>
97538         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
97539         birthtime on all systems that have birthtime, not just those which
97540         use st_birthtimensec rather than st_birthtim.  Putting zero in
97541         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
97542         that the birth time is not available for files on an NFS mount.
97544 2007-04-03  Simon Josefsson  <simon@josefsson.org>
97546         * modules/memxor: Move back from crypto/, suggested by Bruno.
97547         * modules/crypto/hmac-sha1: Fix memxor dependency.
97549         * modules/crypto/gc: Moved from ../.
97551 2007-04-02  Eric Blake  <ebb9@byu.net>
97553         * lib/ldexpl.c (includes): Avoid libm.
97555         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
97557 2007-04-02  Bruno Haible  <bruno@clisp.org>
97559         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
97560         on IRIX.
97562 2007-04-02  Bruno Haible  <bruno@clisp.org>
97564         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
97565         x86 or x86_64 platforms running MacOS X.
97566         Reported by Ryan Schmidt <@ryandesign.com>.
97568 2007-04-02  Bruno Haible  <bruno@clisp.org>
97570         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
97571         i386.
97573 2007-04-01  Simon Josefsson  <simon@josefsson.org>
97575         * modules/crypto/arcfour: Moved from ../.
97576         * modules/crypto/arcfour-tests: Moved from ../.
97577         * modules/crypto/arctwo: Moved from ../.
97578         * modules/crypto/arctwo-tests: Moved from ../.
97579         * modules/crypto/des: Moved from ../.
97580         * modules/crypto/des-tests: Moved from ../.
97581         * modules/crypto/gc-arcfour: Moved from ../.
97582         * modules/crypto/gc-arcfour-tests: Moved from ../.
97583         * modules/crypto/gc-arctwo: Moved from ../.
97584         * modules/crypto/gc-arctwo-tests: Moved from ../.
97585         * modules/crypto/gc-des: Moved from ../.
97586         * modules/crypto/gc-des-tests: Moved from ../.
97587         * modules/crypto/gc-hmac-md5: Moved from ../.
97588         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
97589         * modules/crypto/gc-hmac-sha1: Moved from ../.
97590         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
97591         * modules/crypto/gc-md2: Moved from ../.
97592         * modules/crypto/gc-md2-tests: Moved from ../.
97593         * modules/crypto/gc-md4: Moved from ../.
97594         * modules/crypto/gc-md4-tests: Moved from ../.
97595         * modules/crypto/gc-md5: Moved from ../.
97596         * modules/crypto/gc-md5-tests: Moved from ../.
97597         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
97598         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
97599         * modules/crypto/gc-random: Moved from ../.
97600         * modules/crypto/gc-rijndael: Moved from ../.
97601         * modules/crypto/gc-rijndael-tests: Moved from ../.
97602         * modules/crypto/gc-sha1: Moved from ../.
97603         * modules/crypto/gc-sha1-tests: Moved from ../.
97604         * modules/crypto/gc-tests: Moved from ../.
97605         * modules/crypto/hmac-md5: Moved from ../.
97606         * modules/crypto/hmac-md5-tests: Moved from ../.
97607         * modules/crypto/hmac-sha1: Moved from ../.
97608         * modules/crypto/hmac-sha1-tests: Moved from ../.
97609         * modules/crypto/md2: Moved from ../.
97610         * modules/crypto/md2-tests: Moved from ../.
97611         * modules/crypto/md4: Moved from ../.
97612         * modules/crypto/md4-tests: Moved from ../.
97613         * modules/crypto/md5: Moved from ../.
97614         * modules/crypto/md5-tests: Moved from ../.
97615         * modules/crypto/memxor: Moved from ../.
97616         * modules/crypto/rijndael: Moved from ../.
97617         * modules/crypto/rijndael-tests: Moved from ../.
97618         * modules/crypto/sha1: Moved from ../.
97620 2007-03-30  James Youngman  <jay@gnu.org>
97622         * tests/test-stat-time.c (prepare_test): use chmod() rather than
97623         rename() to change the ctime of a file (because ctime is unaffected
97624         by rename on jfs2 on AIX 5.1).
97625         (main): Start by doing cleanup, in case a previous run failed leaving
97626         test files behind.
97628 2007-03-31  Bruno Haible  <bruno@clisp.org>
97630         Support old proprietary implementations of iconv.
97631         * modules/iconv_open: New file.
97632         * lib/iconv_.h: New file.
97633         * m4/iconv_h.m4: New file.
97634         * lib/iconv_open.c: New file.
97635         * lib/iconv_open-aix.gperf: New file.
97636         * lib/iconv_open-hpux.gperf: New file.
97637         * lib/iconv_open-irix.gperf: New file.
97638         * lib/iconv_open-osf.gperf: New file.
97639         * m4/iconv_open.m4: New file.
97640         * modules/linebreak (Depends-on): Add iconv_open.
97641         * modules/striconv (Depends-on): Likewise.
97642         * modules/striconveh (Depends-on): Likewise.
97643         * modules/unicodeio (Depends-on): Likewise.
97644         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
97645         (iconv_t)(-1).
97646         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
97647         conversion if cd is (iconv_t)(-1).
97648         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
97649         is not possible.
97651 2007-03-31  Bruno Haible  <bruno@clisp.org>
97653         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
97654         work on Solaris either. Protect also second use of "autodetect_jp".
97656 2007-03-31  Bruno Haible  <bruno@clisp.org>
97658         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
97659         the function is not present.
97661 2007-03-31  Bruno Haible  <bruno@clisp.org>
97663         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
97664         the function is not present.
97666 2007-03-31  Bruno Haible  <bruno@clisp.org>
97668         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
97669         a bug in HP-UX iconv_open().
97671 2007-03-31  Bruno Haible  <bruno@clisp.org>
97673         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
97674         (Mathematics <math.h>): New section, add fpieee.
97675         (Input/output <stdio.h>): Add fseterr.
97676         (Mathematics <math.h>): New section, add printf-frexp.
97677         (Container data structures): Add sublist.
97678         (Core language properties): Add fpucw, inline.
97679         (Functions for greatest-width integer types <inttypes.h>): Add
97680         imaxabs, imaxdiv, inttypes.
97681         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
97682         isnanl-nolibm, ldexp.
97683         (Mathematics <math.h>): New section, add printf-frexpl.
97684         (Support for systems lacking POSIX:2001): Add fprintf-posix,
97685         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
97686         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
97687         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
97688         (Unicode string functions): Add unistr/u*-mbtoucr.
97689         (Java): Add javacomp-script, javaexec-script.
97690         (C#): Add csharpcomp-script, csharpexec-script.
97691         (Support for building libraries and executables): Add havelib,
97692         relocatable-*.
97693         (Support for maintaining and releasing projects): Renamed from
97694         'Support for maintaining and release projects'. Add announce-gen.
97696 2007-03-31  Bruno Haible  <bruno@clisp.org>
97698         * README: Talk primarily about git.
97699         (git and CVS): Renamed from CVS.
97700         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
97701         gnulib is available through git.
97702         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
97704 2007-03-30  Bruno Haible  <bruno@clisp.org>
97706         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
97707         * lib/poll_.h: Likewise.
97708         * lib/stat_.h: Likewise.
97709         * lib/sys_time_.h: Likewise.
97710         * lib/sysexit_.h: Likewise.
97711         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
97712         * lib/stdbool_.h: Likewise.
97713         * lib/byteswap_.h: Add double-inclusion guard.
97715 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
97717         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
97719 2007-03-30  Karl Berry  <karl@gnu.org>
97721         * config/srclist-update: double space after USA in the license
97722         substitution, since that's how it's usually (?) written.
97724 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
97726         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
97727         reported by Bruno Haible.
97729 2007-03-29  Bruno Haible  <bruno@clisp.org>
97731         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
97732         a bug in AIX iconv().
97734 2007-03-29  Bruno Haible  <bruno@clisp.org>
97736         * modules/ldexpl-tests: New file.
97737         * tests/test-ldexpl.c: New file.
97739 2007-03-29  Bruno Haible  <bruno@clisp.org>
97741         * lib/ldexpl.c: Include fpucw.h.
97742         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
97743         multiplication.
97744         * modules/ldexpl (Depends-on): Add fpucw.
97746 2007-03-29  Bruno Haible  <bruno@clisp.org>
97748         * modules/ldexpl: New file.
97749         * m4/ldexpl.m4: New file.
97750         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
97751         set.
97752         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
97753         REPLACE_LDEXPL.
97754         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
97755         REPLACE_LDEXPL.
97756         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
97757         gl_FUNC_LDEXPL_WORKS.
97758         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
97759         * modules/mathl (Files): Remove lib/ldexpl.c.
97760         (Depends-on): Add ldexpl.
97762 2007-03-29  Bruno Haible  <bruno@clisp.org>
97764         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
97766 2007-03-29  Bruno Haible  <bruno@clisp.org>
97768         * tests/test-striconveh.c (main): Don't assume that a direct conversion
97769         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
97770         and possibly also HP-UX.
97771         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
97772         work on AIX, IRIX, HP-UX, OSF/1.
97773         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
97774         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
97775         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
97776         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
97777         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
97778         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
97780 2007-03-29  Bruno Haible  <bruno@clisp.org>
97782         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
97784 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
97786         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
97787         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
97789 2007-03-29  Eric Blake  <ebb9@byu.net>
97791         * lib/acl-internal.h: Remove redundant include.
97792         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
97793         Cygwin when a file is locked.
97795 2007-03-29  Bruno Haible  <bruno@clisp.org>
97797         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
97798         file.
97799         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
97801 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
97803         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
97804         try to remove a parent directory if the child couldn't be removed
97805         (except for the first rmdir, which could fail because the child
97806         doesn't exist).  Problem reported by Jeff Blaine in
97807         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
97809 2007-03-28  Bruno Haible  <bruno@clisp.org>
97811         * lib/striconveh.c (utf8conv_carefully): New function.
97812         (mem_cd_iconveh_internal): Invoke it.
97814 2007-03-28  Bruno Haible  <bruno@clisp.org>
97816         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
97817         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
97818         input.
97819         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
97820         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
97821         unistr/u8-uctomb.
97823 2007-03-28  Bruno Haible  <bruno@clisp.org>
97825         * modules/unistr/u8-mbtoucr: New file.
97826         * lib/unistr/u8-mbtoucr.c: New file.
97827         * modules/unistr/u16-mbtoucr: New file.
97828         * lib/unistr/u16-mbtoucr.c: New file.
97829         * modules/unistr/u16-mbtoucr: New file.
97830         * lib/unistr/u16-mbtoucr.c: New file.
97831         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
97833 2007-03-27  Simon Josefsson  <simon@josefsson.org>
97834             Bruno Haible  <bruno@clisp.org>
97836         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
97837         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
97838         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
97840         * m4/stdio_h.m4: Add stubs for vasprintf too.
97842         * modules/stdio: Support vasprintf in sed command.
97844         * modules/vasprintf: Depend on stdio for prototypes.  Remove
97845         vasprintf.h.  Add stdio module indicator.
97847         * lib/stdio_.h: Declare asprintf and vasprintf, based on
97848         vasprintf.h.
97850         * lib/vasprintf.h: File removed.
97852         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
97853         * lib/vasprintf.c: Ditto.
97854         * lib/xvasprintf.c: Ditto.
97855         * tests/test-vasprintf-posix.c: Ditto.
97856         * tests/test-vasprintf.c: Ditto.
97858 2007-03-27  Bruno Haible  <bruno@clisp.org>
97860         Make vasnprintf multithread-safe.
97861         * lib/vasnprintf.c (decimal_point_char): New function.
97862         (VASNPRINTF): Use it.
97863         Suggested by Simon Josefsson.
97865 2007-03-27  Eric Blake  <ebb9@byu.net>
97867         Support sub-second birthtime on cygwin.
97868         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
97869         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
97870         (get_stat_birthtime): Also work with st_birthtim.
97872 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
97874         * lib/stat-time.h (USE_BIRTHTIME): Remove.
97875         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
97876         (get_stat_birthtime_ns): Do not try to use "spare" fields.
97877         (get_stat_birthtime_ns): Simplify compile-time tests.
97878         (get_stat_birthtime): Change the API to look like
97879         get_stat_mtime etc., except return a negative tv_nsec on error.
97880         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
97881         Don't check for "spare" fields.
97882         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
97883         or for struct stat.st_birthtime, as these tests aren't used.
97884         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
97886 2007-03-27  Bruno Haible  <bruno@clisp.org>
97888         * lib/stat-time.h: Include <sys/stat.h>.
97890 2007-03-27  James Youngman  <jay@gnu.org>
97892         * lib/stat-time.h (get_stat_birthtime): New function for
97893           retrieving st_birthtime as provided by UFS2 (hence *BSD).
97894         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
97895           and its variants.
97896         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
97897         * modules/stat-time-test: New file.
97898         * tests/test-stat-time.c: New test, devised by Bruno Haible.
97900 2007-03-26  Bruno Haible  <bruno@clisp.org>
97902         Better support of signalling NaNs.
97903         * lib/atanl.c: Include isnanl.h.
97904         (atanl): Perform test for NaN at the beginning of the function and
97905         through a call to isnanl.
97906         * lib/cosl.c: Include isnanl.h.
97907         (cosl): Perform test for NaN at the beginning of the function and
97908         through a call to isnanl.
97909         * lib/ldexpl.c: Include isnanl.h.
97910         (ldexpl): Perform test for NaN through a call to isnanl.
97911         * lib/logl.c: Include isnanl.h.
97912         (logl): Perform test for NaN at the beginning of the function and
97913         through a call to isnanl.
97914         * lib/sinl.c: Include isnanl.h.
97915         (sinl): Perform test for NaN at the beginning of the function and
97916         through a call to isnanl.
97917         * lib/sqrtl.c: Include isnanl.h.
97918         (sqrtl): Perform test for NaN at the beginning of the function and
97919         through a call to isnanl.
97920         * lib/tanl.c: Include isnanl.h.
97921         (tanl): Perform test for NaN at the beginning of the function and
97922         through a call to isnanl.
97923         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
97924         * modules/mathl (Depends-on): Add isnanl.
97926 2007-03-26  Eric Blake  <ebb9@byu.net>
97928         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
97929         regression in logic sense of previous patch.
97931 2007-03-26  Bruno Haible  <bruno@clisp.org>
97933         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
97934         unportable shell command "if ! ...".
97935         Reported by Ralf Wildenhues.
97937 2007-03-25  Bruno Haible  <bruno@clisp.org>
97939         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
97940         <sysexits.h> file, and only add EX_CONFIG.
97941         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
97942         absolute file name and whether it is sufficient. Substitute also
97943         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
97944         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
97945         ABSOLUTE_SYSEXITS_H into sysexits.h.
97947 2007-03-25  Bruno Haible  <bruno@clisp.org>
97949         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
97950         hints is NULL.
97952 2007-03-25  Bruno Haible  <bruno@clisp.org>
97954         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
97955         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
97957 2007-03-25  Bruno Haible  <bruno@clisp.org>
97959         * lib/vasnprintf.c: Include langinfo.h.
97960         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
97961         multithread-safe.
97962         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
97963         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
97964         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
97965         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
97966         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
97967         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
97968         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
97969         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
97970         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
97971         Reported by Simon Josefsson.
97973 2007-03-25  Bruno Haible  <bruno@clisp.org>
97975         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
97976         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
97977         * modules/vasnprintf (Depends-on): Add stdint.
97979 2007-03-25  Bruno Haible  <bruno@clisp.org>
97981         * modules/fpieee: New file.
97982         * m4/fpieee.m4: New file.
97983         * modules/isnan-nolibm (Depends-on): Add fpieee.
97984         * modules/isnanl-nolibm (Depends-on): Add fpieee.
97985         * modules/isnanl (Depends-on): Add fpieee.
97987 2007-03-25  Bruno Haible  <bruno@clisp.org>
97989         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
97991 2007-03-25  Bruno Haible  <bruno@clisp.org>
97993         Avoid test failures on IRIX 6.5.
97994         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
97995         (main): Use it.
97996         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
97997         macros.
97998         (main): Use them.
98000 2007-03-25  Bruno Haible  <bruno@clisp.org>
98002         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
98003         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
98004         exists but doesn't work.
98005         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
98006         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
98007         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
98008         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
98009         math.h.
98011 2007-03-25  Bruno Haible  <bruno@clisp.org>
98013         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
98014         returns inf. Needed on IRIX 6.5.
98016 2007-03-25  Bruno Haible  <bruno@clisp.org>
98018         * tests/test-frexpl.c: Include isnanl-nolibm.h.
98019         (main): Use isnanl instead of x != x idiom.
98020         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
98022         * tests/test-frexp.c: Include isnan.h.
98023         (main): Use isnan instead of x != x idiom.
98024         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
98026 2007-03-25  Bruno Haible  <bruno@clisp.org>
98028         * tests/test-frexp.c (NaN): New function/macro.
98029         (main): Use it instead of 0.0 / 0.0.
98030         * tests/test-isnan.c (NaN): New function/macro.
98031         (main): Use it instead of 0.0 / 0.0.
98032         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
98033         (test_function): Use it instead of 0.0 / 0.0.
98034         * tests/test-vasprintf-posix.c (NaN): New function/macro.
98035         (test_function): Use it instead of 0.0 / 0.0.
98036         * tests/test-snprintf-posix.h (NaN): New function/macro.
98037         (test_function): Use it instead of 0.0 / 0.0.
98038         * tests/test-sprintf-posix.h (NaN): New function/macro.
98039         (test_function): Use it instead of 0.0 / 0.0.
98040         * tests/test-fprintf-posix.h (NaN): New function/macro.
98041         (test_function): Use it instead of 0.0 / 0.0.
98042         * tests/test-printf-posix.h (NaN): New function/macro.
98043         (test_function): Use it instead of 0.0 / 0.0.
98045         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
98047 2007-03-25  Bruno Haible  <bruno@clisp.org>
98049         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
98051 2007-03-25  Bruno Haible  <bruno@clisp.org>
98053         * lib/regexec.c (merge_state_with_log): Make static.
98055 2007-03-25  Bruno Haible  <bruno@clisp.org>
98057         * lib/trigl.c (kernel_rem_pio2): Make static.
98059 2007-03-25  Bruno Haible  <bruno@clisp.org>
98061         * lib/sincosl.c (sincosl_table): Make static.
98063 2007-03-25  Bruno Haible  <bruno@clisp.org>
98065         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
98066         if the compiler does not support C99.
98068 2007-03-25  Bruno Haible  <bruno@clisp.org>
98070         * modules/time (Makefile.am): Ensure all rule action lines start with a
98071         tab.
98073 2007-03-24  Bruno Haible  <bruno@clisp.org>
98075         * modules/tsearch-tests: New file.
98076         * tests/test-tsearch.sh: New file.
98077         * tests/test-tsearch.c: New file, mostly copied from glibc.
98079         * modules/search-tests: New file.
98080         * tests/test-search.c: New file.
98082         * modules/search: New file.
98083         * lib/search_.h: New file, incorporating lib/tsearch.h.
98084         * m4/search_h.m4: New file.
98085         * lib/tsearch.h: Remove file.
98086         * lib/tsearch.c: Include search.h instead of tsearch.h.
98087         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
98088         HAVE_TSEARCH.
98089         * modules/tsearch (Files): Remove lib/tsearch.h.
98090         (Depends-on): Add search.
98091         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
98092         (Include): Change tsearch.h into search.h.
98094 2007-03-24  Bruno Haible  <bruno@clisp.org>
98096         * modules/fpucw: New file.
98097         * lib/fpucw.h: New file.
98098         * lib/frexp.c: Include fpucw.h.
98099         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
98100         (FUNC): Use them.
98101         * lib/printf-frexp.c: Include fpucw.h.
98102         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
98103         (FUNC): Use them.
98104         * lib/vasnprintf.c: Include fpucw.h.
98105         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
98106         'long double' calculations.
98107         * tests/test-frexpl.c: Include fpucw.h.
98108         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
98109         * tests/test-printf-frexpl.c: Include fpucw.h.
98110         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
98111         * modules/frexpl (Depends-on): Add fpucw.
98112         * modules/printf-frexpl (Depends-on): Likewise.
98113         * modules/fprintf-posix (Depends-on): Likewise.
98114         * modules/snprintf-posix (Depends-on): Likewise.
98115         * modules/sprintf-posix (Depends-on): Likewise.
98116         * modules/vasnprintf-posix (Depends-on): Likewise.
98117         * modules/vasprintf-posix (Depends-on): Likewise.
98118         * modules/vfprintf-posix (Depends-on): Likewise.
98119         * modules/vsnprintf-posix (Depends-on): Likewise.
98120         * modules/vsprintf-posix (Depends-on): Likewise.
98121         * modules/frexpl-tests (Depends-on): Likewise.
98122         * modules/printf-frexpl-tests (Depends-on): Likewise.
98124 2007-03-24  Bruno Haible  <bruno@clisp.org>
98126         * lib/float+.h: New file.
98127         * lib/isnan.c: Include float+.h.
98128         (SIZE): New macro.
98129         (FUNC): Compare only SIZE bytes of the value.
98130         * lib/vasnprintf.c: Include float+.h.
98131         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
98132         SIZEOF_LDBL or SIZEOF_DBL bytes.
98133         * modules/isnan-nolibm (Files): Add lib/float+.h.
98134         * modules/isnanl-nolibm (Files): Add lib/float+.h.
98135         * modules/isnanl (Files): Add lib/float+.h.
98136         * modules/vasnprintf (Files): Add lib/float+.h.
98138 2007-03-24  Bruno Haible  <bruno@clisp.org>
98140         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
98141         include isnanl-nolibm.h.
98143 2007-03-24  Bruno Haible  <bruno@clisp.org>
98145         * tests/test-read-file.c (main): Don't produce spurious output for
98146         expected situations. Make the test fail if it encountered unexpected
98147         results.
98149 2007-03-24  Bruno Haible  <bruno@clisp.org>
98151         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
98152         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
98154 2007-03-24  Bruno Haible  <bruno@clisp.org>
98156         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
98158 2007-03-24  Bruno Haible  <bruno@clisp.org>
98160         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
98161         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
98163         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
98164         * modules/utf8-ucs4: Turn into a symbolic link to module
98165         unistr/u8-mbtouc.
98167         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
98168         utf8-ucs4-unsafe.
98169         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
98170         unistr/u8-mbtouc-unsafe.
98172         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
98173         * modules/utf16-ucs4: Turn into a symbolic link to module
98174         unistr/u16-mbtouc.
98176         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
98177         utf16-ucs4-unsafe.
98178         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
98179         unistr/u16-mbtouc-unsafe.
98181         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
98182         * modules/ucs4-utf8: Turn into a symbolic link to module
98183         unistr/u8-ubtomb.
98185         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
98186         * modules/ucs4-utf16: Turn into a symbolic link to module
98187         unistr/u16-ubtomb.
98189 2007-03-24  Bruno Haible  <bruno@clisp.org>
98191         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
98192         Enable the function only if HAVE_INLINE.
98193         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
98194         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
98195         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
98196         Enable the function only if HAVE_INLINE.
98197         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
98198         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
98199         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
98200         Enable the function only if HAVE_INLINE.
98201         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
98202         Enable the function only if HAVE_INLINE.
98203         * modules/utf8-ucs4: Update.
98204         * modules/utf8-ucs4-unsafe: Update.
98205         * modules/utf16-ucs4: Update.
98206         * modules/utf16-ucs4-unsafe: Update.
98207         * modules/ucs4-utf8: Update.
98208         * modules/ucs4-utf16: Update.
98210 2007-03-24  Bruno Haible  <bruno@clisp.org>
98212         * lib/utf8-ucs4.h: Remove file.
98213         * lib/utf8-ucs4-unsafe.h: Remove file.
98214         * lib/utf16-ucs4.h: Remove file.
98215         * lib/utf16-ucs4-unsafe.h: Remove file.
98216         * lib/ucs4-utf8.h: Remove file.
98217         * lib/ucs4-utf16.h: Remove file.
98218         * lib/unistr.h: Include their previous contents.
98219         * m4/utf-ucs4.m4: Remove file.
98220         * m4/ucs4-utf.m4: Remove file.
98221         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
98222         (Depends-on): Add unistr/base.
98223         (configure.ac): Remove gl_UTF_UCS4.
98224         (Makefile.am): Update.
98225         (Include): Change to unistr.h.
98226         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
98227         (Depends-on): Add unistr/base.
98228         (configure.ac): Remove gl_UTF_UCS4.
98229         (Makefile.am): Update.
98230         (Include): Change to unistr.h.
98231         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
98232         (Depends-on): Add unistr/base.
98233         (configure.ac): Remove gl_UTF_UCS4.
98234         (Makefile.am): Update.
98235         (Include): Change to unistr.h.
98236         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
98237         (Depends-on): Add unistr/base.
98238         (configure.ac): Remove gl_UTF_UCS4.
98239         (Makefile.am): Update.
98240         (Include): Change to unistr.h.
98241         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
98242         (Depends-on): Add unistr/base.
98243         (configure.ac): Remove gl_UCS4_UTF.
98244         (Makefile.am): Update.
98245         (Include): Change to unistr.h.
98246         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
98247         (Depends-on): Add unistr/base.
98248         (configure.ac): Remove gl_UCS4_UTF.
98249         (Makefile.am): Update.
98250         (Include): Change to unistr.h.
98251         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
98252         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
98253         utf8-ucs4-unsafe.h.
98254         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
98255         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
98256         utf16-ucs4-unsafe.h.
98257         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
98258         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
98259         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
98260         * lib/unistr/u8-strchr.c: Likewise.
98261         * lib/unistr/u8-strrchr.c: Likewise.
98262         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
98263         * lib/unistr/u16-strchr.c: Likewise.
98264         * lib/unistr/u16-strrchr.c: Likewise.
98265         * lib/striconveh.c: Update.
98266         * lib/linebreak.c: Update.
98268 2007-03-24  Bruno Haible  <bruno@clisp.org>
98270         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
98271         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
98273 2007-03-22  Bruno Haible  <bruno@clisp.org>
98275         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
98277 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
98279         * MODULES.html.sh (File system functions): New module write-any-file.
98280         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
98281         * m4/write-any-file.m4: New files.
98283 2007-03-23  Eric Blake  <ebb9@byu.net>
98285         * gnulib-tool: Rearrange space-tab sequences, since some editors
98286         like to eat them.
98288 2007-03-23  Eric Blake  <ebb9@byu.net>
98290         * lib/version-etc.c (version_etc_va): Update license wording to
98291         be more concise.  Recommended by Richard Stallman.
98293 2007-03-22  Bruno Haible  <bruno@clisp.org>
98295         * lib/poll.c (MSG_PEEK): New fallback definition.
98297 2007-03-22  Bruno Haible  <bruno@clisp.org>
98299         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
98300         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
98301         (main): Update.
98302         Fixes a compilation error on BeOS.
98304 2007-03-22  Bruno Haible  <bruno@clisp.org>
98306         * modules/frexpl-tests: New file.
98307         * tests/test-frexpl.c: New file.
98309         * modules/frexpl: New file.
98310         * m4/frexpl.m4: New file.
98311         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
98312         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
98313         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
98314         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
98315         (Depends-on): Add frexpl. Remove isnanl-nolibm.
98316         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
98318 2007-03-22  Bruno Haible  <bruno@clisp.org>
98320         * lib/frexpl.c: Share code with lib/frexp.c.
98321         * modules/mathl (Files): Add lib/frexp.c.
98322         (Depends-on): Add isnanl-nolibm.
98324 2007-03-22  Bruno Haible  <bruno@clisp.org>
98326         * modules/printf-frexp (Files): Add m4/frexp.m4.
98327         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
98328         only if the found frexp function actually works.
98330 2007-03-22  Bruno Haible  <bruno@clisp.org>
98332         * lib/frexp.c: Remove older implementation that uses divisions.
98334 2007-03-21  Bruno Haible  <bruno@clisp.org>
98336         * modules/frexp-tests: New file.
98337         * tests/test-frexp.c: New file.
98339         * modules/frexp: New file.
98340         * lib/frexp.c: New file.
98341         * m4/frexp.m4: New file.
98342         * lib/math_.h (frexp): New declaration.
98343         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
98344         REPLACE_FREXP.
98345         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
98347 2007-03-21  Bruno Haible  <bruno@clisp.org>
98349         * modules/isnanl-tests: New file.
98350         * tests/test-isnanl.c: New file.
98352         * modules/isnanl: New file.
98353         * lib/isnanl.h: New file.
98354         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
98355         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
98356         gl_FUNC_ISNANL_WORKS.
98357         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
98358         New macros.
98360 2007-03-21  Bruno Haible  <bruno@clisp.org>
98362         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
98363         lib/isnanl.h.
98364         (Include): Update.
98365         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
98366         * lib/vasnprintf.c: Update.
98367         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
98368         tests/test-isnanl.h, remove tests/test-isnanl.c.
98369         (Makefile.am): Update.
98370         * tests/test-isnanl-nolibm.c: New file.
98371         * tests/test-isnanl.h: New file.
98372         * tests/test-isnanl.c: Remove file.
98374 2007-03-21  Jim Meyering  <jim@meyering.net>
98376         When trying to open ".", treat ESTALE like EACCES.
98377         * lib/savewd.c (savewd_save): Resort to forking not just upon
98378         failure with EACCES, but also when errno is ESTALE.
98380 2007-03-20  Bruno Haible  <bruno@clisp.org>
98382         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
98383         Needed on AIX 5.1. Reported by Matthew Woehlke.
98385 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
98387         Suggestions by Bruno Haible:
98388         * lib/acl-internal.h: Include "gettext.h" rather than rolling
98389         our own.
98390         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
98391         * modules/acl (Depends-on): Add gettext.
98393 2007-03-19  Bruno Haible  <bruno@clisp.org>
98395         * modules/iconvme: Remove file.
98396         * lib/iconvme.h: Remove file.
98397         * lib/iconvme.c: Remove file.
98398         * m4/iconvme.m4: Remove file.
98400 2007-03-19  Bruno Haible  <bruno@clisp.org>
98402         * doc/relocatable-maint.texi: Break long shell script line.
98403         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
98405 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
98407         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
98408         handle file_has_acl.
98409         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
98410         * lib/acl.c: Move header inclusions and related macro defns into
98411         lib/acl-internal.h.
98412         (S_ISLNK): Remove defn, since that's now done for us.
98413         (file_has_acl): Move to lib/file-has-acl.c.
98414         Call acl_trivial if available.  This is the crucial part of the fix.
98415         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
98416         shared within the library.  Rewrite a bit, partly to make it compatible
98417         with the GNU coding style.
98418         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
98419         Remove unnecessary double-quotes.
98420         Don't test for acl_to_text; the build will catch that.
98421         Replace acl_entries if it doesn't exist and it is needed.
98422         Check for -lsec and acl_trivial (as used on Solaris 10).
98423         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
98424         lib/file-has-acl.c.
98425         (Depends-on): Add sys_stat, for S_ISLNK.
98427 2007-03-19  Ben Pfaff  <blp@gnu.org>
98429         * doc/gnulib.texi: Fix typos.
98430         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
98432 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
98434         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
98435         If size is zero here, buf must be zero.
98437 2007-03-19  Simon Josefsson  <simon@josefsson.org>
98439         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
98440         <bruno@clisp.org>.
98442 2007-03-18  Bruno Haible  <bruno@clisp.org>
98444         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
98445         Suggested by Eric Blake.
98447 2007-03-18  Ben Pfaff  <blp@gnu.org>
98449         * doc/relocatable.texi: Recommend using as prefix a directory
98450         that does not exist and will never be created.  Based on
98451         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
98452         and others.
98454 2007-03-17  Bruno Haible  <bruno@clisp.org>
98456         * lib/fchownat.c: Include lchown.h.
98458 2007-03-17  Bruno Haible  <bruno@clisp.org>
98460         Fix endless loop when the given allocated size was > INT_MAX.
98461         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
98462         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
98463         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
98464         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
98465         * lib/sprintf.c (sprintf): Likewise.
98467 2007-03-17  Bruno Haible  <bruno@clisp.org>
98469         * tests/test-argp-2.sh (func_compare): Output a context diff.
98471 2007-03-17  Bruno Haible  <bruno@clisp.org>
98473         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
98474         locale's decimal-point character.
98476 2007-03-17  Bruno Haible  <bruno@clisp.org>
98478         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
98479         before comparing it. Needed because on some platforms (e.g. x86) a
98480         'long double' occupies less bytes than sizeof (long double).
98482 2007-03-17  Bruno Haible  <bruno@clisp.org>
98484         * tests/test-crc.c (main): Make printf statements 64-bit clean.
98485         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
98486         * tests/test-getaddrinfo.c (simple): Likewise.
98487         * tests/test-read-file.c (main): Likewise.
98489 2007-03-17  Bruno Haible  <bruno@clisp.org>
98491         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
98493 2007-03-17  Bruno Haible  <bruno@clisp.org>
98495         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
98496         unused variable.
98498 2007-03-17  Bruno Haible  <bruno@clisp.org>
98500         * tests/test-c-strcasecmp.c: Include c-strcase.h.
98501         * tests/test-c-strncasecmp.c: Likewise.
98503 2007-03-17  Bruno Haible  <bruno@clisp.org>
98505         * modules/stdlib (Depends-on): Add unistd.
98506         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
98507         Needed for MacOS X 10.3.
98509 2007-03-17  Bruno Haible  <bruno@clisp.org>
98511         * lib/unistr/u-strdup.h: Include <stdlib.h>.
98513 2007-03-17  Bruno Haible  <bruno@clisp.org>
98515         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
98517 2007-03-17  Bruno Haible  <bruno@clisp.org>
98519         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
98520         to reflect files copied from gnulib (with or without modifications).
98521         Suggested by Jim Meyering.
98523 2007-03-17  Eric Blake  <ebb9@byu.net>
98525         * NEWS: Document stdlib change from 2007-02-18.
98527 2007-03-17  Jim Meyering  <jim@meyering.net>
98529         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
98530         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
98531         someone uses a name containing shell meta-characters.
98532         Reported by Alfred M. Szmidt.
98534         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
98536 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
98538         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
98539         and copy gettext configuration files only if configure.ac contains
98540         a use of AM_GNU_GETTEXT_VERSION.
98542 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
98544         * build-aux/bootstrap (gnulib_name): New variable.
98545         (gnulib_tool_options): Use it.
98547 2007-03-13  Simon Josefsson  <simon@josefsson.org>
98549         * tests/test-des.c: Use new namespace.
98551 2007-03-15  Bruno Haible  <bruno@clisp.org>
98553         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
98554         Reported by James Youngman <jay@gnu.org>.
98556 2007-03-15  Bruno Haible  <bruno@clisp.org>
98558         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
98559         declared prototype. Needed with cc on OSF/1 5.1.
98561 2007-03-15  Bruno Haible  <bruno@clisp.org>
98563         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
98564         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
98565         (struct gl_list_implementation): Add dispose_fn argument to the
98566         'create_empty', 'create' methods.
98567         (struct gl_list_impl_base): Add field 'dispose_fn'.
98568         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
98569         argument.
98570         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
98571         dispose_fn argument.
98572         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
98573         dispose_fn on the dropped values.
98574         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
98575         dispose_fn argument.
98576         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
98577         dropped values.
98578         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
98579         (gl_tree_remove_node): Call dispose_fn on the dropped value.
98580         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
98581         (gl_tree_remove_node): Call dispose_fn on the dropped value.
98582         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
98583         argument.
98584         (gl_tree_list_free): Call dispose_fn on the dropped values.
98585         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
98586         the dropped values.
98587         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
98588         Add dispose_fn argument.
98589         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
98590         Call dispose_fn on the dropped values.
98591         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
98592         Add dispose_fn argument.
98593         (gl_sublist_create): Initialize the 'dispose_fn' field.
98594         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
98595         * tests/test-array_list.c (main): Update.
98596         * tests/test-carray_list.c (main): Update.
98597         * tests/test-avltree_list.c (main): Update.
98598         * tests/test-rbtree_list.c (main): Update.
98599         * tests/test-avltreehash_list.c (main): Update.
98600         * tests/test-rbtreehash_list.c (main): Update.
98601         * tests/test-linked_list.c (main): Update.
98602         * tests/test-linkedhash_list.c (main): Update.
98603         * tests/test-array_oset.c (main): Update.
98605 2007-03-15  Bruno Haible  <bruno@clisp.org>
98607         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
98608         (gl_oset_create_empty): Add dispose_fn argument.
98609         (struct gl_oset_implementation): Add dispose_fn argument to
98610         'create_empty' method.
98611         (struct gl_oset_impl_base): Add dispose_fn field.
98612         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
98613         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
98614         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
98615         values.
98616         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
98617         (gl_tree_oset_free): Call dispose_fn on the dropped values.
98618         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
98619         dropped value.
98620         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
98621         dropped value.
98622         * tests/test-array_oset.c (main): Update.
98623         * tests/test-avltree_oset.c (main): Update.
98624         * tests/test-rbtree_oset.c (main): Update.
98625         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
98627 2007-03-13  Bruno Haible  <bruno@clisp.org>
98629         * tests/test-stdbool.c (i): Update after last patch.
98631 2007-03-12  Bruno Haible  <bruno@clisp.org>
98633         * lib/quotearg.c: Include <wctype.h> early, before the definition of
98634         the iswprint macro. Needed on Solaris 2.5.1.
98636 2007-03-12  Bruno Haible  <bruno@clisp.org>
98638         * tests/test-printf-frexp.c (main): Declare x as volatile.
98640 2007-03-12  Simon Josefsson  <simon@josefsson.org>
98642         * doc/gnulib.texi (Build robot for gnulib): New section.
98644 2007-03-12  Jim Meyering  <jim@meyering.net>
98646         * build-aux/bootstrap: New file.
98647         * build-aux/bootstrap.conf: New file, from coreutils.
98649 2007-03-11  Bruno Haible  <bruno@clisp.org>
98651         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
98653 2007-03-12  Simon Josefsson  <simon@josefsson.org>
98655         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
98656         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
98657         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
98659 2007-03-11  Bruno Haible  <bruno@clisp.org>
98661         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
98662         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
98664 2007-03-11  Bruno Haible  <bruno@clisp.org>
98666         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
98667         formula. Needed for SunPRO C 5.0.
98669 2007-03-11  Bruno Haible  <bruno@clisp.org>
98671         * modules/long-options (Depends-on): Add getopt.
98673 2007-03-11  Bruno Haible  <bruno@clisp.org>
98675         * modules/modechange (Depends-on): Add stdbool.
98677 2007-03-11  Bruno Haible  <bruno@clisp.org>
98679         * modules/i-ring (Depends-on): Add stdbool.
98681 2007-03-11  Bruno Haible  <bruno@clisp.org>
98683         * modules/gc-des (Depends-on): Add stdbool.
98685 2007-03-11  Bruno Haible  <bruno@clisp.org>
98687         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
98689 2007-03-11  Bruno Haible  <bruno@clisp.org>
98691         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
98693 2007-03-11  Bruno Haible  <bruno@clisp.org>
98695         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
98697 2007-03-11  Bruno Haible  <bruno@clisp.org>
98699         * lib/vasnprintf.c (sprintf): Undefine.
98701 2007-03-11  Bruno Haible  <bruno@clisp.org>
98703         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
98704         initializers in SunPRO C and Compaq C compilers.
98706 2007-03-11  Bruno Haible  <bruno@clisp.org>
98708         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
98709         decrementing code ANSI C compliant.
98711 2007-03-11  Bruno Haible  <bruno@clisp.org>
98713         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
98714         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
98716 2007-03-11  Bruno Haible  <bruno@clisp.org>
98718         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
98719         <stdbool.h> substitute doesn't pass.
98721 2007-03-11  Bruno Haible  <bruno@clisp.org>
98723         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
98725 2007-03-11  Bruno Haible  <bruno@clisp.org>
98727         * gnulib-tool (func_create_megatestdir): Create also an autobuild
98728         script, for submission to autobuild.josefsson.org.
98730 2007-03-10  Bruno Haible  <bruno@clisp.org>
98732         * modules/canonicalize-lgpl-tests: New file.
98733         * tests/test-canonicalize-lgpl.sh: New file.
98734         * tests/test-canonicalize-lgpl.c: New file.
98736         * modules/c-strcase-tests: New file.
98737         * tests/test-c-strcase.sh: New file.
98738         * tests/test-c-strcasecmp.c: New file.
98739         * tests/test-c-strncasecmp.c: New file.
98741         * modules/atexit-tests: New file.
98742         * tests/test-atexit.sh: New file.
98743         * tests/test-atexit.c: New file.
98745 2007-03-10  Bruno Haible  <bruno@clisp.org>
98747         * tests/test-binary-io.sh: Use temporary filenames that are not so
98748         likely to clash with those of other tests (in a parallel make).
98749         * tests/test-binary-io.c: Likewise.
98751 2007-03-10  Bruno Haible  <bruno@clisp.org>
98753         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
98754         fallback; use #error instead.
98755         Suggested by Simon Josefsson.
98757 2007-03-10  Bruno Haible  <bruno@clisp.org>
98759         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
98760         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
98761         first and the last.
98763 2007-03-10  Bruno Haible  <bruno@clisp.org>
98765         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
98767 2007-03-10  Bruno Haible  <bruno@clisp.org>
98769         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
98770         "make distcheck".
98771         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
98772         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
98773         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
98775 2007-03-10  Bruno Haible  <bruno@clisp.org>
98777         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
98778         variable.
98779         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
98780         variable.
98782 2007-03-09  Eric Blake  <ebb9@byu.net>
98783         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
98785         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
98786         types are not being provided by gnulib.
98787         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
98788         types are supported.
98790 2007-03-10  Bruno Haible  <bruno@clisp.org>
98792         * lib/stdio_.h (__attribute__): New macro.
98793         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
98794         vsprintf): Specify __attribute__ __format__ for GCC.
98795         Suggested by Eric Blake.
98797 2007-03-09  Bruno Haible  <bruno@clisp.org>
98799         * modules/printf-posix-tests: New file.
98800         * tests/test-printf-posix.sh: New file.
98801         * tests/test-printf-posix.c: New file.
98803         * modules/printf-posix: New file.
98804         * lib/printf.c: New file.
98805         * m4/printf-posix-rpl.m4: New file.
98806         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
98807         REPLACE_PRINTF.
98808         * lib/stdio_.h (printf): New declaration.
98809         (format, __format__, ____printf____, ____scanf____, ____strftime____,
98810         ____strfmon____): New macros.
98811         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
98812         REPLACE_PRINTF.
98814 2007-03-09  Bruno Haible  <bruno@clisp.org>
98816         * tests/test-vasnprintf-posix2.sh: New file.
98817         * tests/test-vasnprintf-posix2.c: New file.
98818         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
98819         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
98820         (Makefile.am): Activate test-vasnprintf-posix2.sh.
98822         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
98823         a locale dependent decimal point, rather than always '.'.
98825 2007-03-09  Eric Blake  <ebb9@byu.net>
98827         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
98828         spite of platforms like Tandem/NSK that define it to -1.
98830 2007-03-08  Bruno Haible  <bruno@clisp.org>
98832         * modules/vprintf-posix-tests: New file.
98833         * tests/test-vprintf-posix.sh: New file.
98834         * tests/test-vprintf-posix.c: New file.
98835         * tests/test-printf-posix.h: New file.
98837         * modules/vprintf-posix: New file.
98838         * lib/vprintf.c: New file.
98839         * m4/vprintf-posix.m4: New file.
98840         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
98841         REPLACE_VPRINTF.
98842         * lib/stdio_.h (vprintf): New declaration.
98843         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
98844         REPLACE_VPRINTF.
98846 2007-03-08  Bruno Haible  <bruno@clisp.org>
98848         * modules/fprintf-posix-tests: New file.
98849         * tests/test-fprintf-posix.sh: New file.
98850         * tests/test-fprintf-posix.c: New file.
98852         * modules/fprintf-posix: New file.
98853         * lib/fprintf.c: New file.
98854         * m4/fprintf-posix.m4: New file.
98855         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
98856         REPLACE_FPRINTF.
98857         * lib/stdio_.h (fprintf): New declaration.
98858         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
98859         REPLACE_FPRINTF.
98861 2007-03-08  Bruno Haible  <bruno@clisp.org>
98863         * modules/vfprintf-posix-tests: New file.
98864         * tests/test-vfprintf-posix.sh: New file.
98865         * tests/test-vfprintf-posix.c: New file.
98866         * tests/test-fprintf-posix.h: New file.
98867         * tests/test-fprintf-posix.out: New file.
98869         * modules/vfprintf-posix: New file.
98870         * lib/vfprintf.c: New file.
98871         * m4/vfprintf-posix.m4: New file.
98872         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
98873         REPLACE_VFPRINTF.
98874         * lib/stdio_.h (vfprintf): New declaration.
98875         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
98876         REPLACE_VFPRINTF.
98878 2007-03-08  Bruno Haible  <bruno@clisp.org>
98880         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
98882 2007-03-08  Bruno Haible  <bruno@clisp.org>
98884         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
98885         instead of 'expr' invocations.
98886         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98887         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98888         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98889         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98890         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98891         Suggested by Paul Eggert.
98893 2007-03-08  Bruno Haible  <bruno@clisp.org>
98895         * modules/fseterr-tests: New file.
98896         * tests/test-fseterr.c: New file.
98898         * modules/fseterr: New file.
98899         * lib/fseterr.h: New file.
98900         * lib/fseterr.c: New file.
98902 2007-03-08  Bruno Haible  <bruno@clisp.org>
98904         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
98905         * lib/getopt_.h: Likewise.
98906         * lib/mbswidth.h: Likewise.
98907         * lib/setenv.h: Likewise.
98908         * lib/vasnprintf.h: Likewise.
98909         * lib/vasprintf.h: Likewise.
98910         * lib/verror.h: Likewise.
98911         * lib/xsetenv.h: Likewise.
98912         * lib/xvasprintf.h: Likewise.
98914 2007-03-08  Jim Meyering  <jim@meyering.net>
98916         * users.txt: Add parted.
98918         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
98920 2007-03-07  Bruno Haible  <bruno@clisp.org>
98922         * m4/printf.m4: Make the shell script snippets copy&pastable.
98924 2007-03-02  Bruno Haible  <bruno@clisp.org>
98926         * lib/netinet_in_.h: New file.
98927         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
98928         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
98929         * modules/netinet_in (Files): Add lib/netinet_in_.h.
98930         (Depends-on): Add absolute-header.
98931         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
98932         into netinet/in.h.
98934 2007-03-03  Bruno Haible  <bruno@clisp.org>
98936         * lib/sys_select_.h: New file.
98937         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
98938         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
98939         * modules/sys_select (Files): Add lib/sys_select_.h.
98940         (Depends-on): Add absolute-header.
98941         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
98942         into sys/select.h.
98944 2007-03-02  Bruno Haible  <bruno@clisp.org>
98946         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
98947         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
98948         values.
98949         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
98950         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
98951         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
98952         * modules/sys_socket (Depends-on): Add absolute-header.
98953         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
98954         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
98955         (Include): Remove requirement of inclusion of <sys/types.h>.
98957 2007-03-02  Bruno Haible  <bruno@clisp.org>
98959         * lib/byteswap_.h (bswap_32): Fix formula.
98961 2007-03-06  Bruno Haible  <bruno@clisp.org>
98963         * modules/sprintf-posix-tests: New file.
98964         * tests/test-sprintf-posix.c: New file.
98966         * modules/sprintf-posix: New file.
98967         * lib/sprintf.c: New file.
98968         * m4/sprintf-posix.m4: New file.
98969         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
98970         REPLACE_SPRINTF.
98971         * lib/stdio_.h (sprintf): New declaration.
98972         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
98973         REPLACE_SPRINTF.
98975 2007-03-06  Bruno Haible  <bruno@clisp.org>
98977         * modules/vsprintf-posix-tests: New file.
98978         * tests/test-vsprintf-posix.c: New file.
98979         * tests/test-sprintf-posix.h: New file.
98981         * modules/vsprintf-posix: New file.
98982         * lib/vsprintf.c: New file.
98983         * m4/vsprintf-posix.m4: New file.
98984         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
98985         REPLACE_VSPRINTF.
98986         * lib/stdio_.h (vsprintf): New declaration.
98987         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
98988         REPLACE_VSPRINTF.
98990 2007-03-06  Bruno Haible  <bruno@clisp.org>
98992         * modules/vsnprintf (Depend-on): Remove minmax.
98994 2007-03-06  Bruno Haible  <bruno@clisp.org>
98996         * modules/snprintf-posix-tests: New file.
98997         * tests/test-snprintf-posix.c: New file.
98999         * modules/snprintf-posix: New file.
99000         * m4/snprintf-posix.m4: New file.
99001         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
99002         gl_FUNC_SNPRINTF.
99003         (gl_FUNC_SNPRINTF): Invoke it.
99004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
99005         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
99006         is set.
99007         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
99009 2007-03-06  Bruno Haible  <bruno@clisp.org>
99011         * modules/vsnprintf-posix-tests: New file.
99012         * tests/test-vsnprintf-posix.c: New file.
99013         * tests/test-snprintf-posix.h: New file.
99015         * modules/vsnprintf-posix: New file.
99016         * m4/vsnprintf-posix.m4: New file.
99017         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
99018         gl_FUNC_VSNPRINTF.
99019         (gl_FUNC_VSNPRINTF): Invoke it.
99020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
99021         * lib/stdio_.h (vsnprintf): Define as a replacement if
99022         REPLACE_VSNPRINTF is set.
99023         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
99025 2007-03-06  Bruno Haible  <bruno@clisp.org>
99027         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
99028         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
99030 2007-03-06  Bruno Haible  <bruno@clisp.org>
99032         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
99033         (asinl): Declare also if HAVE_DECL_ASINL is set.
99034         (atanl): Declare also if HAVE_DECL_ATANL is set.
99035         (ceill): Declare also if HAVE_DECL_CEILL is set.
99036         (cosl): Declare also if HAVE_DECL_COSL is set.
99037         (expl): Declare also if HAVE_DECL_EXPL is set.
99038         (floorl): Declare also if HAVE_DECL_FLOORL is set.
99039         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
99040         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
99041         (logl): Declare also if HAVE_DECL_LOGL is set.
99042         (sinl): Declare also if HAVE_DECL_SINL is set.
99043         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
99044         (tanl): Declare also if HAVE_DECL_TANL is set.
99045         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
99046         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
99047         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
99048         declaration of frexpl, ldexpl.
99049         * modules/printf-frexpl (Depends-on): Add math.
99050         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
99052 2007-03-05  Bruno Haible  <bruno@clisp.org>
99054         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
99055         frexpl and ldexpl are declared.
99056         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
99058 2007-03-05  Bruno Haible  <bruno@clisp.org>
99060         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
99061         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
99063 2007-03-05  Bruno Haible  <bruno@clisp.org>
99065         * lib/stdio_.h: Include <stddef.h>.
99067 2007-03-05  Bruno Haible  <bruno@clisp.org>
99069         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
99071 2007-03-05  Bruno Haible  <bruno@clisp.org>
99073         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
99074         NetBSD 4, from Ralf Wildenhues.
99076 2007-03-04  Bruno Haible  <bruno@clisp.org>
99078         * lib/vasprintf.h: Update #if logic for the case when the functions
99079         exist but are overridden.
99081 2007-03-04  Bruno Haible  <bruno@clisp.org>
99083         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
99084         implementations: glibc-2.4 and MacOS X 10.3.
99085         * tests/test-vasnprintf-posix.c (test_function): Test also the case
99086         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
99087         * tests/test-vasprintf-posix.c (test_function): Likewise.
99089 2007-03-04  Bruno Haible  <bruno@clisp.org>
99091         * modules/vasprintf-posix-tests: New file.
99092         * tests/test-vasprintf-posix.c: New file.
99094         * modules/vasprintf-posix: New file.
99095         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
99096         defined.
99097         * m4/vasprintf-posix.m4: New file.
99098         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
99099         gl_FUNC_VASPRINTF.
99100         (gl_FUNC_VASPRINTF): Invoke it.
99101         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
99102         here.
99103         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
99105 2007-03-04  Bruno Haible  <bruno@clisp.org>
99107         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
99108         REPLACE_GETTIMEOFDAY.
99109         * modules/sys_time (Makefile.am): Likewise.
99110         * m4/sys_time_h.m4: Likewise.
99111         * m4/gettimeofday.m4: Likewise.
99113 2007-03-04  Bruno Haible  <bruno@clisp.org>
99115         * modules/vasnprintf-posix-tests: New file.
99116         * tests/test-vasnprintf-posix.c: New file.
99118         * modules/vasnprintf-posix: New file.
99119         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
99120         printf-frexpl.h.
99121         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
99122         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
99123         REPLACE_VASNPRINTF is defined.
99124         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
99125         gl_FUNC_VASNPRINTF.
99126         (gl_FUNC_VASNPRINTF): Invoke it.
99127         * m4/vasnprintf-posix.m4: New file.
99128         * m4/printf.m4: New file.
99130 2007-03-04  Bruno Haible  <bruno@clisp.org>
99132         Compile progreloc.c only if --enable-relocatable is specified.
99133         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
99134         if --enable-relocatable was specified.
99135         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
99136         lib_SOURCES.
99138 2007-03-04  Jim Meyering  <jim@meyering.net>
99140         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
99141         Use it consistently, rather than enumerating errno constants.
99143 2007-03-04  Bruno Haible  <bruno@clisp.org>
99145         * modules/xvasprintf-tests: New file.
99146         * tests/test-xvasprintf.c: New file.
99148         * modules/vasprintf-tests: New file.
99149         * tests/test-vasprintf.c: New file.
99151         * modules/vasnprintf-tests: New file.
99152         * tests/test-vasnprintf.c: New file.
99154         * modules/vsnprintf-tests: New file.
99155         * tests/test-vsnprintf.c: New file.
99157         * modules/snprintf-tests: New file.
99158         * tests/test-snprintf.c: New file.
99160 2007-03-04  Bruno Haible  <bruno@clisp.org>
99162         Compile relocatable.c only if --enable-relocatable is specified.
99163         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
99164         gl_RELOCATABLE_LIBRARY.
99165         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
99166         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
99167         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
99168         gl_RELOCATABLE_LIBRARY.
99169         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
99170         (Makefile.am): Remove lib_SOURCES.
99171         * modules/relocatable-lib-lgpl (configure.ac): Invoke
99172         gl_RELOCATABLE_LIBRARY.
99173         (Makefile.am): Remove lib_SOURCES.
99174         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
99175         always.
99176         * modules/relocatable-prog-wrapper (configure.ac): Invoke
99177         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
99179 2007-03-04  Bruno Haible  <bruno@clisp.org>
99181         * modules/argmatch-tests: New file.
99182         * tests/test-argmatch.c: New file.
99184         * tests/test-allocsa.c (main): Halve the number of loop runs.
99186         * modules/alloca-opt-tests: New file.
99187         * tests/test-alloca-opt.c: New file.
99189 2007-03-04  Jim Meyering  <jim@meyering.net>
99191         Work around difference between Linux ACLs and Solaris 10 ZFS.
99192         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
99193         for EINVAL.
99195 2007-03-03  Bruno Haible  <bruno@clisp.org>
99197         * modules/relocatable-prog (Depends-on): Add back progreloc's
99198         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
99200 2007-03-03  Bruno Haible  <bruno@clisp.org>
99202         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
99203         * modules/relocatable-lib: New file.
99205 2007-03-03  Bruno Haible  <bruno@clisp.org>
99207         * modules/relocatable-prog: Renamed from modules/relocatable.
99208         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
99210 2007-03-03  Bruno Haible  <bruno@clisp.org>
99212         * modules/relocatable-script (Files): Add doc/relocatable.texi,
99213         m4/relocatable-lib.m4.
99214         (Depends-on): Remove 'relocatable'.
99215         (configure.ac): Add gl_RELOCATABLE_NOP.
99217 2007-03-03  Bruno Haible  <bruno@clisp.org>
99219         * modules/relocatable-prog-wrapper: New file.
99220         * modules/relocatable (Depends-on): Add it. Remove all other
99221         dependencies except progname.
99222         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
99224         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
99225         (gl_FUNC_STRERROR): Nop.
99226         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
99228         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
99229         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
99231         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
99232         (gl_FUNC_READLINK): Update.
99234         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
99236 2007-03-03  Bruno Haible  <bruno@clisp.org>
99238         * lib/xreadlink.c: Include <unistd.h> unconditionally.
99239         * modules/xreadlink (Depends-on): Add unistd.
99240         * modules/xreadlink-with-size (Depends-on): Likewise.
99242 2007-03-03  Bruno Haible  <bruno@clisp.org>
99244         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
99245         extracted from gt_FUNC_SETENV.
99246         (gt_FUNC_SETENV): Remove macro.
99247         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
99248         remove gt_FUNC_SETENV.
99250 2007-03-03  Bruno Haible  <bruno@clisp.org>
99252         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
99253         ENABLE_RELOCATABLE here.
99254         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
99256 2007-03-03  Bruno Haible  <bruno@clisp.org>
99258         * modules/rbtreehash-list-tests (Depends-on): Add progname.
99259         * tests/test-rbtreehash_list.c: Include progname.h.
99260         (main): Call set_program_name.
99262         * modules/rbtree-oset-tests (Depends-on): Add progname.
99263         * tests/test-rbtree_oset.c: Include progname.h.
99264         (main): Call set_program_name.
99266         * modules/rbtree-list-tests (Depends-on): Add progname.
99267         * tests/test-rbtree_list.c: Include progname.h.
99268         (main): Call set_program_name.
99270         * modules/linked-list-tests (Depends-on): Add progname.
99271         * tests/test-linked_list.c: Include progname.h.
99272         (main): Call set_program_name.
99274 2007-03-03  Bruno Haible  <bruno@clisp.org>
99276         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
99277         All uses of __restrict changed to _Restrict_.
99278         * lib/glob_.h (__restrict): Remove macro.
99280 2007-03-02  Bruno Haible  <bruno@clisp.org>
99282         * modules/gettext (configure.ac): Require gettext infrastructure
99283         from version 0.16.1.
99285 2007-03-02  Bruno Haible  <bruno@clisp.org>
99287         * modules/linkedhash-list-tests (Depends-on): Add progname.
99288         * tests/test-linkedhash_list.c: Include progname.h.
99289         (main): Call set_program_name.
99291         * modules/carray-list-tests (Depends-on): Add progname.
99292         * tests/test-carray_list.c: Include progname.h.
99293         (main): Call set_program_name.
99295         * modules/avltreehash-list-tests (Depends-on): Add progname.
99296         * tests/test-avltreehash_list.c: Include progname.h.
99297         (main): Call set_program_name.
99299         * modules/avltree-oset-tests (Depends-on): Add progname.
99300         * tests/test-avltree_oset.c: Include progname.h.
99301         (main): Call set_program_name.
99303         * modules/avltree-list-tests (Depends-on): Add progname.
99304         * tests/test-avltree_list.c: Include progname.h.
99305         (main): Call set_program_name.
99307         * modules/array-oset-tests (Depends-on): Add progname.
99308         * tests/test-array_oset.c: Include progname.h.
99309         (main): Call set_program_name.
99311         * modules/array-list-tests (Depends-on): Add progname.
99312         * tests/test-array_list.c: Include progname.h.
99313         (main): Call set_program_name.
99315         * modules/argp-tests (Depends-on): Add progname.
99316         * tests/test-argp.c: Include argp.h first. Include progname.h.
99317         (main): Call set_program_name.
99319 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
99321         * doc/gnulib-tool.texi (Initial import): Reword description of
99322         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
99323         limited effect even if defined after the first system include.
99325 2007-03-01  Bruno Haible  <bruno@clisp.org>
99327         * build-aux/config.libpath: Update to libtool-1.5.22.
99328         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
99330 2007-03-01  Bruno Haible  <bruno@clisp.org>
99332         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
99333         foo_CFLAGS.
99334         Reported by Ralf Wildenhues.
99336 2007-03-01  Bruno Haible  <bruno@clisp.org>
99338         * build-aux/install-reloc: Remove object files left over by some
99339         compilers.
99340         Reported by Ralf Wildenhues.
99342 2007-03-01  Bruno Haible  <bruno@clisp.org>
99344         * build-aux/install-reloc: Break long lines.
99346 2007-03-01  Bruno Haible  <bruno@clisp.org>
99348         * doc/relocatable.texi: Document that it may not work on OpenBSD.
99349         Reported by Ralf Wildenhues.
99351 2007-03-01  Bruno Haible  <bruno@clisp.org>
99353         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
99354         include ordering constraints.
99356 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
99358         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
99359         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
99360         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
99361         as another example.
99362         * lib/time_.h: Fix misspelling.
99363         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
99364         Require gl_HEADER_TIME_H_DEFAULTS.
99365         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
99366         * m4/time_r.m4 (gl_TIME_R): Likewise.
99367         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
99369 2007-03-01  Bruno Haible  <bruno@clisp.org>
99371         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
99372         * m4/utimens.m4 (gl_UTIMENS): Likewise.
99374 2007-03-01  Jim Meyering  <jim@meyering.net>
99376         * modules/xreadlink (Maintainer): Add my name.
99377         * modules/xreadlink-with-size (Depends-on): Alphabetize.
99379 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
99380             Bruno Haible  <bruno@clisp.org>
99382         * build-aux/install-reloc: Compile also c-ctype.c.
99383         * build-aux/relocatable.sh.in: New file.
99384         * doc/relocatable.texi: New file.
99385         * doc/relocatable-maint.texi: New file.
99386         * doc/gnulib.texi: Include relocatable-maint.texi.
99387         * lib/progreloc.c: Include unistd.h unconditionally.
99388         * lib/relocwrapper.c: Include unistd.h unconditionally.
99389         Include c-ctype.h.
99390         (add_dotbin): Use c_tolower.
99391         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
99392         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
99393         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
99394         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
99395         to m4/relocatable-lib.m4.
99396         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
99397         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
99398         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
99399         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
99400         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
99401         * modules/relocatable: New file.
99402         * modules/relocatable-lib: New file.
99403         * modules/relocatable-script: New file.
99405 2007-02-28  Bruno Haible  <bruno@clisp.org>
99407         Import --enable-relocatable infrastructure.
99408         * build-aux/config.libpath: New file, from GNU gettext.
99409         * build-aux/install-reloc: New file, from GNU gettext.
99410         * build-aux/reloc-ldflags: New file, from GNU gettext.
99411         * lib/relocatable.h: New file, from GNU gettext.
99412         * lib/relocatable.c: New file, from GNU gettext.
99413         * lib/relocwrapper.c: New file, from GNU gettext.
99414         * m4/relocatable.m4: New file, from GNU gettext.
99416 2007-02-28  Bruno Haible  <bruno@clisp.org>
99418         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
99420         * modules/xreadlink: New file, from GNU gettext with modifications.
99421         * lib/xreadlink.c: New file, from GNU gettext.
99422         * lib/xreadlink.h: Add comments.
99423         (xreadlink): New declaration.
99425         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
99426         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
99427         lib/xreadlink-with-size.c.
99428         (configure.ac): Remove gl_XREADLINK invocation.
99429         (Makefile.am): Augment lib_SOURCES.
99430         * m4/xreadlink.m4: Remove file.
99431         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
99432         (xreadlink_with_size): Renamed from xreadink.
99433         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
99434         * modules/canonicalize (Depends-on): Replace xreadlink with
99435         xreadlink-with-size.
99436         * lib/canonicalize.c (canonicalize_filename_mode): Update.
99438 2007-02-25  Jim Meyering  <jim@meyering.net>
99440         * build-aux/announce-gen: When complaining about excess arguments,
99441         list them.
99443 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
99445         * README: Document signed integer overflow situation more
99446         accurately.
99448 2007-02-25  Bruno Haible  <bruno@clisp.org>
99450         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
99451         'a' or 'A' conversion.
99453 2007-02-25  Bruno Haible  <bruno@clisp.org>
99455         * modules/filename: Renamed from modules/pathname.
99456         (Files): Replace lib/pathname.h with lib/filename.h. Replace
99457         lib/concatpath.c with lib/concat-filename.c.
99458         (Makefile.am): Update.
99459         (Include): Replace pathname.h with filename.h.
99460         * lib/filename.h: Renamed from lib/pathname.h.
99461         (concatenated_filename): Renamed from concatenated_pathname.
99462         * lib/concat-filename.c: Renamed from lib/concatpath.c.
99463         (concatenated_filename): Renamed from concatenated_pathname.
99464         * lib/findprog.c: Include filename.h instead of pathname.h.
99465         (find_in_path): Update.
99466         * lib/javacomp.c: Include filename.h instead of pathname.h.
99467         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
99468         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
99469         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
99470         is_oldgcj_14_13_usable, is_javac_usable): Update.
99471         * lib/javaexec.c: Include filename.h instead of pathname.h.
99472         (execute_java_class): Update.
99473         * modules/findprog: Update.
99474         * modules/javacomp: Update.
99475         * modules/javaexec: Update.
99476         * MODULES.html.sh (File system functions): Add 'filename', remove
99477         'pathname'.
99479 2007-02-25  Bruno Haible  <bruno@clisp.org>
99481         * modules/printf-frexpl-tests: New file.
99482         * tests/test-printf-frexpl.c: New file.
99484         * modules/printf-frexpl: New file.
99485         * lib/printf-frexpl.h: New file.
99486         * lib/printf-frexpl.c: New file.
99487         * m4/printf-frexpl.m4: New file.
99489 2007-02-25  Bruno Haible  <bruno@clisp.org>
99491         * modules/printf-frexp-tests: New file.
99492         * tests/test-printf-frexp.c: New file.
99494         * modules/printf-frexp: New file.
99495         * lib/printf-frexp.h: New file.
99496         * lib/printf-frexp.c: New file.
99497         * m4/printf-frexp.m4: New file.
99499 2007-02-25  Bruno Haible  <bruno@clisp.org>
99501         Assume automake >= 1.10 for the tests.
99502         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
99503         * modules/arctwo-tests: Likewise.
99504         * modules/argp-tests: Likewise.
99505         * modules/avltree-list-tests: Likewise.
99506         * modules/avltree-oset-tests: Likewise.
99507         * modules/avltreehash-list-tests: Likewise.
99508         * modules/carray-list-tests: Likewise.
99509         * modules/crc-tests: Likewise.
99510         * modules/des-tests: Likewise.
99511         * modules/gc-arcfour-tests: Likewise.
99512         * modules/gc-arctwo-tests: Likewise.
99513         * modules/gc-des-tests: Likewise.
99514         * modules/gc-hmac-md5-tests: Likewise.
99515         * modules/gc-hmac-sha1-tests: Likewise.
99516         * modules/gc-md2-tests: Likewise.
99517         * modules/gc-md4-tests: Likewise.
99518         * modules/gc-md5-tests: Likewise.
99519         * modules/gc-pbkdf2-sha1-tests: Likewise.
99520         * modules/gc-rijndael-tests: Likewise.
99521         * modules/gc-sha1-tests: Likewise.
99522         * modules/gc-tests: Likewise.
99523         * modules/getaddrinfo-tests: Likewise.
99524         * modules/hmac-md5-tests: Likewise.
99525         * modules/hmac-sha1-tests: Likewise.
99526         * modules/linked-list-tests: Likewise.
99527         * modules/linkedhash-list-tests: Likewise.
99528         * modules/lock-tests: Likewise.
99529         * modules/md2-tests: Likewise.
99530         * modules/md4-tests: Likewise.
99531         * modules/md5-tests: Likewise.
99532         * modules/rbtree-list-tests: Likewise.
99533         * modules/rbtree-oset-tests: Likewise.
99534         * modules/rbtreehash-list-tests: Likewise.
99535         * modules/read-file-tests: Likewise.
99536         * modules/rijndael-tests: Likewise.
99537         * modules/stdint-tests: Likewise.
99538         * modules/tls-tests: Likewise.
99540 2007-02-24  Bruno Haible  <bruno@clisp.org>
99542         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
99543         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
99544         function; instead check whether isnan with a double argument links.
99545         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
99546         function; instead check whether isnan with a 'long double' argument
99547         links.
99548         Reported by Eric Blake <ebb9@byu.net>.
99550 2007-02-24  Bruno Haible  <bruno@clisp.org>
99552         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
99553         defined.
99554         * lib/isnanl.c: Remove all code. Just include isnan.c.
99555         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
99557 2007-02-25  Jim Meyering  <jim@meyering.net>
99559         Avoid conflicting types for 'unsetenv' on FreeBSD.
99560         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
99561         conflicting with FreeBSD's (5.0 and 6.1) function declaration
99562         in stdlib.h.
99564 2007-02-24  Bruno Haible  <bruno@clisp.org>
99566         * modules/isnanl-nolibm-tests: New file.
99567         * tests/test-isnanl.c: New file.
99569         * modules/isnanl-nolibm: New file.
99570         * lib/isnanl.h: New file.
99571         * lib/isnanl.c: New file.
99572         * m4/isnanl.m4: New file.
99574 2007-02-24  Bruno Haible  <bruno@clisp.org>
99576         * modules/isnan-nolibm-tests: New file.
99577         * tests/test-isnan.c: New file.
99579         * modules/isnan-nolibm: New file.
99580         * lib/isnan.h: New file.
99581         * lib/isnan.c: New file.
99582         * m4/isnan.m4: New file.
99584 2007-02-24  Bruno Haible  <bruno@clisp.org>
99586         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
99587         assume that an exponent fits in 20 bits.
99589 2007-02-24  Jim Meyering  <jim@meyering.net>
99591         * m4/regex.m4: Update the description of the configure-time option,
99592         --without-included-regex, to state accurately what the defaults are,
99593         and perhaps to give people an idea why using this option is risky.
99595 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
99597         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
99598         loops on small arguments.  This attempts to avoid the problem
99599         Bruno Haible reported for AIX 4.3.2 in
99600         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
99602 2007-02-23  Bruno Haible  <bruno@clisp.org>
99604         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
99605         Needed for help2man.
99607 2007-02-23  Karl Berry  <karl@gnu.org>
99609         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
99610         exists, foo.h should be cvs-ignored, not committed.
99612 2007-02-23  Eric Blake  <ebb9@byu.net>
99614         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
99615         * lib/stat-time.h (includes): Likewise.
99616         * lib/utimecmp.c (includes): Likewise.
99617         * lib/utimens.h (includes): Likewise.
99618         * lib/getdate.y (includes): Also include "timespec.h" for use
99619         internal to the module.
99620         * modules/utimens (Depends-on): Revert yesterday's patch.
99621         * modules/nanosleep (Depends-on): Add missing dependency.
99623 2007-02-22  Bruno Haible  <bruno@clisp.org>
99625         * lib/glob.c: Don't include getlogin_r.h.
99627 2007-02-22  Jim Meyering  <jim@meyering.net>
99629         * modules/utimens (Depends-on): Add timespec, required for
99630         utimens.h's inclusion of timespec.h.
99632 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
99634         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
99635         long unreadable paths in GNU/Linux.  Problem reported by Andreas
99636         Schwab in
99637         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
99638         I'll try to think of a better way to fix the Solaris problem.
99640         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
99641         like glibc; on Solaris 10, it fails with errno == EINVAL.
99642         POSIX says the behavior is unspecified if the first argument is NULL,
99643         so play it safe and never pass NULL to the system getcwd.
99645 2007-02-21  Jim Meyering  <jim@meyering.net>
99647         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
99648         of gettimeofday.  It would conflict with the one now always
99649         provided via sys_time_.h.  Reported by Matthew Woehlke, as
99650         an IRIX 6.5 build failure.
99652 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
99654         Minor fixups to port to Solaris 10 with Sun C 5.8.
99655         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
99656         * modules/getcwd (Depends-on): Add dirfd.
99657         * lib/putenv.c (putenv): #undef it.
99658         (rpl_putenv): New decl.
99659         (malloc, free): Include <stdlib.h> rather than prototyping separately.
99661 2007-02-20  Bruno Haible  <bruno@clisp.org>
99663         * modules/stdio-tests: New file.
99664         * tests/test-stdio.c: New file.
99666         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
99667         (Depends-on): Add stdio.
99668         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
99669         (Include): Use <stdio.h> instead of vsnprintf.h.
99670         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
99671         HAVE_DECL_VSNPRINTF.
99672         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
99674         * modules/snprintf (Files): Remove lib/snprintf.h.
99675         (Depends-on): Add stdio.
99676         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
99677         (Include): Use <stdio.h> instead of snprintf.h.
99678         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
99679         HAVE_DECL_SNPRINTF.
99680         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
99681         * lib/getaddrinfo.c: Likewise.
99683         * modules/stdio: New file.
99684         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
99685         * lib/snprintf.h: Remove file.
99686         * lib/vsnprintf.h: Remove file.
99687         * lib/.cppi-disable: Remove snprintf.h.
99688         * m4/stdio_h.m4: New file.
99689         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
99691 2007-02-20  Jim Meyering  <jim@meyering.net>
99693         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
99694         used by e.g., mingw.  From Bruno Haible.
99696 2007-02-19  Bruno Haible  <bruno@clisp.org>
99698         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
99699         warnings.
99700         Reported by Ben Pfaff <blp@cs.stanford.edu>.
99702 2007-02-19  Bruno Haible  <bruno@clisp.org>
99704         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
99705         from mingw users.
99707 2007-02-19  Bruno Haible  <bruno@clisp.org>
99709         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
99710         warnings.
99711         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
99713 2007-02-19  Jim Meyering  <jim@meyering.net>
99715         Don't use FD after a successful "fdopendir (fd)".
99716         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
99717         Reset it by calling dirfd on the just-obtained DIR*.
99719         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
99720         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
99722 2007-02-18  Bruno Haible  <bruno@clisp.org>
99724         * lib/readlink.c: Include <unistd.h>.
99725         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
99726         HAVE_READLINK.
99727         * modules/readlink (Depends-on): Add unistd.
99728         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
99729         (Include): Add <unistd.h>.
99731         * lib/getlogin_r.h: Remove file.
99732         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
99733         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
99734         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
99735         HAVE_DECL_GETLOGIN_R.
99736         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
99737         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
99738         (Include): Use <unistd.h> instead of getlogin_r.h.
99740         * lib/getcwd.h: Remove file.
99741         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
99742         * lib/xgetcwd.c: Likewise.
99743         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
99744         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
99745         * modules/getcwd (Files): Remove lib/getcwd.h.
99746         (Depends-on): Add unistd.
99747         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
99748         (Include): Use <unistd.h> instad of getcwd.h.
99750         * lib/ftruncate.c: Include <unistd.h> first.
99751         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
99752         Set HAVE_FTRUNCATE.
99753         * modules/ftruncate (Depends-on): Add unistd.
99754         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
99756         * lib/fchdir.c: Include <unistd.h> first.
99757         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
99758         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
99759         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
99760         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
99761         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
99763         * lib/dup2.c: Include <unistd.h> first.
99764         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
99765         HAVE_DUP2.
99766         * modules/dup2 (Depends-on): Add unistd.
99767         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
99769         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
99770         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
99771         REPLACE_CHOWN. Don't define chown as a macro here.
99772         * modules/chown (Depends-on): Add unistd.
99773         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
99775         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
99776         Add definition for GL_LINK_WARNING.
99777         (chown, dup2): New declarations.
99778         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
99779         link warning.
99780         (ftruncate): New declaration.
99781         (getcwd): New declaration, taken from old getcwd.h.
99782         (getlogin_r): New declaration, taken from old getlogin_r.h.
99783         (readlink): New declaration.
99784         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
99785         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
99786         (gl_PREREQ_UNISTD): Remove macro.
99787         (gl_UNISTD_MODULE_INDICATOR): New macro.
99788         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
99789         many new variables. Don't set UNISTD_H.
99790         * modules/unistd (Description): Change.
99791         (Depends-on): Add link-warning.
99792         (configure.ac): Update.
99793         (Makefile.am): Create unistd.h always. Substitute many new variables
99794         into it.
99796 2007-02-18  Bruno Haible  <bruno@clisp.org>
99798         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
99799         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
99800         HAVE_GETSUBOPT.
99801         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
99802         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
99803         * lib/getsubopt.h: Remove file.
99804         * modules/getsubopt (Files): Remove lib/getsubopt.h.
99805         (Depends-on): Add stdlib.
99806         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
99807         (Includes): Use <stdlib.h> instead of getsubopt.h.
99808         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
99809         Set HAVE_GETSUBOPT.
99810         * lib/getsubopt.c: Don't include getsubopt.h.
99812 2007-02-18  Bruno Haible  <bruno@clisp.org>
99814         * modules/fchdir (Depends-on): Add dup2.
99816 2007-02-18  Bruno Haible  <bruno@clisp.org>
99818         * lib/stdlib_.h: Handle glibc's special invocation convention
99819         specially.
99821 2007-02-18  Bruno Haible  <bruno@clisp.org>
99823         * modules/stdlib-tests: New file.
99824         * tests/test-stdlib.c: New file.
99826         * modules/mkstemp (Files): Remove lib/mkstemp.h.
99827         (Depends-on): Add stdlib.
99828         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
99829         (Includes): Use <stdlib.h> instead of mkstemp.h.
99830         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
99831         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
99832         * lib/mkstemp.c: Don't include mkstemp.h.
99833         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
99834         * lib/stdlib--.h: Don't include mkstemp.h.
99836         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
99837         (Depends-on): Add stdlib.
99838         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
99839         (Includes): Use <stdlib.h> instead of mkdtemp.h.
99840         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
99841         HAVE_MKDTEMP.
99842         * lib/mkdtemp.c: Don't include mkdtemp.h.
99843         * lib/clean-temp.c: Don't include mkdtemp.h.
99845         * modules/exit (Files): Remove lib/exit.h.
99846         (Depends-on): Add stdlib.
99847         (Makefile.am): Remove lib_SOURCES.
99848         (Include): Use <stdlib.h> instead of exit.h.
99849         * lib/argmatch.c: Don't include exit.h.
99850         * lib/execute.c: Likewise.
99851         * lib/pagealign_alloc.c: Likewise.
99852         * lib/pipe.c: Likewise.
99853         * lib/wait-process.c: Likewise.
99854         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
99855         * lib/exitfail.c: Likewise.
99856         * lib/savewd.c: Likewise.
99857         * lib/xsetenv.c: Likewise.
99859         * modules/stdlib: New file.
99860         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
99861         and extra comments about mkstemp().
99862         * lib/exit.h: Remove file.
99863         * lib/mkdtemp.h: Remove file.
99864         * lib/mkstemp.h: Remove file.
99865         * m4/stdlib_h.m4: New file.
99866         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
99868 2007-02-18  Bruno Haible  <bruno@clisp.org>
99870         * modules/math-tests: New file.
99871         * tests/test-math.c: New file.
99873         * modules/math: New file.
99874         * modules/mathl (Files): Remove lib/mathl.h.
99875         (Depends-on): Add math.
99876         (Makefile.am): Don't mention mathl.h.
99877         (Include): Use <math.h> instead of mathl.h.
99878         * lib/math_.h: New file.
99879         * lib/mathl.h: Remove file.
99880         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
99881         mathl.h.
99882         * lib/asinl.c: Likewise.
99883         * lib/atanl.c: Likewise.
99884         * lib/ceill.c: Likewise.
99885         * lib/cosl.c: Likewise.
99886         * lib/expl.c: Likewise.
99887         * lib/floorl.c: Likewise.
99888         * lib/frexpl.c: Likewise.
99889         * lib/ldexpl.c: Likewise.
99890         * lib/logl.c: Likewise.
99891         * lib/sincosl.c: Likewise.
99892         * lib/sinl.c: Likewise.
99893         * lib/sqrtl.c: Likewise.
99894         * lib/tanl.c: Likewise.
99895         * lib/trigl.c: Likewise.
99896         * m4/math_h.m4: New file.
99897         * MODULES.html.sh (Mathematics): Add math.
99899 2007-02-17  Bruno Haible  <bruno@clisp.org>
99901         * modules/wctype-tests: New file.
99902         * tests/test-wctype.c: New file.
99904         * modules/wchar-tests: New file.
99905         * tests/test-wchar.c: New file.
99907         * modules/unistd-tests: New file.
99908         * tests/test-unistd.c: New file.
99910         * modules/time-tests: New file.
99911         * tests/test-time.c: New file.
99913         * modules/sysexits-tests: New file.
99914         * tests/test-sysexits.c: New file.
99916         * modules/sys_time-tests: New file.
99917         * tests/test-sys_time.c: New file.
99919         * modules/sys_stat-tests: New file.
99920         * tests/test-sys_stat.c: New file.
99922         * modules/sys_socket-tests: New file.
99923         * tests/test-sys_socket.c: New file.
99925         * modules/sys_select-tests: New file.
99926         * tests/test-sys_select.c: New file.
99928         * modules/string-tests: New file.
99929         * tests/test-string.c: New file.
99931         * modules/stdbool-tests: New file.
99932         * tests/test-stdbool.c: New file.
99934         * modules/netinet_in-tests: New file.
99935         * tests/test-netinet_in.c: New file.
99937         * modules/inttypes-tests: New file.
99938         * tests/test-inttypes.c: New file.
99940         * modules/fcntl-tests: New file.
99941         * tests/test-fcntl.c: New file.
99943         * modules/byteswap-tests: New file.
99944         * tests/test-byteswap.c: New file.
99946         * modules/arpa_inet-tests: New file.
99947         * tests/test-arpa_inet.c: New file.
99949 2007-02-17  Bruno Haible  <bruno@clisp.org>
99951         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
99952         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
99953         if the corresponding module is not enabled. Emit link warnings if
99954         the function is used nevertheless.
99955         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
99956         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
99957         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
99958         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
99959         * modules/inttypes (Depends-on): Add link-warning.
99960         (Makefile.am): Copy the contents of build-aux/link-warning.h into
99961         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
99962         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
99963         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
99964         * modules/imaxdiv (configure.ac): Likewise.
99965         * modules/strtoimax (configure.ac): Likewise.
99966         * modules/strtoumax (configure.ac): Likewise.
99968 2007-02-17  Bruno Haible  <bruno@clisp.org>
99970         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
99971         gl_STRING_MODULE_INDICATOR_DEFAULTS.
99972         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
99973         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
99975 2007-02-17  Bruno Haible  <bruno@clisp.org>
99977         * modules/link-warning: New file.
99978         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
99979         * lib/string_.h (GL_LINK_WARNING): Remove definition.
99980         * modules/string (Depends-on): Add link-warning.
99981         (Makefile.am): Copy the contents of build-aux/link-warning.h into
99982         string.h.
99983         * MODULES.html.sh (Support for building libraries and executables): Add
99984         link-warning.
99986 2007-02-17  Bruno Haible  <bruno@clisp.org>
99988         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
99989         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
99990         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
99991         long lines.
99993 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
99994             Bruno Haible  <bruno@clisp.org>
99996         * modules/tmpfile: New file.
99997         * lib/tmpfile.c: New file.
99998         * m4/tmpfile.m4: New file.
99999         * MODULES.html.sh (func_all_modules): New section "Input/output".
100001 2007-02-15  Bruno Haible  <bruno@clisp.org>
100003         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
100004         (supports_delete_on_close): New function.
100005         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
100007 2007-02-14  Bruno Haible  <bruno@clisp.org>
100009         * modules/mbspcasecmp-tests: New file.
100010         * tests/test-mbspcasecmp.sh: New file.
100011         * tests/test-mbspcasecmp.c: New file.
100013         New module mbspcasecmp.
100014         * modules/mbspcasecmp: New file.
100015         * lib/mbspcasecmp.c: New file.
100016         * lib/string_.h (strncasecmp): Change warning message.
100017         (mbspcasecmp): New declaration.
100018         * m4/mbspcasecmp.m4: New file.
100019         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
100020         GNULIB_MBSPCASECMP.
100021         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
100022         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
100024 2007-02-14  Bruno Haible  <bruno@clisp.org>
100026         * modules/mbsncasecmp-tests: New file.
100027         * tests/test-mbsncasecmp.sh: New file.
100028         * tests/test-mbsncasecmp.c: New file.
100030         New module mbsncasecmp.
100031         * modules/mbsncasecmp: New file.
100032         * lib/mbsncasecmp.c: New file.
100033         * lib/string_.h (mbsncasecmp): New declaration.
100034         * m4/mbsncasecmp.m4: New file.
100035         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
100036         GNULIB_MBSNCASECMP.
100037         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
100038         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
100040 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
100042         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
100043         Verify that it doesn't overlap with our flags.
100044         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
100045         do not have the desired effect in multibyte locales; instead, use
100046         mbscasecmp.
100047         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
100048         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
100049         we don't require GNU fnmatch ourselves (if our users require it, they
100050         should do so explicitly).
100052         Fix regex code so it doesn't rely on strcasecmp.
100053         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
100054         Otherwise, include gnulib's langinfo.h.
100055         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
100056         undesirable behavior in non-C locales.  Instead, rely on localecharset.
100057         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
100058         * modules/regex (FILES): Remove m4/codeset.m4.
100059         (Depends-on): Add localcharset.  Remove strcase.
100061 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100063         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
100064         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
100066 2007-02-13  Bruno Haible  <bruno@clisp.org>
100068         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
100069         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100071 2007-02-12  Bruno Haible  <bruno@clisp.org>
100073         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
100074         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
100075         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
100076         time warning rather than a link error.
100078 2007-02-12  Bruno Haible  <bruno@clisp.org>
100080         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
100081         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
100082         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100084 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
100086         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
100087         args, not 2.
100089 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
100091         New module 'time', so that apps can include <time.h> as per
100092         POSIX and GNU instead of separate include files like time_r.h
100093         and timegm.h.  This implementation tries out a simpler approach
100094         for replacing decls in standard include files (as compared to
100095         the string module), somewhat as an experiment.
100097         * config/srclist.txt: Comment out mktime.c for now.
100098         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
100099         since it doesn't apply any more.  Use generic wording instead.
100100         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
100101         'time'.
100102         * lib/time_.h, m4/time_h.m4, modules/time: New files.
100103         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
100104         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
100105         Don't include <sys/types.h>; no longer needed since we assume C89.
100106         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
100107         * lib/strftime.c: Likewise.
100108         * lib/time_r.c: Likewise.
100109         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
100110         * lib/nanosleep.c: Include <time.h> first, to check interface.
100111         * lib/strptime.c: Likewise.
100112         * lib/time_r.c: Likewise.
100113         * lib/timegm.c: Likewise.
100114         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
100115         needed.
100116         * lib/timegm.c: Don't include timegm.h; no longer needed.
100117         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
100118         time.h now handles any problems in that area.
100119         (struct timespec, nanosleep): Remove; time.h now arranges for these.
100120         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
100121         that time.h defines struct timespec.
100122         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
100123         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
100124         handles that.
100125         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
100126         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
100127         needed.  Set REPLACE_LOCALTIME.
100128         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
100129         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
100130         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
100131         nanosleep; time_h.m4 now does that.  Don't require
100132         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
100133         module handles this now.
100134         * modules/getdate (Depends-on): Remove timespec.  Add time.
100135         * modules/nanosleep (Depends-on): Likewise.
100136         * modules/stat-time (Depends-on): Likewise.
100137         * modules/nanosleep (Include): Include time.h, not timespec.h.
100138         * modules/strptime (Files): Remove lib/strptime.h.
100139         (Depends-on): Add extensions, time.
100140         (Include): Include time.h, not strptime.h.
100141         * modules/time_r (Files): Remove lib/time_r.h.
100142         (Depends-on): Add time.
100143         (Include): Include time.h, not time_r.h.
100144         * modules/timegm: Likewise.
100145         * modules/timespec (Description): Now does timespec-related decls
100146         of our own, instead of struct timespec itself.
100147         (Depends-on): Add time; remove extensions.
100148         (Maintainer): Add self.
100149         * modules/utimecmp (Depends-on): Add time; remove timespec.
100150         * modules/utimens (Depends-on): Likewise.
100151         * modules/xnanosleep (Depends-on): Likewise.
100153 2007-02-11  Bruno Haible  <bruno@clisp.org>
100155         * lib/c-strstr.c: Include allocsa.h.
100156         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
100157         * lib/c-strcasestr.c: Include allocsa.h.
100158         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
100159         * lib/strcasestr.c: Include allocsa.h.
100160         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
100161         * lib/mbsstr.c: Include allocsa.h.
100162         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
100163         allocsa/freesa instead of malloc/free.
100164         * lib/mbscasestr.c: Include allocsa.h.
100165         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
100166         allocsa/freesa instead of malloc/free.
100167         * modules/c-strstr (Depends-on): Add allocsa.
100168         * modules/c-strcasestr (Depends-on): Likewise.
100169         * modules/strcasestr (Depends-on): Likewise.
100170         * modules/mbsstr (Depends-on): Likewise.
100171         * modules/mbscasestr (Depends-on): Likewise.
100173 2007-02-11  Bruno Haible  <bruno@clisp.org>
100175         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
100177         * modules/mbsspn-tests: New file.
100178         * tests/test-mbsspn.sh: New file.
100179         * tests/test-mbsspn.c: New file.
100181 2007-02-11  Bruno Haible  <bruno@clisp.org>
100183         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
100185         * modules/mbspbrk-tests: New file.
100186         * tests/test-mbspbrk.sh: New file.
100187         * tests/test-mbspbrk.c: New file.
100189 2007-02-11  Bruno Haible  <bruno@clisp.org>
100191         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
100192         unneeded cast.
100194         * modules/mbscspn-tests: New file.
100195         * tests/test-mbscspn.sh: New file.
100196         * tests/test-mbscspn.c: New file.
100198 2007-02-11  Bruno Haible  <bruno@clisp.org>
100200         * modules/mbscasecmp-tests: New file.
100201         * tests/test-mbscasecmp.sh: New file.
100202         * tests/test-mbscasecmp.c: New file.
100204 2007-02-11  Bruno Haible  <bruno@clisp.org>
100206         Ensure O(n) worst-case complexity of mbscasestr.
100207         * lib/mbscasestr.c: Include stdbool.h.
100208         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
100209         functions.
100210         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
100211         the bookkeeping indicates that it's worth it.
100212         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
100214         * modules/mbscasestr-tests: New file.
100215         * tests/test-mbscasestr1.c: New file.
100216         * tests/test-mbscasestr2.sh: New file.
100217         * tests/test-mbscasestr2.c: New file.
100218         * tests/test-mbscasestr3.sh: New file.
100219         * tests/test-mbscasestr3.c: New file.
100220         * tests/test-mbscasestr4.sh: New file.
100221         * tests/test-mbscasestr4.c: New file.
100222         * m4/locale-tr.m4: New file.
100224 2007-02-11  Bruno Haible  <bruno@clisp.org>
100226         Ensure O(n) worst-case complexity of mbsstr.
100227         * lib/mbsstr.c: Include stdbool.h.
100228         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
100229         functions.
100230         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
100231         bookkeeping indicates that it's worth it.
100232         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
100234         * modules/mbsstr-tests: New file.
100235         * tests/test-mbsstr1.c: New file.
100236         * tests/test-mbsstr2.sh: New file.
100237         * tests/test-mbsstr2.c: New file.
100238         * tests/test-mbsstr3.sh: New file.
100239         * tests/test-mbsstr3.c: New file.
100240         * m4/locale-fr.m4: New file.
100242 2007-02-11  Bruno Haible  <bruno@clisp.org>
100244         * lib/mbsrchr.c (mbsrchr): Fix bug.
100246         * modules/mbsrchr-tests: New file.
100247         * tests/test-mbsrchr.sh: New file.
100248         * tests/test-mbsrchr.c: New file.
100250 2007-02-11  Bruno Haible  <bruno@clisp.org>
100252         * lib/mbschr.c (mbschr): Fix bug.
100254         * modules/mbschr-tests: New file.
100255         * tests/test-mbschr.sh: New file.
100256         * tests/test-mbschr.c: New file.
100257         * m4/locale-zh.m4: New file.
100259 2007-02-11  Bruno Haible  <bruno@clisp.org>
100261         Support for copying multibyte string iterators.
100262         * lib/mbiter.h: Include <string.h>.
100263         (mbiter_multi_copy): New function.
100264         (mbi_copy): New macro.
100265         * lib/mbuiter.h: Include <string.h>.
100266         (mbuiter_multi_copy): New function.
100267         (mbui_copy): New macro.
100269 2007-02-11  Bruno Haible  <bruno@clisp.org>
100271         New module mbslen.
100272         * modules/mbslen: New file.
100273         * lib/mbslen.c: New file.
100274         * lib/string_.h (mbslen): New declaration.
100275         * m4/mbslen.m4: New file.
100276         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
100277         GNULIB_MBSLEN.
100278         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
100279         * MODULES.html.sh (Internationalization functions): Add mbslen.
100281 2007-02-11  Bruno Haible  <bruno@clisp.org>
100283         Ensure O(n) worst-case complexity of strcasestr substitute.
100284         * lib/strcasestr.c: Include stdbool.h.
100285         (knuth_morris_pratt): New function.
100286         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
100287         bookkeeping indicates that it's worth it.
100288         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
100290         * modules/strcasestr-tests: New file.
100291         * tests/test-strcasestr.c: New file.
100293 2007-02-11  Bruno Haible  <bruno@clisp.org>
100295         Ensure O(n) worst-case complexity of c_strcasestr.
100296         * lib/c-strcasestr.c: Include stdbool.h, string.h.
100297         (knuth_morris_pratt): New function.
100298         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
100299         the bookkeeping indicates that it's worth it.
100300         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
100302         * modules/c-strcasestr-tests: New file.
100303         * tests/test-c-strcasestr.c: New file.
100305 2007-02-11  Bruno Haible  <bruno@clisp.org>
100307         Ensure O(n) worst-case complexity of c_strstr.
100308         * lib/c-strstr.c: Include stdbool.h, string.h.
100309         (knuth_morris_pratt): New function.
100310         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
100311         bookkeeping indicates that it's worth it.
100312         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
100314         * lib/c-strstr.c: Complete rewrite for maintainability.
100316         * modules/c-strstr-tests: New file.
100317         * tests/test-c-strstr.c: New file.
100319 2007-02-11  Bruno Haible  <bruno@clisp.org>
100321         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
100322         5.2.1 and earlier, whereby \055 was treated just like the range
100323         delimiter '-'.
100324         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
100326 2007-02-08  Bruno Haible  <bruno@clisp.org>
100328         * modules/regex (Depends-on): Add stdbool.
100329         Reported by Dalibor Topic <robilad@kaffe.org>.
100331 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
100333         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
100334         Prefer returning from main to exiting from it.
100335         Remove unnecessary parens after sizeof.
100337 2007-02-05  Bruno Haible  <bruno@clisp.org>
100339         New module mbssep.
100340         * modules/mbssep: New file.
100341         * lib/mbssep.c: New file.
100342         * lib/string_.h (strsep): Add a conditional link warning.
100343         (mbssep): New declaration.
100344         * m4/mbssep.m4: New file.
100345         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
100346         GNULIB_MBSSEP.
100347         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
100348         * MODULES.html.sh (Internationalization functions): Add mbssep.
100350 2007-02-05  Bruno Haible  <bruno@clisp.org>
100352         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
100353         Optimize search in case of 1 delimiter.
100355 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
100357         * lib/acl.h: Include sys/types.h before sys/acl.h.
100359 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
100361         Merge upstream fix for glibc bugzilla #3957:
100363         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
100365         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
100366         bit for RE_HAT_LISTS_NOT_NEWLINE.
100367         (build_charclass_op): Remove bogus comment.
100369 2007-02-05  Simon Josefsson  <simon@josefsson.org>
100371         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
100373 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
100375         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
100376         * lib/memmem.c [!defined _LIBC]: Include config.h.
100378 2007-02-04  Bruno Haible  <bruno@clisp.org>
100380         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
100381         warning message.
100383 2007-02-04  Bruno Haible  <bruno@clisp.org>
100385         New module mbstok_r.
100386         * modules/mbstok_r: New file.
100387         * lib/mbstok_r.c: New file.
100388         * lib/string_.h (strtok_r): Change argument names to match the
100389         comments. Add a conditional link warning.
100390         (mbstok_r): New declaration.
100391         * m4/mbstok_r.m4: New file.
100392         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
100393         GNULIB_MBSTOK_R.
100394         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
100395         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
100397 2007-02-04  Bruno Haible  <bruno@clisp.org>
100399         New module mbsspn.
100400         * modules/mbsspn: New file.
100401         * lib/mbsspn.c: New file.
100402         * lib/string_.h (strspn): Add a conditional link warning.
100403         (mbsspn): New declaration.
100404         * m4/mbsspn.m4: New file.
100405         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
100406         GNULIB_MBSSPN.
100407         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
100408         * MODULES.html.sh (Internationalization functions): Add mbsspn.
100410 2007-02-04  Bruno Haible  <bruno@clisp.org>
100412         New module mbspbrk.
100413         * modules/mbspbrk: New file.
100414         * lib/mbspbrk.c: New file.
100415         * lib/string_.h (strpbrk): Add a conditional link warning.
100416         (mbspbrk): New declaration.
100417         * m4/mbspbrk.m4: New file.
100418         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
100419         GNULIB_MBSPBRK.
100420         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
100421         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
100423 2007-02-04  Bruno Haible  <bruno@clisp.org>
100425         New module mbscspn.
100426         * modules/mbscspn: New file.
100427         * lib/mbscspn.c: New file.
100428         * lib/string_.h (strcspn): Add a conditional link warning.
100429         (mbscspn): New declaration.
100430         * m4/mbscspn.m4: New file.
100431         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
100432         GNULIB_MBSCSPN.
100433         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
100434         * MODULES.html.sh (Internationalization functions): Add mbscspn.
100436 2007-02-04  Bruno Haible  <bruno@clisp.org>
100438         New module mbscasestr, reduced goal of strcasestr.
100439         * modules/mbscasestr: New file.
100440         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
100441         (mbscasestr): Renamed from strcasestr.
100442         * lib/strcasestr.c: Don't include mbuiter.h.
100443         (strcasestr): Remove support for multibyte locales.
100444         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
100445         Change the conditional link warning.
100446         (mbscasestr): New declaration.
100447         * m4/mbscasestr.m4: New file.
100448         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
100449         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
100450         REPLACE_STRCASESTR.
100451         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
100452         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
100453         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
100454         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
100455         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
100456         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
100457         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
100458         (Depends-on): Remove mbuiter.
100459         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
100461 2007-02-04  Bruno Haible  <bruno@clisp.org>
100463         Simplify handling of strncasecmp.
100464         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
100465         the conditional link warning.
100466         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
100467         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
100468         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
100469         * modules/strcase (configure.ac): Don't invoke
100470         gl_STRING_MODULE_INDICATOR.
100471         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
100473 2007-02-04  Bruno Haible  <bruno@clisp.org>
100475         New module mbscasecmp, reduced goal of strcasecmp.
100476         * modules/mbscasecmp: New file.
100477         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
100478         (mbscasecmp): Renamed from strcasecmp.
100479         * lib/strcasecmp.c: Don't include mbuiter.h.
100480         (strcasecmp): Remove support for multibyte locales.
100481         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
100482         Change the conditional link warning.
100483         (mbscasecmp): New declaration.
100484         * m4/mbscasecmp.m4: New file.
100485         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
100486         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
100487         REPLACE_STRCASECMP.
100488         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
100489         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
100490         GNULIB_MBSCASECMP.
100491         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
100492         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
100493         * modules/strcase (Files): Remove m4/mbrtowc.m4.
100494         (Depends-on): Remove mbuiter.
100495         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
100497 2007-02-04  Bruno Haible  <bruno@clisp.org>
100499         New module mbsstr. Remove module strstr.
100500         * modules/mbsstr: New file.
100501         * modules/strstr: Remove file.
100502         * lib/mbsstr.c: Renamed from lib/strstr.c.
100503         (mbsstr): Renamed from strstr.
100504         * lib/string_.h (strstr): Remove declaration. Change the conditional
100505         link warning.
100506         (mbsstr): New declaration.
100507         * m4/mbsstr.m4: New file.
100508         * m4/strstr.m4: Remove file.
100509         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
100510         REPLACE_STRSTR.
100511         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
100512         Don't initialize GNULIB_STRSTR.
100513         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
100514         substitute GNULIB_STRSTR and REPLACE_STRSTR.
100515         * MODULES.html.sh (Internationalization functions): Add mbsstr.
100516         (Support for systems lacking ANSI C 89): Remove strstr.
100518 2007-02-04  Bruno Haible  <bruno@clisp.org>
100520         New module mbsrchr.
100521         * modules/mbsrchr: New file.
100522         * lib/mbsrchr.c: New file.
100523         * lib/string_.h (strrchr): Add a conditional link warning.
100524         (mbsrchr): New declaration.
100525         * m4/mbsrchr.m4: New file.
100526         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
100527         GNULIB_MBSRCHR.
100528         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
100529         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
100531 2007-02-04  Bruno Haible  <bruno@clisp.org>
100533         New module mbschr.
100534         * modules/mbschr: New file.
100535         * lib/mbschr.c: New file.
100536         * lib/string_.h (strchr): Add a conditional link warning.
100537         (mbschr): New declaration.
100538         * m4/mbschr.m4: New file.
100539         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
100540         GNULIB_MBSCHR.
100541         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
100542         * MODULES.html.sh (Internationalization functions): Add mbschr.
100544 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
100546         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
100548         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
100550 2007-02-04  Bruno Haible  <bruno@clisp.org>
100552         New module description section 'configure.ac-early'.
100553         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
100554         (func_get_autoconf_early_snippet): New function.
100555         (func_import, func_create_testdir): Use it. Remove special cases for
100556         modules 'extensions' and 'lock'.
100557         * modules/extensions (configure.ac-early): Require
100558         gl_USE_SYSTEM_EXTENSIONS.
100559         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
100561 2007-02-04  Bruno Haible  <bruno@clisp.org>
100563         Make use of gcj-4.3's -fsource and -ftarget option.
100564         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
100565         and if so try the options -fsource and -ftarget.
100566         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
100567         source_version, ftarget_option, target_version arguments.
100568         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
100569         (is_envjavac_oldgcj_14_14_usable): Renamed from
100570         is_envjavac_gcj_14_14_usable.
100571         (is_envjavac_oldgcj_14_13_usable): Renamed from
100572         is_envjavac_gcj_14_13_usable.
100573         (is_gcj_present): Update.
100574         (is_gcj_43, is_gcj43_usable): New functions.
100575         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
100576         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
100577         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
100578         try the options -fsource and -ftarget.
100580 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
100582         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
100583         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
100584         larger value.
100586 2007-02-03  Jim Meyering  <jim@meyering.net>
100588         Give tools a better chance to allocate space for very large buffers.
100589         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
100591         Make pwd and readlink work also when run with an unreadable parent dir
100592         on systems with openat support.
100593         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
100594         provided getcwd function, even when we have openat support.
100595         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
100597 2007-02-02  Bruno Haible  <bruno@clisp.org>
100599         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
100600         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
100601         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
100602         portability problems if one of these functions is only used on specific
100603         platforms.
100604         Reported by Paul Eggert.
100606 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
100608         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
100609         is causing more trouble than it's curing.
100610         * lib/regex_internal.h (__mempcpy): Remove.
100611         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
100612         (and make the code a tad smaller to boot).
100613         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
100615 2007-02-02  Jim Meyering  <jim@meyering.net>
100617         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
100618         section, not in the Makefile.am: one.
100620 2007-02-02  Eric Blake  <ebb9@byu.net>
100622         * lib/strchrnul.c: Always include config.h first.
100624         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
100625         gnulib strstr is not necessary here.
100627 2007-02-02  Simon Josefsson  <simon@josefsson.org>
100629         * m4/socklen.m4: Fix typo.
100631 2007-02-02  Eric Blake  <ebb9@byu.net>
100633         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
100634         * modules/netinet_in (Makefile.am): Likewise.
100636 2007-02-01  Bruno Haible  <bruno@clisp.org>
100638         * lib/string_.h (GL_LINK_WARNING): New macro.
100639         (strcasecmp, strstr, strcasestr): If provided by the system,
100640         conditionally define as a macro that leads to a warning instead of to
100641         an error.
100642         (strncasecmp): Conditionally define as a macro that leads to a warning.
100644 2007-02-01  Karl Berry  <karl@gnu.org>
100646         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
100648 2007-02-01  Bruno Haible  <bruno@clisp.org>
100650         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
100651         renamings.
100653 2007-02-01  Eric Blake  <ebb9@byu.net>
100655         * modules/regex (Depends-on): Revert dependence on mempcpy.
100656         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
100657         module's definition of mempcpy.
100658         Reported by Paul Eggert.
100660 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
100662         * lib/string_.h: If the gnulib module XYZ is not present, undefine
100663         the symbol XYZ before redefining it.  This fixes a problem with
100664         programs that don't use XYZ, when compiled on systems that define
100665         XYZ to something else.
100667 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
100669         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
100670         occurs when "mkdir -m foo" creates a setgid directory that is (1)
100671         writeable to group or other and (2) is intended to have a special
100672         mode bit that is set or cleared.  In such a case, the directory
100673         should be neither group- nor other-writeable until the special
100674         mode bits are right.
100676 2007-01-31  Eric Blake  <ebb9@byu.net>
100678         * modules/mountlist (Depends-on): Add strstr.
100680         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
100681         bug.
100682         * modules/string (Makefile.am): Remove redundant replacement.
100683         * modules/regex (Depends-on): Add mempcpy.
100685 2007-01-31  Bruno Haible  <bruno@clisp.org>
100687         New module description field 'Link'.
100688         * gnulib-tool (func_usage): Document --extract-link-directive.
100689         (sed_extract_prog): Recognize 'Link' directive.
100690         (func_get_link_directive): New function.
100691         (func_import): Show summary of link directives.
100692         Handle --extract-link-directive option.
100693         * modules/acl (Link): New section.
100694         * modules/clock-time (Link): New section.
100695         * modules/euidaccess (Link): New section.
100696         * modules/gettext (Link): New section.
100697         * modules/iconv (Link): New section.
100698         * modules/lock (Link): New section.
100699         * modules/nanosleep (Link): New section.
100700         * modules/readline (Link): New section.
100702 2007-01-27  Bruno Haible  <bruno@clisp.org>
100704         Enforce the use of gnulib modules for unportable <string.h> functions.
100705         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
100706         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
100707         (gl_HEADER_STRING_H_BODY): Require it.
100708         * lib/string_.h: If the gnulib module XYZ is not present, redefine
100709         the symbol XYZ to one that gives a link error.
100710         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
100711         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
100712         * modules/mempcpy (configure.ac): Likewise.
100713         * modules/memrchr (configure.ac): Likewise.
100714         * modules/stpcpy (configure.ac): Likewise.
100715         * modules/stpncpy (configure.ac): Likewise.
100716         * modules/strcase (configure.ac): Likewise.
100717         * modules/strcasestr (configure.ac): Likewise.
100718         * modules/strchrnul (configure.ac): Likewise.
100719         * modules/strdup (configure.ac): Likewise.
100720         * modules/strndup (configure.ac): Likewise.
100721         * modules/strnlen (configure.ac): Likewise.
100722         * modules/strpbrk (configure.ac): Likewise.
100723         * modules/strsep (configure.ac): Likewise.
100724         * modules/strstr (configure.ac): Likewise.
100725         * modules/strtok_r (configure.ac): Likewise.
100727 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
100729         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
100731 2007-01-30  Jim Meyering  <jim@meyering.net>
100733         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
100735 2007-01-29  Bruno Haible  <bruno@clisp.org>
100737         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
100738         * lib/execute.c: Likewise.
100739         * lib/pipe.c: Likewise.
100740         * lib/printf-args.h: Likewise.
100741         * lib/printf-args.c: Likewise.
100742         * lib/printf-parse.c: Likewise.
100743         * lib/vasnprintf.c: Likewise.
100745 2007-01-29  Eric Blake  <ebb9@byu.net>
100747         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
100748         declaration.
100750 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
100752         * lib/strptime.h (strptime): Use 'restrict' for args where
100753         POSIX requires this.
100754         * lib/strptime.c (strptime): Likewise.
100755         Change license notice from LGPL to GPL, since gnulib-tool will
100756         change this as needed.
100757         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
100758         defined.
100759         Include "strptime.h" first, to check interface.
100760         Do not #undef _LIBC and _NL_CURRENT.
100761         Do not include <stdlib.h>; no longer needed.
100762         Include "time_r.h" and declare ptime_locale_status
100763         only if _LIBC is not defined.
100764         (__P): Remove unused macro.
100765         (match_string): Bring back glibc version, but use it only if _LIBC
100766         is defined.
100767         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
100768         Remove unnecessary assertion and abort() call.
100769         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
100770         * m4/strptime.m4: Fix serial number comment.
100771         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
100772         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
100773         (Depends-on): Add time_r.
100775 2007-01-29  Bruno Haible  <bruno@clisp.org>
100777         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
100778         strptime.
100779         * modules/strptime (Depends-on): Add stdbool.
100780         * lib/strptime.h: Include <time.h> always. Add comments.
100782 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
100784         * modules/strptime: New file.
100785         * lib/strptime.h: New file.
100786         * lib/strptime.c: New file.
100787         * m4/strptime.m4: New file.
100789 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
100791         * MODULES.html.sh: New module mpsort.
100792         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
100794         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
100795         a circularity problem with HP-UX ia64 reported by Bob Proulx in
100796         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
100797         All uses changed.
100798         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
100799         All uses changed.
100800         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
100801         to _Restrict_.
100802         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
100803         the parameter matches the prototype.
100805 2007-01-28  Jim Meyering  <jim@meyering.net>
100807         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
100808         sys/time.h here, reverting that part of the previous patch:
100809         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
100811 2007-01-28  Bruno Haible  <bruno@clisp.org>
100813         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
100814         value of $(SYS_TIME_H).
100815         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
100816         remove it conditionally, too. [added by Jim Meyering]
100817         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
100818         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
100819         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
100820         GETTIMEOFDAY_REPLACEMENT to 1.
100822 2007-01-28  Bruno Haible  <bruno@clisp.org>
100824         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
100825         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
100826         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
100827         Set UNISTD_H instead of UNISTD_H2.
100828         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
100830 2007-01-28  Bruno Haible  <bruno@clisp.org>
100832         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
100833         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
100835 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100837         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
100838         (func_create_testdir): Ensure C locale for `grep' and `tr'
100839         character ranges.
100840         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
100841         ACLOCAL_AMFLAGS parsing state machine.
100843 2007-01-27  Bruno Haible  <bruno@clisp.org>
100845         * modules/unistr/base: Update.
100847 2007-01-27  Bruno Haible  <bruno@clisp.org>
100849         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
100850         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
100851         * modules/unistr/u32-mbtouc-unsafe: Renamed from
100852         modules/unistr/u32-mbtouc.
100853         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
100854         * lib/unistr.h: Update.
100855         * lib/linebreak.c: Update.
100856         * modules/unistr/u32-mbtouc: Renamed from
100857         modules/unistr/u32-mbtouc-safe.
100858         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
100859         * lib/unistr.h: Update.
100860         * lib/unistr/u32-to-u8.c: Update.
100861         * lib/unistr/u32-to-u16.c: Update.
100863 2007-01-27  Bruno Haible  <bruno@clisp.org>
100865         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
100866         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
100867         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
100868         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
100869         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
100870         * modules/unistr/u16-mbtouc-unsafe: Renamed from
100871         modules/unistr/u16-mbtouc.
100872         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
100873         * lib/unistr.h: Update.
100874         * lib/linebreak.c: Update.
100875         * modules/linebreak: Update.
100876         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
100877         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
100878         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
100879         * modules/unistr/u16-mbtouc: Renamed from
100880         modules/unistr/u16-mbtouc-safe.
100881         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
100882         * lib/unistr.h: Update.
100883         * lib/unistr/u16-to-u8.c: Update.
100884         * modules/unistr/u16-to-u8: Update.
100885         * lib/unistr/u16-to-u32.c: Update.
100886         * modules/unistr/u16-to-u32: Update.
100888 2007-01-27  Bruno Haible  <bruno@clisp.org>
100890         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
100891         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
100892         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
100893         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
100894         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
100895         * modules/unistr/u8-mbtouc-unsafe: Renamed from
100896         modules/unistr/u8-mbtouc.
100897         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
100898         * lib/unistr.h: Update.
100899         * lib/striconveh.c: Update.
100900         * modules/striconveh: Update.
100901         * lib/linebreak.c: Update.
100902         * modules/linebreak: Update.
100903         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
100904         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
100905         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
100906         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
100907         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
100908         * lib/unistr.h: Update.
100909         * lib/striconveh.c: Update.
100910         * modules/striconveh: Update.
100911         * lib/unistr/u8-to-u16.c: Update.
100912         * modules/unistr/u8-to-u16: Update.
100913         * lib/unistr/u8-to-u32.c: Update.
100914         * modules/unistr/u8-to-u32: Update.
100916 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100918         Sync from Libtool.
100919         * lib/argz.c: Do not include strings.h nor memory.h, include
100920         string.h unconditionally.  Patch by Simon Josefsson.
100922 2007-01-27  Bruno Haible  <bruno@clisp.org>
100924         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
100925         from gl_HEADER_STRING_H_BODY.
100926         (gl_HEADER_STRING_H_BODY): Require it.
100927         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
100928         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
100929         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
100930         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
100931         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
100932         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
100933         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
100934         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
100935         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
100936         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
100937         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
100938         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
100939         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
100940         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
100941         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
100943 2007-01-27  Bruno Haible  <bruno@clisp.org>
100945         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
100946         check_PROGRAMS into noinst_PROGRAMS.
100947         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
100948         check_PROGRAMS in this case.
100949         (func_import): Set for_test to false.
100950         (func_create_testdir): Set for_test to true.
100952 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100953             Bruno Haible  <bruno@clisp.org>
100955         * modules/strcasestr (Files): Remove lib/strcasestr.h.
100956         (Depends-on): Add string.
100957         (Includes): Use <string.h> instead of strcasestr.h.
100958         * modules/string (Makefile.am): Also substitute the value of
100959         REPLACE_STRCASESTR.
100960         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
100961         assume strcasestr is declared in <string.h> not <strings.h>. Also
100962         set REPLACE_STRCASESTR.
100963         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
100964         REPLACE_STRCASESTR.
100965         * lib/strcasestr.h: Remove file.
100966         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
100967         * lib/string_.h (strcasestr): New declaration.
100969 2007-01-27  Bruno Haible  <bruno@clisp.org>
100971         * lib/string_.h: Use 'extern'.
100973 2007-01-27  Jim Meyering  <jim@meyering.net>
100975         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
100976         of set-but-not-used local, "q".
100978         * lib/mempcpy.c: Include <config.h> before <string.h>.
100979         This fixes a compilation error on HP-UX, due to the system's
100980         "restrict"-using mempcpy prototype.
100982 2007-01-26  Bruno Haible  <bruno@clisp.org>
100984         Small optimization.
100985         * lib/javacomp.c: Include c-strstr.h.
100986          (is_envjavac_gcj): Use c_strstr instead of strstr.
100987         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
100989 2007-01-26  Bruno Haible  <bruno@clisp.org>
100991         * MODULES.html.sh (Unicode string functions): Add the new modules.
100993         * modules/uniconv/u32-strconv-to-locale: New file.
100994         * lib/uniconv/u32-strconv-to-locale.c: New file.
100996         * modules/uniconv/u16-strconv-to-locale: New file.
100997         * lib/uniconv/u16-strconv-to-locale.c: New file.
100999         * modules/uniconv/u8-strconv-to-locale: New file.
101000         * lib/uniconv/u8-strconv-to-locale.c: New file.
101002         * modules/uniconv/u32-strconv-from-locale: New file.
101003         * lib/uniconv/u32-strconv-from-locale.c: New file.
101005         * modules/uniconv/u16-strconv-from-locale: New file.
101006         * lib/uniconv/u16-strconv-from-locale.c: New file.
101008         * modules/uniconv/u8-strconv-from-locale: New file.
101009         * lib/uniconv/u8-strconv-from-locale.c: New file.
101011         * modules/uniconv/u32-strconv-to-enc: New file.
101012         * lib/uniconv/u32-strconv-to-enc.c: New file.
101013         * modules/uniconv/u32-strconv-to-enc-tests: New file.
101014         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
101016         * modules/uniconv/u16-strconv-to-enc: New file.
101017         * lib/uniconv/u16-strconv-to-enc.c: New file.
101018         * lib/uniconv/u-strconv-to-enc.h: New file.
101019         * modules/uniconv/u16-strconv-to-enc-tests: New file.
101020         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
101022         * modules/uniconv/u8-strconv-to-enc: New file.
101023         * lib/uniconv/u8-strconv-to-enc.c: New file.
101024         * modules/uniconv/u8-strconv-to-enc-tests: New file.
101025         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
101027         * modules/uniconv/u32-strconv-from-enc: New file.
101028         * lib/uniconv/u32-strconv-from-enc.c: New file.
101029         * modules/uniconv/u32-strconv-from-enc-tests: New file.
101030         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
101032         * modules/uniconv/u16-strconv-from-enc: New file.
101033         * lib/uniconv/u16-strconv-from-enc.c: New file.
101034         * modules/uniconv/u16-strconv-from-enc-tests: New file.
101035         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
101037         * modules/uniconv/u8-strconv-from-enc: New file.
101038         * lib/uniconv/u8-strconv-from-enc.c: New file.
101039         * lib/uniconv/u-strconv-from-enc.h: New file.
101040         * modules/uniconv/u8-strconv-from-enc-tests: New file.
101041         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
101043         * modules/uniconv/u32-conv-from-enc: New file.
101044         * lib/uniconv/u32-conv-from-enc.c: New file.
101045         * modules/uniconv/u32-conv-from-enc-tests: New file.
101046         * tests/uniconv/test-u32-conv-from-enc.c: New file.
101048         * modules/uniconv/u16-conv-from-enc: New file.
101049         * lib/uniconv/u16-conv-from-enc.c: New file.
101050         * lib/uniconv/u-conv-from-enc.h: New file.
101051         * modules/uniconv/u16-conv-from-enc-tests: New file.
101052         * tests/uniconv/test-u16-conv-from-enc.c: New file.
101054         * modules/uniconv/u8-conv-from-enc: New file.
101055         * lib/uniconv/u8-conv-from-enc.c: New file.
101056         * modules/uniconv/u8-conv-from-enc-tests: New file.
101057         * tests/uniconv/test-u8-conv-from-enc.c: New file.
101059         * modules/uniconv/base: New file.
101060         * lib/uniconv.h: New file.
101062 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
101064         * doc/gnulib-tool.texi (Initial import): Update to match current
101065         behavior with strdup module.
101066         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
101067         * lib/memmem.h: Remove; all uses removed.  This is now done
101068         by <string.h>.
101069         * lib/mempcpy.h: Likewise.
101070         * lib/memrchr.h: Likewise.
101071         * lib/stpcpy.h: Likewise.
101072         * lib/stpncpy.h: Likewise.
101073         * lib/strcase.h: Likewise.
101074         * lib/strchrnul.h: Likewise.
101075         * lib/strdup.h: Likewise.
101076         * lib/strndup.h: Likewise.
101077         * lib/strnlen.h: Likewise.
101078         * lib/strpbrk.h: Likewise.
101079         * lib/strsep.h: Likewise.
101080         * lib/strstr.h: Likewise.
101081         * lib/strtok_r.h: Likewise.
101082         * lib/string_.h: New file.
101083         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
101084         Rely on <string.h> instead.
101085         * lib/canon-host.c: Likewise.
101086         * lib/chdir-long.c: Likewise.
101087         * lib/concatpath.c: Likewise.
101088         * lib/exclude.c: Likewise.
101089         * lib/fchdir.c: Likewise.
101090         * lib/getaddrinfo.c: Likewise.
101091         * lib/getcwd.c: Likewise.
101092         * lib/getsubopt.c: Likewise.
101093         * lib/glob.c: Likewise.
101094         * lib/hard-locale.c: Likewise.
101095         * lib/iconvme.c: Likewise.
101096         * lib/javacomp.c: Likewise.
101097         * lib/mempcpy.c: Likewise.
101098         * lib/memrchr.c: Likewise.
101099         * lib/regex_internal.h: Likewise.
101100         * lib/stpncpy.c: Likewise.
101101         * lib/strcasecmp.c: Likewise.
101102         * lib/strchrnul.c: Likewise.
101103         * lib/strdup.c: Likewise.
101104         * lib/striconv.c: Likewise.
101105         * lib/striconveh.c: Likewise.
101106         * lib/striconveha.c: Likewise.
101107         * lib/strncasecmp.c: Likewise.
101108         * lib/strndup.c: Likewise.
101109         * lib/strnlen.c: Likewise.
101110         * lib/strsep.c: Likewise.
101111         * lib/strstr.c: Likewise.
101112         * lib/strtok_r.c: Likewise.
101113         * lib/userspec.c: Likewise.
101114         * lib/w32spawn.h: Likewise.
101115         * lib/xstrndup.c: Likewise.
101116         * lib/mountlist.c (strstr): Remove decl.
101117         * m4/string_h.m4: New file.
101118         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
101119         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
101120         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
101121         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
101122         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
101123         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
101124         Set REPLACE_STRCASECMP if necessary.
101125         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
101126         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
101127         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
101128         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
101129         HAVE_DECL_STRDUP if necessary.
101130         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
101131         since gl_FUNC_STRNDUP does that now.
101132         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
101133         Check for decl here...
101134         (gl_PREREQ_STRNLEN): ... not here.
101135         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
101136         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
101137         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
101138         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
101139         necessary.
101140         * modules/string: New file.
101141         * modules/memmem (Files): Remove special-purpose include file.
101142         (Depends-on): Add string.
101143         (Include): Include <string.h>, not the removed file.
101144         * modules/mempcpy: Likewise.
101145         * modules/memrchr: Likewise.
101146         * modules/stpcpy: Likewise.
101147         * modules/stpncpy: Likewise.
101148         * modules/strcase: Likewise.
101149         * modules/strchrnul: Likewise.
101150         * modules/strdup: Likewise.
101151         * modules/strndup: Likewise.
101152         * modules/strnlen: Likewise.
101153         * modules/strpbrk: Likewise.
101154         * modules/strsep: Likewise.
101155         * modules/strstr: Likewise.
101156         * modules/strtok_r: Likewise.
101157         * tests/test-dirname.c: Don't include "strdup.h", since
101158         <string.h> now suffices.
101159         * tests/test-memmem.c: Don't include "memmem.h", since
101160         <string.h> now suffices.
101162 2007-01-25  Bruno Haible  <bruno@clisp.org>
101164         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
101165         *resultp is 0.
101167         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
101168         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
101169         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
101170         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
101172         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
101173         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
101174         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
101175         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
101176         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
101177         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
101179 2007-01-24  Bruno Haible  <bruno@clisp.org>
101181         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
101182         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
101183         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
101184         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
101185         gl_FUNC_FTS_CORE.
101186         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
101187         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
101188         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
101189         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
101190         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
101191         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
101192         gl_FUNC_FCHOWNAT.
101193         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
101194         gl_FUNC_STRFTIME.
101195         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
101196         Reported by Ralf Wildenhues.
101198 2007-01-24  Bruno Haible  <bruno@clisp.org>
101200         Drop AC_REQUIRE calls that are redundant with the module dependencies.
101201         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
101202         gl_GETADDRINFO.
101203         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
101204         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
101205         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
101207 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
101209         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
101210         Don't use 'exit'; just return from 'main'.
101211         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
101213         * lib/fnmatch_.h: Readjust white space and comments to match
101214         glibc, to avoid spurious diffs.
101216 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101218         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
101219         2004-12-01 change by Jakub Jelinek, since this code won't compile
101220         if !LIBC.  Problem reported by Bob Proulx.
101222 2007-01-23  Bruno Haible  <bruno@clisp.org>
101224         * lib/striconveh.c: Include c-strcaseeq.h.
101225         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
101226         * modules/striconveh (Depends-on): Add c-strcaseeq.
101228 2007-01-23  Bruno Haible  <bruno@clisp.org>
101230         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
101232         * modules/c-strcaseeq: New file.
101233         * lib/c-strcaseeq.h: New file.
101235         * modules/streq: New file.
101236         * lib/streq.h: New file.
101238 2007-01-23  Bruno Haible  <bruno@clisp.org>
101240         * modules/striconveha-tests: New file.
101241         * tests/test-striconveha.c: New file.
101243         * lib/striconveha.h: Include <stdbool.h>.
101244         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
101245         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
101246         (mem_iconveha_notranslit): Renamed from mem_iconveha.
101247         (mem_iconveha): New function.
101248         (str_iconveha_notranslit): Renamed from str_iconveha.
101249         (str_iconveha): New function.
101250         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
101251         c-strcase.
101253 2007-01-23  Bruno Haible  <bruno@clisp.org>
101255         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
101256         encodings without forgiving before trying any encoding with handler.
101257         (str_iconveha): Try all encodings without forgiving before trying any
101258         encoding with handler.
101260 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101262         Import the following changes from libc.
101264         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
101266         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
101268         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
101270         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
101271         normal_bracket label.
101273         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
101275         [BZ #361]
101276         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
101277         to normal_bracket after fetching the next character.
101279 2007-01-22  Bruno Haible  <bruno@clisp.org>
101281         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
101282         argument.
101283         * lib/striconveh.c (iconv_carefully_1): New function.
101284         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
101285         argument.
101286         (str_cd_iconveh): Update.
101287         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
101288         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
101289         * tests/test-striconveh.c (MAGIC): New macro.
101290         (new_offsets): New function.
101291         (main): Test call with and without offsets.
101293 2007-01-22  Bruno Haible  <bruno@clisp.org>
101295         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
101296         * modules/sys_select (Makefile.am): Likewise.
101297         * modules/sys_socket (Makefile.am): Likewise.
101298         * modules/sys_time (Makefile.am): Likewise.
101300 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
101302         * modules/gettimeofday (License): Change from GPL to LGPL, since
101303         gettimeofday is a library function.
101305 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101307         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
101309 2007-01-21  Bruno Haible  <bruno@clisp.org>
101311         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
101313 2007-01-21  Bruno Haible  <bruno@clisp.org>
101315         * modules/striconveha: New file.
101316         * lib/striconveha.h: New file.
101317         * lib/striconveha.c: New file.
101318         * MODULES.html.sh (Internationalization functions): Add striconveha.
101319         * lib/striconv.c (str_iconv): Optimize the case of an empty input
101320         string.
101321         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
101323 2007-01-21  Bruno Haible  <bruno@clisp.org>
101325         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
101326         * lib/striconveh.c (str_iconveh): Likewise.
101328 2007-01-21  Bruno Haible  <bruno@clisp.org>
101330         * lib/striconveh.h (mem_iconveh): New declaration.
101331         * lib/striconveh.c (mem_iconveh): New function.
101332         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
101334 2007-01-21  Bruno Haible  <bruno@clisp.org>
101336         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
101338         * lib/striconveh.h (mem_cd_iconveh): Change specification.
101339         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
101340         original result buffer.
101341         (str_cd_iconveh): Update.
101342         * tests/test-striconveh.c (main): Update.
101344         * lib/striconv.h (mem_cd_iconv): Change specification.
101345         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
101346         result buffer.
101347         (str_cd_iconv): Update.
101348         * tests/test-striconv.c (main): Update.
101350 2007-01-21  Bruno Haible  <bruno@clisp.org>
101352         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
101354 2007-01-20  Jim Meyering  <jim@meyering.net>
101356         * lib/userspec.c (parse_with_separator): If a user or group string
101357         starts with "+", skip the corresponding name-to-ID look-up, since
101358         such a look-up must fail: user and group names may not include "+".
101360 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
101362         * lib/poll.c: Include sys/time.h and time.h unconditionally,
101363         since we now assume the sys_time module.
101364         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
101365         check for sys/time.h; no longer needed.
101366         * modules/poll (Depends-on): Depend on sys_time.
101368 2007-01-18  Bruno Haible  <bruno@clisp.org>
101370         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
101371         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
101373         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
101374         gettimeofday.
101376         * tests/test-gettimeofday.c: Include <time.h>.
101377         (dummy): Remove variable.
101379         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
101380         gl_HEADER_SYS_TIME_H.
101381         (gl_HEADER_SYS_TIME_H): New macro.
101383         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
101384         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
101385         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
101386         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
101387         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
101388         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
101389         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
101390         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
101391         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
101392         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
101393         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
101395         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
101396         last change; it caused a compilation error when cross-compiling to
101397         Cygwin.
101399 2007-01-18  Jim Meyering  <jim@meyering.net>
101401         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
101402         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
101403         than the race-prone "test -d sys || mkdir sys".
101404         (configure.ac): Use AC_PROG_MKDIR_P.
101405         * modules/sys_select: Likewise.
101406         * modules/sys_socket: Likewise.
101407         * modules/sys_time: Likewise.
101409 2007-01-18  Eric Blake  <ebb9@byu.net>
101411         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
101412         replace gettimeofday.
101413         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
101414         name, to avoid infinite recursion.
101416 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
101418         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
101419         module sys_time.
101420         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
101421         assume timespec.h defines struct timeval.
101422         * lib/settime.c: Likewise.
101423         * lib/utimens.c: Likewise.
101424         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
101425         since we now assume the gettimeofday module.
101426         * lib/tempname.c (__gen_tempname): Likewise.
101427         * lib/gettimeofday.h: Remove.
101428         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
101429         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
101430         Include <time.h>, for 'time()'.
101431         (localtime_buffer_addr): Also use this workaround if
101432         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
101433         to simplify the uses.  All uses changed.
101434         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
101435         that #undef is inside {}, and 'const' follows type name consistently.
101436         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
101437         (gettimeofday): Do not use the maximum possible value for
101438         tv->tv_usec, since that might break usages other than ls.c.
101439         Instead, we'll leave ls.c alone.  This undoes today's patch
101440         by Bruno.  Add a compile-time warning for 1s-clock resolution;
101441         we've never observed the problem but might as well keep the
101442         canary.
101443         * lib/nanosleep.c: Include timespec.h first, for interface check.
101444         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
101445         now assume the sys_time module.
101446         * lib/tempname.c: Likewise.
101447         * lib/timespec.h: Likewise.
101448         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
101449         needed.
101450         * lib/strftime.c: Likewise.
101451         * lib/timespec.h: Likewise.
101452         * lib/posixtm.c: Include posixtm.h first, for interface check.
101453         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
101454         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
101455         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
101456         * lib/sys_time_.h: New file.
101457         * lib/timespec.h (struct timespec): Use long int, not long.
101458         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
101459         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
101460         Remove obsolescent call to AC_HEADER_TIME.
101461         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
101462         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
101463         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
101464         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
101465         Likewise.
101466         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
101467         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
101468         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
101469         into the sys_time module.  Check for gettimeofday just once.
101470         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
101471         for gettimeofday signature to just check the signature.  Merely
101472         compile it, since linking doesn't test signature.  Improve test for
101473         whether gettimeofday.o is actually needed.
101474         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
101475         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
101476         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
101477         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
101478         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
101479         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
101480         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
101481         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
101482         than worrying about sys/time.h.
101483         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
101484         Don't bother worrying about TIME_WITH_SYS_TIME.
101485         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
101486         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
101487         * m4/sys_time_h.m4: New file.
101488         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
101489         Don't include sys/time.h.  Return from main rather than exiting.
101490         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
101491         all uses changed.
101492         * modules/gethrxtime (Depends-on): Add sys_time.
101493         * modules/gettime (Depends-on): Likewise.
101494         * modules/gettimeofday (Depends-on): Likewise.
101495         * modules/nanosleep (Depends-on): Likewise.
101496         * modules/settime (Depends-on): Likewise.
101497         * modules/tempname (Depends-on): Likewise.
101498         * modules/utimens (Depends-on): Likewise.
101499         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
101500         (Include): Change back to <sys/time.h>.
101501         (Maintainer): Add self.
101502         * modules/sys_time: New file.
101503         * modules/tempname (Depends-on): Add gettimeofday.
101504         * tests/test-gettimeofday.c: Include <sys/time.h>
101505         rather than gettimeofday.h.
101507 2007-01-17  Bruno Haible  <bruno@clisp.org>
101509         * gnulib-tool (func_get_license): Revert last patch. Instead, let
101510         the license default to GPL.
101511         (func_create_testdir): Don't complain if a module is LGPL and its
101512         tests module depends on GPLed modules.
101514 2007-01-17  Bruno Haible  <bruno@clisp.org>
101516         * lib/gettimeofday.c (gettimeofday): Add code for the case
101517         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
101518         maximum possible value for tv->tv_usec, rather than the minimum one.
101520 2005-10-08  Martin Lambers  <marlam@marlam.de>
101521 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
101522 2007-01-16  Bruno Haible  <bruno@clisp.org>
101524         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
101525         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
101526         gl_FUNC_GETTIMEOFDAY.
101527         (Include): Add gettimeofday.h.
101528         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
101529         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
101530         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
101531         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
101532         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
101533         * lib/gettimeofday.h: New file.
101534         * lib/gettimeofday.c: Include <sys/timeb.h>.
101535         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
101536         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
101537         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
101538         fall back on time().
101540         * tests/test-gettimeofday.c: New file.
101541         * modules/gettimeofday-tests: New file.
101543 2007-01-16  Eric Blake  <ebb9@byu.net>
101545         * modules/fnmatch (Depends-on): Depend on wchar.
101546         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
101547         * m4/fnmatch.m4: Likewise.
101548         * modules/mbchar (Makefile.am): Assume <wchar.h>.
101549         * m4/mbchar.m4: Likewise.
101550         * modules/mbswidth (Depends-on): Depend on wchar.
101551         * lib/mbswidth.c: Assume <wchar.h>.
101552         * m4/mbswidth.m4: Likewise.
101553         * modules/quotearg (Depends-on): Depend on wchar.
101554         * lib/quotearg.c: Assume <wchar.h>.
101555         * m4/quotearg.m4: Likewise.
101556         * modules/regex (Depends-on): Depend on wchar.
101557         * lib/regex_internal.h: Assume <wchar.h>.
101558         * m4/regex.m4: Likewise.
101559         * modules/stdint (Depends-on): Depend on wchar.
101560         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
101561         * m4/stdint.m4: Likewise.
101562         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
101563         * modules/strftime (Depends-on): Depend on wchar.
101564         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
101565         * modules/strtol (Depends-on): Depend on wchar.
101566         * lib/strtol.c: Assume <wchar.h>.
101567         * modules/wcwidth (Depends-on): Depend on wchar.
101568         * lib/wcwidth.h: Assume <wchar.h>.
101569         * m4/wcwidth.m4: Likewise.
101571 2007-01-16  Bruno Haible  <bruno@clisp.org>
101573         * modules/csharpexec-script: New, created from...
101574         * modules/csharpexec: ... this.
101576 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
101578         * modules/javaexec-script: New, created from...
101579         * modules/javaexec: ... this.
101581 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101583         * modules/poll (Dependencies): Add sys_select.
101585 2007-01-15  Jim Meyering  <jim@meyering.net>
101587         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
101588         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
101589         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
101590         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
101592 2007-01-15  Bruno Haible  <bruno@clisp.org>
101594         * modules/striconveh: New file.
101595         * lib/striconveh.h: New file.
101596         * lib/striconveh.c: New file.
101597         * MODULES.html.sh (Internationalization functions): Add striconveh.
101599         * modules/striconveh-tests: New file.
101600         * tests/test-striconveh.c: New file.
101602 2007-01-15  Bruno Haible  <bruno@clisp.org>
101604         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
101605         not from GNU libiconv or GNU libc.
101607 2007-01-15  Bruno Haible  <bruno@clisp.org>
101609         * doc/gnulib-intro.texi (Copyright): Explain the different license
101610         terms for module descriptions, autoconf macros, tests, documentation.
101612 2007-01-14  Bruno Haible  <bruno@clisp.org>
101614         * modules/striconv-tests: New file.
101615         * tests/test-striconv.c: New file.
101617 2007-01-14  Bruno Haible  <bruno@clisp.org>
101619         * modules/iconv-tests: New file.
101620         * tests/test-iconv.c: New file.
101622 2007-01-14  Bruno Haible  <bruno@clisp.org>
101624         * gnulib-tool (func_get_license): For test modules, use the license of
101625         the main module.
101627 2007-01-14  Bruno Haible  <bruno@clisp.org>
101629         * modules/iconv (Include): Clarify that <iconv.h> can only be included
101630         if iconv is found to exist.
101632 2007-01-14  Bruno Haible  <bruno@clisp.org>
101634         * modules/c-ctype-tests: New file.
101635         * tests/test-c-ctype.c: New file.
101637 2007-01-14  Bruno Haible  <bruno@clisp.org>
101639         * modules/binary-io-tests: New file.
101640         * tests/test-binary-io.sh: New file.
101641         * tests/test-binary-io.c: New file.
101643 2007-01-14  Bruno Haible  <bruno@clisp.org>
101645         * modules/array-oset-tests: New file.
101646         * tests/test-array_oset.c: New file.
101648 2007-01-14  Bruno Haible  <bruno@clisp.org>
101650         * modules/array-list-tests: New file.
101651         * tests/test-array_list.c: New file.
101653 2007-01-14  Bruno Haible  <bruno@clisp.org>
101655         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
101656         and make.
101657         Reported by Simon Josefsson in
101658         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
101660 2007-01-14  Bruno Haible  <bruno@clisp.org>
101662         * modules/allocsa-tests: New file.
101663         * tests/test-allocsa.c: New file.
101665 2007-01-14  Bruno Haible  <bruno@clisp.org>
101667         * modules/fchdir (Depends-on): Add absolute-header.
101668         * modules/unistd (Depends-on): Likewise.
101670 2006-12-30  Bruno Haible  <bruno@clisp.org>
101672         * modules/fchdir: New file.
101673         * modules/unistd (Files): Add lib/unistd_.h.
101674         (Makefile.am): Generate unistd.h from unistd_.h.
101675         * lib/fchdir.c: New file.
101676         * lib/dirent_.h: New file.
101677         * lib/unistd_.h: New file.
101678         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
101679         * m4/fchdir.m4: New file.
101680         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
101681         (gl_HEADER_UNISTD): Invoke it.
101682         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
101683         function.
101684         * lib/backupfile.c (opendir, closedir): Undefine.
101685         * lib/chown.c (open, close): Undefine.
101686         * lib/clean-temp.c (open, close): Undefine.
101687         * lib/copy-file.c (open, close): Undefine.
101688         * lib/execute.c (open, close): Undefine.
101689         * lib/fsusage.c (open, close): Undefine.
101690         * lib/gc-gnulib.c (open, close): Undefine.
101691         * lib/getcwd.c (opendir, closedir): Undefine.
101692         * lib/glob.c (opendir, closedir): Undefine.
101693         * lib/javacomp.c (open, close): Undefine.
101694         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
101695         * lib/openat-proc.c (open, close): Undefine.
101696         * lib/pagealign_alloc.c (open, close): Undefine.
101697         * lib/pipe.c (open, close): Undefine.
101698         * lib/progreloc.c (open, close): Undefine.
101699         * lib/savedir.c (opendir, closedir): Undefine.
101700         * lib/utime.c (open, close): Undefine.
101701         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
101703 2007-01-10  Bruno Haible  <bruno@clisp.org>
101705         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
101707 2007-01-12  Eric Blake  <ebb9@byu.net>
101709         Provide a robust <wchar.h>.  Further simplifications are now
101710         possible in other modules, but not included here.
101711         * modules/wchar: New module.
101712         * m4/wchar.m4: New file.
101713         * lib/wchar_.h: Likewise.
101714         * modules/mbchar (Depends-on): Depend on wchar, as the first use
101715         of the new module.
101716         * MODULES.html.sh (Extended multibyte and wide character utilities):
101717         New section.
101719 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
101721         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
101722         to a reasonable default for memory allocation.
101723         (xreadlink): Don't allocate a huge buffer, to work around a buggy
101724         file system that reports garbage st_size values for symlinks.
101725         Problem reported by Liyang Hu.
101727 2007-01-11  Simon Josefsson  <simon@josefsson.org>
101729         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
101730         Emacs .#* auto-save files).
101732 2007-01-11  Bruno Haible  <bruno@clisp.org>
101734         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
101735         directory.
101737 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
101739         Use @...@ consistently in lib/wctype_.h.
101740         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
101741         on it being set to 1 or 0.
101742         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
101743         go back to AC_SUBSTing it.
101744         * modules/wctype (Makefile.am): Undo previous change.
101746 2007-01-10  Eric Blake  <ebb9@byu.net>
101748         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
101749         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
101750         * modules/wctype (Makefile.am): Likewise.
101751         Reported by Chris McGuire.
101753 2007-01-10  Jim Meyering  <jim@meyering.net>
101755         fts.c: a small readability/maintainability improvement
101756         * lib/fts.c (fts_read): Make this code slightly more readable and
101757         maintainable by hoisting the "sp->fts_cur = p" assignments to
101758         immediately follow the statements that set P.  Derived from
101759         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
101761 2007-01-10  Eric Blake  <ebb9@byu.net>
101763         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
101764         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
101765         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
101766         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
101767         Reported by Chris McGuire.
101769 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101771         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
101772         in sed script.
101774 2007-01-09  Bruno Haible  <bruno@clisp.org>
101776         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
101777         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
101778         variables.
101779         (func_module): Use them.
101781 2007-01-09  Bruno Haible  <bruno@clisp.org>
101783         * modules/unistr/base: New file.
101784         * lib/unistr.h: New file.
101786         * modules/unistr/u8-to-u16: New file.
101787         * lib/unistr/u8-to-u16.c: New file.
101789         * modules/unistr/u8-to-u32: New file.
101790         * lib/unistr/u8-to-u32.c: New file.
101792         * modules/unistr/u16-to-u8: New file.
101793         * lib/unistr/u16-to-u8.c: New file.
101795         * modules/unistr/u16-to-u32: New file.
101796         * lib/unistr/u16-to-u32.c: New file.
101798         * modules/unistr/u32-to-u8: New file.
101799         * lib/unistr/u32-to-u8.c: New file.
101801         * modules/unistr/u32-to-u16: New file.
101802         * lib/unistr/u32-to-u16.c: New file.
101804         * modules/unistr/u8-check: New file.
101805         * modules/unistr/u16-check: New file.
101806         * modules/unistr/u32-check: New file.
101807         * lib/unistr/u8-check.c: New file.
101808         * lib/unistr/u16-check.c: New file.
101809         * lib/unistr/u32-check.c: New file.
101811         * modules/unistr/u8-chr: New file.
101812         * modules/unistr/u16-chr: New file.
101813         * modules/unistr/u32-chr: New file.
101814         * lib/unistr/u8-chr.c: New file.
101815         * lib/unistr/u16-chr.c: New file.
101816         * lib/unistr/u32-chr.c: New file.
101818         * modules/unistr/u8-cmp: New file.
101819         * modules/unistr/u16-cmp: New file.
101820         * modules/unistr/u32-cmp: New file.
101821         * lib/unistr/u8-cmp.c: New file.
101822         * lib/unistr/u16-cmp.c: New file.
101823         * lib/unistr/u32-cmp.c: New file.
101825         * modules/unistr/u8-cpy: New file.
101826         * modules/unistr/u16-cpy: New file.
101827         * modules/unistr/u32-cpy: New file.
101828         * lib/unistr/u8-cpy.c: New file.
101829         * lib/unistr/u16-cpy.c: New file.
101830         * lib/unistr/u32-cpy.c: New file.
101831         * lib/unistr/u-cpy.h: New file.
101833         * modules/unistr/u8-cpy-alloc: New file.
101834         * modules/unistr/u16-cpy-alloc: New file.
101835         * modules/unistr/u32-cpy-alloc: New file.
101836         * lib/unistr/u8-cpy-alloc.c: New file.
101837         * lib/unistr/u16-cpy-alloc.c: New file.
101838         * lib/unistr/u32-cpy-alloc.c: New file.
101839         * lib/unistr/u-cpy-alloc.h: New file.
101841         * modules/unistr/u8-endswith: New file.
101842         * modules/unistr/u16-endswith: New file.
101843         * modules/unistr/u32-endswith: New file.
101844         * lib/unistr/u8-endswith.c: New file.
101845         * lib/unistr/u16-endswith.c: New file.
101846         * lib/unistr/u32-endswith.c: New file.
101847         * lib/unistr/u-endswith.h: New file.
101849         * modules/unistr/u8-mblen: New file.
101850         * modules/unistr/u16-mblen: New file.
101851         * modules/unistr/u32-mblen: New file.
101852         * lib/unistr/u8-mblen.c: New file.
101853         * lib/unistr/u16-mblen.c: New file.
101854         * lib/unistr/u32-mblen.c: New file.
101856         * modules/unistr/u8-mbtouc: New file.
101857         * modules/unistr/u16-mbtouc: New file.
101858         * modules/unistr/u32-mbtouc: New file.
101859         * lib/unistr/u8-mbtouc.c: New file.
101860         * lib/unistr/u16-mbtouc.c: New file.
101861         * lib/unistr/u32-mbtouc.c: New file.
101863         * modules/unistr/u8-mbtouc-safe: New file.
101864         * modules/unistr/u16-mbtouc-safe: New file.
101865         * modules/unistr/u32-mbtouc-safe: New file.
101866         * lib/unistr/u8-mbtouc-safe.c: New file.
101867         * lib/unistr/u16-mbtouc-safe.c: New file.
101868         * lib/unistr/u32-mbtouc-safe.c: New file.
101870         * modules/unistr/u8-move: New file.
101871         * modules/unistr/u16-move: New file.
101872         * modules/unistr/u32-move: New file.
101873         * lib/unistr/u8-move.c: New file.
101874         * lib/unistr/u16-move.c: New file.
101875         * lib/unistr/u32-move.c: New file.
101876         * lib/unistr/u-move.h: New file.
101878         * modules/unistr/u8-next: New file.
101879         * modules/unistr/u16-next: New file.
101880         * modules/unistr/u32-next: New file.
101881         * lib/unistr/u8-next.c: New file.
101882         * lib/unistr/u16-next.c: New file.
101883         * lib/unistr/u32-next.c: New file.
101885         * modules/unistr/u8-prev: New file.
101886         * modules/unistr/u16-prev: New file.
101887         * modules/unistr/u32-prev: New file.
101888         * lib/unistr/u8-prev.c: New file.
101889         * lib/unistr/u16-prev.c: New file.
101890         * lib/unistr/u32-prev.c: New file.
101892         * modules/unistr/u8-set: New file.
101893         * modules/unistr/u16-set: New file.
101894         * modules/unistr/u32-set: New file.
101895         * lib/unistr/u8-set.c: New file.
101896         * lib/unistr/u16-set.c: New file.
101897         * lib/unistr/u32-set.c: New file.
101898         * lib/unistr/u-set.h: New file.
101900         * modules/unistr/u8-startswith: New file.
101901         * modules/unistr/u16-startswith: New file.
101902         * modules/unistr/u32-startswith: New file.
101903         * lib/unistr/u8-startswith.c: New file.
101904         * lib/unistr/u16-startswith.c: New file.
101905         * lib/unistr/u32-startswith.c: New file.
101906         * lib/unistr/u-startswith.h: New file.
101908         * modules/unistr/u8-stpcpy: New file.
101909         * modules/unistr/u16-stpcpy: New file.
101910         * modules/unistr/u32-stpcpy: New file.
101911         * lib/unistr/u8-stpcpy.c: New file.
101912         * lib/unistr/u16-stpcpy.c: New file.
101913         * lib/unistr/u32-stpcpy.c: New file.
101914         * lib/unistr/u-stpcpy.h: New file.
101916         * modules/unistr/u8-stpncpy: New file.
101917         * modules/unistr/u16-stpncpy: New file.
101918         * modules/unistr/u32-stpncpy: New file.
101919         * lib/unistr/u8-stpncpy.c: New file.
101920         * lib/unistr/u16-stpncpy.c: New file.
101921         * lib/unistr/u32-stpncpy.c: New file.
101922         * lib/unistr/u-stpncpy.h: New file.
101924         * modules/unistr/u8-strcat: New file.
101925         * modules/unistr/u16-strcat: New file.
101926         * modules/unistr/u32-strcat: New file.
101927         * lib/unistr/u8-strcat.c: New file.
101928         * lib/unistr/u16-strcat.c: New file.
101929         * lib/unistr/u32-strcat.c: New file.
101930         * lib/unistr/u-strcat.h: New file.
101932         * modules/unistr/u8-strchr: New file.
101933         * modules/unistr/u16-strchr: New file.
101934         * modules/unistr/u32-strchr: New file.
101935         * lib/unistr/u8-strchr.c: New file.
101936         * lib/unistr/u16-strchr.c: New file.
101937         * lib/unistr/u32-strchr.c: New file.
101939         * modules/unistr/u8-strcmp: New file.
101940         * modules/unistr/u16-strcmp: New file.
101941         * modules/unistr/u32-strcmp: New file.
101942         * lib/unistr/u8-strcmp.c: New file.
101943         * lib/unistr/u16-strcmp.c: New file.
101944         * lib/unistr/u32-strcmp.c: New file.
101946         * modules/unistr/u8-strcpy: New file.
101947         * modules/unistr/u16-strcpy: New file.
101948         * modules/unistr/u32-strcpy: New file.
101949         * lib/unistr/u8-strcpy.c: New file.
101950         * lib/unistr/u16-strcpy.c: New file.
101951         * lib/unistr/u32-strcpy.c: New file.
101952         * lib/unistr/u-strcpy.h: New file.
101954         * modules/unistr/u8-strcspn: New file.
101955         * modules/unistr/u16-strcspn: New file.
101956         * modules/unistr/u32-strcspn: New file.
101957         * lib/unistr/u8-strcspn.c: New file.
101958         * lib/unistr/u16-strcspn.c: New file.
101959         * lib/unistr/u32-strcspn.c: New file.
101960         * lib/unistr/u-strcspn.h: New file.
101962         * modules/unistr/u8-strdup: New file.
101963         * modules/unistr/u16-strdup: New file.
101964         * modules/unistr/u32-strdup: New file.
101965         * lib/unistr/u8-strdup.c: New file.
101966         * lib/unistr/u16-strdup.c: New file.
101967         * lib/unistr/u32-strdup.c: New file.
101968         * lib/unistr/u-strdup.h: New file.
101970         * modules/unistr/u8-strlen: New file.
101971         * modules/unistr/u16-strlen: New file.
101972         * modules/unistr/u32-strlen: New file.
101973         * lib/unistr/u8-strlen.c: New file.
101974         * lib/unistr/u16-strlen.c: New file.
101975         * lib/unistr/u32-strlen.c: New file.
101976         * lib/unistr/u-strlen.h: New file.
101978         * modules/unistr/u8-strmblen: New file.
101979         * modules/unistr/u16-strmblen: New file.
101980         * modules/unistr/u32-strmblen: New file.
101981         * lib/unistr/u8-strmblen.c: New file.
101982         * lib/unistr/u16-strmblen.c: New file.
101983         * lib/unistr/u32-strmblen.c: New file.
101985         * modules/unistr/u8-strmbtouc: New file.
101986         * modules/unistr/u16-strmbtouc: New file.
101987         * modules/unistr/u32-strmbtouc: New file.
101988         * lib/unistr/u8-strmbtouc.c: New file.
101989         * lib/unistr/u16-strmbtouc.c: New file.
101990         * lib/unistr/u32-strmbtouc.c: New file.
101992         * modules/unistr/u8-strncat: New file.
101993         * modules/unistr/u16-strncat: New file.
101994         * modules/unistr/u32-strncat: New file.
101995         * lib/unistr/u8-strncat.c: New file.
101996         * lib/unistr/u16-strncat.c: New file.
101997         * lib/unistr/u32-strncat.c: New file.
101998         * lib/unistr/u-strncat.h: New file.
102000         * modules/unistr/u8-strncmp: New file.
102001         * modules/unistr/u16-strncmp: New file.
102002         * modules/unistr/u32-strncmp: New file.
102003         * lib/unistr/u8-strncmp.c: New file.
102004         * lib/unistr/u16-strncmp.c: New file.
102005         * lib/unistr/u32-strncmp.c: New file.
102007         * modules/unistr/u8-strncpy: New file.
102008         * modules/unistr/u16-strncpy: New file.
102009         * modules/unistr/u32-strncpy: New file.
102010         * lib/unistr/u8-strncpy.c: New file.
102011         * lib/unistr/u16-strncpy.c: New file.
102012         * lib/unistr/u32-strncpy.c: New file.
102013         * lib/unistr/u-strncpy.h: New file.
102015         * modules/unistr/u8-strnlen: New file.
102016         * modules/unistr/u16-strnlen: New file.
102017         * modules/unistr/u32-strnlen: New file.
102018         * lib/unistr/u8-strnlen.c: New file.
102019         * lib/unistr/u16-strnlen.c: New file.
102020         * lib/unistr/u32-strnlen.c: New file.
102021         * lib/unistr/u-strnlen.h: New file.
102023         * modules/unistr/u8-strpbrk: New file.
102024         * modules/unistr/u16-strpbrk: New file.
102025         * modules/unistr/u32-strpbrk: New file.
102026         * lib/unistr/u8-strpbrk.c: New file.
102027         * lib/unistr/u16-strpbrk.c: New file.
102028         * lib/unistr/u32-strpbrk.c: New file.
102029         * lib/unistr/u-strpbrk.h: New file.
102031         * modules/unistr/u8-strrchr: New file.
102032         * modules/unistr/u16-strrchr: New file.
102033         * modules/unistr/u32-strrchr: New file.
102034         * lib/unistr/u8-strrchr.c: New file.
102035         * lib/unistr/u16-strrchr.c: New file.
102036         * lib/unistr/u32-strrchr.c: New file.
102038         * modules/unistr/u8-strspn: New file.
102039         * modules/unistr/u16-strspn: New file.
102040         * modules/unistr/u32-strspn: New file.
102041         * lib/unistr/u8-strspn.c: New file.
102042         * lib/unistr/u16-strspn.c: New file.
102043         * lib/unistr/u32-strspn.c: New file.
102044         * lib/unistr/u-strspn.h: New file.
102046         * modules/unistr/u8-strstr: New file.
102047         * modules/unistr/u16-strstr: New file.
102048         * modules/unistr/u32-strstr: New file.
102049         * lib/unistr/u8-strstr.c: New file.
102050         * lib/unistr/u16-strstr.c: New file.
102051         * lib/unistr/u32-strstr.c: New file.
102052         * lib/unistr/u-strstr.h: New file.
102054         * modules/unistr/u8-strtok: New file.
102055         * modules/unistr/u16-strtok: New file.
102056         * modules/unistr/u32-strtok: New file.
102057         * lib/unistr/u8-strtok.c: New file.
102058         * lib/unistr/u16-strtok.c: New file.
102059         * lib/unistr/u32-strtok.c: New file.
102060         * lib/unistr/u-strtok.h: New file.
102062         * modules/unistr/u8-uctomb: New file.
102063         * modules/unistr/u16-uctomb: New file.
102064         * modules/unistr/u32-uctomb: New file.
102065         * lib/unistr/u8-uctomb.c: New file.
102066         * lib/unistr/u16-uctomb.c: New file.
102067         * lib/unistr/u32-uctomb.c: New file.
102069         * MODULES.html.sh (Unicode string functions): Add the new modules.
102071 2007-01-08  Bruno Haible  <bruno@clisp.org>
102073         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
102074         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
102075         subdirectories.
102077 2007-01-08  Karl Berry  <karl@gnu.org>
102079         * doc/error.texi: mention that main() fns must set program_name
102080         when progname is used.
102082 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
102084         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
102085         WCTYPE_H is empty, for the benefit of builds from non-distclean
102086         directories.  Problem reported by Eric Blake in
102087         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
102089 2007-01-08  Bruno Haible  <bruno@clisp.org>
102091         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
102092         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
102093         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
102094         PROVIDE_CANONICALIZE_FILENAME_MODE.
102095         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
102097 2007-01-08  Bruno Haible  <bruno@clisp.org>
102099         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
102100         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
102101         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
102102         * lib/fts.c: Likewise.
102103         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
102105 2006-12-25  Bruno Haible  <bruno@clisp.org>
102107         * modules/utf8-ucs4-safe: New file.
102108         * lib/utf8-ucs4-safe.h: New file.
102109         * lib/unistr/utf8-ucs4-safe.c: New file.
102111         * modules/utf16-ucs4-safe: New file.
102112         * lib/utf16-ucs4-safe.h: New file.
102113         * lib/unistr/utf16-ucs4-safe.c: New file.
102115         * MODULES.html.sh (Unicode string functions): Add the new modules.
102117 2007-01-08  Bruno Haible  <bruno@clisp.org>
102119         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
102120         (Depends-on): Add unitypes.
102121         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
102122         (u8_mbtouc_aux): Move out to separate file.
102123         (u8_mbtouc): Use ucs4_t, uint8_t types.
102124         * lib/unistr/utf8-ucs4.c: New file.
102126         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
102127         (Depends-on): Add unitypes.
102128         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
102129         (u16_mbtouc_aux): Move out to separate file.
102130         (u16_mbtouc): Use ucs4_t, uint16_t types.
102131         * lib/unistr/utf16-ucs4.c: New file.
102133         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
102134         (Depends-on): Add unitypes.
102135         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
102136         (u8_uctomb_aux): Move out to separate file.
102137         (u8_uctomb): Use ucs4_t, uint8_t types.
102138         * lib/unistr/ucs4-utf8.c: New file.
102140         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
102141         (Depends-on): Add unitypes.
102142         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
102143         (u16_uctomb_aux): Move out to separate file.
102144         (u16_uctomb): Use ucs4_t, uint16_t types.
102145         * lib/unistr/ucs4-utf16.c: New file.
102147 2006-12-25  Bruno Haible  <bruno@clisp.org>
102149         * modules/unitypes: New file.
102150         * lib/unitypes.h: New file.
102151         * MODULES.html.sh (func_all_modules): New section "Unicode string
102152         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
102153         this section. Add unitypes.
102155 2007-01-08  Bruno Haible  <bruno@clisp.org>
102157         Avoid variable names that conflict with those from libtool.
102158         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
102159         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
102160         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
102161         library_names_spec to acl_library_names_spec, hardcode_* to
102162         acl_hardcode_*.
102163         Reported by Ralf Wildenhues.
102165 2007-01-08  Bruno Haible  <bruno@clisp.org>
102167         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
102168         definition.
102169         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
102170         definition.
102171         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
102172         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
102173         definition.
102174         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
102175         definition.
102176         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
102177         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
102178         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
102179         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
102180         definition.
102181         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
102182         definition.
102183         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
102184         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
102185         GC_USE_<algorithm>.
102186         * lib/gc-libgcrypt.c: Likewise.
102187         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
102188         * modules/gc-arctwo (configure.ac): Likewise.
102189         * modules/gc-des (configure.ac): Likewise.
102190         * modules/gc-hmac-md5 (configure.ac): Likewise.
102191         * modules/gc-hmac-sha1 (configure.ac): Likewise.
102192         * modules/gc-md2 (configure.ac): Likewise.
102193         * modules/gc-md4 (configure.ac): Likewise.
102194         * modules/gc-md5 (configure.ac): Likewise.
102195         * modules/gc-random (configure.ac): Likewise.
102196         * modules/gc-rijndael (configure.ac): Likewise.
102197         * modules/gc-sha1 (configure.ac): Likewise.
102199 2007-01-08  Bruno Haible  <bruno@clisp.org>
102201         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
102202         macro definition.
102203         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
102204         definition.
102205         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
102206         definition.
102207         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
102208         * modules/fcntl-safer (configure.ac): Likewise.
102209         * modules/fopen-safer (configure.ac): Likewise.
102210         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
102211         GNULIB_FWRITEERROR macro definition.
102213 2007-01-08  Bruno Haible  <bruno@clisp.org>
102215         * m4/gnulib-common.m4: New file.
102216         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
102217         (func_get_filelist): Add m4/gnulib-common.m4.
102219 2007-01-08  Bruno Haible  <bruno@clisp.org>
102221         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
102222         command.
102224 2007-01-08  Jim Meyering  <jim@meyering.net>
102226         Use a more robust test for a "can't happen" condition.
102227         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
102228         narrowed the st_size value.  Presuming the "can't happen" condition
102229         is true, that narrowing could conceivably convert an invalid st_size
102230         value into a valid one.  Instead, use a change based on Matthew
102231         Woehlke's original patch.
102233         Slight readability improvement: use an assert-like macro
102234         in place of literal "abort ()" uses.
102235         * lib/fts.c (fts_assert): Define.
102236         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
102237         Use this macro instead of a bare 'abort'.
102239 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
102241         Don't worry about using IRIX 5.3's wctype.h broken definitions;
102242         simply work around them.
102243         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
102244         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
102245         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
102246         declaring.
102247         Don't bother to define as macros, since the standard doesn't require it.
102248         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
102249         longer worry about IRIX 5.3.
102250         (HAVE_WCTYPE_CTMP_BUG): Remove.
102252 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
102254         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
102255         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
102256         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
102257         Problems reported by Georg Schwarz for IRIX 5.3.
102259         * gnulib-tool (autoconf_minversion): Take the maximum version number
102260         found, not the minimum.  Problem reported by James Youngman.
102262 2007-01-03  Karl Berry  <karl@gnu.org>
102264         * doc/error.texi: new file, explaining interaction with progname.
102265         * doc/gnulib.texi: include it.  Update copyright.
102267 2007-01-03  Simon Josefsson  <simon@josefsson.org>
102269         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
102270         AC_CANONICAL_HOST, to improve autobuild outputs.
102272 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
102273             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
102275         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
102276         sockets, server sockets, and other file descriptors.  Count errors
102277         to compute the return value.  Reorder the code a bit to be easier
102278         to follow.  Don't set event bits that were not requested (except
102279         POLLERR and POLLHUP).
102281 2007-01-01  Bruno Haible  <bruno@clisp.org>
102283         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
102285 2007-01-03  Jim Meyering  <jim@meyering.net>
102287         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
102289 2007-01-02  Bruno Haible  <bruno@clisp.org>
102291         * modules/settime (Include): Require timespec.h.
102292         * modules/nanosleep (Include): Likewise.
102294 2007-01-01  Bruno Haible  <bruno@clisp.org>
102296         * gnulib-tool (func_emit_copyright_notice): Bump year.
102297         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
102299 2007-01-01  Bruno Haible  <bruno@clisp.org>
102301         Improve support for OpenBSD.
102302         * build-aux/config.rpath (libname_spec): Export.
102303         (library_names_spec): New variable. Export.
102304         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
102305         library_names_spec from the config.rpath output. Locate shared library
102306         through the name pattern in library_names_spec.
102308 2007-01-01  Eric Blake  <ebb9@byu.net>
102310         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
102312 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
102314         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
102315         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
102316         assume the C locale, and avoid an "eval" that could cause trouble.
102317         Problem with SORT reported by Bob Proulx.
102319         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
102320         Define.  Trivial patch from Henning Nielsen Lund, originally
102321         sent to bug-grep@gnu.org today.
102323 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
102325         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
102326         struct stat.  Problem reported by Henning Nielsen Lund.
102327         * lib/acl.c: Include acl.h first, to check interface.  Don't
102328         bother to include sys/types.h and sys/stat.h again.
102330 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
102332         Import the following change from libc; problem reported by
102333         Sven Verdoolaege.
102335         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
102337         [BZ #1373]
102338         * lib/argp.h: Remove __NTH for __argp_usage inline function.
102340 2006-12-28  Jim Meyering  <jim@meyering.net>
102342         * build-aux/announce-gen: Do not assume that the package
102343         builds any of tar.gz, tar.bz2, and .xdelta files.
102344         Suggestion from Simon Josefsson.
102346 2006-12-28  Simon Josefsson  <simon@josefsson.org>
102348         * modules/announce-gen: New file.
102350 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
102352         * lib/mbchar.h: Just include <wctype.h>; the wctype module
102353         handles its gotchas now.
102354         * lib/mbswidth.c: Likewise.
102355         * lib/wcwidth.h: Likewise.
102356         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
102357         and iswcntrl; the wctype module does this stuff now.
102358         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
102359         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
102360         * modules/mbchar (Depends-on): Add wctype.
102361         * modules/mbswidth (Depends-on): Likewise.
102362         * modules/wcwidth (Depends-on): Likewise.
102364 2006-12-27  Eric Blake  <ebb9@byu.net>
102366         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
102367         module uses more than what <wctype.h> is required to provide.
102369 2006-12-26  Eric Blake  <ebb9@byu.net>
102371         * gnulib-tool (sed_extract_prog): Avoid space-tab.
102373 2006-12-26  Eric Blake  <ebb9@byu.net>
102375         * modules/absolute-header: New module.
102376         * modules/fcntl (Depends-on): Depend on it.
102377         * modules/inttypes (Depends-on): Likewise.
102378         * modules/stdint (Depends-on): Likewise.
102379         * modules/sys_stat (Depends-on): Likewise.
102380         * modules/wctype (Depends-on): Likewise.
102381         * MODULES.html.sh (Support for building libraries and
102382         executables): Document it.
102384 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
102386         * gnulib-tool (SED): Remove, undoing previous change.
102387         The problem was that it broke coreutils on Solaris, because
102388         "sed --posix" leaked into a makefile.
102389         (sed): New alias, if 'alias' and GNU sed.
102391 2006-12-24  Jim Meyering  <jim@meyering.net>
102393         Work around an fchownat bug in glibc-2.4:
102394         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
102395         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
102396         in spite of the -P option.
102397         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
102398         New macros.
102399         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
102400         * modules/openat (Files): Add lib/fchownat.c.
102401         * lib/openat.c (fchownat): Don't define here.  Move to...
102402         * lib/fchownat.c: ...this new file.
102404 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
102406         Fix bug reported by Bruno Haible in
102407         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
102408         where quotearg.c didn't compile on Mac OS X 10.2 because it
102409         lacks <wchar.h> and wint_t.
102410         * lib/wctype_.h (__wctype_wint_t): New type.
102411         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
102412         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
102413         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
102414         Arg is now of type __wctype_wint_t, not wint_t.
102415         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
102416         substitute HAVE_WINT_T.
102417         * modules/wctype (Files): Add m4/wint_t.m4.
102418         (wctype.h): Substitute HAVE_WINT_T.
102420 2006-12-23  Bruno Haible  <bruno@clisp.org>
102422         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
102424 2006-12-23  Bruno Haible  <bruno@clisp.org>
102426         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
102427         S_ISLNK.
102428         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
102429         mingw.
102431 2006-12-22  Bruno Haible  <bruno@clisp.org>
102433         * lib/copy-file.c: Include acl.h.
102434         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
102435         Close the file descriptors only after being done with copy_acl.
102436         * modules/copy-file (Depends-on): Add acl.
102438 2006-12-22  Bruno Haible  <bruno@clisp.org>
102440         * gnulib-tool (SED): New variable.
102441         Use $SED instead of sed everywhere.
102443 2006-12-22  Bruno Haible  <bruno@clisp.org>
102445         * modules/no-c++: New file.
102446         * m4/no-c++.m4: New file.
102447         * MODULES.html.sh (Support for building libraries and executables):
102448         Add no-c++.
102450 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
102452         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
102453         Include <limits.h>, and use its INT_MAX to rewrite the
102454         j loop so that it does not overflow 'int'.  Problem reported by
102455         Ralf Wildenhues in
102456         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
102457         Play it safe by shifting left by 1 rather than multiplying by 2,
102458         as GCC is less likely to optimize this away when the value
102459         is signed (when it assumes overflow leads to undefined behavior).
102460         Also, don't assume time_t uses two's complement.
102462 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
102464         * MODULES.html.sh: New module wctype.
102465         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
102466         * lib/fnmatch.c: Don't bother to include <wchar.h> before
102467         <wctype.h>, since the new wctype module should fix this.
102468         * lib/quotearg.c: Include <wctype.h> unconditionally, since
102469         the wctype module should arrange for it.
102470         * lib/regex_internal.h: Likewise.
102471         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
102472         since the wctype module should handle this now.
102473         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
102474         * modules/fnmatch (Depends-on): Add wctype.
102475         * modules/quotearg (Depends-on): Likewise.
102476         * modules/regex (Depends-on): Likewise.
102478 2006-12-19  Bruno Haible  <bruno@clisp.org>
102480         * lib/strdup.h [C++]: Wrap definitions in extern "C".
102481         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
102483 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102485         * modules/savewd (Depends-on): Fix dependency on fcntl.
102487 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
102489         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
102490         conforms to C99, rather than relying on the user's environment
102491         setting of STDINT_H.
102493 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
102494         and Eric Blake  <ebb9@byu.net>
102496         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
102497         This is more consistent with the other defines here.
102498         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
102499         Port to z/OS.  Problem reported by Paul Gilmartin.
102500         Change local vars to use gl_ prefix rather than ac_.
102501         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
102502         with other defines.
102503         * modules/double-slash-root: New module.
102504         * modules/dirname (Files): Remove m4/double-slash-root.m4.
102505         (Depends-on): Add double-slash-root.
102506         * MODULES.html.sh (File system functions): Mention new module.
102508 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
102510         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
102511         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
102512         This is for the benefit of gzip, which doesn't do i18n.
102514 2006-12-12  Jim Meyering  <jim@meyering.net>
102516         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
102517         Reported by Andreas Schwab <schwab@suse.de>.
102519 2006-12-12  Bruno Haible  <bruno@clisp.org>
102521         Merge these changes.
102522         2006-09-05  Bruno Haible  <bruno@clisp.org>
102523         * lib/iconvme.c (iconv_string): No need to save and restore errno when
102524         iconv_alloc succeeded.
102525         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
102526         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
102527         test for " && dest " at the end - dest is always != NULL there. Call
102528         iconv with 4xNULL arguments initially, to reset the state. Call iconv
102529         with 2xNULL arguments, also to flush the state storage. Handle the
102530         IRIX iconv behaviour. Realloc the final result, to throw away unused
102531         memory.
102533 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
102535         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
102536         and fchmodat unconditionally, since glibc 2.4 has them.
102537         Problem reported by Arkadiusz Miskiewicz.
102539 2006-12-10  Bruno Haible  <bruno@clisp.org>
102541         * gnulib-tool (func_import): Show the include files only for those
102542         modules that are copied and specified.
102543         Reported by Karl Berry.
102545 2006-12-08  Jim Meyering  <jim@meyering.net>
102547         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
102548         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
102550         * build-aux/announce-gen: Add two new options, both optional:
102551         --bootstrap-tools=TOOL_LIST
102552               a comma-separated list of tools, e.g.,
102553               autoconf,automake,bison,gnulib
102554         --gnulib-snapshot-date=DATE
102555               if gnulib is in the bootstrap tool list,
102556               then report this as the snapshot date.
102557               If not specified, use the current date/time.
102558               If you specify a date here, be sure it's UTC.
102560 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102562         * tests/test-argp-2.sh: Fix test to match actual output.
102563         (func_compare): Fix sed script to be portable.
102565 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
102567         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
102568         workaround for this case.  It is not autoconfigured now; offhand
102569         it's hard to see how to autoconfigure it.
102571 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
102573         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
102574         a directory that is about to be chowned.  Such a directory's
102575         initial file permissions should permit the owner only and this
102576         should not be changed until after the chown, since the group and
102577         other bits would be incorrect if they granted permission before
102578         the chown.
102580         Fix porting problem for iswctype reported by Georg Schwarz in:
102581         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
102582         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
102583         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
102584         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
102585         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
102587 2006-12-03  Jim Meyering  <jim@meyering.net>
102589         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
102590         p->fts_statp may not yet be defined.
102591         (fts_read): Instead, set it in the caller, once p->fts_statp is
102592         sure to be defined, and corresponds to a top-level directory.
102593         This bug made du -x fail.  Here's the coreutils test case:
102594         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
102595         Reported by Mike Frysinger.
102597 2006-12-01  Jim Meyering  <jim@meyering.net>
102599         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
102600         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
102601         Reported by Simon Josefsson.
102603 2006-11-30  Jim Meyering  <jim@meyering.net>
102605         * m4/warning.m4: Use the all-permissive copyright notice
102606         recommended by RMS (rather than LGPL).
102607         * m4/vararrays.m4: Likewise.
102608         * m4/flexmember.m4: Likewise.
102610 2006-11-29  Bruno Haible  <bruno@clisp.org>
102612         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
102613         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
102614         using +=.
102615         Reported by Simon Josefsson <simon@josefsson.org>.
102617 2006-11-28  James Youngman  <jay@gnu.org>
102619         * README: Advise users that they might find the bug-gnulib@gnu.org
102620         and autotools-announce@gnu.org mailing lists useful.
102622 2006-11-28  Bruno Haible  <bruno@clisp.org>
102624         * m4/ptrdiff_max.m4: Remove file.
102626 2006-11-21  Bruno Haible  <bruno@clisp.org>
102628         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
102629         _AC_COMPUTE_INT.
102630         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
102631         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
102632         _AC_COMPUTE_INT.
102633         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
102634         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
102635         _AC_COMPUTE_INT.
102636         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
102638 2006-11-28  Jim Meyering  <jim@meyering.net>
102640         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
102641         warning from "gcc -Wshadow" about shadowing the builtin.
102643 2006-11-27  Bruno Haible  <bruno@clisp.org>
102645         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
102646         _AC_COMPUTE_INT.
102647         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
102649 2006-11-27  Bruno Haible  <bruno@clisp.org>
102650             Paul Eggert  <eggert@cs.ucla.edu>
102652         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
102654 2006-11-26  Bruno Haible  <bruno@clisp.org>
102656         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
102657         noinst_LTLIBRARIES.
102659 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
102660             Bruno Haible  <bruno@clisp.org>
102662         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
102663         if compiling with "gcc -ansi".
102665 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
102667         Fix some incompatibilities with gcc -ansi -pedantic.
102668         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
102669         if compiling pedantically with GCC, unless it's C99 or later.
102670         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
102671         it mishandles gcc -ansi -pedantic as well.
102672         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
102673         if gcc -pedantic.
102674         * lib/regexec.c (check_node_accept_bytes): Don't use auto
102675         initializers for struct if -pedantic, unless it's C99 or later.
102677 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
102679         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
102680         Don't close an fd more than once. Identical atimes indicate
102681         success, not failure.
102683 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
102685         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
102687 2006-11-23  Jim Meyering  <jim@meyering.net>
102689         * build-aux/announce-gen: New file.  From coreutils.
102691 2006-11-22  Jim Meyering  <jim@meyering.net>
102693         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
102694         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
102695         (fts_read): Use a temporary to narrow the overused st_size member
102696         before using it in a switch statement.  Reported by Matthew Woehlke.
102698         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
102699         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
102701 2006-11-20  Bruno Haible  <bruno@clisp.org>
102703         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
102704         changequote instead of pairs of brackets.
102705         Reported by Andreas Schwab <schwab@suse.de>.
102707 2006-11-21  Jim Meyering  <jim@meyering.net>
102709         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
102710         so as to remain compatible with older compilers.
102711         Patch from Michael Deutschmann.
102713 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
102715         * MODULES.html.sh (File system functions): Add openat.
102717         * lib/openat.h (rpl_fstatat): New macro, if
102718         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
102719         (fstatat): Define to rpl_fstatat under the same conditions,
102720         unless COMPILING_FSTATAT.
102721         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
102722         seems to have the bug.
102723         * lib/fstatat.c: New file.
102724         * modules/openat (Files): Add it.
102726 2006-11-20  Bruno Haible  <bruno@clisp.org>
102728         * Makefile: New file.
102730 2006-11-20  Jim Meyering  <jim@meyering.net>
102732         The beginnings of syntax-related checks for gnulib.
102733         * lib/Makefile: New file.
102734         * lib/t-idcache: New script.  Ensure that the two halves of
102735         idcache.c stay in sync.
102737         * lib/idcache.c: Adjust comments in user- and group- portions to
102738         be more accurate, and to be consistent with one another.
102740 2006-11-20  Jim Meyering  <jim@meyering.net>
102742         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
102743         continue using the flexible array member (thus, this module performs
102744         half as many malloc calls), with the addition that...
102745         (getgroup, getuser): Consistently record a non-match via an empty
102746         "name" string, and map an empty string match to a NULL return value.
102747         * modules/idcache (Depends-on): Re-add flexmember.
102749         * lib/idcache.c (getuser): Remove all uses of the register keyword.
102750         (getuidbyname, getgroup, getgidbyname): Likewise.
102752         Use cleaner syntax: NULL rather than 0.
102753         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
102755 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
102757         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
102758         It mishandled the case where the group was missing.
102759         Problem reported by Greg Schafer.
102760         * modules/idcache: Likewise.
102762 2006-11-18  Jim Meyering  <jim@meyering.net>
102764         * check-module (%exempt_header): Add exception for some
102765         conditionally-included headers.
102767         * modules/i-ring (Depends-on): Add verify.
102768         (License): Change to LGPL.
102770 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
102772         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
102773         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
102774         and inttostr.h.  Use snprintf rather than uinttostr, so that
102775         LGPLed code doesn't depend on GPLed.
102777 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
102779         * modules/inline (License): Change from GPL to LGPL.
102781 2006-11-17  Jim Meyering  <jim@meyering.net>
102783         * modules/d-type (License): Switch to LGPL.
102785 2006-11-15  Bruno Haible  <bruno@clisp.org>
102787         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
102789 2006-11-15  Eric Blake  <ebb9@byu.net>
102791         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
102792         the module dependency.
102794 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102795             Bruno Haible  <bruno@clisp.org>
102797         * gnulib-tool (func_create_testdir): Add license consistency check.
102799 2006-11-15  Eric Blake  <ebb9@byu.net>
102801         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
102802         random "(cached)" in configure output.
102804 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102806         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
102807         test for conforming inttypes.h is both announced and cached.
102809         * MODULES.html.sh (seen_modules, seen_files): New variables.
102810         (func_module): Rewrite to use a few less gnulib-tool and sed
102811         invocations.  Avoid a couple of quadratic algorithms for ...
102812         (missed_modules, missed_files): ... these, with ...
102813         (func_append, func_tmpdir): ... these new functions, from
102814         gnulib-tool.  Analogously, install traps for cleanup.
102816         * tests/test-gc.c (main): Remove unused variables.
102817         * tests/test-read-file.c: Include stdlib.h, for 'free'.
102819 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
102821         * modules/inttostr (License): Change to LGPL.
102823 2006-11-14  Eric Blake  <ebb9@byu.net>
102825         * modules/tempname (License): Change to LGPL.
102827 2006-11-14  Eric Blake  <ebb9@byu.net>
102829         * doc/functions.texi (Function Portability): *printf functions on
102830         Cygwin now understand all POSIX size specifiers.
102832 2006-11-14  Bruno Haible  <bruno@clisp.org>
102834         * modules/c-ctype (License): Change to LGPL.
102836 2006-11-12  Bruno Haible  <bruno@clisp.org>
102838         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
102839         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
102840         for GNOME libraries, for which the include files are installed in
102841         subdirectories of $prefix/include.
102843 2006-11-12  Bruno Haible  <bruno@clisp.org>
102845         * m4/lib-link.m4: Require at least autoconf-2.54.
102846         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
102847         name to underscores for the --with option.
102849 2006-11-13  Bruno Haible  <bruno@clisp.org>
102851         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
102852         the tests directory.
102853         Reported by Ralf Wildenhues.
102855 2006-11-13  Bruno Haible  <bruno@clisp.org>
102857         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
102858         (func_emit_initmacro_end): Undo the override here.
102859         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
102860         Works around the famous automake error in coreutils.
102862 2006-11-13  Eric Blake  <ebb9@byu.net>
102864         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
102865         element, not its node.
102867 2006-11-12  Bruno Haible  <bruno@clisp.org>
102869         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
102870         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
102872 2006-11-12  Bruno Haible  <bruno@clisp.org>
102874         * gnulib-tool: New option --local-symlink.
102875         (func_usage): Document it.
102876         (lsymbolic): New variable.
102877         (func_import, func_create_testdir): If --symlink was not specified,
102878         test whether --local-symlink was specified and the file comes from
102879         the local_gnulib_dir.
102881 2006-11-12  Bruno Haible  <bruno@clisp.org>
102883         * gnulib-tool (func_ln): New function.
102884         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
102886 2006-11-12  Bruno Haible  <bruno@clisp.org>
102888         Finish support for source files in subdirectories.
102889         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
102890         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
102891         AUTOMAKE_OPTIONS.
102892         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
102894 2006-11-12  Bruno Haible  <bruno@clisp.org>
102896         * gnulib-tool (func_get_automake_snippet): Synthesize also an
102897         EXTRA_lib_SOURCES augmentation.
102898         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
102900 2006-11-12  Jim Meyering  <jim@meyering.net>
102902         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
102903         file descriptors.  This also averts a failure on systems with
102904         native openat support when a traversed directory lacks "x" access.
102905         * lib/fts_.h: Include "i-ring.h"
102906         (struct FTS) [fts_fd_ring]: New member.
102907         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
102908         (FCHDIR): Add parentheses.
102909         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
102910         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
102911         When descending, rather than simply closing the previous
102912         fts_cwd_fd value, push that file descriptor onto the ring.
102913         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
102914         (fts_open): Initialize the new fd_ring member.
102915         (fts_close): Clear the ring.
102916         (fts_safe_changedir): When possible, use our new fd_ring to skip
102917         the diropen and fstat and dev/ino comparison that would normally
102918         accompany a virtual `chdir ("..")'.
102920         * modules/fts (Depends-on): Add i-ring.
102921         * modules/i-ring: New module.
102922         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
102923         * m4/i-ring.m4: New file.
102925 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102927         * gnulib-tool (func_create_testdir): Fix replacement of
102928         `build-aux' in configure.ac.  Run autotools in gltests
102929         subdirectory.
102930         (func_create_testdir, func_create_megatestdir, test): There is
102931         no need for '--force' in most autotool invocations in a new
102932         tree.  Actually fail the whole test if any of the tools, or the
102933         configure or make stages fail.
102935         Sync from Automake.
102936         * build-aux/gnupload: Revert last change.  Add pointer to upload
102937         instructions of the GNU Maintenance Instructions.
102938         Suggestion by Karl Berry.
102940 2006-11-10  Jim Meyering  <jim@meyering.net>
102942         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
102944 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
102946         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
102947         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
102948         (bind_textdomain_codeset) [! ENABLE_NLS]:
102949         Evaluate all the arguments.  That way, callers get compatible behavior
102950         if the arguments have side effects.  Also, it avoids some GCC
102951         diagnostics in some cases; Joel E. Denny reported problems when Bison
102952         was configured with --enable-gcc-warnigs.
102954 2006-11-10  Jim Meyering  <jim@meyering.net>
102956         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
102957         relevant options in CFLAGS (like -O, -fno-inline) are taken into
102958         account.
102960 2006-11-10  Jim Meyering  <jim@meyering.net>
102962         * modules/inline: New file/module.
102963         * modules/xalloc (Files): Remove m4/inline.m4.
102964         (Depends-on): Add inline, instead.
102965         * modules/oset: Likewise.
102966         * modules/list: Likewise.
102968 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
102970         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
102971         Problem reported by Matthew Woehlke.
102973 2006-11-09  Bruno Haible  <bruno@clisp.org>
102975         * lib/tempname.c (gen_tempname): Remove variant that invokes
102976         __gen_tempname.
102977         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
102978         __gen_tempname.
102980 2006-11-08  Bruno Haible  <bruno@clisp.org>
102982         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
102983         to 'yes' instead of 'cross-compiling'.
102985 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
102987         * lib/quotearg.h (quotearg_free): New decl.
102988         * lib/quotearg.c (quotearg_free): New function.
102989         (slot0, nslots, slotvec0, slotvec):
102990         Now file-scope so that quotearg_free can get at them.
102992 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102994         Sync from Automake.
102995         * build-aux/gnupload: Add missing 'gnu' to example URL.
102996         Report by Karl Berry.
102998 2006-11-08  Bruno Haible  <bruno@clisp.org>
103000         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
103001         Suggested by Paul Eggert.
103003 2006-11-08  Jim Meyering  <jim@meyering.net>
103005         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
103006         It's already included if !_LIBC.
103007         (fts_safe_changedir): Add a comment.
103009 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
103011         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
103012         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
103013         Matthew Woehlke.
103015         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
103016         definitions up, to avoid colliding with change below.
103017         (static_inline) [HAVE_INLINE]: New macro.
103018         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
103019         Provide extern decls when !HAVE_INLINE.  Do not define unless
103020         static_inline is defined, either by us or by xmalloc.c.  Use
103021         static_inline rather than static inline.
103022         (XCALLOC): Optimize sizeof(T) = 1 case.
103023         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
103025 2006-11-07  Bruno Haible  <bruno@clisp.org>
103027         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
103028         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
103029         AC_C_INLINE.
103030         * modules/xalloc (Files): Add m4/inline.m4.
103032 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103034         * README: Fix typo.
103035         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
103036         (Miscellanous Notes): ...from this.
103038 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
103040         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
103041         Mention that offsetof should be used instead of sizeof.
103042         From Bruno Haible.
103044 2006-11-07  Bruno Haible  <bruno@clisp.org>
103046         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
103048 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
103050         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
103051         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
103052         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
103053         (gl_tree_add_before, gl_tree_add_after):
103054         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
103055         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
103056         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
103057         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
103058         (gl_linked_add_after, gl_linked_add_at): Likewise.
103059         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
103060         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
103061         (gl_tree_add_before, gl_tree_add_after): Likewise.
103062         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
103063         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
103064         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
103066 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103068         * lib/gl_oset.h: Use C comment style, not C++ comment style.
103070 2006-11-06  Bruno Haible  <bruno@clisp.org>
103072         * m4/inline.m4: New file.
103073         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
103074         * modules/list (Files): Add m4/inline.m4.
103075         * modules/oset (Files): Likewise.
103077 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
103079         * lib/idcache.c: Include <stddef.h>, for offsetof.
103080         (struct userid.name): Change from char * to a flexible array member.
103081         All uses changed.
103082         * modules/idcache (Depends-on): Add flexmember.
103084         * MODULES.html.sh (Core language properties): New module flexmember.
103085         * modules/flexmember, m4/flexmember.m4: New files.
103087         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
103088         inline functions that are identical with the old xnmalloc_inline,
103089         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
103090         that we can avoid some unnecessary integer multiplications and
103091         divisions in the common case where the element size is known at
103092         compile time.
103093         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
103094         needed.
103095         (xnboundedmalloc): Remove.
103096         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
103097         arguments, for consistency with rest of this header.
103098         (xcharalloc): Rewrite using XNMALLOC.
103099         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
103100         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
103101         versions have been moved to lib/xalloc.h and renamed to be the
103102         non-*_inline versions.
103103         (xmalloc, xrealloc): Implement without reference to the xnmalloc
103104         and xnrealloc functions, since those functions are now inline and
103105         now call us.
103106         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
103107         renaming described above.
103108         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
103109         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
103110         captures the dependency in AC_C_INLINE.
103112         New module canonicalize-lgpl, proposed by Charles Wilson in
103113         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
103114         with a few small changes afterwards.
103115         * MODULES.html.sh (File system functions): New module
103116         canonicalize-lgpl.
103117         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
103118         and canonicalize_file_name.
103119         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
103120         * modules/canonicalize-lgpl: New files.
103122 2006-11-05  Bruno Haible  <bruno@clisp.org>
103124         * gnulib-tool (func_import, func_create_testdir): Create directories
103125         also for files in subdirectories of lib/.
103127 2006-11-05  Bruno Haible  <bruno@clisp.org>
103129         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
103130         ANSI C compliant.
103132 2006-11-03  Bruno Haible  <bruno@clisp.org>
103134         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
103135         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
103136         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
103137         (xnboundedmalloc): New inline function.
103138         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
103139         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
103140         xmalloc.
103141         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
103142         xmalloc.
103143         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
103144         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
103145         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
103146         xmalloc.
103147         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
103148         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
103149         xmalloc.
103150         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
103151         gl_tree_add_after): Use XMALLOC instead of xmalloc.
103152         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
103153         xmalloc.
103154         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
103155         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
103156         gl_tree_add_after): Use XMALLOC instead of xmalloc.
103157         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
103158         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
103159         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
103160         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
103162 2006-11-03  Bruno Haible  <bruno@clisp.org>
103164         * lib/c-ctype.h [C++]: Define functions without name mangling.
103165         * lib/fwriteerror.h [C++]: Likewise.
103166         * lib/gcd.h [C++]: Likewise.
103167         * lib/linebreak.h [C++]: Likewise.
103169 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
103171         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
103172         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
103173         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
103174         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
103175         Check for functions and headers just once.
103176         Check for declaration of canonicalize_file_name.
103177         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
103179 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
103181         * gnulib-tool (func_import): Fix typo in actioncmd.
103183 2006-11-02  Bruno Haible  <bruno@clisp.org>
103185         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
103186         newline sequence in the Makefile.am snippet as a space, like "make"
103187         does.
103188         Reported by Roger Persson <perrog@gmail.com>.
103190 2006-11-01  Bruno Haible  <bruno@clisp.org>
103192         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
103193         already declared in <string.h>.
103194         * lib/strcase.h (strncasecmp): Don't declare it if yes.
103196 2006-11-01  Bruno Haible  <bruno@clisp.org>
103198         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
103199         * lib/strcase.h: Include <string.h>.
103200         (strcasecmp): Define to rpl_strcasecmp here.
103202 2006-11-01  Bruno Haible  <bruno@clisp.org>
103204         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
103206 2006-11-01  Eric Blake  <ebb9@byu.net>
103208         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
103210         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
103212 2006-10-29  Bruno Haible  <bruno@clisp.org>
103214         Make it compile in C++ mode.
103215         * lib/full-write.c (full_rw): Add a cast.
103217 2006-11-01  Bruno Haible  <bruno@clisp.org>
103219         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
103220         be POSIX compliant.
103221         Reported by Roger Persson <perrog@gmail.com>.
103223 2006-11-01  Eric Blake  <ebb9@byu.net>
103225         * lib/getopt_.h: Fix comments.
103227 2006-10-31  Eric Blake  <ebb9@byu.net>
103229         * modules/tmpdir (Depends-on): Add sys_stat.
103230         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
103231         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
103232         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
103233         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
103234         tempname.
103236 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
103238         Avoid some C++ diagnostics reported by Bruno Haible.
103239         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
103240         xmalloc.
103241         (quotearg_alloc): Use xcharalloc rather than xmalloc.
103242         (struct slotvec): Move to top level.
103243         (quotearg_n_options): Rewrite to avoid xmalloc.
103244         * lib/xalloc.h (xcharalloc): New function.
103245         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
103246         [defined __cplusplus]: Add function template that provides result
103247         type propagation.  This part of the change is from Bruno Haible.
103249 2006-10-29  Bruno Haible  <bruno@clisp.org>
103251         Make it compile in C++ mode.
103252         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
103253         * lib/strnlen1.c (strnlen1): Cast memchr result.
103254         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
103255         * lib/clean-temp.c (string_equals, string_hash): Add casts.
103256         (create_temp_dir): Rename local variable 'template'.
103257         (compile_csharp_using_sscli): Add cast.
103258         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
103259         * lib/findprog.c (find_in_path): Likewise.
103260         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
103261         * lib/wait-process.c (register_slave_subprocess): Likewise.
103263 2006-10-22  Bruno Haible  <bruno@clisp.org>
103265         * modules/tsearch: New file.
103266         * lib/tsearch.h: New file.
103267         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
103268         * m4/tsearch.m4: New file.
103269         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
103271 2006-10-29  Eric Blake  <ebb9@byu.net>
103273         * lib/arcfour.c: Assume config.h.
103274         * lib/arctwo.c: Likewise.
103275         * lib/base64.c: Likewise.
103276         * lib/check-version.c: Likewise.
103277         * lib/crc.c: Likewise.
103278         * lib/des.c: Likewise.
103279         * lib/gc-gnulib.c: Likewise.
103280         * lib/gc-libgcrypt.c: Likewise.
103281         * lib/gc-pbkdf2-sha1.c: Likewise.
103282         * lib/getaddrinfo.c: Likewise.
103283         * lib/getdelim.c: Likewise.
103284         * lib/getline.c: Likewise.
103285         * lib/hmac-md5.c: Likewise.
103286         * lib/hmac-sha1.c: Likewise.
103287         * lib/iconvme.c: Likewise.
103288         * lib/md2.c: Likewise.
103289         * lib/md4.c: Likewise.
103290         * lib/memxor.c: Likewise.
103291         * lib/read-file.c: Likewise.
103292         * lib/readline.c: Likewise.
103293         * lib/rijndael-alg-fst.c: Likewise.
103294         * lib/rijndael-api-fst.c: Likewise.
103295         * lib/xgetdomainname.c: Likewise.
103297 2006-10-28  Eric Blake  <ebb9@byu.net>
103299         * lib/xstrndup.c: Assume config.h.
103301 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
103303         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
103304         stat-macros.h is now for our own macros, whereas stat_h is for
103305         macros in the <sys/stat.h> name space.
103306         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
103307         (STAT_MACROS_H): Remove.
103308         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
103309         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
103310         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
103311         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
103312         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
103313         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
103314         Move these macros to ...
103315         * lib/stat_.h: here.  Don't include stat-macros.h.
103316         * lib/canonicalize.c: Don't include stat-macros.h.
103317         * lib/chown.c: Likewise.
103318         * lib/euidaccess.c: Likewise.
103319         * lib/file-type.c: Likewise.
103320         * lib/filemode.c: Likewise.
103321         * lib/glob.c: Likewise.
103322         * lib/isapipe.c: Likewise.
103323         * lib/lchown.c: Likewise.
103324         * lib/lstat.c: Likewise.
103325         * lib/mkdir-p.c: Likewise.
103326         * lib/rmdir.c: Likewise.
103327         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
103328         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
103329         unless mkdir isn't declared, to speed up 'configure'.
103330         Always create sys/stat.h, since it's unlikely any real sys/stat.h
103331         would define all the S_* symbols.
103332         * modules/canonicalize (Depends-on):
103333         Depend on sys_stat, not stat-macros.
103334         * modules/chown: Likewise.
103335         * modules/euidaccess: Likewise.
103336         * modules/filemode: Likewise.
103337         * modules/file-type: Likewise.
103338         * modules/glob: Likewise.
103339         * modules/isapipe: Likewise.
103340         * modules/lchown: Likewise.
103341         * modules/lstat: Likewise.
103342         * modules/mkancesdirs: Likewise.
103343         * modules/rmdir: Likewise.
103344         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
103345         * modules/modechange: Likewise.
103346         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
103347         (configure.ac): Remove gl_STAT_MACROS.
103348         * modules/sys_stat (Depends-on): Remove stat-macros.
103350 2006-10-27  Bruno Haible  <bruno@clisp.org>
103352         * m4/signed.m4: Remove file.
103353         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
103354         invocation.
103355         * modules/vasnprintf (Files): Remove m4/signed.m4.
103357 2006-10-27  Bruno Haible  <bruno@clisp.org>
103359         Update to GNU gettext 0.16.
103360         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
103361         m4/inttypes-h.m4, m4/signed.m4.
103362         * m4/gettext.m4: Update to GNU gettext 0.16.
103363         * m4/intl.m4: New file, from GNU gettext.
103364         * m4/intldir.m4: New file, from GNU gettext.
103365         * config/srclist.txt: Update
103367 2006-10-27  Eric Blake  <ebb9@byu.net>
103369         * MODULES.html.sh: Document tempname.
103370         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
103371         dependencies.
103372         (Files): Move lib/tempname.c...
103373         * modules/tempname: ...to this new module.
103374         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
103375         (gl_PREREQ_TEMPNAME): Move...
103376         * m4/tempname.m4: ...to this new file.
103377         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
103378         * modules/sys_stat (Depends-on): Add stat-macros.
103379         * lib/stat_.h (includes): Pick up stat macros.
103380         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
103381         if stat macros are broken.
103382         * lib/tempname.c (includes): No need to include "stat-macros.h".
103383         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
103384         (direxists, __path_search) [!_LIBC]: Don't compile these in
103385         gnulib; the tmpdir module covers that.
103386         * lib/tempname.h: New file.
103388 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
103390         * COPYING: Explain how gnulib-tool converts licence headers.
103391         Almost all wording by Eric Blake.
103393 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
103395         * lib/mbchar.h (is_basic_table): Make read-only.
103396         * lib/mbchar.c (is_basic_table): Likewise.
103397         Reported by John Darrington.
103399 2006-10-25  Bruno Haible  <bruno@clisp.org>
103401         * lib/progname.h (set_program_name): Undefine before defining.
103403 2006-10-25  Bruno Haible  <bruno@clisp.org>
103405         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
103406         false for non-gcc C++ compilers.
103407         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
103409 2006-10-24  Bruno Haible  <bruno@clisp.org>
103411         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
103412         iconv implementations like Irix iconv.
103414 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
103416         * modules/vararrays: New file.
103417         * m4/vararrays.m4: New file, taken from diffutils.
103418         * MODULES.html.sh: New module vararrays.
103420 2006-10-24  Karl Berry  <karl@gnu.org>
103422         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
103423         Don't call GNU Unix.
103425 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103427         * users.txt: Add Libtool.
103429         Sync from Libtool:
103431         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
103433         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
103434         to gnulib's policy of including config.h unconditionally.
103436 2006-10-24  Bruno Haible  <bruno@clisp.org>
103438         * modules/wcwidth (Files): Add m4/wint_t.m4.
103439         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
103440         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
103442 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
103444         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
103445         to pacify GCC with some -W flags enabled.  Problem reported by
103446         Bruno Haible.
103448 2006-10-24  Jim Meyering  <jim@meyering.net>
103450         * MODULES.html.sh: Remove uinttostr.  It's not a module.
103451         Reported by Karl Berry.
103453 2006-10-23  Bruno Haible  <bruno@clisp.org>
103455         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
103457 2006-10-24  Bruno Haible  <bruno@clisp.org>
103459         * lib/gl_list.h: Use C comment style, not C++ comment style.
103461 2006-10-23  Eric Blake  <ebb9@byu.net>
103463         * lib/getaddrinfo.c (includes): Add missing include.
103465 2006-10-23  Bruno Haible  <bruno@clisp.org>
103466             Paul Eggert  <eggert@cs.ucla.edu>
103468         Ability to rename obstack_free.
103469         * lib/obstack.h (__obstack_free): New macro. Declare instead of
103470         obstack_free.
103471         (obstack_free): Invoke the __obstack_free macro.
103472         * lib/obstack.c (obstack_free): Use __obstack_free macro.
103474 2006-10-23  Bruno Haible  <bruno@clisp.org>
103475             Paul Eggert  <eggert@cs.ucla.edu>
103477         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
103478         __argc, __argv from the declaration. (They are defined as macros on
103479         mingw.)
103481 2006-10-22  Bruno Haible  <bruno@clisp.org>
103483         * doc/gnulib-intro.texi: New file.
103484         * doc/gnulib.texi: Include it.
103486 2006-10-21  Bruno Haible  <bruno@clisp.org>
103488         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
103489         "Introduction", "Miscellanous Notes", "Particular Modules".
103491 2006-10-21  Bruno Haible  <bruno@clisp.org>
103493         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
103494         Change mostlyclean-local rule to avoid sh syntax error from bash
103495         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
103497 2006-10-23  Jim Meyering  <jim@meyering.net>
103499         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
103500         in place of snprintf.
103502         * modules/inttostr (Files): Add lib/uinttostr.c.
103503         * lib/uinttostr.c (inttostr): New file/function.
103504         * lib/inttostr.h (uinttostr): Declare.
103505         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
103506         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
103507         Add uinttostr.
103508         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
103510 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
103512         * lib/canonicalize.c (ELOOP): Define if not already defined.
103513         Problem reported by Bruno Haible in
103514         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
103516 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
103518         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
103519         Problem reported by Perry Smith and Ville Laurikari.
103521         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
103522         uses.
103524 2006-10-19  Bruno Haible  <bruno@clisp.org>
103526         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
103527         for mingw.
103529 2006-10-19  Bruno Haible  <bruno@clisp.org>
103531         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
103532         Needed for mingw.
103534 2006-10-19  Bruno Haible  <bruno@clisp.org>
103536         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
103538 2006-10-19  Bruno Haible  <bruno@clisp.org>
103540         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
103541         it.
103543 2006-10-19  Bruno Haible  <bruno@clisp.org>
103545         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
103546         invocation.
103548 2006-10-19  Bruno Haible  <bruno@clisp.org>
103550         * gnulib-tool (func_create_testdir): Don't include ftruncate and
103551         mountlist by default.
103553 2006-10-16  Bruno Haible  <bruno@clisp.org>
103555         * lib/c-strstr.c: Include c-strstr.h.
103557 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
103559         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
103560         in a slash.
103562 2006-10-18  Bruno Haible  <bruno@clisp.org>
103564         * lib/lock.h [C++]: Wrap definitions in extern "C".
103566 2006-10-18  Bruno Haible  <bruno@clisp.org>
103568         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
103569         gl_LIBOBJS list.
103571 2006-10-18  Bruno Haible  <bruno@clisp.org>
103573         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
103575 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
103577         * lib/xstrtol.h: Include gettext.h.
103578         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
103579         Problem reported by Eric Blake.
103580         * modules/xstrtol (Depends-on): Add gettext-h.
103582 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
103584         * lib/strftime.c (advance): New macro.
103585         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
103586         incomplete type, so you can't add 0 to it.  Problem and patch
103587         reported by Eelco Dolstra for dietlibc.
103589 2006-10-18  Jim Meyering  <jim@meyering.net>
103591         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
103592         type for a local, and rename it: s/up/user_proc/.
103594 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
103596         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
103597         READ_UTMP_USER_PROCESS.
103598         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
103600 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
103602         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
103603         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
103605 2006-10-17  Eric Blake  <ebb9@byu.net>
103607         * lib/sigprocmask.c (sigprocmask): Fix typo.
103609         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
103611         * modules/clean-temp (Makefile.am): Don't add to make output...
103612         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
103613         config.h.
103615 2006-10-17  Bruno Haible  <bruno@clisp.org>
103617         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
103618         differently if DEFAULT_TEXT_DOMAIN is set.
103620 2006-10-16  Bruno Haible  <bruno@clisp.org>
103622         * lib/clean-temp.c: Include fwriteerror.h.
103624 2006-10-16  Bruno Haible  <bruno@clisp.org>
103626         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
103628 2006-10-16  Bruno Haible  <bruno@clisp.org>
103630         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
103631         * lib/sigprocmask.h: Include <sys/types.h>.
103632         (sigset_t): Use the system's definition if present.
103634 2006-10-17  Eric Blake  <ebb9@byu.net>
103636         * lib/xvasprintf.c (includes): Assume config.h.
103637         * lib/xasprintf.c (includes): Likewise.
103639 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
103641         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
103642         at least as wide as intmax_t.
103644 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
103646         (Imported from Automake.)
103647         * build-aux/gnupload: Update to version 1.1 of directive file.
103649 2006-10-16  Eric Blake  <ebb9@byu.net>
103651         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
103652         match Automake 1.10a.
103654 2006-10-14  Bruno Haible  <bruno@clisp.org>
103656         * modules/sigprocmask: New file.
103657         * lib/sigprocmask.h: New file.
103658         * lib/sigprocmask.c: New file.
103659         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
103660         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
103661         request sigprocmask.o.
103662         (gl_PREREQ_SIGPROCMASK): New macro.
103663         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
103664         (Depends-on): Add sigprocmask.
103665         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
103666         gt_SIGNALBLOCKING. Test for 'raise' only once.
103667         * lib/fatal-signal.c: Include sigprocmask.h.
103668         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
103669         unblock_fatal_signals): Define always.
103670         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
103671         sigprocmask.
103673 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
103675         Sync from Automake.
103676         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
103677         which incorrectly sets the mode of an existing destination
103678         directory.  In some cases the unpatched install-sh could do the
103679         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
103680         system.  We hope this is rare in practice, but it's clearly worth
103681         fixing.  Problem reported by Alex Unleashed in
103682         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
103683         Also, don't bother to check for -m bugs unless we're using -m;
103684         suggested by Stepan Kasal.
103686 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103688         Sync from Automake.
103689         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
103690         `-c' flag, so they appear at the same position as in %FASTDEP%
103691         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
103692         which ignores unknown options only after the first non-option.
103693         Bug report against M4 by Nelson H. F. Beebe.
103695 2006-10-13  Jim Meyering  <jim@meyering.net>
103697         Fix a bug in yesterday's change.
103698         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
103699         p->fts_statp->st_dev would be used uninitialized.
103700         Ensures that we always call fts_stat on the very first entry.
103701         Miklos Szeredi reported that find -xdev stopped working.
103703 2006-10-12  Bruno Haible  <bruno@clisp.org>
103705         * gnulib-tool (func_get_automake_snippet): Append an automatically
103706         computed EXTRA_DIST augmentation.
103707         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
103708         * modules/alloca-opt (Makefile.am): Likewise.
103709         * modules/allocsa (Makefile.am): Likewise.
103710         * modules/arcfour (Makefile.am): Likewise.
103711         * modules/arctwo (Makefile.am): Likewise.
103712         * modules/argmatch (Makefile.am): Likewise.
103713         * modules/argz (Makefile.am): Likewise.
103714         * modules/atexit (Makefile.am): Likewise.
103715         * modules/backupfile (Makefile.am): Likewise.
103716         * modules/byteswap (Makefile.am): Likewise.
103717         * modules/c-strtod (Makefile.am): Likewise.
103718         * modules/c-strtold (Makefile.am): Likewise.
103719         * modules/calloc (Makefile.am): Likewise.
103720         * modules/canon-host (Makefile.am): Likewise.
103721         * modules/canonicalize (Makefile.am): Likewise.
103722         * modules/chdir-long (Makefile.am): Likewise.
103723         * modules/chdir-safer (Makefile.am): Likewise.
103724         * modules/check-version (Makefile.am): Likewise.
103725         * modules/chown (Makefile.am): Likewise.
103726         * modules/cloexec (Makefile.am): Likewise.
103727         * modules/close-stream (Makefile.am): Likewise.
103728         * modules/closeout (Makefile.am): Likewise.
103729         * modules/crc (Makefile.am): Likewise.
103730         * modules/csharpexec (Makefile.am): Likewise.
103731         * modules/cycle-check (Makefile.am): Likewise.
103732         * modules/des (Makefile.am): Likewise.
103733         * modules/dev-ino (Makefile.am): Likewise.
103734         * modules/dirfd (Makefile.am): Likewise.
103735         * modules/dirname (Makefile.am): Likewise.
103736         * modules/dup2 (Makefile.am): Likewise.
103737         * modules/eealloc (Makefile.am): Likewise.
103738         * modules/error (Makefile.am): Likewise.
103739         * modules/euidaccess (Makefile.am): Likewise.
103740         * modules/exclude (Makefile.am): Likewise.
103741         * modules/exitfail (Makefile.am): Likewise.
103742         * modules/fcntl-safer (Makefile.am): Likewise.
103743         * modules/fcntl (Makefile.am): Likewise.
103744         * modules/file-type (Makefile.am): Likewise.
103745         * modules/fileblocks (Makefile.am): Likewise.
103746         * modules/filemode (Makefile.am): Likewise.
103747         * modules/filenamecat (Makefile.am): Likewise.
103748         * modules/fnmatch (Makefile.am): Likewise.
103749         * modules/fopen-safer (Makefile.am): Likewise.
103750         * modules/fpending (Makefile.am): Likewise.
103751         * modules/fprintftime (Makefile.am): Likewise.
103752         * modules/free (Makefile.am): Likewise.
103753         * modules/fsusage (Makefile.am): Likewise.
103754         * modules/ftruncate (Makefile.am): Likewise.
103755         * modules/fts (Makefile.am): Likewise.
103756         * modules/gc-arcfour (Makefile.am): Likewise.
103757         * modules/gc-des (Makefile.am): Likewise.
103758         * modules/gc-hmac-md5 (Makefile.am): Likewise.
103759         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
103760         * modules/gc-md4 (Makefile.am): Likewise.
103761         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
103762         * modules/gc-sha1 (Makefile.am): Likewise.
103763         * modules/gc (Makefile.am): Likewise.
103764         * modules/getaddrinfo (Makefile.am): Likewise.
103765         * modules/getcwd (Makefile.am): Likewise.
103766         * modules/getdelim (Makefile.am): Likewise.
103767         * modules/getdomainname (Makefile.am): Likewise.
103768         * modules/getgroups (Makefile.am): Likewise.
103769         * modules/gethostname (Makefile.am): Likewise.
103770         * modules/gethrxtime (Makefile.am): Likewise.
103771         * modules/getline (Makefile.am): Likewise.
103772         * modules/getloadavg (Makefile.am): Likewise.
103773         * modules/getlogin_r (Makefile.am): Likewise.
103774         * modules/getndelim2 (Makefile.am): Likewise.
103775         * modules/getopt (Makefile.am): Likewise.
103776         * modules/getpagesize (Makefile.am): Likewise.
103777         * modules/getpass-gnu (Makefile.am): Likewise.
103778         * modules/getpass (Makefile.am): Likewise.
103779         * modules/getsubopt (Makefile.am): Likewise.
103780         * modules/gettime (Makefile.am): Likewise.
103781         * modules/gettimeofday (Makefile.am): Likewise.
103782         * modules/getugroups (Makefile.am): Likewise.
103783         * modules/getusershell (Makefile.am): Likewise.
103784         * modules/glob (Makefile.am): Likewise.
103785         * modules/group-member (Makefile.am): Likewise.
103786         * modules/hard-locale (Makefile.am): Likewise.
103787         * modules/hash (Makefile.am): Likewise.
103788         * modules/hmac-md5 (Makefile.am): Likewise.
103789         * modules/hmac-sha1 (Makefile.am): Likewise.
103790         * modules/human (Makefile.am): Likewise.
103791         * modules/idcache (Makefile.am): Likewise.
103792         * modules/imaxabs (Makefile.am): Likewise.
103793         * modules/imaxdiv (Makefile.am): Likewise.
103794         * modules/inet_ntop (Makefile.am): Likewise.
103795         * modules/inet_pton (Makefile.am): Likewise.
103796         * modules/intprops (Makefile.am): Likewise.
103797         * modules/inttostr (Makefile.am): Likewise.
103798         * modules/inttypes (Makefile.am): Likewise.
103799         * modules/isapipe (Makefile.am): Likewise.
103800         * modules/javaversion (Makefile.am): Likewise.
103801         * modules/lchmod (Makefile.am): Likewise.
103802         * modules/lchown (Makefile.am): Likewise.
103803         * modules/localcharset (Makefile.am): Likewise.
103804         * modules/long-options (Makefile.am): Likewise.
103805         * modules/lstat (Makefile.am): Likewise.
103806         * modules/malloc (Makefile.am): Likewise.
103807         * modules/mathl (Makefile.am): Likewise.
103808         * modules/mbchar (Makefile.am): Likewise.
103809         * modules/md2 (Makefile.am): Likewise.
103810         * modules/md4 (Makefile.am): Likewise.
103811         * modules/md5 (Makefile.am): Likewise.
103812         * modules/memcasecmp (Makefile.am): Likewise.
103813         * modules/memchr (Makefile.am): Likewise.
103814         * modules/memcmp (Makefile.am): Likewise.
103815         * modules/memcoll (Makefile.am): Likewise.
103816         * modules/memcpy (Makefile.am): Likewise.
103817         * modules/memmem (Makefile.am): Likewise.
103818         * modules/memmove (Makefile.am): Likewise.
103819         * modules/mempcpy (Makefile.am): Likewise.
103820         * modules/memrchr (Makefile.am): Likewise.
103821         * modules/memset (Makefile.am): Likewise.
103822         * modules/memxor (Makefile.am): Likewise.
103823         * modules/mkancesdirs (Makefile.am): Likewise.
103824         * modules/mkdir-p (Makefile.am): Likewise.
103825         * modules/mkdir (Makefile.am): Likewise.
103826         * modules/mkdtemp (Makefile.am): Likewise.
103827         * modules/mkstemp (Makefile.am): Likewise.
103828         * modules/mktime (Makefile.am): Likewise.
103829         * modules/modechange (Makefile.am): Likewise.
103830         * modules/mountlist (Makefile.am): Likewise.
103831         * modules/nanosleep (Makefile.am): Likewise.
103832         * modules/obstack (Makefile.am): Likewise.
103833         * modules/openat (Makefile.am): Likewise.
103834         * modules/pagealign_alloc (Makefile.am): Likewise.
103835         * modules/pathmax (Makefile.am): Likewise.
103836         * modules/physmem (Makefile.am): Likewise.
103837         * modules/poll (Makefile.am): Likewise.
103838         * modules/posixtm (Makefile.am): Likewise.
103839         * modules/posixver (Makefile.am): Likewise.
103840         * modules/putenv (Makefile.am): Likewise.
103841         * modules/quote (Makefile.am): Likewise.
103842         * modules/quotearg (Makefile.am): Likewise.
103843         * modules/raise (Makefile.am): Likewise.
103844         * modules/read-file (Makefile.am): Likewise.
103845         * modules/readline (Makefile.am): Likewise.
103846         * modules/readlink (Makefile.am): Likewise.
103847         * modules/readtokens (Makefile.am): Likewise.
103848         * modules/readutmp (Makefile.am): Likewise.
103849         * modules/realloc (Makefile.am): Likewise.
103850         * modules/regex (Makefile.am): Likewise.
103851         * modules/rename-dest-slash (Makefile.am): Likewise.
103852         * modules/rename (Makefile.am): Likewise.
103853         * modules/rijndael (Makefile.am): Likewise.
103854         * modules/rmdir (Makefile.am): Likewise.
103855         * modules/rpmatch (Makefile.am): Likewise.
103856         * modules/safe-read (Makefile.am): Likewise.
103857         * modules/safe-write (Makefile.am): Likewise.
103858         * modules/same-inode (Makefile.am): Likewise.
103859         * modules/same (Makefile.am): Likewise.
103860         * modules/save-cwd (Makefile.am): Likewise.
103861         * modules/savedir (Makefile.am): Likewise.
103862         * modules/setenv (Makefile.am): Likewise.
103863         * modules/settime (Makefile.am): Likewise.
103864         * modules/sha1 (Makefile.am): Likewise.
103865         * modules/sig2str (Makefile.am): Likewise.
103866         * modules/snprintf (Makefile.am): Likewise.
103867         * modules/stat-macros (Makefile.am): Likewise.
103868         * modules/stat-time (Makefile.am): Likewise.
103869         * modules/stdbool (Makefile.am): Likewise.
103870         * modules/stdint (Makefile.am): Likewise.
103871         * modules/stdlib-safer (Makefile.am): Likewise.
103872         * modules/stpcpy (Makefile.am): Likewise.
103873         * modules/stpncpy (Makefile.am): Likewise.
103874         * modules/strcase (Makefile.am): Likewise.
103875         * modules/strcasestr (Makefile.am): Likewise.
103876         * modules/strchrnul (Makefile.am): Likewise.
103877         * modules/strcspn (Makefile.am): Likewise.
103878         * modules/strdup (Makefile.am): Likewise.
103879         * modules/strerror (Makefile.am): Likewise.
103880         * modules/strftime (Makefile.am): Likewise.
103881         * modules/strndup (Makefile.am): Likewise.
103882         * modules/strnlen (Makefile.am): Likewise.
103883         * modules/strpbrk (Makefile.am): Likewise.
103884         * modules/strsep (Makefile.am): Likewise.
103885         * modules/strstr (Makefile.am): Likewise.
103886         * modules/strtod (Makefile.am): Likewise.
103887         * modules/strtoimax (Makefile.am): Likewise.
103888         * modules/strtok_r (Makefile.am): Likewise.
103889         * modules/strtol (Makefile.am): Likewise.
103890         * modules/strtoll (Makefile.am): Likewise.
103891         * modules/strtoul (Makefile.am): Likewise.
103892         * modules/strtoull (Makefile.am): Likewise.
103893         * modules/strtoumax (Makefile.am): Likewise.
103894         * modules/strverscmp (Makefile.am): Likewise.
103895         * modules/sys_socket (Makefile.am): Likewise.
103896         * modules/sys_stat (Makefile.am): Likewise.
103897         * modules/sysexits (Makefile.am): Likewise.
103898         * modules/time_r (Makefile.am): Likewise.
103899         * modules/timegm (Makefile.am): Likewise.
103900         * modules/timespec (Makefile.am): Likewise.
103901         * modules/tmpfile-safer (Makefile.am): Likewise.
103902         * modules/trim (Makefile.am): Likewise.
103903         * modules/unistd-safer (Makefile.am): Likewise.
103904         * modules/unlinkdir (Makefile.am): Likewise.
103905         * modules/unlocked-io (Makefile.am): Likewise.
103906         * modules/userspec (Makefile.am): Likewise.
103907         * modules/utime (Makefile.am): Likewise.
103908         * modules/utimecmp (Makefile.am): Likewise.
103909         * modules/utimens (Makefile.am): Likewise.
103910         * modules/vasnprintf (Makefile.am): Likewise.
103911         * modules/vasprintf (Makefile.am): Likewise.
103912         * modules/vsnprintf (Makefile.am): Likewise.
103913         * modules/xalloc (Makefile.am): Likewise.
103914         * modules/xgetcwd (Makefile.am): Likewise.
103915         * modules/xnanosleep (Makefile.am): Likewise.
103916         * modules/xreadlink (Makefile.am): Likewise.
103917         * modules/xstrtod (Makefile.am): Likewise.
103918         * modules/xstrtol (Makefile.am): Likewise.
103919         * modules/xstrtold (Makefile.am): Likewise.
103920         * modules/yesno (Makefile.am): Likewise.
103921         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
103923 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
103925         * modules/error (Makefile.am): Distribute files through
103926         EXTRA_DIST, not lib_SOURCES.
103928 2006-10-12  Eric Blake  <ebb9@byu.net>
103930         * modules/error (Makefile.am): Distribute files in /lib.
103931         * modules/obstack (Makefile.am): Likewise.
103933 2006-10-12  Bruno Haible  <bruno@clisp.org>
103935         * modules/acl (Makefile.am): Distribute all files in lib/ through
103936         EXTRA_DIST.
103937         * modules/arcfour (Makefile.am): Likewise.
103938         * modules/arctwo (Makefile.am): Likewise.
103939         * modules/argmatch (Makefile.am): Likewise.
103940         * modules/argz (Makefile.am): Likewise.
103941         * modules/atexit (Makefile.am): Likewise.
103942         * modules/backupfile (Makefile.am): Likewise.
103943         * modules/c-strtod (Makefile.am): Likewise.
103944         * modules/c-strtold (Makefile.am): Likewise.
103945         * modules/calloc (Makefile.am): Likewise.
103946         * modules/canon-host (Makefile.am): Likewise.
103947         * modules/canonicalize (Makefile.am): Likewise.
103948         * modules/chdir-long (Makefile.am): Likewise.
103949         * modules/chdir-safer (Makefile.am): Likewise.
103950         * modules/check-version (Makefile.am): Likewise.
103951         * modules/chown (Makefile.am): Likewise.
103952         * modules/cloexec (Makefile.am): Likewise.
103953         * modules/close-stream (Makefile.am): Likewise.
103954         * modules/closeout (Makefile.am): Likewise.
103955         * modules/crc (Makefile.am): Likewise.
103956         * modules/cycle-check (Makefile.am): Likewise.
103957         * modules/des (Makefile.am): Likewise.
103958         * modules/dirfd (Makefile.am): Likewise.
103959         * modules/dirname (Makefile.am): Likewise.
103960         * modules/dup2 (Makefile.am): Likewise.
103961         * modules/euidaccess (Makefile.am): Likewise.
103962         * modules/exclude (Makefile.am): Likewise.
103963         * modules/exitfail (Makefile.am): Likewise.
103964         * modules/fcntl-safer (Makefile.am): Likewise.
103965         * modules/file-type (Makefile.am): Likewise.
103966         * modules/fileblocks (Makefile.am): Likewise.
103967         * modules/filemode (Makefile.am): Likewise.
103968         * modules/filenamecat (Makefile.am): Likewise.
103969         * modules/fnmatch (Makefile.am): Likewise.
103970         * modules/fopen-safer (Makefile.am): Likewise.
103971         * modules/fpending (Makefile.am): Likewise.
103972         * modules/fprintftime (Makefile.am): Likewise.
103973         * modules/free (Makefile.am): Likewise.
103974         * modules/fsusage (Makefile.am): Likewise.
103975         * modules/ftruncate (Makefile.am): Likewise.
103976         * modules/fts (Makefile.am): Likewise.
103977         * modules/gc (Makefile.am): Likewise.
103978         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
103979         * modules/getaddrinfo (Makefile.am): Likewise.
103980         * modules/getcwd (Makefile.am): Likewise.
103981         * modules/getdelim (Makefile.am): Likewise.
103982         * modules/getdomainname (Makefile.am): Likewise.
103983         * modules/getgroups (Makefile.am): Likewise.
103984         * modules/gethostname (Makefile.am): Likewise.
103985         * modules/gethrxtime (Makefile.am): Likewise.
103986         * modules/getline (Makefile.am): Likewise.
103987         * modules/getloadavg (Makefile.am): Likewise.
103988         * modules/getlogin_r (Makefile.am): Likewise.
103989         * modules/getopt (Makefile.am): Likewise.
103990         * modules/getpass (Makefile.am): Likewise.
103991         * modules/getpass-gnu (Makefile.am): Likewise.
103992         * modules/getsubopt (Makefile.am): Likewise.
103993         * modules/gettime (Makefile.am): Likewise.
103994         * modules/gettimeofday (Makefile.am): Likewise.
103995         * modules/getugroups (Makefile.am): Likewise.
103996         * modules/getusershell (Makefile.am): Likewise.
103997         * modules/glob (Makefile.am): Likewise.
103998         * modules/group-member (Makefile.am): Likewise.
103999         * modules/hard-locale (Makefile.am): Likewise.
104000         * modules/hash (Makefile.am): Likewise.
104001         * modules/hmac-md5 (Makefile.am): Likewise.
104002         * modules/hmac-sha1 (Makefile.am): Likewise.
104003         * modules/human (Makefile.am): Likewise.
104004         * modules/idcache (Makefile.am): Likewise.
104005         * modules/imaxabs (Makefile.am): Likewise.
104006         * modules/imaxdiv (Makefile.am): Likewise.
104007         * modules/inet_ntop (Makefile.am): Likewise.
104008         * modules/inet_pton (Makefile.am): Likewise.
104009         * modules/inttostr (Makefile.am): Likewise.
104010         * modules/isapipe (Makefile.am): Likewise.
104011         * modules/lchown (Makefile.am): Likewise.
104012         * modules/long-options (Makefile.am): Likewise.
104013         * modules/lstat (Makefile.am): Likewise.
104014         * modules/malloc (Makefile.am): Likewise.
104015         * modules/mathl (Makefile.am): Likewise.
104016         * modules/mbchar (Makefile.am): Likewise.
104017         * modules/md2 (Makefile.am): Likewise.
104018         * modules/md4 (Makefile.am): Likewise.
104019         * modules/md5 (Makefile.am): Likewise.
104020         * modules/memcasecmp (Makefile.am): Likewise.
104021         * modules/memchr (Makefile.am): Likewise.
104022         * modules/memcmp (Makefile.am): Likewise.
104023         * modules/memcoll (Makefile.am): Likewise.
104024         * modules/memcpy (Makefile.am): Likewise.
104025         * modules/memmem (Makefile.am): Likewise.
104026         * modules/memmove (Makefile.am): Likewise.
104027         * modules/mempcpy (Makefile.am): Likewise.
104028         * modules/memrchr (Makefile.am): Likewise.
104029         * modules/memset (Makefile.am): Likewise.
104030         * modules/memxor (Makefile.am): Likewise.
104031         * modules/mkancesdirs (Makefile.am): Likewise.
104032         * modules/mkdir (Makefile.am): Likewise.
104033         * modules/mkdir-p (Makefile.am): Likewise.
104034         * modules/mkdtemp (Makefile.am): Likewise.
104035         * modules/mkstemp (Makefile.am): Likewise.
104036         * modules/mktime (Makefile.am): Likewise.
104037         * modules/modechange (Makefile.am): Likewise.
104038         * modules/mountlist (Makefile.am): Likewise.
104039         * modules/nanosleep (Makefile.am): Likewise.
104040         * modules/openat (Makefile.am): Likewise.
104041         * modules/pagealign_alloc (Makefile.am): Likewise.
104042         * modules/physmem (Makefile.am): Likewise.
104043         * modules/poll (Makefile.am): Likewise.
104044         * modules/posixtm (Makefile.am): Likewise.
104045         * modules/posixver (Makefile.am): Likewise.
104046         * modules/putenv (Makefile.am): Likewise.
104047         * modules/quote (Makefile.am): Likewise.
104048         * modules/quotearg (Makefile.am): Likewise.
104049         * modules/raise (Makefile.am): Likewise.
104050         * modules/read-file (Makefile.am): Likewise.
104051         * modules/readline (Makefile.am): Likewise.
104052         * modules/readlink (Makefile.am): Likewise.
104053         * modules/readtokens (Makefile.am): Likewise.
104054         * modules/readutmp (Makefile.am): Likewise.
104055         * modules/realloc (Makefile.am): Likewise.
104056         * modules/regex (Makefile.am): Likewise.
104057         * modules/rename (Makefile.am): Likewise.
104058         * modules/rename-dest-slash (Makefile.am): Likewise.
104059         * modules/rijndael (Makefile.am): Likewise.
104060         * modules/rmdir (Makefile.am): Likewise.
104061         * modules/rpmatch (Makefile.am): Likewise.
104062         * modules/safe-read (Makefile.am): Likewise.
104063         * modules/safe-write (Makefile.am): Likewise.
104064         * modules/same (Makefile.am): Likewise.
104065         * modules/save-cwd (Makefile.am): Likewise.
104066         * modules/savedir (Makefile.am): Likewise.
104067         * modules/setenv (Makefile.am): Likewise.
104068         * modules/settime (Makefile.am): Likewise.
104069         * modules/sha1 (Makefile.am): Likewise.
104070         * modules/sig2str (Makefile.am): Likewise.
104071         * modules/snprintf (Makefile.am): Likewise.
104072         * modules/stdlib-safer (Makefile.am): Likewise.
104073         * modules/stpcpy (Makefile.am): Likewise.
104074         * modules/stpncpy (Makefile.am): Likewise.
104075         * modules/strcase (Makefile.am): Likewise.
104076         * modules/strcasestr (Makefile.am): Likewise.
104077         * modules/strchrnul (Makefile.am): Likewise.
104078         * modules/strcspn (Makefile.am): Likewise.
104079         * modules/strdup (Makefile.am): Likewise.
104080         * modules/strerror (Makefile.am): Likewise.
104081         * modules/strftime (Makefile.am): Likewise.
104082         * modules/strndup (Makefile.am): Likewise.
104083         * modules/strnlen (Makefile.am): Likewise.
104084         * modules/strpbrk (Makefile.am): Likewise.
104085         * modules/strsep (Makefile.am): Likewise.
104086         * modules/strstr (Makefile.am): Likewise.
104087         * modules/strtod (Makefile.am): Likewise.
104088         * modules/strtoimax (Makefile.am): Likewise.
104089         * modules/strtok_r (Makefile.am): Likewise.
104090         * modules/strtol (Makefile.am): Likewise.
104091         * modules/strtoll (Makefile.am): Likewise.
104092         * modules/strtoul (Makefile.am): Likewise.
104093         * modules/strtoull (Makefile.am): Likewise.
104094         * modules/strtoumax (Makefile.am): Likewise.
104095         * modules/strverscmp (Makefile.am): Likewise.
104096         * modules/time_r (Makefile.am): Likewise.
104097         * modules/timegm (Makefile.am): Likewise.
104098         * modules/tmpfile-safer (Makefile.am): Likewise.
104099         * modules/unistd-safer (Makefile.am): Likewise.
104100         * modules/unlinkdir (Makefile.am): Likewise.
104101         * modules/userspec (Makefile.am): Likewise.
104102         * modules/utime (Makefile.am): Likewise.
104103         * modules/utimecmp (Makefile.am): Likewise.
104104         * modules/utimens (Makefile.am): Likewise.
104105         * modules/vasnprintf (Makefile.am): Likewise.
104106         * modules/vasprintf (Makefile.am): Likewise.
104107         * modules/vsnprintf (Makefile.am): Likewise.
104108         * modules/xalloc (Makefile.am): Likewise.
104109         * modules/xgetcwd (Makefile.am): Likewise.
104110         * modules/xnanosleep (Makefile.am): Likewise.
104111         * modules/xreadlink (Makefile.am): Likewise.
104112         * modules/xstrtod (Makefile.am): Likewise.
104113         * modules/xstrtol (Makefile.am): Likewise.
104114         * modules/xstrtold (Makefile.am): Likewise.
104115         * modules/yesno (Makefile.am): Likewise.
104117 2006-10-12  Jim Meyering  <jim@meyering.net>
104119         * m4/getloadavg.m4: Revert the change below.
104121         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
104122         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
104123         fail with a symlink, which is what coreutils' ./bootstrap now
104124         creates by default.
104126 2006-10-12  Bruno Haible  <bruno@clisp.org>
104128         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
104129         mingw.
104130         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
104131         MSVC and mingw explicitly.
104133 2006-10-11  Simon Josefsson  <jas@extundo.com>
104134             Bruno Haible  <bruno@clisp.org>
104136         Add support for multiple gnulib-tool invocations in the scope of a
104137         single configure.ac file.
104138         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
104139         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
104140         with the same contents as the _LIBADD variable.
104141         (func_emit_initmacro_start, func_emit_initmacro_end,
104142         func_emit_initmacro_done): New functions.
104143         (func_import, func_create_testdir): Invoke them. Allow the identifiers
104144         gl_LIBOBJS and gl_LTLIBOBJS.
104146 2006-10-11  Bruno Haible  <bruno@clisp.org>
104148         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
104149         (func_create_testdir): Don't create po/Makefile.am, don't invoke
104150         autoreconf. Instead, invoke autopoint explicitly but move back the
104151         *.m4 files from gnulib.
104153 2006-10-11  Bruno Haible  <bruno@clisp.org>
104155         * gnulib-tool (func_usage): Make module names after --create-testdir
104156         optional.
104157         (func_create_testdir): If no module was specified, use nearly all
104158         modules.
104160 2006-10-12  Jim Meyering  <jim@meyering.net>
104162         Big performance improvement for fts-based tools that use FTS_NOSTAT.
104163         Avoid spurious inode-mismatch problems on non-POSIX file systems.
104164         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
104165         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
104166         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
104167         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
104168         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
104169         (fts_set_stat_required): New function.
104170         (fts_open): Defer the calls to fts_stat, if possible or requested.
104171         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
104172         into fts_stat itself.
104173         (fts_read): Perform any required (deferred) fts_stat call.
104174         (fts_build): Likewise, for the directory we're about to open and read.
104175         In the readdir loop, carefully decide whether each entry will require
104176         an eventual call to fts_stat, using dirent.d_type info if available.
104177         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
104178         a command line argument into this function.  Update all callers.
104179         Map a return value of FTS_DOT to FTS_D for a command line argument.
104180         * modules/fts (Depends-on): Add d-type.  Alphabetize.
104181         Thanks to Miklos Szeredi for his tenacity and for the initial
104182         bug report about "find" failing on a FUSE-based file system.
104184         * lib/fts.c (fts_open): Use consistent indentation.
104186 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
104188         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
104189         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
104190         reported by Jim Meyering.  All uses of cache variables renamed
104191         to match Autoconf's.
104192         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
104193         the other one.
104195         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
104196         Fix misspelling in diagnostic.
104198 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
104200         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
104201         defined.  Problem reported by Matthew Woehlke.
104203         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
104204         Add support for Tandem NonStop R series.
104205         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
104206         Use new macro.
104208         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
104209         (has_trailing_slash): Omit size arg; all callers changed.
104210         Omit 'inline', since it doesn't help performance and we'd
104211         need to configure it.
104212         Don't count //, ///, etc. as having a trailing slash.
104213         As a side effect, this removes a C99ism reported by Matthew Woehlke.
104214         (rpl_rename_dest_slash): On failure, use rename's errno rather
104215         than (in some cases) an incorrect or junk errno.
104216         Simplify code by removing need to compute length; this does
104217         cause it to make two passes instead of one over the file name,
104218         but it's worth it.
104220         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
104221         change, since Autoconf's version may no longer be appropriate now
104222         that we are using CVS Autoconf's version.  Add support for Tandem.
104224 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
104225             Bruno Haible  <bruno@clisp.org>
104227         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
104228         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
104229         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
104230         gl_AC_TYPE_LONG_LONG.
104232         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
104233         instead of HAVE_LONG_LONG.
104234         * lib/printf-args.c (printf_fetchargs): Likewise.
104235         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
104236         * lib/vasnprintf.c (VASNPRINTF): Likewise.
104237         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
104238         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
104239         gl_AC_TYPE_LONG_LONG.
104241 2006-10-11  Bruno Haible  <bruno@clisp.org>
104243         * m4/longlong.m4: Add comments.
104244         * m4/ulonglong.m4: Likewise.
104246 2006-10-10  Bruno Haible  <bruno@clisp.org>
104248         Make it possible to #define stpcpy, strdup to aliases.
104249         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
104250         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
104252 2006-10-10  Bruno Haible  <bruno@clisp.org>
104254         Make it possible to #define gcd to an alias.
104255         * lib/gcd.c: Include config.h.
104257 2006-10-10  Bruno Haible  <bruno@clisp.org>
104259         Make it possible to #define c_isascii to an alias.
104260         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
104261         defined. Undefine the macros before defining them, to avoid gcc
104262         warnings.
104263         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
104264         define NO_C_CTYPE_MACROS early.
104266 2006-10-10  Bruno Haible  <bruno@clisp.org>
104268         Make it possible to #define set_program_name to an alias.
104269         * lib/progname.c: Don't undefine set_program_name; instead, undefine
104270         ENABLE_RELOCATABLE early.
104272 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
104274         Port to Tandem NSK OSS, which has 64-bit signed int but at most
104275         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
104276         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
104277         More generally, don't assume that 64-bit signed int is available
104278         if unsigned int is, and vice versa.
104279         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
104280         unsigned symbols, not on their signed counterparts.
104281         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
104282         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
104283         (UINT64_C, UINTMAX_C):
104284         Likewise.
104285         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
104286         unsigned counterparts.
104287         (Have_long_long, Unsigned): New macros.
104288         (Int): Renamed from INT.
104289         (strtoimax): Use the new macros.
104290         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
104291         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
104292         * modules/inttypes (inttypes.h): Substitute
104293         HAVE_UNSIGNED_LONG_LONG_INT.
104294         * modules/stdint (stdint.h): Likewise.
104295         (Files): Add m4/ulonglong.m4.
104297 2006-10-10  Bruno Haible  <bruno@clisp.org>
104299         Fix a gcc -Wshadow warning.
104300         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
104301         to 'bucket'.
104302         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
104303         gl_linked_indexof_from_to): Likewise.
104304         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
104305         Likewise.
104306         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
104307         Likewise.
104308         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
104309         Reported by Eric Blake.
104311 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
104313         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
104314         for NetBSD.  Problem reported by Bruno Haible.
104316 2006-10-09  Jim Meyering  <jim@meyering.net>
104318         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
104319         Patch from Bruno Haible.
104321 2006-10-09  Jim Meyering  <jim@meyering.net>
104323         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
104324         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
104325         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
104327 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
104329         Don't include <config.h> twice; this doesn't work in some cases,
104330         e.g., when config.h has "#define intmax_t long long int" and
104331         we include <config.h>, <inttypes.h>, <config.h> in that order.
104332         Problem reported by Matthew Woehlke in:
104333         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
104334         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
104335         * lib/fts-cycle.c: Don't include config.h.
104336         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
104337         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
104338         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
104339         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
104340         inttypes.h.
104341         * lib/xstrtoumax.c: Likewise.
104342         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
104343         __strtol and the like, so that this module is more like its siblings.
104344         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
104345         Remove; no longer needed now that we assume gnulib inttypes.h.
104347 2006-10-08  Bruno Haible  <bruno@clisp.org>
104349         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
104350         option.
104352 2006-10-07  Jim Meyering  <jim@meyering.net>
104354         * modules/inttypes (inttypes.h): Revert what seems to have been
104355         an inadvertent part of today's change: use "|", not "/" in the
104356         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
104358 2006-10-07  Bruno Haible  <bruno@clisp.org>
104360         * modules/sublist: New file.
104362 2006-10-07  Bruno Haible  <bruno@clisp.org>
104364         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
104365         * modules/argz (argz.h): Likewise.
104366         * modules/arpa_inet (arpa/inet.h): Likewise.
104367         * modules/byteswap (byteswap.h): Likewise.
104368         * modules/configmake (configmake.h): Likewise.
104369         * modules/fcntl (fcntl.h): Likewise.
104370         * modules/fnmatch (fnmatch.h): Likewise.
104371         * modules/getopt (getopt.h): Likewise.
104372         * modules/glob (glob.h): Likewise.
104373         * modules/inttypes (inttypes.h): Likewise.
104374         * modules/netinet_in (netinet/in.h): Likewise.
104375         * modules/poll (poll.h): Likewise.
104376         * modules/stdbool (stdbool.h): Likewise.
104377         * modules/stdint (stdint.h): Likewise.
104378         * modules/sys_select (sys/select.h): Likewise.
104379         * modules/sys_socket (sys/socket.h): Likewise.
104380         * modules/sys_stat (sys/stat.h): Likewise.
104381         * modules/sysexits (sysexits.h): Likewise.
104382         * modules/unistd (unistd.h): Likewise.
104383         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
104384         Add a "DO NOT EDIT" comment to the generated file.
104385         (func_import): Likewise for gnulib-comp.m4.
104387 2006-10-07  Bruno Haible  <bruno@clisp.org>
104389         * lib/gl_sublist.h: New file.
104390         * lib/gl_sublist.c: New file.
104392 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
104394         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
104395         name (relative to the original working directory) and the file
104396         name component (relative to the temporary working directory).  All
104397         callers changed.
104398         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
104399         * lib/mkdir-p.c (make_dir_parents): Likewise.
104400         * lib/mkdir-p.h (make_dir_parents): Likewise.
104402 2006-10-06  Eric Blake  <ebb9@byu.net>
104404         Define several macros for use by the clean-temp module.
104405         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
104406         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
104407         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
104409         * lib/clean-temp.h (close_stream_temp): New declaration.
104410         * lib/clean-temp.c (includes): Pull in headers according to what
104411         other modules are in use.
104412         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
104414 2006-10-06  Bruno Haible  <bruno@clisp.org>
104416         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
104417         instead of fopen, fwriteerror.
104419 2006-10-06  Bruno Haible  <bruno@clisp.org>
104421         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
104422         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
104423         int.
104424         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
104425         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
104426         Return an error indicator.
104427         Suggested by Eric Blake.
104429 2006-10-06  Bruno Haible  <bruno@clisp.org>
104431         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
104432         Reported by Eric Blake.
104434 2006-10-06  Bruno Haible  <bruno@clisp.org>
104436         * modules/closeout (Description): Mention stderr too.
104438 2006-10-06  Bruno Haible  <bruno@clisp.org>
104439         and Paul Eggert  <eggert@cs.ucla.edu>
104441         * lib/closeout.c (close_stdout): Also close stderr.
104442         * lib/closeout.h: Update comment.
104444 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
104446         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
104447         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
104448         * lib/dirchownmod.c: Include lchown.h.
104449         * lib/lchown.c: Don't include files that lchown.h now includes.
104450         Don't declare chown, since lchown.h now does that.
104451         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
104452         (lchown): Define to rpl_chown if lchown is declared but
104453         does not exist.  Declare using a prototype if lchown is not
104454         declared.  Add a copyright notice.
104455         * lib/mkstemp.h: Include <unistd.h>.
104456         * lib/openat.c: Include lchown.h.
104458         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
104459         we now test for that separately.
104460         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
104461         rather than O_NOFOLLOW, when testing whether it's possible to
104462         avoid a race condition reliably.
104463         * lib/savewd.c (savewd_chdir): Likewise.
104465         Remove macros that are no longer needed now that stdint.h is
104466         reliable.
104467         * lib/fsusage.c (UINTMAX_MAX): Remove.
104468         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
104469         * lib/utimecmp.c (SIZE_MAX): Remove.
104471         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
104473         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
104474         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
104475         O_NOATIME works.
104477 2006-10-05  Bruno Haible  <bruno@clisp.org>
104479         * lib/gl_list.h (gl_sortedlist_search_from_to,
104480         gl_sortedlist_indexof_from_to): New declarations.
104481         (gl_list_implementation): New fields sortedlist_search_from_to,
104482         sortedlist_indexof_from_to.
104483         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
104484         inline functions.
104485         * lib/gl_list.c (gl_sortedlist_search_from_to,
104486         gl_sortedlist_indexof_from_to): New functions.
104487         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
104488         function.
104489         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
104490         (gl_array_sortedlist_search_from_to): New function.
104491         (gl_array_list_implementation): Update.
104492         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
104493         function.
104494         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
104495         (gl_carray_sortedlist_search_from_to): New function.
104496         (gl_carray_list_implementation): Update.
104497         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
104498         gl_linked_sortedlist_indexof_from_to): New functions.
104499         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
104500         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
104501         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
104502         gl_tree_sortedlist_indexof_from_to): New functions.
104503         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
104504         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
104505         Update.
104506         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
104507         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
104508         Update.
104510 2006-10-05  Bruno Haible  <bruno@clisp.org>
104512         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
104513         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
104514         (struct gl_list_implementation): Add fields search_from_to,
104515         indexof_from_to. Remove fields search, indexof.
104516         (gl_list_search): Use the search_from_to method.
104517         (gl_list_search_from, gl_list_search_from_to): New functions.
104518         (gl_list_indexof): Use the indexof_from_to method.
104519         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
104520         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
104521         (gl_list_search_from, gl_list_search_from_to): New functions.
104522         (gl_list_indexof): Use the indexof_from_to method.
104523         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
104524         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
104525         gl_array_indexof. Add start_index, end_index arguments.
104526         (gl_array_search_from_to): Renamed from gl_array_search. Add
104527         start_index, end_index arguments.
104528         (gl_array_remove, gl_array_list_implementation): Update.
104529         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
104530         gl_carray_indexof. Add start_index, end_index arguments.
104531         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
104532         start_index, end_index arguments.
104533         (gl_carray_remove, gl_carray_list_implementation): Update.
104534         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
104535         gl_linked_search. Add start_index, end_index arguments.
104536         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
104537         start_index, end_index arguments.
104538         (gl_linked_remove): Update.
104539         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
104540         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
104541         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
104542         field to 'size_t'.
104543         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
104544         gl_tree_search. Add start_index, end_index arguments.
104545         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
104546         start_index, end_index arguments.
104547         (gl_tree_remove): Update.
104548         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
104549         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
104550         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
104551         function.
104552         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
104553         gl_tree_search. Add start_index, end_index arguments.
104554         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
104555         start_index, end_index arguments.
104556         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
104557         Update.
104558         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
104560 2006-10-05  Bruno Haible  <bruno@clisp.org>
104562         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
104564         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
104565         fwriteerror_temp): New declarations.
104566         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
104567         (descriptors): New variable.
104568         (cleanup): First, close the descriptors.
104569         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
104570         fclose_temp, fwriteerror_temp): New functions.
104572 2006-10-04  Jim Meyering  <jim@meyering.net>
104574         * lib/fts.c (fts_open): Tiny comment change.
104576 2006-10-04  Bruno Haible  <bruno@clisp.org>
104578         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
104579         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
104580         gl_LOCK_BODY.
104581         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
104582         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
104583         gl_LOCK_EARLY_BODY.
104584         (gl_LOCK): Require gl_LOCK_BODY.
104586 2006-10-04  Bruno Haible  <bruno@clisp.org>
104588         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
104589         (gl_oset_search_atleast): New declaration.
104590         (struct gl_oset_implementation): Add field 'search_atleast'.
104591         (gl_oset_search_atleast): New inline function.
104592         * lib/gl_oset.c (gl_oset_search_atleast): New function.
104593         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
104594         (gl_array_oset_implementation): Update.
104595         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
104596         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
104597         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
104599 2006-10-04  Bruno Haible  <bruno@clisp.org>
104601         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
104603 2006-10-03  Bruno Haible  <bruno@clisp.org>
104605         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
104606         from gl_avltreehash_list_implementation.
104608 2006-10-03  Bruno Haible  <bruno@clisp.org>
104610         * lib/gl_oset.c (gl_oset_add): Fix return type.
104612 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
104614         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
104616 2006-10-02  Eric Blake  <ebb9@byu.net>
104618         * modules/strnlen (Depends-on): Add extensions.
104620 2006-10-02  Eric Blake  <ebb9@byu.net>
104622         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
104623         definition in 2.60+.
104625 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
104627         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
104628         checks.
104630 2006-10-02  Bruno Haible  <bruno@clisp.org>
104632         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
104633         to the AUTOMAKE_OPTIONS.
104634         Reported by Jim Meyering.
104636 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
104638         Work around bug in Solaris 10 /proc file system:
104639         /proc/self/fd/NNN/.. isn't the parent directory of
104640         the directory whose file descriptor is NNN.  This needs to
104641         be worked around at run time, not compile time, since a
104642         program might be built on Solaris 8, where things work, and
104643         run on Solaris 10.
104644         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
104645         to use the following interface instead:
104646         (OPENAT_BUFFER_SIZE): New macro.
104647         (openat_proc_name): New function.
104648         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
104649         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
104650         Likewise.
104651         * lib/openat-proc.c: New file.
104652         * modules/openat (Files): Add lib/openat-proc.c.
104653         (Depends-on): Add same-inode, stdbool.
104654         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
104656 2006-09-29  Bruno Haible  <bruno@clisp.org>
104658         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
104659         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
104660         argument. Set stdout_closed before testing for ferror, not after.
104661         (fwriteerror, fwriteerror_no_ebadf): New functions.
104663 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104665         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
104667 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
104669         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
104670         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
104672 2006-09-28  Jim Meyering  <jim@meyering.net>
104674         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
104675         Include <unistd.h>.
104677 2006-09-28  Bruno Haible  <bruno@clisp.org>
104679         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
104680         * modules/linkedhash-list (Depends-on): Likewise.
104681         * modules/rbtreehash-list (Depends-on): Likewise.
104683 2006-09-28  Bruno Haible  <bruno@clisp.org>
104685         * lib/strndup.h: Simplify the redefinition of strndup.
104686         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
104687         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
104689 2006-09-28  Bruno Haible  <bruno@clisp.org>
104691         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
104692         * lib/gl_linkedhash_list.c: Likewise.
104693         * lib/gl_rbtreehash_list.c: Likewise.
104695 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
104697         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
104698         getaddrinfo.
104700         * lib/__fpending.h: Don't include <stdio_ext.h> unless
104701         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
104702         it causes <stdio_ext.h> to cause a compile-time error.
104703         Problem reported by Nelson H. F. Beebe.
104704         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
104705         of HAVE_DECL___PENDING.
104707         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
104708         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
104709         declaration.
104711 2006-09-27  Jim Meyering  <jim@meyering.net>
104713         This file could end up with a definition for a function
104714         named __strndup, rather than rpl_strndup on a system with
104715         incomplete weak_alias support.
104716         * lib/strndup.c (strndup): Rename from __strndup.
104717         Remove #defines that used to map __strndup to strndup.
104718         Don't use K&R prototypes.
104719         Remove LIBC-related code, since this file is not sync'd with glibc.
104720         * lib/strndup.h: Revamp, accordingly.
104721         * m4/strndup.m4: Modernize.
104723 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
104725         * modules/savewd (Depends-on): Add 'raise'.
104726         * lib/savewd.c: Include <signal.h>, for 'raise'.
104728 2006-09-26  Jim Meyering  <jim@meyering.net>
104730         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
104731         when we detect Darwin 8.7.0's acl_get_file bug.
104732         Rearrange to perform the new (below) run-test while $LIBS
104733         contains any acl-related library.  Set USE_ACL at the end.
104734         (gl_ACL_GET_FILE): New function.
104736 2006-09-26  Eric Blake  <ebb9@byu.net>
104738         * lib/verror.c: Include <config.h> unconditionally.
104740 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
104742         * modules/clock-time (Maintainer): Add self.
104743         * modules/getlogin_r (Depends-on): Add extensions.
104745 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104747         * modules/clock-time: New module.
104748         * modules/nanosleep (Depends-on): Add clock-time.
104749         * modules/gethrxtime (Depends-on): Likewise.
104750         * modules/gettime (Depends-on): Likewise.
104751         * modules/settime (Depends-on): Likewise.
104753         * modules/fts-lgpl: Depend on openat.
104754         * modules/mkancesdirs: Depend on savewd.
104755         * modules/mkdir-p: Likewise.
104757 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104759         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
104761         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
104762         `gl_have_arbitrary_file_name_length_limit' to
104763         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
104764         actually works between configure runs.
104766 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104767             Bruno Haible  <bruno@clisp.org>
104769         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
104771 2006-09-25  Jim Meyering  <jim@meyering.net>
104773         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
104774         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
104776 2006-09-25  Eric Blake  <ebb9@byu.net>
104778         * gnulib-tool (func_import, func_create_testdir): Fix typos in
104779         exec's in 2006-09-18 patch when shuffling fds.
104781 2006-09-25  Bruno Haible  <bruno@clisp.org>
104783         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
104784         Reported by Jim Meyering.
104786 2006-09-24  Jim Meyering  <jim@meyering.net>
104788         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
104789         compare a pointer against a literal "0".  That caused failures with
104790         at least HP-UX's hpcc.
104792 2006-09-22  Simon Josefsson  <jas@extundo.com>
104794         * modules/gc-sha1:
104795         * modules/gc-md4:
104796         * modules/gc-hmac-sha1:
104797         * modules/gc-hmac-md5:
104798         * modules/gc-des:
104799         * modules/gc-arcfour: Distribute more files.
104801 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104803         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
104804         (gl_linked_iterator_from_to): Initialize struct completely.
104805         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
104806         (gl_tree_iterator_from_to): Likewise
104807         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
104808         * lib/gl_array_list.c [lint] (gl_array_iterator)
104809         (gl_array_iterator_from_to): Likewise.
104810         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
104811         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
104812         (gl_carray_iterator_from_to): Likewise.
104814         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
104815         * lib/md4.c (md4_process_block): Remove unused variable.
104816         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
104817         parentheses for clarity.
104819 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104821         * modules/bison-i18n (Depends-on): Add gettext.
104823 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104825         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
104826         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
104827         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
104828         also add missing comma that caused broken test.
104829         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
104830         stdlib.h, for `abort'.
104831         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
104832         variables.
104833         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
104834         include unistd.h if present, for `rmdir'.
104835         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
104836         variables.
104837         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
104838         in the process include standard headers for prototypes.
104839         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
104840         gets declared on GNU/Linux.
104841         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
104842         unistd.h, for `rmdir'.
104843         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
104845         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
104846         always true.
104847         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
104849         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
104851 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104853         * gnulib-tool (func_version): Create output all at once.  This
104854         may help avoid triggering unnecessary SIGPIPEs, and at any
104855         rate it doesn't hurt.
104857 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104858             Bruno Haible  <bruno@clisp.org>
104860         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
104861         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
104862         * m4/signed.m4 (bh_C_SIGNED): Likewise.
104864         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
104865         (gl_FUNC_VASPRINTF): Invoke it.
104867 2006-09-22  Bruno Haible  <bruno@clisp.org>
104869         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
104870         getloadavg.c as first argument.
104872 2006-09-22  Bruno Haible  <bruno@clisp.org>
104874         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
104875         at the beginning of the gl_INIT macro.
104876         * modules/getloadavg (configure.ac): Pass $gl_source_base to
104877         gl_GETLOADAVG.
104879 2006-09-22  Bruno Haible  <bruno@clisp.org>
104881         * gnulib-tool (func_create_megatestdir): Don't include the config-h
104882         module.
104883         Suggested by Ralf Wildenhues.
104885 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
104887         Import this patch from libc:
104889         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
104891         * lib/regex_internal.c (re_string_reconstruct): Handle
104892         offset < pstr->valid_raw_len && pstr->offsets_needed case.
104893         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
104894         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
104895         re_string_context_at.
104897         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
104898         now requires it.
104899         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
104900         gl_REGEX now does it for us.
104901         (gl_REGEX): Add test taken from
104902         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
104904         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
104905         Check that large offsets work.  Modernize Autoconf usages.
104906         Prefer "yes" to mean a good thing rather than a bad.
104907         Don't put "#define mkstemp" in config.h, as this might interfere
104908         with standard system headers that "#define mkstemp mkstemp64".
104910         * modules/mkstemp (Depends-on): Add extensions, so that
104911         mkstemp is visible on some platforms.
104912         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
104913         (Include): Change to "mkstemp.h" from <stdlib.h>.
104914         (Files): Add mkstemp.h.
104916         * lib/mkstemp.h: New file, since some standard headers
104917         #define mkstemp.
104918         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
104919         Include "mkstemp.h".
104920         Make the _LIBC code resemble glibc original more,
104921         e.g., use K&R style.
104922         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
104923         (mkstemp): Remove, since mkstemp.h does this for us.
104924         * lib/stdlib--.h: Include mkstemp.h.
104926         Import this patch from libc:
104928         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
104930         * lib/tempname.c (__gen_tempname): Change attempts_min
104931         into a macro.  Use preprocessor to decide how to initialize
104932         attempts [Coverity CID 67].
104934 2006-09-20  Bruno Haible  <bruno@clisp.org>
104936         * lib/mkdtemp.c: Import from libc.
104937         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
104938                 * sysdeps/posix/tempname.c (__gen_tempname): Change
104939                 attempts_min into a macro.  Use preprocessor to decide how to
104940                 initialize attempts [Coverity CID 67].
104941         2001-11-27  Paul Eggert  <eggert@twinsun.com>
104942                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
104943                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
104945 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104947         * gnulib-tool (func_exit): New function, to allow to pass the
104948         exit status portably through the trap.  Use everywhere.
104949         (--help, --version): Signal a write error.
104950         (trap): catch SIGPIPE, for write errors.
104951         Exit at the end of the trap, with the correct exit status.
104953 2006-09-19  Karl Berry  <karl@gnu.org>
104955         * doc/gnulib.texi: note about the license texinfo files.
104957 2006-09-19  Eric Blake  <ebb9@byu.net>
104959         * gnulib-tool: Avoid space-tab.
104961 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
104963         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
104964         that prevented coreutils 6.1 from building.  Problem reported
104965         by Petter Reinholdtsen.
104967 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
104969         * gnulib-tool (avoidlist): Fix typo that broke options like
104970         --avoid=lock that are used by coreutils bootstrap.
104972 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
104974         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
104975         more systematically.
104977 2006-09-18  Jim Meyering  <jim@meyering.net>
104979         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
104981 2006-09-18  Bruno Haible  <bruno@clisp.org>
104983         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
104985 2006-09-18  Bruno Haible  <bruno@clisp.org>
104987         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
104988         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
104989         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
104990         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
104991         * m4/gettext.m4: Require autoconf >= 2.52.
104992         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
104993         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
104994         of gl_cv_header_inttypes_h.
104996 2006-09-18  Bruno Haible  <bruno@clisp.org>
104998         * lib/javaversion.c: Include configmake.h.
105000 2006-09-18  Bruno Haible  <bruno@clisp.org>
105002         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
105003         avoid that the while loops be executed in a subshell.
105005 2006-09-18  Bruno Haible  <bruno@clisp.org>
105007         * MODULES.html.sh (func_module): Break long lines.
105008         Suggested by Bruce Korb <bkorb@gnu.org>.
105010 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105012         Speed up by a factor of 1.12.
105013         * gnulib-tool (nl): New variable.
105014         (func_import): Rewrite include directive extraction to only read each
105015         directive once.
105017 2006-09-17  Bruno Haible  <bruno@clisp.org>
105019         * modules/javaversion (Makefile.am): Remove DEFS setting.
105020         (Depends-on): Add configmake, for PKGDATADIR definition.
105022 2006-09-17  Bruno Haible  <bruno@clisp.org>
105024         * gnulib-tool (func_create_testdir): Rewrite all files at once.
105026 2006-09-17  Bruno Haible  <bruno@clisp.org>
105028         * gnulib-tool (func_append): New function, stolen from libtool.m4.
105029         (func_modules_transitive_closure, func_modules_add_dummy,
105030         func_modules_to_filelist, func_import, func_create_testdir,
105031         func_create_megatestdir, ...): Use it wherever possible.
105032         Suggested by Ralf Wildenhues.
105034 2006-09-16  Karl Berry  <karl@gnu.org>
105036         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
105037         to avoid sectioning errors.
105038         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
105039         [ifinfo]: blank line after @center-ed titles.
105040         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
105041         Spell FSF address consistently with others.
105042         (These changes approved by rms.)
105044 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105046         Speed up by a factor of 1.61.
105047         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
105048         already checked module names again.
105050 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105052         Speed up by a factor of 1.13.
105053         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
105054         for new_files, and the input to func_add_or_update.
105056 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105058         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
105059         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
105061 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
105063         * modules/mkancesdirs (Depends-on): Add fcntl.
105064         * modules/savewd: New file.
105065         * MODULES.html.sh (File system functions): Add savewd.
105067         * modules/configmake (Makefile.am): Add support for the
105068         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
105070 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
105072         * m4/savewd.m4: New file.
105074 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
105076         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
105077         (dirchownmod): New arg FD.  All callers changed.
105078         Use FD rather than opening the directory ourself, as opening is
105079         now the caller's responsibility.
105080         * lib/dirchownmod.h: Likewise.
105081         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
105082         hosts that require <sys/types.h> before <sys/stat.h>.  Include
105083         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
105084         (test_dir): Remove.
105085         (mkancesdirs): Return length of prefix of FILE that has already
105086         been made, or -2 if there is a child doing the work.  Redo
105087         algorithm so that it is O(N) rather than O(N**2).  Optimize away
105088         ".", and treat ".." specially since it might stray back into
105089         already-created areas.  Use a subprocess if necessary.  New arg
105090         WD; all users changed.  MAKE_DIR function should now return 1
105091         if it creates a directory that is not readable.  Return -2 if
105092         a child process is spun off.
105093         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
105094         Adjust signature to match code.
105095         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
105096         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
105097         all users changed.
105098         * lib/savewd.c, lib/savewd.h: New files.
105100 2006-09-15  Jim Meyering  <jim@meyering.net>
105102         * modules/rename-dest-slash: New module.
105103         * MODULES.html.sh (posix_compat): Add it here.
105105         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
105107 2006-09-15  Jim Meyering  <jim@meyering.net>
105109         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
105110         file.
105112         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
105114 2006-09-15  Jim Meyering  <jim@meyering.net>
105116         * lib/rename-dest-slash.c (has_trailing_slash): Use
105117         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
105118         (rpl_rename_dest_slash): Perform the cheaper trailing slash
105119         test before testing whether SRC is a directory.
105120         Suggestions from Bruno Haible.
105122         Avoid a warning about an unused variable.
105123         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
105124         into the #ifdef block where it's used.
105126         * lib/rename-dest-slash.c: New file.
105128 2006-09-14  Bruno Haible  <bruno@clisp.org>
105130         * lib/allocsa.c: Include <config.h> unconditionally.
105131         * lib/asnprintf.c: Likewise.
105132         * lib/asprintf.c: Likewise.
105133         * lib/c-strcasecmp.c: Likewise.
105134         * lib/c-strcasestr.c: Likewise.
105135         * lib/c-strncasecmp.c: Likewise.
105136         * lib/c-strstr.c: Likewise.
105137         * lib/classpath.c: Likewise.
105138         * lib/clean-temp.c: Likewise.
105139         * lib/concatpath.c: Likewise.
105140         * lib/copy-file.c: Likewise.
105141         * lib/csharpcomp.c: Likewise.
105142         * lib/csharpexec.c: Likewise.
105143         * lib/execute.c: Likewise.
105144         * lib/fatal-signal.c: Likewise.
105145         * lib/findprog.c: Likewise.
105146         * lib/fwriteerror.c: Likewise.
105147         * lib/gl_array_list.c: Likewise.
105148         * lib/gl_array_oset.c: Likewise.
105149         * lib/gl_avltree_list.c: Likewise.
105150         * lib/gl_avltree_oset.c: Likewise.
105151         * lib/gl_avltreehash_list.c: Likewise.
105152         * lib/gl_carray_list.c: Likewise.
105153         * lib/gl_linked_list.c: Likewise.
105154         * lib/gl_linkedhash_list.c: Likewise.
105155         * lib/gl_list.c: Likewise.
105156         * lib/gl_oset.c: Likewise.
105157         * lib/gl_rbtree_list.c: Likewise.
105158         * lib/gl_rbtree_oset.c: Likewise.
105159         * lib/gl_rbtreehash_list.c: Likewise.
105160         * lib/imaxabs.c: Likewise.
105161         * lib/imaxdiv.c: Likewise.
105162         * lib/javacomp.c: Likewise.
105163         * lib/javaexec.c: Likewise.
105164         * lib/javaversion.c: Likewise.
105165         * lib/linebreak.c: Likewise.
105166         * lib/localcharset.c: Likewise.
105167         * lib/lock.c: Likewise.
105168         * lib/mbchar.c: Likewise.
105169         * lib/mbswidth.c: Likewise.
105170         * lib/mkdtemp.c: Likewise.
105171         * lib/pipe.c: Likewise.
105172         * lib/printf-args.c: Likewise.
105173         * lib/printf-parse.c: Likewise.
105174         * lib/progname.c: Likewise.
105175         * lib/progreloc.c: Likewise.
105176         * lib/readlink.c: Likewise.
105177         * lib/sh-quote.c: Likewise.
105178         * lib/stpcpy.c: Likewise.
105179         * lib/stpncpy.c: Likewise.
105180         * lib/strcasecmp.c: Likewise.
105181         * lib/strcasestr.c: Likewise.
105182         * lib/strcspn.c: Likewise.
105183         * lib/striconv.c: Likewise.
105184         * lib/strncasecmp.c: Likewise.
105185         * lib/strnlen1.c: Likewise.
105186         * lib/strstr.c: Likewise.
105187         * lib/strtok_r.c: Likewise.
105188         * lib/tls.c: Likewise.
105189         * lib/tmpdir.c: Likewise.
105190         * lib/unicodeio.c: Likewise.
105191         * lib/unsetenv.c: Likewise.
105192         * lib/vasnprintf.c: Likewise.
105193         * lib/vasprintf.c: Likewise.
105194         * lib/wait-process.c: Likewise.
105195         * lib/xallocsa.c: Likewise.
105196         * lib/xsetenv.c: Likewise.
105197         * lib/xstriconv.c: Likewise.
105199 2006-09-13  Simon Josefsson  <jas@extundo.com>
105201         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
105202         that internally, suggested by Ralf Wildenhues
105203         <Ralf.Wildenhues@gmx.de>.
105205 2006-09-13  Simon Josefsson  <jas@extundo.com>
105207         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
105208         @LIBOBJS@.
105209         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
105211 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
105213         * lib/_fpending.c: Include <config.h> unconditionally, since we no
105214         longer worry about uses that don't define HAVE_CONFIG_H.
105215         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
105216         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
105217         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
105218         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
105219         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
105220         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
105221         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
105222         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
105223         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
105224         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
105225         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
105226         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
105227         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
105228         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
105229         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
105230         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
105231         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
105232         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
105233         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
105234         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
105235         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
105236         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
105237         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
105238         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
105239         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
105240         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
105241         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
105242         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
105243         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
105244         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
105245         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
105246         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
105247         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
105248         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
105249         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
105250         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
105251         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
105252         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
105253         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
105254         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
105255         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
105256         Likewise.
105258 2006-09-13  Eric Blake  <ebb9@byu.net>
105260         * lib/getopt.c: Fix typo in last commit.
105262 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
105264         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
105265         dgettext.
105267 2006-09-12  Jim Meyering  <jim@meyering.net>
105269         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
105270         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
105271         Reported by Nelson H. F. Beebe.
105273 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
105275         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
105276         program_invocation_name and program_invocation_short_name are
105277         initialized.
105278         * lib/argp-namefrob.h: Move declarations of program_invocation_name
105279         and program_invocation_short_name to argp.h, so they are visible
105280         to user programs.
105281         * lib/argp.h: Likewise
105283 2006-09-10  Bruno Haible  <bruno@clisp.org>
105285         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
105286         m4/inttypes_h.m4, m4/uintmax_t.m4.
105288 2006-09-10  Bruno Haible  <bruno@clisp.org>
105290         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
105291         gl_AC_TYPE_UINTMAX_T.
105293 2006-09-10  Bruno Haible  <bruno@clisp.org>
105295         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
105297 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
105299         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
105300         convention.  Text proposed by Bruno Haible.
105301         (struct argp_option): Document the use of N_() wrappers.
105303         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
105304         '\v', and translate the two parts separately, instead of feeding
105305         the whole string to gettext.  This allows to exclude
105306         '\v' from the strings visible to the translator by writing doc
105307         strings as N_("..") "\v" N_("..").
105309 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
105311         * config/srclist.txt: Undo latest change; the bug was fixed.
105313 2006-09-09  Bruno Haible  <bruno@clisp.org>
105315         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
105316         assignments if building a library without libtool.
105317         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
105318         in func_emit_lib_Makefile_am.
105319         (func_import): When building a static library libfoo.a, arrange to
105320         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
105321         (func_create_testdir): Likewise.
105322         * modules/gc (configure.ac, Makefile.am): If building statically,
105323         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
105324         * modules/iconvme (configure.ac, Makefile.am): Likewise.
105325         * modules/striconv (configure.ac, Makefile.am): Likewise.
105326         Based on a suggestion by Ralf Wildenhues.
105328 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
105330         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
105331         Check for unistd.h too, since Autoconf doesn't assume POSIX.
105332         Also:
105334         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
105335         Add year_2050_test to catch glibc bug 2821
105336         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
105338         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
105339         Prefer #ifdef to #if.
105341         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
105342         Return from 'main' instead of calling 'exit'.
105344 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
105346         * lib/mktime.c (guess_time_tm): Fix bug where mktime
105347         returned the maximum time_t value rather than (time_t) -1.
105348         Problem originally reported by William Bardwell
105349         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
105351         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
105352         Moved to here ...
105353         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
105354         ... from here.
105356 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
105358         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
105359         2821 is fixed.
105361 2006-09-08  Jim Meyering  <jim@meyering.net>
105363         Don't make generated files read-only.  That would bother too many
105364         people.  However, do retain the ability to work when targets are
105365         read-only: remove the destination and temporary files before writing
105366         them (when generated via sed or echo), or by using the -f option for
105367         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
105368         * modules/alloca-opt, modules/argz, modules/arpa_inet:
105369         * modules/byteswap, modules/configmake, modules/fcntl:
105370         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
105371         * modules/localcharset, modules/netinet_in, modules/poll:
105372         * modules/stdbool, modules/stdint, modules/sys_select:
105373         * modules/sys_socket, modules/sys_stat, modules/sysexits:
105375 2006-09-08  Jim Meyering  <jim@meyering.net>
105377         Avoid new build failure on FreeBSD 6.0.
105378         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
105379         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
105380         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
105382 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105384         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
105386 2006-09-07  Jim Meyering  <jim@meyering.net>
105388         Fix global typo in last change: use chmod u-w, not chmod u-x.
105389         Spotted by Paul Eggert and Bruce Korb.
105390         * modules/alloca-opt, modules/argz, modules/arpa_inet:
105391         * modules/byteswap, modules/configmake, modules/fcntl:
105392         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
105393         * modules/localcharset, modules/netinet_in, modules/poll:
105394         * modules/stdbool, modules/stdint, modules/sys_select:
105395         * modules/sys_socket, modules/sys_stat, modules/sysexits:
105397 2006-09-06  Jim Meyering  <jim@meyering.net>
105399         Make generated files be read-only.
105400         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
105401         Ensure that each generated file is now read-only.
105402         * modules/argz: Likewise.
105403         * modules/arpa_inet: Likewise.
105404         * modules/byteswap: Likewise.
105405         * modules/configmake: Likewise.
105406         * modules/fcntl: Likewise.
105407         * modules/fnmatch: Likewise.
105408         * modules/getopt: Likewise.
105409         * modules/glob: Likewise.
105410         * modules/inttypes: Likewise.
105411         * modules/netinet_in: Likewise.
105412         * modules/poll: Likewise.
105413         * modules/stdbool: Likewise.
105414         * modules/stdint: Likewise.
105415         * modules/sys_select: Likewise.
105416         * modules/sys_socket: Likewise.
105417         * modules/sys_stat: Likewise.
105418         * modules/sysexits: Likewise.
105419         * modules/localcharset: Same as above, but continue using temporary
105420         file named "t-$@" (why different?) rather than the "$@-t" used
105421         everywhere else.
105423         * modules/sysexits (Makefile.am): Replace literal occurrences
105424         of "sysexit.h" more readable, and more consistent, "$@".
105426 2006-09-06  Bruno Haible  <bruno@clisp.org>
105428         * modules/striconv: New file.
105429         * modules/xstriconv: New file.
105430         * MODULES.html.sh (Internationalization functions): Add striconv,
105431         xstriconv.
105433 2006-09-06  Bruno Haible  <bruno@clisp.org>
105435         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
105436         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
105437         not using libtool correctly.
105439 2006-09-06  Bruno Haible  <bruno@clisp.org>
105441         * lib/striconv.h: New file.
105442         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
105443         iconvstring.c.
105444         * lib/xstriconv.h: New file.
105445         * lib/xstriconv.c: New file.
105447 2006-09-06  Bruno Haible  <bruno@clisp.org>
105449         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
105450         lib_..._LDFLAGS.
105452 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105454         * lib/argz_.h: Sync from Libtool.
105456         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
105457                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
105459         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
105461 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
105463         * modules/trim: New file.
105465 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
105467         * lib/trim.h: New file.
105468         * lib/trim.c: New file.
105470 2006-09-05  Bruno Haible  <bruno@clisp.org>
105472         * MODULES.html.sh (String handling): Add trim.
105474 2006-09-04  Karl Berry  <karl@gnu.org>
105476         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
105477         until next release.
105479 2006-09-03  Bruno Haible  <bruno@clisp.org>
105481         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
105482         correctly.
105484 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
105486         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
105487         not gl_GETLOADAVG.  Omit unneeded semicolons.
105488         Problems reported by Ralf Wildenhues in
105489         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
105490         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
105491         at the end, which is the usual gnulib style.
105493         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
105494         of doing all the work ourselves.
105495         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
105496         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
105498 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
105500         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
105501         Problem reported by Ralf Wildenhues in
105502         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
105504         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
105505         HAVE_STRUCT_STATFS_F_FSTYPENAME.
105507 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
105509         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
105510         yesterday's patch by changing test -n to test -z.
105512 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
105514         * modules/getloadavg (Files): Add m4/getloadavg.m4.
105515         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
105516         the former is now obsolescent.
105518         * modules/chdir-long (Depends-on): Add fcntl.
105520 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
105522         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
105523         obsolescent, and programs should use gnulib instead.
105524         * m4/getloadavg.m4: New file, with contents taken from Autoconf
105525         but with prefixes changed.
105527 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
105529         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
105530         or stdbool.h, because they might not exist while configuring.
105532         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
105533         Don't include unistd.h or limits.h; not needed, since chdir-long.h
105534         does that for us.
105535         (O_DIRECTORY): Remove.
105537 2006-08-31  Eric Blake  <ebb9@byu.net>
105539         * gnulib-tool: Don't let emacs change spaces to TAB.
105541 2006-08-31  Bruno Haible  <bruno@clisp.org>
105543         * gnulib-tool: When calling func_import more than once, do it in a
105544         subshell.
105545         Reported by Eric Blake <ebb9@byu.net>.
105547 2006-08-31  Bruno Haible  <bruno@clisp.org>
105549         * gnulib-tool (nl): Remove variable.
105550         (sed_transform_lib_file): Use more robust test for config-h module.
105551         (func_import): Fix typo in 2006-08-25 patch.
105553 2006-08-31  Bruno Haible  <bruno@clisp.org>
105555         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
105556         specified, augment Makefile.am variables instead of assigning them.
105558 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
105560         Work around a bug in both the Linux and SunOS 64-bit kernels:
105561         nanosleep mishandles sleeps for longer than 2**31 seconds.
105562         Problem reported by Frank v Waveren in
105563         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
105564         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
105565         Check for nanosleep bug.
105566         (LIB_NANOSLEEP): Append clock_gettime library if needed.
105568 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
105570         Work around a bug in both the Linux and SunOS 64-bit kernels:
105571         nanosleep mishandles sleeps for longer than 2**31 seconds.
105572         Problem reported by Frank v Waveren in
105573         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
105574         * lib/nanosleep.c (BILLION): New constant.
105575         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
105576         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
105577         implementation.
105579 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
105581         * modules/nanosleep (Depends-on): Add gettime.
105583 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
105584         and Simon Josefsson  <jas@extundo.com>
105585         and Oskar Liljeblad  <oskar@osk.mine.nu>
105587         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
105588         * gnulib-tool (func_import): New license type 'unmodifiable license
105589         text'.
105590         * modules/fdl: Use it.  Longer description.
105591         * module/gpl, module/lgpl: New files.
105593 2006-08-30  Jim Meyering  <jim@meyering.net>
105595         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
105596         shadowing the parameter.
105598 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105600         Sync from Libtool:
105602         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105604         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
105605         sharing with gnulib.  Report by Eric Blake.
105607 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
105609         * modules/isapipe: New file.
105610         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
105612 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
105614         * modules/configmake (Makefile.am): Add a comment, and omit
105615         the CONFIGMAKE_ prefix from generated macro names.  Suggested
105616         by Bruno Haible.
105618 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
105620         * m4/isapipe.m4: New file.
105622 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
105624         * lib/isapipe.c, lib/isapipe.h: New files.
105626 2006-08-29  Jim Meyering  <jim@meyering.net>
105628         * modules/configmake (Makefile.am): Make configmake.h depend on
105629         Makefile.  Otherwise, a stale configmake.h could hang around.
105631 2006-08-29  Eric Blake  <ebb9@byu.net>
105633         * lib/error.c (error_at_line, print_errno_message): Match libc, after
105634         resolution of upstream bug 3044.
105636 2006-08-29  Bruno Haible  <bruno@clisp.org>
105638         * modules/localcharset (Depends-on): Add configmake.
105639         (Makefile.am): Remove setting of LIBDIR through DEFS.
105641 2006-08-29  Bruno Haible  <bruno@clisp.org>
105643         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
105644         defined.
105646 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
105648         * modules/fcntl: New file.
105649         * modules/chdir-safer (Depends-on): Add fcntl.
105650         * modules/fts: Likewise.
105651         * modules/mkdir-p: Likewise.
105653         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
105654         This undoes the most recent change, since we're now addressing the
105655         problem in a different way.
105657         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
105658         into output, since the output might be called Makefile.am even
105659         if $makefile_name is something different.
105660         (func_import): Use $makefile_am rather than
105661         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
105662         empty.
105664         * modules/inttypes (Files): Add m4/inttypes-h.m4.
105666 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
105668         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
105669         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
105670         recent change to stdint.m4, since we're now addressing the problem in a
105671         different way.
105673 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
105675         * m4/fcntl_h.m4: New file.
105677 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
105679         * lib/fcntl_.h: New file.
105680         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
105681         the fcntl module.
105682         * lib/dirchownmod.c: Likewise.
105683         * lib/fts.c: Likewise.
105685         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
105686         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
105687         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
105688         just before including <inttypes.h>, to avoid circular inclusion.
105690 2006-08-28  Jim Meyering  <jim@meyering.net>
105692         * doc/visibility.texi: Actually read and correct the grammar of the
105693         sentence affected by yesterday's change.
105695 2006-08-28  Eric Blake  <ebb9@byu.net>
105697         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
105698         needs wrapper.
105700 2006-08-28  Eric Blake  <ebb9@byu.net>
105702         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
105704 2006-08-28  Eric Blake  <ebb9@byu.net>
105706         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
105708 2006-08-28  Bruno Haible  <bruno@clisp.org>
105710         * modules/c-strstr: New file, from GNU gettext.
105711         * MODULES.html.sh (String handling): Add c-strstr.
105713 2006-08-28  Bruno Haible  <bruno@clisp.org>
105715         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
105716         macros.
105717         Reported by Eric Blake.
105719 2006-08-28  Bruno Haible  <bruno@clisp.org>
105721         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
105722         (VASNPRINTF): Return a string of length > INT_MAX without failing.
105723         * lib/vasprintf.c: Include errno.h, limits.h.
105724         (EOVERFLOW): New fallback definition.
105725         (vasprintf): Test here whether the string length is > INT_MAX.
105726         * lib/vsnprintf.c: Include errno.h, limits.h.
105727         (EOVERFLOW): New fallback definition.
105728         (vsnprintf): Fix bug when generated string was too long for the buffer.
105729         Test here whether the string length is > INT_MAX.
105731 2006-08-28  Bruno Haible  <bruno@clisp.org>
105733         * lib/inttypes_.h (SCNX*): Remove definitions.
105734         Reported by Eric Blake.
105736 2006-08-28  Bruno Haible  <bruno@clisp.org>
105738         * lib/c-strstr.h: New file, from GNU gettext.
105739         * lib/c-strstr.c: New file, from GNU gettext.
105741 2006-08-28  Bruno Haible  <bruno@clisp.org>
105743         * gnulib-tool: Reorder some statements.
105745 2006-08-28  Bruno Haible  <bruno@clisp.org>
105747         * gnulib-tool: New option --makefile-name.
105748         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
105749         $makefile_name.
105750         (func_import): Write $makefile_name to the cache file, and read it from
105751         there unless explicitly specified. Use $makefile_name as file name
105752         instead of Makefile.am. Adjust the recommendations accordingly.
105754 2006-08-28  Bruno Haible  <bruno@clisp.org>
105756         * gnulib-tool (func_verify_module): Check against misapplying patch.
105758 2006-08-28  Bruno Haible  <bruno@clisp.org>
105760         * gnulib-tool (func_relativize, func_relconcat): New functions.
105761         Give an error if --local-dir is given with --update.
105762         Remove trailing slashes from $local_gnulib_dir.
105763         (func_import): Store the relativized $local_gnulib_dir in
105764         gnulib-cache.m4, and read it from there if not specified explicitly.
105766 2006-08-28  Bruno Haible  <bruno@clisp.org>
105768         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
105769         is the current directory. Respect also $local_gnulib_dir.
105771 2006-08-28  Bruno Haible  <bruno@clisp.org>
105772             Simon Josefsson  <jas@extundo.com>
105774         BeOS portability.
105775         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
105777 2006-08-27  Jim Meyering  <jim@meyering.net>
105779         * doc/visibility.texi: Remove duplicate word: "pointer".
105781 2006-08-26  Bruno Haible  <bruno@clisp.org>
105783         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
105784         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
105785         (Makefile.am): Create inttypes.h from inttypes_.h.
105786         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
105788         * modules/imaxabs: New file.
105790         * modules/imaxdiv: New file.
105792 2006-08-26  Bruno Haible  <bruno@clisp.org>
105794         * m4/inttypes.m4: New file.
105795         * m4/_inttypes_h.m4: Remove file.
105796         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
105797         PRI_MACROS_BROKEN.
105798         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
105800         * m4/imaxabs.m4: New file.
105802         * m4/imaxdiv.m4: New file.
105804 2006-08-26  Bruno Haible  <bruno@clisp.org>
105806         * lib/inttypes_.h: New file.
105807         * lib/inttypes.h: Remove file.
105808         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
105810         * lib/imaxabs.c: New file.
105812         * lib/imaxdiv.c: New file.
105814 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
105816         New config-h module, so that "make" output needn't be cluttered
105817         by -DHAVE_CONFIG_H.
105818         * MODULES.html.sh (Support for building libraries and executables):
105819         Add config-h.
105820         * modules/config-h: New file.
105821         * gnulib-tool (nl, sed_transform_lib_file): New vars.
105822         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
105823         the config-h module is used.
105825         New configmake module, so that "make" output needn't be cluttered
105826         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
105827         * MODULES.html.sh (Support for building libraries and executables):
105828         Add configmake.
105829         * modules/configmake: New file.
105831 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
105833         * m4/config-h.m4: New file.
105835 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
105837         * config/srclist.txt: Add elisp-comp.
105839 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
105841         * MODULES.html.sh (Support for building libraries and executables):
105842         Add elisp-comp.
105843         * build-aux/elisp-comp: New file.
105844         * modules/elisp-comp: New file.
105846 2006-08-24  Bruno Haible  <bruno@clisp.org>
105848         * gnulib-tool (func_create_testdir): Use non-default values of
105849         sourcebase and m4base.
105851 2006-08-24  Bruno Haible  <bruno@clisp.org>
105853         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
105854         HTML structure.
105856 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
105858         * modules/openat (Depends-on): Add lchown.
105860 2006-08-23  Bruno Haible  <bruno@clisp.org>
105862         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
105863         of gl_LOCK_EARLY instead of gl_LOCK.
105865 2006-08-23  Bruno Haible  <bruno@clisp.org>
105867         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
105868         on OSF/1 to no.
105869         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
105871 2006-08-23  Bruno Haible  <bruno@clisp.org>
105873         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
105874         as unusable.
105876         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
105877         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
105878         (gl_LOCK): New macro.
105880 2006-08-22  Simon Josefsson  <jas@extundo.com>
105882         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
105883         to md5 module.
105885 2006-08-22  Simon Josefsson  <jas@extundo.com>
105887         * MODULES.html.sh: Add "Support for maintaining and release
105888         projects".
105890         * build-aux/gnupload: New file, from coreutils.
105892 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
105894         Avoid the need for AC_LIBSOURCES in m4 macros.
105895         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
105896         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
105897         * modules/check-version (EXTRA_DIST): Add check-version.h.
105898         * modules/crc (EXTRA_DIST): Add crc.h.
105899         * modules/des (EXTRA_DIST): Add des.h.
105900         * modules/gc (EXTRA_DIST): Add gc.h.
105901         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
105902         * modules/getline (EXTRA_DIST): Add getline.h.
105903         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
105904         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
105905         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
105906         * modules/md2 (EXTRA_DIST): Add md2.h.
105907         * modules/md4 (EXTRA_DIST): Add md4.h.
105908         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
105909         * modules/read-file (EXTRA_DIST): Add read-file.h.
105910         * modules/readline (EXTRA_DIST): Add readline.h.
105911         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
105912         rijndael-api-fst.h.
105914 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
105916         * m4/rijndael.m4 (gl_ARCFOUR):
105917         * m4/arctwo.m4 (gl_ARCTWO):
105918         * m4/check-version.m4 (gl_CHECK_VERSION):
105919         * m4/crc.m4 (gl_CRC):
105920         * m4/des.m4 (gl_DES):
105921         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
105922         * m4/gc.m4 (gl_GC):
105923         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
105924         * m4/getline.m4 (gl_FUNC_GETLINE):
105925         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
105926         * m4/hmac-md5.m4 (gl_HMAC_MD5):
105927         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
105928         * m4/md2.m4 (gl_MD2):
105929         * m4/md4.m4 (gl_MD4):
105930         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
105931         * m4/read-file.m4 (gl_FUNC_READ_FILE):
105932         * m4/readline.m4 (gl_FUNC_READLINE):
105933         * m4/rijndael.m4 (gl_RIJNDAEL):
105934         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
105935         to get the necessary .h files and whatnot.
105937 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
105939         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
105940         gnulib rather than the other way around.
105941         * config/srclistvars.sh (COREUTILS): Remove.
105943 2006-08-22  Jim Meyering  <jim@meyering.net>
105945         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
105947         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
105949 2006-08-22  Eric Blake  <ebb9@byu.net>
105951         * modules/regexprops-generic: New file.
105952         * MODULES.html.sh (Support for building documentation): List it.
105954 2006-08-22  Eric Blake  <ebb9@byu.net>
105956         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
105957         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
105958         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
105959         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
105961 2006-08-22  Bruno Haible  <bruno@clisp.org>
105963         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
105964         and lib_LTLIBRARIES like the other lib_* variables.
105966 2006-08-22  Bruno Haible  <bruno@clisp.org>
105968         * build-aux/x-to-1.in: New file, from GNU gettext.
105970 2006-08-22  Bruno Haible  <bruno@clisp.org>
105972         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
105973         <utmpx.h> exists.
105975 2006-08-22  Bruno Haible  <bruno@clisp.org>
105977         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
105978         <utmpx.h> exists.
105980 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
105982         BeOS portability.
105983         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
105984         exist.
105985         Problem reported by Bruno Haible.
105987 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
105989         Avoid the need for AC_LIBSOURCES in m4 macros.
105990         * modules/acl (EXTRA_DIST): Add acl.h.
105991         * modules/argmatch (Files): Add m4/argmatch.m4.
105992         (configure.ac): Add gl_ARGMATCH.
105993         (EXTRA_DIST): Renamed from lib_SOURCES, for
105994         consistency with the other modules.  Remove argmatch.c.
105995         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
105996         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
105997         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
105998         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
105999         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
106000         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
106001         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
106002         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
106003         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
106004         * modules/closeout (EXTRA_DIST): Add closeout.h.
106005         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
106006         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
106007         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
106008         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
106009         dirname.h; remove basename.c and stripslash.c.
106010         * modules/exclude (EXTRA_DIST): Add exclude.h.
106011         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
106012         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
106013         * modules/file-type (EXTRA_DIST): Add file-type.h.
106014         * modules/filemode (EXTRA_DIST): Add filemode.h.
106015         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
106016         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
106017         * modules/fpending (EXTRA_DIST): Add __fpending.h.
106018         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
106019         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
106020         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
106021         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
106022         * modules/getdate (EXTRA_DIST): Add getdate.c.
106023         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
106024         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
106025         * modules/getpass (EXTRA_DIST): Add getpass.h.
106026         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
106027         * modules/group-member (EXTRA_DIST): Add group-member.h.
106028         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
106029         * modules/hash (EXTRA_DIST): Add hash.h.
106030         * modules/human (EXTRA_DIST): Add human.h.
106031         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
106032         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
106033         * modules/lchown (EXTRA_DIST): Add lchown.h.
106034         * modules/long-options (EXTRA_DIST): Add long-options.h.
106035         * modules/lstat (EXTRA_DIST): Add lstat.h.
106036         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
106037         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
106038         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
106039         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
106040         * modules/memxor (EXTRA_DIST): Add memxor.h.
106041         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
106042         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
106043         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
106044         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
106045         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
106046         * modules/physmem (EXTRA_DIST): Add physmem.h.
106047         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
106048         * modules/posixver (EXTRA_DIST): Add posixver.h.
106049         * modules/quote (EXTRA_DIST): Add quote.h.
106050         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
106051         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
106052         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
106053         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
106054         regex_internal.h regexec.c.
106055         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
106056         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
106057         * modules/same (EXTRA_DIST): Add same.h.
106058         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
106059         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
106060         * modules/savedir (EXTRA_DIST): Add savedir.h.
106061         * modules/sha1 (EXTRA_DIST): Add sha1.h.
106062         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
106063         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
106064         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
106065         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
106066         * modules/strdup (EXTRA_DIST): Add strdup.h.
106067         * modules/strftime (EXTRA_DIST): Add strftime.h.
106068         * modules/strndup (EXTRA_DIST): Add strndup.h.
106069         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
106070         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
106071         * modules/time_r (EXTRA_DIST): Add time_r.h.
106072         * modules/timespec (EXTRA_DIST): Add timespec.h.
106073         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
106074         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
106075         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
106076         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
106077         * modules/userspec (EXTRA_DIST): Add userspec.h.
106078         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
106079         * modules/utimens (EXTRA_DIST): Add utimens.h.
106080         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
106081         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
106082         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
106083         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
106084         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
106085         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
106086         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
106087         * modules/yesno (EXTRA_DIST): Add yesno.h.
106089 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
106091         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
106093         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
106094         * m4/dev-ino.m4, same-inode.m4: Remove.
106096         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
106097         * m4/acl.m4 (AC_FUNC_ACL):
106098         * m4/backupfile.m4 (gl_BACKUPFILE):
106099         * m4/c-strtod.m4 (gl_C99_STRTOLD):
106100         * m4/canon-host.m4 (gl_CANON_HOST):
106101         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
106102         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
106103         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
106104         * m4/cloexec.m4 (gl_CLOEXEC):
106105         * m4/close-stream.m4 (gl_CLOSE_STREAM):
106106         * m4/closeout.m4 (gl_CLOSEOUT):
106107         * m4/dirfd.m4 (gl_FUNC_DIRFD):
106108         * m4/dirname.m4 (gl_DIRNAME):
106109         * m4/exclude.m4 (gl_EXCLUDE):
106110         * m4/exitfail.m4 (gl_EXITFAIL):
106111         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
106112         * m4/file-type.m4 (gl_FILE_TYPE):
106113         * m4/filemode.m4 (gl_FILEMODE):
106114         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
106115         * m4/fpending.m4 (gl_FUNC_FPENDING):
106116         * m4/fprintftime.m4 (gl_FPRINTFTIME):
106117         * m4/fts.m4 (gl_FUNC_FTS):
106118         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
106119         * m4/getdate.m4 (gl_GETDATE):
106120         * m4/gethrxtime.m4 (gl_GETHRXTIME):
106121         * m4/getpagesize.m4 (gl_GETPAGESIZE):
106122         * m4/getpass.m4 (gl_FUNC_GETPASS):
106123         * m4/gettime.m4 (gl_GETTIME):
106124         * m4/getugroups.m4 (gl_GETUGROUPS):
106125         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
106126         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
106127         * m4/hard-locale.m4 (gl_HARD_LOCALE):
106128         * m4/hash.m4 (gl_HASH):
106129         * m4/idcache.m4 (gl_IDCACHE):
106130         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
106131         * m4/lchown.m4 (gl_FUNC_LCHOWN):
106132         * m4/long-options.m4 (gl_LONG_OPTIONS):
106133         * m4/lstat.m4 (gl_FUNC_LSTAT):
106134         * m4/md5.m4 (gl_MD5):
106135         * m4/memcasecmp.m4 (gl_MEMCASECMP):
106136         * m4/memcoll.m4 (gl_MEMCOLL):
106137         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
106138         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
106139         * m4/memxor.m4 (gl_MEMXOR):
106140         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
106141         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
106142         * m4/modechange.m4 (gl_MODECHANGE):
106143         * m4/mountlist.m4 (gl_MOUNTLIST):
106144         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
106145         * m4/openat.m4 (gl_FUNC_OPENAT):
106146         * m4/pathmax.m4 (gl_PATHMAX):
106147         * m4/physmem.m4 (gl_PHYSMEM):
106148         * m4/posixtm.m4 (gl_POSIXTM):
106149         * m4/posixver.m4 (gl_POSIXVER):
106150         * m4/quote.m4 (gl_QUOTE):
106151         * m4/quotearg.m4 (gl_QUOTEARG):
106152         * m4/readtokens.m4 (gl_READTOKENS):
106153         * m4/readutmp.m4 (gl_READUTMP):
106154         * m4/regex.m4 (gl_REGEX):
106155         * m4/safe-read.m4 (gl_SAFE_READ):
106156         * m4/safe-write.m4 (gl_SAFE_WRITE):
106157         * m4/same.m4 (gl_SAME):
106158         * m4/save-cwd.m4 (gl_SAVE_CWD):
106159         * m4/savedir.m4 (gl_SAVEDIR):
106160         * m4/settime.m4 (gl_SETTIME):
106161         * m4/sha1.m4 (gl_SHA1):
106162         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
106163         * m4/stat-macros.m4 (gl_STAT_MACROS):
106164         * m4/stat-time.m4 (gl_STAT_TIME):
106165         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
106166         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
106167         * m4/strdup.m4 (gl_FUNC_STRDUP):
106168         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
106169         * m4/strndup.m4 (gl_FUNC_STRNDUP):
106170         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
106171         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
106172         * m4/time_r.m4 (gl_TIME_R):
106173         * m4/timespec.m4 (gl_TIMESPEC):
106174         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
106175         * m4/unlinkdir.m4 (gl_UNLINKDIR):
106176         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
106177         * m4/userspec.m4 (gl_USERSPEC):
106178         * m4/utimecmp.m4 (gl_UTIMECMP):
106179         * m4/utimens.m4 (gl_UTIMENS):
106180         * m4/xalloc.m4 (gl_XALLOC):
106181         * m4/xgetcwd.m4 (gl_XGETCWD):
106182         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
106183         * m4/xreadlink.m4 (gl_XREADLINK):
106184         * m4/xstrtod.m4 (gl_XSTRTOD):
106185         * m4/yesno.m4 (gl_YESNO):
106186         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
106187         to get the necessary .h files and whatnot.
106189 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
106190             Bruno Haible  <bruno@clisp.org>
106192         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
106193         /bin/sh understanding of '!' conditional negation.
106195 2006-08-21  Jim Meyering  <jim@meyering.net>
106197         * modules/openat (Depends-on): Really alphabetize.
106199         * modules/acl (Depends-on): Add error and quote.
106201         * check-module (find_included_lib_files): Add at-func.c to the
106202         ok-to-include-more-than-once white list.
106204         * modules/openat (Depends-on): Add lstat.  Alphabetize.
106206 2006-08-21  Bruno Haible  <bruno@clisp.org>
106208         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
106209         Emit a pkgdata_DATA variable only if some snippets add contents to it.
106210         Reported by Martin Lambers <marlam@marlam.de>.
106212 2006-08-21  Bruno Haible  <bruno@clisp.org>
106214         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
106215         specify an installation location, don't emit a noinst_LIBRARIES or
106216         noinst_LTLIBRARIES assignment.
106218 2006-08-21  Bruno Haible  <bruno@clisp.org>
106220         BeOS portability.
106221         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
106222         BeOS has mbrtowc() but no <wctype.h>.
106224 2006-08-21  Bruno Haible  <bruno@clisp.org>
106226         BeOS portability.
106227         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
106228         exist.
106230 2006-08-21  Bruno Haible  <bruno@clisp.org>
106232         BeOS portability.
106233         * lib/mbchar.h: Include <wctype.h> only if it exists.
106235 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
106237         Remove files that are no longer needed by their respective modules.
106238         * m4/obstack.m4: Remove.
106239         * m4/strerror_r.m4: Remove.
106240         * m4/uint32_t.m4: Remove.
106241         * m4/uintptr_t.m4: Remove.
106242         * m4/ullong_max.m4: Remove.
106243         * m4/xstrtoimax.m4: Remove.
106244         * m4/xstrtoumax.m4: Remove.
106246         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
106247         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
106248         dependencies now capture this.
106250         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
106251         Do not use AC_LIBSOURCES, since gnulib modules now do this.
106252         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
106253         * m4/human.m4 (gl_HUMAN): Likewise.
106254         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
106255         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
106257         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
106259         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
106260         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
106261         stdint.
106262         * m4/human.m4 (gl_HUMAN): Likewise.
106263         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
106264         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
106265         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
106266         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
106267         * m4/xstrtol (gl_XSTRTOL): Likewise.
106269         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
106270         AC_TYPE_LONG_LONG_INT.
106271         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
106272         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
106273         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
106274         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
106276         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
106277         on stdbool.
106279         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
106280         (gl_PREREQ_XSTRTOUL): Remove.
106282         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
106284         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
106285         mode.
106287 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
106289         Add and change modules to make it easier for coreutils to use
106290         gnulib-tool.
106291         * modules/backupfile (Files): Remove m4/d-ino.m4.
106292         (Depends-on): Add d-ino.
106293         * modules/cycle-check (Depends-on): Add stdint.
106294         (lib_SOURCES): Add cycle-check.h.
106295         * modules/d-ino: New module.
106296         * modules/d-type: New module.
106297         * modules/error (Files): Remove m4/strerror_r.m4.
106298         * modules/filemode (Files): Add m4/st_dm_mode.m4.
106299         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
106300         m4/inttypes_h.m4, m4/uintmax_t.m4.
106301         (Depends-on): Add stdint.
106302         (lib_SOURCES): Add fsusage.h.
106303         * modules/getcwd (Files): Remove d-ino.m4.
106304         (Depends-on): Add d-ino.
106305         * modules/getndelim2 (Depends-on): Add stdint.
106306         * modules/glob (Files): Remove m4/d-type.m4.
106307         (Depends-on): Add d-type.
106308         * modules/host-os: New module.
106309         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
106310         m4/inttypes_h.m4, m4/uintmax_t.m4.
106311         * Depends-on: Add stdint.
106312         (lib_SOURCES): Add human.h.
106313         * modules/inttostr (Files): Remove m4/intmax_t.m4,
106314         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
106315         m4/uintmax_t.m4, m4/ulonglong.m4.
106316         (Depends-on): Add stdint.
106317         (EXTRA_DIST): Add inttostr.h.
106318         * modules/lchmod: New module.
106319         * modules/link-follow: New module.
106320         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
106321         (Depends-on): Add lchmod.
106322         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
106323         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
106324         (Depends-on): Add stdint.
106325         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
106326         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
106327         (Depends-on): Add stdint.
106328         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
106329         * modules/perl: New module.
106330         * modules/regex (Depends-on): Add stdint.
106331         * modules/rmdir-errno: New module.
106332         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
106333         m4/intmax_t.m4.
106334         (Depends-on): Add stdint.
106335         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
106336         m4/uintmax_t.m4.
106337         (Depends-on): Add stdint.
106338         * modules/unlink-busy: New module.
106339         * modules/utimecmp (Depends-on): Add stdint.
106340         * modules/uptime: New module.
106341         * modules/winsz-ioctl: New module.
106342         * modules/winsz-termios: New module.
106343         * modules/xnanosleep (Depends-on): Add nanosleep.
106344         * modules/ullong_max: Remove.
106345         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
106346         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
106347         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
106348         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
106349         (Depends-on): Add inttypes.
106350         (lib_SOURCES): Add xstrtol.h.
106351         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
106352         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
106353         * MODULES.html.sh: Move 'assert' into the assert section.
106354         Move 'dummy' into the linking section.
106355         Remove ullong_max.
106356         Add section for compatibility checks for POSIX:2001 functions,
106357         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
106358         winsz-ioctl, and winsz-termios into it.
106359         Add lchmod.
106360         Add top-level Misc section and put host-os, perl, and uptime
106361         into it.
106363 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
106365         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
106366         now assume the stdint module.  Do not include inttypes.h.
106367         * lib/fsusage.h: Likewise.
106368         * lib/getndelim2.c: Likewise.
106369         * lib/human.h: Likewise.
106370         * lib/inttostr.h: Likewise.
106371         * lib/obstack.c: Likewise.
106372         * lib/regex_internal.h: Likewise.
106373         * lib/tempname.c: Likewise.
106374         * lib/utimecmp.c: Likewise.
106375         * lib/xstrtol.h: Likewise.
106377         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
106379         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
106380         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
106381         * lib/xtime.h: Likewise.
106383 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
106385         * modules/openat (Files): Add lib/fchmodat.c.
106386         Fixes problem reported by Jay Youngman.
106388 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
106390         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
106391         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
106393 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
106394             Bruno Haible  <bruno@clisp.org>
106396         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
106397         and is a script that invokes bison. Tighten the code. Add comments.
106399 2006-08-18  Jim Meyering  <jim@meyering.net>
106401         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
106402         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
106403         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
106404         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
106406 2006-08-18  Bruno Haible  <bruno@clisp.org>
106408         * modules/bison-i18n: New file.
106409         * MODULES.html.sh (Internationalization functions): Add it.
106411 2006-08-18  Bruno Haible  <bruno@clisp.org>
106413         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
106414         sys/statvfs.h. When getmntinfo was found, check its declaration and
106415         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
106417 2006-08-18  Bruno Haible  <bruno@clisp.org>
106419         * m4/bison-i18n.m4: New file, from bison.
106421 2006-08-18  Bruno Haible  <bruno@clisp.org>
106423         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
106424         (ME_DUMMY): Treat "kernfs" as a dummy.
106425         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
106427 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
106429         Update from coreutils.
106431         2006-08-15  Jim Meyering  <jim@meyering.net>
106433         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
106435         2006-01-17  Jim Meyering  <jim@meyering.net>
106437         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
106439         2006-01-11  Jim Meyering  <jim@meyering.net>
106441         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
106442         Check for the lchmod function.
106444 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
106446         Update from coreutils.
106448         * lib/__fpending.h: Add copyright notice.
106449         * lib/fprintftime.h: Likewise.
106450         * lib/savedir.c: Use (C) in copyright notice.
106451         * lib/savedir.h: Likewise.
106453         2006-08-15  Jim Meyering  <jim@meyering.net>
106455         * lib/at-func.c: New file, with the logic of all emulated at-functions.
106456         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
106457         in support of the EXPECTED_ERRNO macro.
106458         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
106459         definitions.  Instead, define the appropriate symbols and include
106460         "at-func.c".
106461         * lib/mkdirat.c (mkdirat): Likewise.
106462         * lib/fchmodat.c (fchmodat): Likewise.
106463         (ENOSYS): Remove definition.
106464         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
106465         it.  Don't include "unistd--.h" -- it wasn't ever used.
106467         2006-01-17  Jim Meyering  <jim@meyering.net>
106469         Rewrite fts.c not to change the current working directory,
106470         by using openat, fstatat, fdopendir, etc..
106472         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
106473         (HAVE_OPENAT_SUPPORT): Define.
106474         [_LIBC] (fchdir): Don't undef or define; no longer used.
106475         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
106476         Now, this `function' always succeeds, and consumes its file descriptor
106477         parameter -- so callers must not close such FDs.  Update callers.
106478         (diropen_fd, opendirat, cwd_advance_fd): New functions.
106479         (diropen): Add parameter, SP.  Adjust all callers.
106480         Implement using diropen_fd, rather than open.
106481         (fts_open): Initialize new member, fts_cwd_fd.
106482         Remove fts_rft-setting code.
106483         (fts_close): Close fts_cwd_fd, if necessary.
106484         (__opendir2): Define in terms of opendir or opendirat,
106485         depending on whether the FST_NOCHDIR flag is set.
106486         (fts_build): Since fts_safe_changedir consumes its FD, and since
106487         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
106488         and close the dup'd file descriptor upon failure.
106489         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
106490         (fts_safe_changedir): Tweak semantics to reflect that this function
106491         now calls cwd_advance_fd and hence consumes its FD argument.
106492         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
106493         [struct FTS] (fts_rft): Remove now-unused member.
106494         [struct FTS] (fts_cycle.state): Improve comment.
106496         * lib/openat.c (openat_needs_fchdir): New function.
106497         * lib/openat.h (openat_needs_fchdir): Declare it.
106499 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
106501         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
106502         Problem and fix reported by Pádraig Brady in
106503         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
106505 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
106507         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
106509 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
106511         * lib/memcoll.c (memcoll): Optimize for the common case where the
106512         arguments are bytewise equal.
106514 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
106516         * doc/regexprops-generic.texi: Add a copyright notice.
106518 2006-08-15  Bruno Haible  <bruno@clisp.org>
106520         * modules/tmpdir (License): Change to LGPL.
106522 2006-08-15  Bruno Haible  <bruno@clisp.org>
106524         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
106525         module.
106527 2006-08-14  Simon Josefsson  <jas@extundo.com>
106529         * config/srclist.txt: Add gnupload.
106531 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
106533         Change copyright notice from LGPL 2 to GPL 2, since that's the
106534         standard form used in the gnulib repository.
106535         * tests/test-lock.c: Likewise.
106536         * tests/test-stdint.c: Likewise.
106537         * tests/test-tls.c: Likewise.
106539         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
106540         prelude-manager.  User shorter URLs for GNU projects, without '?'.
106541         Add copyright notice.
106543         * check-module: Add copyright notice.  Output a copyright
106544         notice if "--version" is specified.
106545         * modules/COPYING: New file.
106546         * tests/test-getaddrinfo.c: Add copyright notice.
106547         * tests/test-verify.c: Likewise.
106549 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
106551         Change copyright notice from LGPL 2 to GPL 2, since that's the
106552         standard form used in the gnulib repository.
106553         * lib/lock.c: LGPL -> GPL.
106554         * lib/lock.h: Likewise.
106555         * lib/strnlen1.c: Likewise.
106556         * lib/strnlen1.h: Likewise.
106557         * lib/tls.c: Likewise.
106558         * lib/tls.h: Likewise.
106559         * lib/tmpdir.c: Likewise.
106561         * lib/TODO: Remove; this belongs only in coreutils.
106563 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
106565         Add copyright notices to long-enough files that lack them, since
106566         otherwise the files aren't clearly free.  Use the same notice that
106567         getdate.texi already uses.
106568         * doc/alloca-opt.texi: Add copyright notice.
106569         * doc/alloca.texi: Likewise.
106570         * doc/ctime.texi: Likewise.
106571         * doc/functions.texi: Likewise.
106572         * doc/gcd.texi: Likewise.
106573         * doc/gnulib-tool.texi: Likewise.
106574         * doc/inet_ntoa.texi: Likewise.
106575         * doc/visibility.texi: Likewise.
106577         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
106578         * doc/quote.texi: Add copyright notice.
106580         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
106581         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
106582         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
106583         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
106584         is now obsolete, and give a pointer to the Sun list.
106585         Add copyright notice.
106587 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
106589         * config/srclistvars.sh: Add copyright notice.
106591 2006-08-14  Eric Blake  <ebb9@byu.net>
106593         Import the following change from libc:
106595         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
106597         Upstream bug 2997.
106598         * lib/misc/error.c: Add space between program name and message if file
106599         name is missing.
106601 2006-08-12  Karl Berry  <karl@gnu.org>
106603         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
106604         remove, these originate in gnulib now.
106606 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106608         * doc/Makefile (standards.info standards.html standards.dvi):
106609         Also depend on make-stds.texi.
106611 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
106613         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
106614         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
106616         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
106617         in wchar_t.  Problem reported by Eric Blake.
106619         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
106620         LEN is smaller than SIZE.  Suggested by Bruno Haible.
106621         Also, help the compiler to keep LEN in a register.
106623 2006-08-11  Eric Blake  <ebb9@byu.net>
106625         * users.txt: Sort.  Add tar.
106627 2006-08-11  Bruno Haible  <bruno@clisp.org>
106629         * users.txt: New file.
106631 2006-08-11  Bruno Haible  <bruno@clisp.org>
106633         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
106634         before <wchar.h>. Needed for OSF/1 and BSD/OS.
106636 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
106638         * modules/snprintf (Depends-on): Remove minmax.
106639         (Maintainer): Add self and Bruno.
106641 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
106643         * lib/.cppi-disable: Add snprintf.h, socket_.h.
106644         * lib/snprintf.c: Include <errno.h> and <limits.h>.
106645         (EOVERFLOW): Define if the system does not.
106646         Do not include "minmax.h"; it wasn't used.
106647         (snprintf): Don't assume size_t promotes to an unsigned type.
106648         Fix bug when generated string was too long for the buffer: the
106649         buffer's contents are supposed to be the initial prefix of the
106650         output.  Don't assume vasnprintf returns EOVERFLOW if the size
106651         exceeds INT_MAX; do the check ourselves.
106653         Import the following changes from libc:
106655         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
106657         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
106658         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
106659         set wc to the byte which couldn't be converted.
106660         (re_string_reconstruct): Don't clear valid_raw_len before calling
106661         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
106662         tip_context using re_string_context_at.
106664         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
106666         * lib/posix/regex.h: g++ still cannot handled [restrict].
106668         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
106670         * lib/posix/regex.h: Remove special handling for VMS.
106672 2006-08-10  Jim Meyering  <jim@meyering.net>
106674         * modules/same-inode: New module.
106675         * modules/dev-ino: New module.
106676         * modules/cycle-check: Depend on these modules, rather than simply
106677         including their .h files.
106678         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
106679         required via m4/cycle-check.m4.
106680         * modules/same: Depend on new same-inode module, rather than
106681         including same-inode.h.
106682         * modules/chdir-safer: New file.
106684         * modules/chown (Depends-on): Add stat-macros.
106686 2006-08-10  Jim Meyering  <jim@meyering.net>
106688         * m4/cycle-check.m4: New file.
106689         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
106690         * m4/dev-ino.m4, m4/same-inode.m4: New files.
106692 2006-08-10  Eric Blake  <ebb9@byu.net>
106694         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
106695         in from original proposal.
106697 2006-08-10  Eric Blake  <ebb9@byu.net>
106698         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
106700         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
106701         namespace.
106703 2006-08-10  Bruno Haible  <bruno@clisp.org>
106705         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
106706         as well.
106708 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106710         Sync from coreutils.
106712         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
106714         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
106715         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
106717 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106719         * modules/restrict: Remove; no longer needed now that we assume
106720         Autoconf 2.59 or later.
106721         * MODULES.html.sh: Remove 'restrict'.
106722         * modules/argp (Depends-on): Remove 'restrict'.
106723         * modules/base64 (Depends-on): Likewise.
106724         * modules/gc (Depends-on): Likewise.
106725         * modules/getaddrinfo (Depends-on): Likewise.
106726         * modules/glob (Depends-on): Likewise.
106727         * modules/inet_ntop (Depends-on): Likewise.
106728         * modules/inet_pton (Depends-on): Likewise.
106729         * modules/memxor (Depends-on): Likewise.
106730         * modules/regex (Depends-on): Likewise.
106731         * modules/strtok_r (Depends-on): Likewise.
106732         * modules/time_r (Depends-on): Likewise.
106734 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106736         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
106737         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
106738         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
106739         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
106740         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
106741         * m4/memxor.m4 (gl_MEMXOR): Likewise.
106742         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
106743         gl_C_RESTRICT replaced by AC_C_RESTRICT.
106745         Merge from coreutils.
106746         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
106747         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
106748         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
106749         * m4/time_r.m4 (gl_TIME_R): Likewise.
106751 2006-08-09  Karl Berry  <karl@gnu.org>
106753         * config/srclist.txt: no more gettext-tools, per Bruno.
106755 2006-08-08  Eric Blake  <ebb9@byu.net>
106757         * modules/verror: New module.
106758         * MODULES.html.sh: Document it.
106760 2006-08-08  Eric Blake  <ebb9@byu.net>
106762         * lib/verror.h, lib/verror.c: New files.
106764 2006-08-08  Eric Blake  <ebb9@byu.net>
106766         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
106767         verror_at_line output complies with GNU Coding Standards even when
106768         file is NULL.
106770 2006-08-07  Bruno Haible  <bruno@clisp.org>
106772         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
106773         versions of AIX.
106774         Reported by Ralf Wildenhues.
106776 2006-08-07  Bruno Haible  <bruno@clisp.org>
106778         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
106779         in an AC_DEFUN. Needed so that the autoconf snippets can use
106780         AC_REQUIRE.
106782 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106784         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
106785         Initialize pkgdata_DATA.
106786         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
106787         overriding it.
106789 2006-08-06  Eric Blake  <ebb9@byu.net>
106791         * lib/error.h: Fold in some upstream changes from glibc.
106792         * lib/error.c: Likewise.
106794 2006-08-04  Bruno Haible  <bruno@clisp.org>
106796         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
106797         Make the mostlyclean-local rule depend on mostlyclean-generic.
106798         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
106800 2006-07-31  Bruno Haible  <bruno@clisp.org>
106802         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
106803         <stdlib.h>, <string.h>.
106805 2006-07-30  Bruno Haible  <bruno@clisp.org>
106807         * modules/readlink (License): Change to LGPL.
106809 2006-07-30  Bruno Haible  <bruno@clisp.org>
106811         * modules/javaversion (Makefile.am): Distribute javaversion.java and
106812         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
106813         set PKGDATADIR to point to it.
106815 2006-07-30  Bruno Haible  <bruno@clisp.org>
106817         * modules/csharpexec (configure.ac): Comment out macro invocation.
106818         * modules/javaexec (configure.ac): Likewise.
106819         * modules/javacomp-script (configure.ac): Likewise.
106821         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
106823 2006-07-30  Bruno Haible  <bruno@clisp.org>
106825         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
106826         linked-list.
106828 2006-07-30  Bruno Haible  <bruno@clisp.org>
106830         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
106832 2006-07-30  Bruno Haible  <bruno@clisp.org>
106834         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
106835         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
106836         get removed.
106838 2006-07-29  Bruno Haible  <bruno@clisp.org>
106840         Make it possible for gnulib-tool to work with locally modified or
106841         augmented gnulib repositories.
106842         * gnulib-tool (func_usage): Document --local-dir option.
106843         (local_gnulib_dir): New variable.
106844         Handle --local-dir option.
106845         (func_lookup_file): New function.
106846         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
106847         (func_get_description, func_get_filelist, func_get_description,
106848         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
106849         func_get_automake_snippet, func_get_include_directive,
106850         func_get_license, func_get_maintainer): Use func_lookup_file.
106851         (func_import, func_create_testdir): Use func_lookup_file.
106853 2006-07-29  Bruno Haible  <bruno@clisp.org>
106855         * modules/setenv (Depends-on): Add unistd.
106857 2006-07-29  Bruno Haible  <bruno@clisp.org>
106859         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
106861 2006-07-29  Bruno Haible  <bruno@clisp.org>
106863         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
106865 2006-07-29  Bruno Haible  <bruno@clisp.org>
106867         * gnulib-tool (import, update): If there is no Makefile.am, look at
106868         aclocal.m4, instead of bailing out.
106870 2006-07-29  Bruno Haible  <bruno@clisp.org>
106872         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
106873         Categorize the options by when they are useful.
106875 2006-07-29  Bruno Haible  <bruno@clisp.org>
106877         * gnulib-tool (func_usage): Document option --no-libtool.
106878         Handle option --no-libtool.
106879         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
106880         for changed semantics of $libtool variable.
106881         (func_import): Likewise. If libtool is not used, show this through
106882         an option --no-libtool.
106883         (func_create_testdir): Update.
106885 2006-07-29  Bruno Haible  <bruno@clisp.org>
106887         * gnulib-tool (func_import): Extend error message about missing
106888         --doc-base.
106890 2006-07-29  Bruno Haible  <bruno@clisp.org>
106892         * gnulib-tool (func_import): Don't create the $docbase directory if
106893         there is no file to store there.
106895 2006-07-29  Bruno Haible  <bruno@clisp.org>
106897         * gnulib-tool (autoconf_minversion): If a --dir option is given and
106898         relevant, look for configure.ac there, not in the current directory.
106899         Also use a simple search for AC_PREREQ, not "autoconf --trace".
106901 2006-07-29  Bruno Haible  <bruno@clisp.org>
106903         * gnulib-tool (SORT): New variable.
106904         (func_usage): Undocument --assume-autoconf option.
106905         Remove --assume-autoconf option handling.
106906         (autoconf_minversion): Determine from the contents of configure.ac.
106907         (func_import): Remove autoconf_minversion handling.
106908         Suggested by Eric Blake.
106910 2006-07-29  Bruno Haible  <bruno@clisp.org>
106912         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
106914 2006-07-29  Bruno Haible  <bruno@clisp.org>
106916         * config/srclist.txt (*setenv.[ch]): Remove rules.
106918 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106920         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
106922 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106924         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
106925         arpa/inet.h.
106927 2006-07-28  Simon Josefsson  <jas@extundo.com>
106929         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
106930         * modules/inet_pton (Depends-on): Likewise.
106932 2006-07-28  Simon Josefsson  <jas@extundo.com>
106934         * m4/netinet_in_h.m4: New file.
106936 2006-07-28  Simon Josefsson  <jas@extundo.com>
106938         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
106939         #include's.
106941 2006-07-28  Simon Josefsson  <jas@extundo.com>
106943         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
106944         #include's.
106946 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
106948         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
106949         setgid on directories only if they set these bits.
106950         * lib/modechange.h: Remove obsolete comment about masks.
106952 2006-07-28  Eric Blake  <ebb9@byu.net>
106954         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
106955         macro expansion.
106957 2006-07-28  Bruno Haible  <bruno@clisp.org>
106959         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
106961 2006-07-28  Bruno Haible  <bruno@clisp.org>
106963         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
106965 2006-07-28  Bruno Haible  <bruno@clisp.org>
106967         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
106968         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
106969         Define fallbacks.
106970         Avoids link error on FreeBSD 4.x.
106971         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
106973         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
106974         encoding.
106975         * lib/mbswidth.c (iswcntrl): Likewise.
106977 2006-07-27  Bruno Haible  <bruno@clisp.org>
106979         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
106980         test.
106982 2006-07-27  Bruno Haible  <bruno@clisp.org>
106984         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
106985         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
106986         defined.
106988 2006-07-26  Eric Blake  <ebb9@byu.net>
106990         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
106992 2006-07-26  Eric Blake  <ebb9@byu.net>
106994         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
106995         like mingw that lack mkstemp.
106996         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
106997         avoid compilation warning on mingw.
106999 2006-07-26  Bruno Haible  <bruno@clisp.org>
107001         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
107002         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
107003         INT_FAST*_MIN, INTPTR_MIN.
107005 2006-07-25  Bruno Haible  <bruno@clisp.org>
107007         * modules/version-etc (Depends-on): Add stdarg.
107009 2006-07-25  Bruno Haible  <bruno@clisp.org>
107011         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
107012         complex commands.
107014 2006-07-25  Bruno Haible  <bruno@clisp.org>
107016         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
107017         defined in <stdarg.h> or config.h.
107019 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
107021         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
107022         (gl_STDIO_SAFER): Remove.
107024 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
107026         * MODULES.html.sh (File stream based Input/Output):
107027         Add fopen-safer, tmpfile-safer; remove stdio-safer.
107028         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
107029         * modules/fopen-safer, modules/tmpfile-safer: New files.
107030         * modules/stdio-safer: Remove.
107032 2006-07-24  Bruno Haible  <bruno@clisp.org>
107034         * modules/tmpdir: New file.
107035         * MODULES.html.sh (File system functions): Add it.
107037 2006-07-24  Bruno Haible  <bruno@clisp.org>
107039         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
107040         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
107042 2006-07-24  Bruno Haible  <bruno@clisp.org>
107044         * modules/clean-temp: New file.
107046 2006-07-24  Bruno Haible  <bruno@clisp.org>
107048         * m4/tmpdir.m4: New file, from GNU gettext.
107050 2006-07-24  Bruno Haible  <bruno@clisp.org>
107052         * lib/tmpdir.h: New file, from GNU gettext.
107053         * lib/tmpdir.c: New file, from GNU gettext.
107055 2006-07-24  Bruno Haible  <bruno@clisp.org>
107057         * lib/clean-temp.h: New file, from GNU gettext.
107058         * lib/clean-temp.c: New file, from GNU gettext.
107060 2006-07-23  Eric Blake  <ebb9@byu.net>
107062         * modules/stdio-safer (Files): Add tmpfile-safer.c.
107063         (Depends-on): Add binary-io.
107065 2006-07-23  Eric Blake  <ebb9@byu.net>
107067         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
107069 2006-07-23  Eric Blake  <ebb9@byu.net>
107071         * lib/tmpfile-safer.c: New file.
107072         * lib/stdio-safer.h (fopen_safer): Add prototype.
107073         * lib/stdio--.h (tmpfile): Make safer.
107075 2006-07-23  Bruno Haible  <bruno@clisp.org>
107077         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
107078         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
107079         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
107080         gl_linked_remove_at): Use it.
107082 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
107083         and Simon Josefsson <jas@extundo.com>
107085         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
107087         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
107089 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
107091         * modules/close-stream: New file.
107092         * modules/closeout (Description): Make it clear that it exits
107093         with a diagnostic on error.
107094         (Depends-on): Add close-stream.  Remove fpending, stdbool.
107095         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
107097 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
107099         * m4/close-stream.m4: New file.
107101 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
107103         * lib/close-stream.c, lib/close-stream.h: New files.
107105 2006-07-22  Bruno Haible  <bruno@clisp.org>
107107         Merge from GNU gettext 0.15.
107109         2006-05-01  Bruno Haible  <bruno@clisp.org>
107111                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
107113         2006-07-22  Bruno Haible  <bruno@clisp.org>
107115                 * modules/javaversion: New file.
107116                 * MODULES.html.sh (Java): Add javaversion.
107118         2006-03-12  Bruno Haible  <bruno@clisp.org>
107120                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
107122         2005-12-04  Bruno Haible  <bruno@clisp.org>
107124                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
107125                 (untested).
107127         2006-06-21  Bruno Haible  <bruno@clisp.org>
107129                 Avoid warnings from recent versions of mcs.
107130                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
107131                 -o, -L, -r any more. Use options documented since mcs-1.0
107132                 instead. Similarly for -g.
107134         2005-12-04  Bruno Haible  <bruno@clisp.org>
107136                 * build-aux/csharpcomp.sh.in: Suffix for resources is
107137                 .resources, not .resource.
107139         2005-07-09  Bruno Haible  <bruno@clisp.org>
107141                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
107142                 add a .dll suffix.
107143                 Reported by Mark Junker <mjscod@gmx.de>.
107145         2006-07-22  Bruno Haible  <bruno@clisp.org>
107147                 * modules/gettext: Upgrade to gettext-0.15.
107148                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
107149                 m4/visibility.m4.
107150                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
107152 2006-07-22  Bruno Haible  <bruno@clisp.org>
107154         Merge from GNU gettext 0.15.
107156         2006-03-25  Bruno Haible  <bruno@clisp.org>
107158                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
107160         2006-07-21  Bruno Haible  <bruno@clisp.org>
107162                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
107163                 "1.1".
107165         2006-05-09  Bruno Haible  <bruno@clisp.org>
107167                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
107168                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
107169                 for the conftestver execution.
107171         2006-05-01  Bruno Haible  <bruno@clisp.org>
107173                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
107174                 optional target-version argument. Verify that the compiler
107175                 groks source of the specified source-version, or add -source
107176                 option as necessary. Verify that the compiler produces
107177                 bytecode in the specified target-version, or add -target and
107178                 -source options as necessary. Make the result of the test
107179                 available as variable CONF_JAVAC. Also log error output in
107180                 config.log.
107182         2006-03-11  Bruno Haible  <bruno@clisp.org>
107184                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
107186         2006-05-09  Bruno Haible  <bruno@clisp.org>
107188                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
107189                 CLASSPATH_SEPARATOR to a semicolon.
107191         2006-03-12  Bruno Haible  <bruno@clisp.org>
107193                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
107194                 available as variable CONF_JAVA, for subsequent autoconf
107195                 tests. Also log error output in config.log.
107197         2006-07-19  Bruno Haible  <bruno@clisp.org>
107199                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
107200                 that getline works on glibc2 systems. Needed to avoid trouble
107201                 in relocatable.c.
107202                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
107204         2005-12-04  Bruno Haible  <bruno@clisp.org>
107206                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
107207                 launcher (untested).
107209         2005-12-04  Bruno Haible  <bruno@clisp.org>
107211                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
107213         2006-07-22  Bruno Haible  <bruno@clisp.org>
107215                 * gettext.m4: Update from GNU gettext-0.15.
107216                 * nls.m4: Likewise.
107217                 * po.m4: Likewise.
107218                 * inttypes-pri.m4: Likewise.
107219                 * inttypes-h.m4: Renamed from inttypes.m4.
107220                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
107222 2006-07-22  Bruno Haible  <bruno@clisp.org>
107224         Merge from GNU gettext 0.15.
107226         2005-07-05  Bruno Haible  <bruno@clisp.org>
107228                 * printf-args.c (printf_fetchargs): Work around broken
107229                 definition of wint_t on mingw.
107231         2005-02-12  Bruno Haible  <bruno@clisp.org>
107233                 * xallocsa.h: Add extern "C" for C++.
107235         2006-05-17  Bruno Haible  <bruno@clisp.org>
107237                 Cygwin portability.
107238                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
107240         2006-04-30  Bruno Haible  <bruno@clisp.org>
107242                 * progreloc.c: Include <mach-o/dyld.h> if available.
107243                 (find_executable): Use _NSGetExecutablePath when possible.
107245         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
107247                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
107248                 function.
107250         2005-12-29  Bruno Haible  <bruno@clisp.org>
107252                 * progreloc.c (set_program_name_and_installdir): Fix
107253                 compilation error.
107255         2005-12-04  Bruno Haible  <bruno@clisp.org>
107257                 Cygwin portability.
107258                 * progreloc.c: Include <windows.h> also on Cygwin.
107259                 (find_executable): Add support for Cygwin.
107260                 (set_program_name_and_installdir): Handle also platforms with
107261                 nonempty EXEEXT.
107263         2006-07-11  Bruno Haible  <bruno@clisp.org>
107265                 * javacomp.c: Fix a comment.
107266                 Reported by Jim Meyering.
107268         2006-04-30  Bruno Haible  <bruno@clisp.org>
107270                 * javacomp.h (compile_java_class): Add source_version,
107271                 target_version arguments.
107272                 * javacomp.c: Rewritten to choose only a compiler that
107273                 respects the specified source_version and target_version.
107275         2006-06-27  Bruno Haible  <bruno@clisp.org>
107277                 Assume correct S_ISDIR macro.
107278                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
107280         2006-07-22  Bruno Haible  <bruno@clisp.org>
107282                 * javaversion.h: New file, from GNU gettext.
107283                 * javaversion.c: New file, from GNU gettext.
107284                 * javaversion.java: New file, from GNU gettext.
107285                 * javaversion.class: New file, from GNU gettext.
107287         2006-05-17  Bruno Haible  <bruno@clisp.org>
107289                 Cygwin portability.
107290                 * javaexec.c (execute_java_class): Test for jview program
107291                 also on Cygwin.
107293         2006-04-09  Bruno Haible  <bruno@clisp.org>
107295                 * fatal-signal.c: Don't include string.h.
107296                 (at_fatal_signal): Use a copying loop instead of memcpy.
107298         2005-12-04  Bruno Haible  <bruno@clisp.org>
107300                 * csharpexec.c: Add support for 'clix' launcher (untested).
107301                 (execute_csharp_using_sscli): New function.
107302                 (execute_csharp_program): Call it.
107304         2006-06-21  Bruno Haible  <bruno@clisp.org>
107306                 Avoid warnings from recent versions of mcs.
107307                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
107308                 -o, -L, -r any more. Use options documented since mcs-1.0
107309                 instead. Similarly for -g.
107311         2005-07-09  Bruno Haible  <bruno@clisp.org>
107313                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
107314                 add a .dll suffix.
107315                 Reported by Mark Junker <mjscod@gmx.de>.
107317         2006-06-17  Bruno Haible  <bruno@clisp.org>
107319                 * config.charset: Update for NetBSD 3.0.
107321         2006-05-17  Bruno Haible  <bruno@clisp.org>
107323                 Cygwin portability.
107324                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
107326         2006-05-16  Bruno Haible  <bruno@clisp.org>
107328                 * localcharset.c [CYGWIN]: Include <windows.h>.
107329                 (get_charset_aliases): For Cygwin, return the same CPxxx
107330                 aliases list as under WIN32.
107331                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
107332                 the environment variables. Fall back to GetACP().
107334         2006-04-05  Bruno Haible  <bruno@clisp.org>
107336                 * config.charset: Update Juan Manuel Guerrero's address.
107338         2005-02-12  Bruno Haible  <bruno@clisp.org>
107340                 * allocsa.h: Add extern "C" for C++.
107342         2005-02-10  Bruno Haible  <bruno@clisp.org>
107344                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
107345                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
107347         2006-07-22  Bruno Haible  <bruno@clisp.org>
107349                 * gettext.h: Update to GNU gettext-0.15.
107351 2006-07-22  Bruno Haible  <bruno@clisp.org>
107353         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
107354         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
107355         lib-prefix.m4, longdouble.m4, ssize_t.m4.
107357 2006-07-21  Eric Blake  <ebb9@byu.net>
107359         * modules/stdlib-safer: New file.
107360         * MODULES.html.sh (File stream based Input/Output): Add
107361         stdlib-safer.
107363 2006-07-21  Eric Blake  <ebb9@byu.net>
107365         * lib/stdlib-safer.h: New file from coreutils, required by
107366         stdlib--.h.
107368 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
107370         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
107372 2006-07-20  Bruno Haible  <bruno@clisp.org>
107374         * gnulib-tool: Recognize new option --assume-autoconf.
107375         (autoconf_minversion): New variable.
107376         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
107378 2006-07-20  Bruno Haible  <bruno@clisp.org>
107380         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
107382 2006-07-19  Derek R. Price  <derek@ximbiot.com>
107384         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
107385         Reindent and repaginate.
107387 2006-07-19  Derek Price  <derek@ximbiot.com>
107389         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
107390         Correct grammar.
107392 2006-07-17  Bruno Haible  <bruno@clisp.org>
107394         * modules/list: New file.
107395         * modules/array-list: New file.
107396         * modules/carray-list, modules/carray-list-tests: New files.
107397         * modules/linked-list, modules/linked-list-tests: New files.
107398         * modules/avltree-list, modules/avltree-list-tests: New files.
107399         * modules/rbtree-list, modules/rbtree-list-tests: New files.
107400         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
107401         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
107402         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
107403         * modules/oset: New file.
107404         * modules/array-oset: New file.
107405         * modules/avltree-oset, modules/avltree-oset-tests: New files.
107406         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
107407         * tests/test-carray_list.c: New file.
107408         * tests/test-linked_list.c: New file.
107409         * tests/test-avltree_list.c: New file.
107410         * tests/test-rbtree_list.c: New file.
107411         * tests/test-linkedhash_list.c: New file.
107412         * tests/test-avltreehash_list.c: New file.
107413         * tests/test-rbtreehash_list.c: New file.
107414         * tests/test-avltree_oset.c: New file.
107415         * tests/test-rbtree_oset.c: New file.
107416         * MODULES.html.sh (Container data structures): New section.
107418 2006-07-17  Bruno Haible  <bruno@clisp.org>
107420         * m4/gl_list.m4: New file.
107422 2006-07-17  Bruno Haible  <bruno@clisp.org>
107424         * lib/gl_list.h: New file.
107425         * lib/gl_list.c: New file.
107426         * lib/gl_array_list.h: New file.
107427         * lib/gl_array_list.c: New file.
107428         * lib/gl_carray_list.h: New file.
107429         * lib/gl_carray_list.c: New file.
107430         * lib/gl_linked_list.h: New file.
107431         * lib/gl_linked_list.c: New file.
107432         * lib/gl_anylinked_list1.h: New file.
107433         * lib/gl_anylinked_list2.h: New file.
107434         * lib/gl_avltree_list.h: New file.
107435         * lib/gl_avltree_list.c: New file.
107436         * lib/gl_anyavltree_list1.h: New file.
107437         * lib/gl_anyavltree_list2.h: New file.
107438         * lib/gl_rbtree_list.h: New file.
107439         * lib/gl_rbtree_list.c: New file.
107440         * lib/gl_anyrbtree_list1.h: New file.
107441         * lib/gl_anyrbtree_list2.h: New file.
107442         * lib/gl_anytree_list1.h: New file.
107443         * lib/gl_anytree_list2.h: New file.
107444         * lib/gl_linkedhash_list.h: New file.
107445         * lib/gl_linkedhash_list.c: New file.
107446         * lib/gl_anyhash_list1.h: New file.
107447         * lib/gl_anyhash_list2.h: New file.
107448         * lib/gl_avltreehash_list.h: New file.
107449         * lib/gl_avltreehash_list.c: New file.
107450         * lib/gl_rbtreehash_list.h: New file.
107451         * lib/gl_rbtreehash_list.c: New file.
107452         * lib/gl_anytreehash_list1.h: New file.
107453         * lib/gl_anytreehash_list2.h: New file.
107455         * lib/gl_oset.h: New file.
107456         * lib/gl_oset.c: New file.
107457         * lib/gl_array_oset.h: New file.
107458         * lib/gl_array_oset.c: New file.
107459         * lib/gl_avltree_oset.h: New file.
107460         * lib/gl_avltree_oset.c: New file.
107461         * lib/gl_rbtree_oset.h: New file.
107462         * lib/gl_rbtree_oset.c: New file.
107463         * lib/gl_anytree_oset.h: New file.
107465 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
107467         * m4/mkancesdirs.m4: New file.
107468         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
107469         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
107470         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
107471         it.
107473 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
107475         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
107476         * lib/mkancesdirs.h: New files.
107477         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
107478         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
107479         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
107480         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
107481         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
107482         callers changed.  Revamp internals significantly, by not
107483         attempting to create directories that are temporarily more
107484         permissive than the final results.  Do not attempt to use
107485         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
107486         This removes some race conditions, fixes some bugs, and simplifies
107487         things.  Use new dirchownmod function to do owner and mode changes.
107488         * lib/mkdir-p.h: Likewise.
107489         * lib/modechange.c (octal_to_mode): New function.
107490         (struct mode_change): New member mentioned.
107491         (make_node_op_equals): New arg mentioned.  All callers changed.
107492         (mode_compile): Keep track of which mode bits the user has explicitly
107493         mentioned.
107494         (mode_adjust): New arg DIR, so that we implement the X op correctly.
107495         New arg PMODE_BITS, to keep track of which mode bits the user
107496         mentioned; it treats S_ISUID and S_ISGID speciall.
107497         All callers changed.
107498         * lib/modechange.h: Likewise.
107500 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
107502         * MODULES.html.sh: Add mkancestors.
107503         * modules/mkancesdirs: New module.
107504         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
107505         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
107506         The chdir-safer and afs files are now orphans; I'll remove them
107507         unless someone speaks up.
107508         Add lib/dirchownmod.c, lib/dirchownmod.h.
107509         (Depends-on): Remove alloca, chown, save-cwd, dirname.
107510         Add lchown, mkancesdirs.
107511         (Maintainer): Add self.
107513 2006-07-15  Karl Berry  <karl@gnu.org>
107515         * gnulib-tool: help message wording/arrangement.
107517 2006-07-14  Simon Josefsson  <jas@extundo.com>
107519         * doc/gnulib.texi (Libtool and Windows): New section.
107521 2006-07-12  Simon Josefsson  <jas@extundo.com>
107523         * modules/gendocs (License): Fix license, approved by Karl.
107525 2006-07-12  Eric Blake  <ebb9@byu.net>
107527         * MODULES.html.sh: Add gendocs.
107529 2006-07-11  Eric Blake  <ebb9@byu.net>
107531         * modules/fdl: New module, to install doc/fdl.texi.
107532         * MODULES.html.sh: Add new section for documentation modules.
107533         * gnulib-tool: Avoid space-tab.
107534         (--doc-base): New option, to manage files from doc.
107536 2006-07-11  Eric Blake  <ebb9@byu.net>
107538         * m4/absolute-header.m4: Fix comments to match recent change.
107540 2006-07-11  Eric Blake  <ebb9@byu.net>
107542         * gnulib-tool: List --doc-base before --tests-base.
107544 2006-07-11  Derek R. Price  <derek@ximbiot.com>
107546         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
107548 2006-07-11  Bruno Haible  <bruno@clisp.org>
107550         * README: Mention where to put documentation.
107552 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107554         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
107556 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
107558         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
107559         to stdint.m4.
107561 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
107563         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
107564         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
107565         "no/such/file/stdint.h" when there is no such file, so that
107566         the resulting C code can be parsed by dodgy compilers.
107567         Problems reported by Bob Proulx.
107569 2006-07-10  Derek R. Price  <derek@ximbiot.com>
107571         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
107572         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
107573         macros into the GNU _D_EXACT_NAMLEN.
107574         * lib/savedir.c:  Likewise.
107575         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
107577 2006-07-10  Derek R. Price  <derek@ximbiot.com>
107578         and Paul Eggert  <eggert@cs.ucla.edu>
107580         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
107581         * m4/savedir.m4:
107582         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
107583         macros into the GNU _D_EXACT_NAMLEN.
107585 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
107587         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
107588         around the absolute name, to work around a problem with the HP-UX
107589         11.23 native C compiler, reported by Bob Proulx.
107591 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
107593         * doc/maintain.texi, make-stds.texi: Sync from
107594         <http://savannah.gnu.org/projects/gnustandards>.
107596 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
107598         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
107600 2006-07-09  Jim Meyering  <jim@meyering.net>
107602         * m4/glob.m4: Remove a doubled word in a comment.
107604 2006-07-09  Jim Meyering  <jim@meyering.net>
107606         * lib/argp-pv.c: Remove a doubled word in a comment.
107607         * lib/check-version.c (check_version): Likewise.
107608         * lib/javacomp.c (compile_java_class): Likewise.
107610 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
107612         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
107613         for the benefit of people using Autoconf 2.60.  If you want to
107614         support older Autoconf versions you can copy m4/onceonly_2_57.m4
107615         (or m4/onceonly.m4, if pre-2.57) manually.
107617 2006-07-08  Jim Meyering  <jim@meyering.net>
107619         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
107620         comment.
107621         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
107622         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
107623         comment.
107625 2006-07-08  Jim Meyering  <jim@meyering.net>
107627         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
107629 2006-07-07  Simon Josefsson  <jas@extundo.com>
107631         * tests/test-crc.c: Change expected crc value, the test vector
107632         were probably computed using the old broken crc.c?
107634 2006-07-06  Simon Josefsson  <jas@extundo.com>
107636         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
107637         now the canonical place for the M4 file).
107639         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
107640         from the sys_socket dependency now.
107642         * modules/inet_pton (Files): Ditto.
107644         * modules/inet_ntop (Files): Ditto.
107646 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
107648         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
107649         not gl_PREREQ_GETUSERSHELL.
107651 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107653         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
107654         with only one argument, for Autoconf 2.60.
107655         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
107656         expand to nothing, so add a shell command to avoid syntax error.
107657         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
107659 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107661         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
107663 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
107665         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
107666         no longer needed.  Check for isblank decl.
107667         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
107668         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
107669         of existence.
107671 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
107673         * lib/getloadavg.c: Use __VMS, not VMS.
107674         * lib/getopt.c: Likewise.
107675         * lib/getpagesize.h: Likewise.
107676         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
107677         and probably does not work.
107679 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
107681         * lib/.cppi-disable: Add wcwidth.
107682         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
107683         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
107684         (ISGRAPH): Remove.  All uses changed to isgraph.
107685         (FOLD) [!defined _LIBC]: Remove special case.
107686         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
107687         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
107688         HAVE_ISBLANK.
107689         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
107690         case.
107692 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
107694         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
107695         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
107696         brackets.  Other minor changes to suppress some compiler
107697         warnings.
107699 2006-07-06  Derek R. Price  <derek@ximbiot.com>
107700         and Paul Eggert  <eggert@cs.ucla.edu>
107702         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
107703         of invoking obsolescent AC_HEADER_DIRENT macro.
107704         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
107705         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
107706         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
107707         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
107708         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
107709         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
107710         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
107711         * m4/readdir.m4: Remove; no longer needed.
107713 2006-07-06  Derek R. Price  <derek@ximbiot.com>
107714         and Paul Eggert  <eggert@cs.ucla.edu>
107716         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
107717         Don't worry about this obsolete case any more.
107718         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
107719         directories.
107720         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
107721         worry about this obsolete case any more.
107722         * lib/fts.c: Likewise.
107723         * lib/getcwd.c: Likewise.
107724         * lib/glob.h: Likewise.
107725         * lib/savedir.c: Likewise.
107727 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
107729         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
107730         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
107731         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
107732         needed.
107733         All uses removed.
107734         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
107735         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
107736         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
107737         needed.
107738         * m4/getdate.m4 (gl_GETDATE): Likewise.
107739         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
107740         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
107741         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
107742         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
107743         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
107744         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
107745         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
107746         needed.
107748 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
107750         * lib/memcasecmp.c: Include <limits.h>.
107751         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
107752         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
107753         Don't assume isdigit succeeds only on '0' through '9'.
107755 2006-07-05  Eric Blake  <ebb9@byu.net>
107757         * modules/getaddrinfo (Depends-on): Add snprintf.
107759 2006-07-05  Eric Blake  <ebb9@byu.net>
107761         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
107762         to avoid 'header present but could not be compiled' on cygwin.
107764 2006-07-05  Eric Blake  <ebb9@byu.net>
107766         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
107767         missing from netdb.h.
107768         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
107770 2006-07-05  Derek R. Price  <derek@ximbiot.com>
107772         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
107773         no longer needed.
107774         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
107775         * m4/getdate.m4 (gl_GETDATE): Likewise.
107776         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
107777         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
107778         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
107779         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
107780         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
107782 2006-07-05  Derek R. Price  <derek@ximbiot.com>
107784         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
107785         All uses of is_space replaced by isspace.
107786         * lib/exit.h: Don't talk about STDC_HEADERS.
107787         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
107788         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
107789         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
107790         replaced by isprint etc.
107791         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
107792         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
107793         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
107794         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
107795         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
107796         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
107798 2006-07-05  Bruno Haible  <bruno@clisp.org>
107800         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
107801         the function exists, before testing against AIX.
107802         Reported by Martin Lambers <marlam@marlam.de>.
107804 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
107806         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
107807         From Mark D. Baushke.
107809 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
107811         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
107812         to the absolute name, not just one, to bypass Sun C 5.8's
107813         "warning: #include of /usr/include/... may be non-portable".
107815 2006-07-04  Eric Blake  <ebb9@byu.net>
107817         * modules/dirname-tests: New test module.
107818         * tests/test-dirname.c: New file, replacing dirname.c
107819         TEST_DIRNAME section that was recently deleted.
107821 2006-07-04  Bruno Haible  <bruno@clisp.org>
107823         Assume ANSI C header files and <ctype.h> functions.
107824         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
107825         (mbsnwidth): Use isprint, iscntrl instead.
107827 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
107829         Merge from coreutils.
107830         * MODULES.html.sh: Add xstrtold.
107831         * modules/xstrtold: New file.
107832         * modules/cycle-check (Files): Add lib/same-inode.h.
107833         * modules/dirname (Files): Add m4/double-slash-root.m4.
107834         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
107835         * modules/mkdir-p (Files): Add lib/same-inode.h.
107836         * modules/same (Files): Add lib/same-inode.h.
107838 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
107840         * m4/absolute-header.m4: Renamed from full-header-path.m4.
107841         This is to keep the terminology clean; POSIX talks about
107842         "absolute pathnames", not "full pathnames", but the GNU
107843         Coding Standards say to use "path" for something else;
107844         so use "absolute" to keep both sides happy.
107845         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
107846         Set gl_absolute_header, not gl_full_header_path.
107847         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
107848         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
107849         All uses changed.
107851         Merge from coreutils.
107853         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
107855         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
107856         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
107857         want to require the building of c-strtod.o.
107858         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
107859         needs -lm directly.
107860         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
107862         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
107864         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
107865         --as-needed option if available.  Problem reported by Albert Chin in
107866         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
107867         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
107868         cc merely issues a bunch of annoying warnings for --as-needed
107869         (this problem was reported by Bob Proulx).  Also, try linking with
107870         -lm to detect a bug in binutils 2.16 (this problem was reported
107871         by Ralf Wildenhues).
107873         2006-06-18  Jim Meyering  <jim@meyering.net>
107875         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
107876         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
107877         macro.
107878         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
107879         also check for glibc-2.4's abort-inducing bug.
107881         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
107882         Low-probability clean-up should be to use rmdir to get rid of
107883         the just-created directory, not unlink.
107885         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
107886         configure fail, and request a bug report to inform us about it.
107887         Add a comment that, barring reports to the contrary, in 2007 we'll
107888         assume ftruncate is universally available.
107890         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
107892         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
107894         2006-03-12  Jim Meyering  <jim@meyering.net>
107896         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
107897         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
107898         * m4/same.m4 (gl_SAME): Likewise.
107899         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
107901         2006-03-11  Eric Blake  <ebb9@byu.net>
107903         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
107904         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
107905         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
107906         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
107908 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
107910         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
107911         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
107912         reported by Mark D. Baushke, one in
107913         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
107915         Merge from coreutils.
107917         * lib/.cppi-disable: Add stdint_.h.
107918         * lib/.cvsignore: Add stdint.h.
107920         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
107922         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
107923         both double and long double versions.
107924         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
107925         * lib/xstrtold.c: New file.
107926         * lib/xstrtod.h (xstrtold): New decl.
107928         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
107930         * lib/filemode.c (setst): Remove.
107931         (strmode): Rewrite to avoid setst.  This makes the code shorter,
107932         (arguably) clearer, and the generated code is a bit smaller on my
107933         Debian GNU/Linux stable x86 host.
107935         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
107937         * lib/filemode.c: Include "filemode.h" first, to test the interface.
107938         Assume that filemode.h includes sys/types.h and sys/stat.h.
107939         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
107940         (ftypelet): Reorder to put common cases first, for efficiency.
107941         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
107942         to do 'M'.
107943         (strmode): Renamed from mode_string, and now stores 12 bytes instead
107944         of 10, for compatibility with FreeBSD.  All callers changed.
107945         (filemodestring): Now stores 12 bytes instead of 10, and sets file
107946         types that can't be deduced solely from st_mode.  First arg is now a
107947         const pointer.
107948         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
107949         (strmode): Renamed from mode_string.
107950         (filemodestring): New decl.
107951         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
107952         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
107953         needed.
107954         (S_ISPORT, S_ISWHT): New macros, if not already defined.
107956         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
107958         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
107959         fsusage.h now does that.  Include fsusage.h first, to test interface.
107960         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
107961         at most one method (the old code could have generated decls that
107962         didn't conform to C89, not that this was ever exercised).
107963         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
107965         2006-03-19  Jim Meyering  <jim@meyering.net>
107967         Work even in a chroot where d_ino values for entries in "/"
107968         don't match the stat.st_ino values for the same names.
107969         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
107970         number, iterate through all entries again, using lstat instead.
107971         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
107972         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
107974         * lib/getcwd.c (__getcwd): Clarify a comment.
107975         Use memcpy in place of a call to strcpy.
107977         2006-03-12  Jim Meyering  <jim@meyering.net>
107979         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
107980         matches that of the current directory (which we're about to chdir ".."
107981         out of), then save the dev-ino of the parent, instead.
107983         * lib/same-inode.h (SAME_INODE): New file/macro.
107984         * lib/chdir-safer.c (SAME_INODE): Remove definition.
107985         Include "same-inode.h", instead.
107986         * lib/same.c: Likewise.
107987         * lib/cycle-check.h: Include "same-inode.h".
107988         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
107989         * lib/cycle-check.c (SAME_INODE): Remove definition.
107990         * lib/root-dev-ino.h: Include "same-inode.h".
107992         2006-03-11  Eric Blake  <ebb9@byu.net>
107994         * lib/same.c (same_name): s/base_name/last_component/
107995         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
107996         * lib/filenamecat.c (file_name_concat): Likewise.
107998         2006-03-11  Eric Blake  <ebb9@byu.net>,
107999                     Paul Eggert  <eggert@cs.ucla.edu>
108001         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
108002         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
108003         drive prefix.
108004         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
108005         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
108006         (last_component): New method.
108007         * lib/dirname.c (dir_len): Determine when drive letters need a
108008         subsequent slash.  Preserve // when it is special.
108009         (dir_name): Don't append dot when drive letter is absolute.
108010         [TEST_DIRNAME]: Move into a full-blown gnulib test.
108011         * lib/basename.c (base_name): New semantics - malloc the result.
108012         Preserve // when it is special.  Preserve relative files that look
108013         like drive letters.
108014         (base_len): Preserve // when it is special.
108015         (last_component): New method, similar to old base_name semantics.
108016         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
108017         base_name.  Strip redundant slashes from ///.
108019 2006-07-03  Jim Meyering  <jim@meyering.net>
108021         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
108022         macro is used before the first cycle_check call.
108024 2006-07-03  Eric Blake  <ebb9@byu.net>
108026         * modules/dirname (Depends-on): Add xstrndup.
108028 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
108030         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
108031         test cases, so that config.log is a bit easier to follow.
108033 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
108035         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
108036         both are 64 bits, since this seems to be the tradition, and this
108037         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
108038         we ever run into a host that prefers long long to long in this
108039         case, we'll need another configure-time test.  Problem reported by
108040         Jim Meyering.
108042 2006-07-02  Eric Blake  <ebb9@byu.net>
108044         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
108046 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
108048         * modules/inttypes (Depends-on): No longer depends on stdint.
108049         * modules/stdint (Description): Say more about assumptions.
108050         Say that the fast types might differ.  Say macros are used.
108051         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
108052         (Makefile.am): Revise list of substituted symbols to match
108053         new stdint.m4.
108054         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
108055         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
108056         * tests/test-stdint.c (verify_same_types)
108057         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
108058         the code conforms to C99/C89.
108059         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
108060         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
108062 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
108064         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
108065         but fix a bug, by requiring at least 64 bits.
108066         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
108067         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
108068         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
108069         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
108071         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
108072         changes.  Make 2.59 a prerequisite.  Check and substitute for
108073         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
108074         inttypes.h.  Do not use special include files; just use the
108075         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
108076         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
108077         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
108078         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
108079         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
108080         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
108081         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
108082         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
108083         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
108084         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
108085         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
108086         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
108087         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
108088         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
108089         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
108090         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
108091         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
108092         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
108093         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
108094         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
108095         WINT_MAX.  Check for C99 conformance more strictly, by detecting
108096         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
108097         not check for things that C99 does not require, e.g., int8_t.  If
108098         a test isn't needed unless <stdint.h> isn't working, and is
108099         unlikely to be needed for any other reason, then don't do it
108100         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
108101         size_t, since we assume C89 freestanding at least.  Do not check
108102         for sig_atomic_t, wchar_t, or wint_t, since the code now does
108103         the right thing even if the types are not defined.  Instead use:
108104         (gl_STDINT_TYPE_PROPERTIES): New macro.
108105         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
108106         testing whether <sys/types.h> clashes, as Autoconf does this for
108107         us now.  All uses removed.
108108         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
108109         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
108110         (gl_CHECK_TYPE_SAME):
108111         Remove; no longer needed.
108112         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
108113         exists, since we'll return 0 anyway in that case.
108114         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
108116 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
108118         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
108119         possible collision with system files.
108120         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
108121         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
108122         WCHAR_MIN and WCHAR_MAX in this case.
108123         (<stddef.h>): Do not include; no longer needed.
108124         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
108125         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
108126         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
108127         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
108128         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
108129         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
108130         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
108131         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
108132         !defined(__c99))]: Include in this case too, since it's harmless
108133         now.
108134         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
108135         dangerous to do so.
108136         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
108137         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
108138         (_STDINT_MIN, _STDINT_MAX): New macros.
108139         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
108140         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
108141         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
108142         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
108143         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
108144         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
108145         macros, not typedefs; this simplifies things quite a bit.
108146         Use long int for all types narrower than int64_t.
108147         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
108148         Define in terms of long long int or int64_t or long int,
108149         not int64_t or int32_t.  This saves some compile-time testing.
108150         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
108151         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
108152         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
108153         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
108154         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
108155         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
108156         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
108157         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
108158         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
108159         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
108160         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
108161         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
108162         undef any previous version and define our own version, for
108163         simplicity and consistency with the new macros for types.
108164         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
108165         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
108166         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
108167         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
108168         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
108169         @WINT_T_SUFFIX@ to keep things simple here.
108170         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
108171         Simplify by assuming typical 8/16/32/64 host, since we're
108172         already doing that elsewhere anyway.
108173         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
108174         and assume long long int is 64 bits if available.  This
108175         speeds up 'configure'.
108177 2006-07-01  Eric Blake  <ebb9@byu.net>
108179         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
108180         Reported by Andreas Buening.
108182 2006-07-01  Eric Blake  <ebb9@byu.net>
108184         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
108186 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
108188         * lib/getaddrinfo.c: fixed typo
108190 2006-06-29  Jim Meyering  <jim@meyering.net>
108192         * modules/strftime (Maintainer): Add my name, since with the
108193         FPRINTFTIME changes strftime.c has forked from glibc.
108195 2006-06-29  Eric Blake  <ebb9@byu.net>
108197         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
108199 2006-06-29  Eric Blake  <ebb9@byu.net>
108201         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
108203 2006-06-29  Eric Blake  <ebb9@byu.net>
108205         * lib/stat_.h: New file.
108207 2006-06-29  Eric Blake  <ebb9@byu.net>
108209         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
108210         unused static function.
108212 2006-06-29  Eric Blake  <ebb9@byu.net>
108214         * doc/functions.texi (Function Portability): Document missing lstat
108215         on mingw.
108217 2006-06-29  Eric Blake  <ebb9@byu.net>
108219         * MODULES.html.sh: Add sys_stat.
108220         * modules/sys_stat: New module.
108221         * modules/mkstemp (Depends-on): Add sys_stat.
108223 2006-06-29  Derek R. Price  <derek@ximbiot.com>
108225         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
108227 2006-06-29  Derek R. Price  <derek@ximbiot.com>
108229         * m4/c-bs-a.m4: Removed.
108231 2006-06-29  Derek R. Price  <derek@ximbiot.com>
108233         * lib/strftime.c: Assume strftime() exists.
108235 2006-06-29  Derek Price  <derek@ximbiot.com>
108237         * modules/c-bs-a: Removed - \a is C89.
108238         * MODULES.html.sh: Remove c-bs-a.
108240 2006-06-29  Bruno Haible  <bruno@clisp.org>
108242         * modules/wcwidth (License): Change to LGPL.
108244 2006-06-28  Simon Josefsson  <jas@extundo.com>
108246         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
108247         on _WIN32.
108249         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
108250         getnameinfo.
108252 2006-06-28  Simon Josefsson  <jas@extundo.com>
108254         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
108256 2006-06-28  Simon Josefsson  <jas@extundo.com>
108258         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
108259         functions there.  It will succeed on Windows XP, but on Windows
108260         2000 and (presumably) earlier, it will fail, and use the internal
108261         re-implementation.
108262         (use_win32_p): New function.
108263         (getaddrinfo): Use strtoul on servname, to support numeric ports.
108264         Support AI_NUMERICSERV to disable getservbyname.
108265         (getnameinfo): New function, only supports
108266         NI_NUMERICHOST|NI_NUMERICSERV for now.
108268         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
108269         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
108270         getnameinfo.
108272 2006-06-28  Eric Blake  <ebb9@byu.net>
108274         * modules/wcwidth: New file.
108275         * modules/mbchar (Depends-on): Add wcwidth.
108276         * modules/mbswidth (Depends-on): Add wcwidth.
108277         * MODULES.html.sh: Add wcwidth.
108279 2006-06-28  Eric Blake  <ebb9@byu.net>
108281         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
108282         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
108284 2006-06-28  Eric Blake  <ebb9@byu.net>
108286         * lib/xvasprintf.h: Fix comments.
108288 2006-06-28  Eric Blake  <ebb9@byu.net>
108290         * lib/mbchar.h (wcwidth): Include wcwidth.h.
108291         * lib/mbswidth.c (wcwidth): Move from here...
108292         * lib/wcwidth.h: ...to this new file.
108294 2006-06-28  Derek R. Price  <derek@ximbiot.com>
108296         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
108298         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
108299         it's obsolete.
108300         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
108302 2006-06-28  Derek R. Price  <derek@ximbiot.com>
108304         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
108305         Autoconf 2.60 says this stuff was obsolete.
108307 2006-06-28  Bruno Haible  <bruno@clisp.org>
108309         * modules/wcwidth (Files): Add m4/wchar_t.m4.
108311 2006-06-28  Bruno Haible  <bruno@clisp.org>
108313         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
108314         gt_TYPE_WCHAR_T.
108316 2006-06-28  Bruno Haible  <bruno@clisp.org>
108318         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
108319         declaration for wcwidth.
108320         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
108322 2006-06-28  Bruno Haible  <bruno@clisp.org>
108324         * lib/mkdtemp.c [MINGW]: Include <io.h>.
108325         (mkdir): Define using _mkdir.
108327 2006-06-28  Bruno Haible  <bruno@clisp.org>
108329         * lib/getaddrinfo.h: Fix POSIX URL.
108330         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
108331         _WIN32.
108332         (use_win32_p): Make static.
108333         (getaddrinfo): Reject service name if it is empty or does not consist
108334         solely of decimal digits, or if its value is > 65535.
108335         (getnameinfo): Remove useless casts.
108337 2006-06-27  Simon Josefsson  <jas@extundo.com>
108339         * modules/sys_select: New file, suggested by Bruno Haible, Paul
108340         Eggert and Martin Lambers.
108342 2006-06-27  Simon Josefsson  <jas@extundo.com>
108344         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
108345         Eggert and Martin Lambers.
108347 2006-06-27  Bruno Haible  <bruno@clisp.org>
108349         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
108350         result to 0, not to empty.
108351         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
108353 2006-06-27  Bruno Haible  <bruno@clisp.org>
108355         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
108357 2006-06-26  Simon Josefsson  <jas@extundo.com>
108359         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
108360         present.
108362 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
108364         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
108365         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
108366         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
108368 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
108370         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
108372 2006-06-26  Bruno Haible  <bruno@clisp.org>
108374         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
108376 2006-06-26  Bruno Haible  <bruno@clisp.org>
108378         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
108380 2006-06-26  Bruno Haible  <bruno@clisp.org>
108382         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
108383         SGI C compiler in pre-C99 mode.
108384         Suggested by Mark D. Baushke and Larry Jones.
108386 2006-06-26  Bruno Haible  <bruno@clisp.org>
108388         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
108389         WCHAR_MAX.
108390         Reported by Mark D. Baushke and Larry Jones.
108392 2006-06-26  Bruno Haible  <bruno@clisp.org>
108394         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
108395         in pre-C99 mode.
108396         Suggested by Mark D. Baushke and Larry Jones.
108398 2006-06-23  Simon Josefsson  <jas@extundo.com>
108399             Bruno Haible  <bruno@clisp.org>
108401         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
108402         Emit mostlyclean-local rule.
108403         (func_emit_tests_Makefile_am): Likewise.
108404         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
108406 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
108408         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
108410 2006-06-23  Bruno Haible  <bruno@clisp.org>
108412         * tests/test-stdint.c: Update to match ISO C 99 Technical
108413         Corrigendum 1.
108415 2006-06-23  Bruno Haible  <bruno@clisp.org>
108417         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
108419 2006-06-23  Bruno Haible  <bruno@clisp.org>
108421         * lib/stdint_.h: Treat IRIX like OpenBSD.
108423 2006-06-23  Bruno Haible  <bruno@clisp.org>
108425         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
108426         ISO C 99 Technical Corrigendum 1.
108428 2006-06-22  Simon Josefsson  <jas@extundo.com>
108430         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
108431         MinGW.
108433 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
108435         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
108436         needed.  Some compiler complained about some of them.  Problem reported
108437         by Larry Jones in
108438         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
108440 2006-06-21  Simon Josefsson  <jas@extundo.com>
108442         * tests/test-getaddrinfo.c: New file.
108444         * modules/getaddrinfo-tests: New file.
108446         * MODULES.html.sh: Add inet_pton.
108448         * modules/inet_pton: New file.
108450 2006-06-21  Simon Josefsson  <jas@extundo.com>
108452         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
108453         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
108454         of using the (limited) gnulib implementation on Windows XP.
108456         * m4/inet_pton.m4: New file.
108458 2006-06-21  Simon Josefsson  <jas@extundo.com>
108460         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
108461         variable.
108463         * lib/socket_.h: Don't define WINVER.
108465         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
108466         slightly modified to work in gnulib.
108468 2006-06-21  Simon Josefsson  <jas@extundo.com>
108470         * doc/gnulib.texi (Windows sockets): Add.
108472 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
108474         * lib/read-file.c (fread_file): Start with buffer allocation of
108475         0 bytes rather than 1 byte; this simplifies the code.
108476         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
108477         code to free buffer and save/restore errno.
108478         (internal_read_file): Remove unused local.
108480 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
108482         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
108483         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
108484         Problem reported by Denis Excoffier in
108485         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
108487 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108489         * modules/sys_socket, modules/socklen: Include sys/types since
108490         FreeBSD 4.x's sys/socket.h needs it.
108492 2006-06-19  Simon Josefsson  <jas@extundo.com>
108494         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
108496 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
108498         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
108500 2006-06-19  Bruno Haible  <bruno@clisp.org>
108502         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
108503         and FULL_PATH_INTTYPES_H in angle brackets.
108504         Reported by Mark D. Baushke <mdb@gnu.org>.
108506 2006-06-17  Eric Blake  <ebb9@byu.net>
108508         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
108509         errno.
108511 2006-06-17  Bruno Haible  <bruno@clisp.org>
108513         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
108514         <sys/inttypes.h>.
108516 2006-06-17  Bruno Haible  <bruno@clisp.org>
108518         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
108519         whether errno is declared. Assume <errno.h> declares errno.
108521 2006-06-17  Bruno Haible  <bruno@clisp.org>
108523         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
108525 2006-06-17  Bruno Haible  <bruno@clisp.org>
108527         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
108528         problem on Solaris 2.5.1.
108530 2006-06-16  Eric Blake  <ebb9@byu.net>
108532         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
108533         * lib/unicodeio.c [!defined errno]: Likewise.
108534         * lib/strtol.c [!defined errno]: Likewise.
108535         * lib/strtod.c [!defined errno]: Likewise.
108537 2006-06-15  Eric Blake  <ebb9@byu.net>
108539         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
108541 2006-06-15  Eric Blake  <ebb9@byu.net>
108543         * config/srclist.txt (ssize_t.m4): Lose sync.
108545 2006-06-15  Bruno Haible  <bruno@clisp.org>
108547         * modules/stdint (Files): Include m4/full-header-path.m4,
108548         m4/size_max.m4, m4/wchar_t.m4.
108549         (Makefile.am): Many more substitutions.
108550         * modules/stdint-tests: New file.
108551         * tests/test-stdint.c: New file.
108553 2006-06-15  Bruno Haible  <bruno@clisp.org>
108555         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
108556         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
108557         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
108558         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
108559         gl_CHECK_TYPE_SAME): New macros.
108561 2006-06-15  Bruno Haible  <bruno@clisp.org>
108563         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
108565 2006-06-15  Bruno Haible  <bruno@clisp.org>
108567         * lib/stdint_.h: Rewritten to be fully auto-configured.
108568         Fixes bug on HP-UX/IA64.
108570 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
108572         * lib/getdate.y (__attribute__): Don't define if already defined.
108573         Problem reported by Larry Jones.
108574         * lib/utimens.c (__attribute__): Likewise.
108576 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
108578         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
108579         reported by Andreas Schwab.
108581 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108582             Bruno Haible  <bruno@clisp.org>
108584         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
108585         check for the declaration of strnlen and a run test that exposes the
108586         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
108587         rpl_strndup.
108589 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108590             Bruno Haible  <bruno@clisp.org>
108592         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
108594 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108596         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
108597         compile test, for Tru64 4.0D.
108599 2006-05-28  Karl Berry  <karl@gnu.org>
108601         * config/srclist.txt (printf-args.c): lose sync.
108603 2006-05-26  Martin Lambers  <marlam@marlam.de>
108605         * lib/getpass.c: Updates the test for the native W32 API, and adds
108606         missing includes, thus fixing compilation warnings.
108608 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
108610         * lib/exclude.c (exclude_fnmatch): New function.
108611         (excluded_file_name): Call exclude_fnmatch.
108612         * lib/exclude.h (excluded_file_name): New prototype
108614 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
108616         * lib/tempname.c (small_open, large_open): New macros.
108617         (__open, __open64) [!_LIBC]: Remove.
108618         (__gen_tempname): Use small_open and large_open instead of __open
108619         and __open64.  This fixes a portability bug on HP-UX 11.11i
108620         reported by Simon Wing-Tang in
108621         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
108623 2006-05-24  Bruno Haible  <bruno@clisp.org>
108625         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
108626         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
108627         Reported by Thorsten Maerz <torte@netztorte.de> via
108628         Aaron Stone <aaron@serendipity.cx>.
108630 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
108632         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
108633         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
108634         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
108635         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
108636         not really conditional on the cache.
108637         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
108639 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
108641         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
108642         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
108643         (my_usleep): Don't mishandle maximum value.
108645 2006-05-19  Jim Meyering  <jim@meyering.net>
108647         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
108649 2006-05-17  Bruno Haible  <bruno@clisp.org>
108651         Cygwin portability.
108652         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
108654 2006-05-17  Bruno Haible  <bruno@clisp.org>
108656         * lib/stdint_.h: Fix recognition of Cygwin.
108658 2006-05-15  Bruno Haible  <bruno@clisp.org>
108660         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
108661         on libtool patch by Ralf Wildenhues.
108663 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
108665         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
108666         test for C99 conformance; (bool) 0.5 is an integer constant
108667         expression, but (bool) -0.5 is not.  Problem reported by Fedor
108668         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
108670 2006-05-11  Simon Josefsson  <jas@extundo.com>
108672         * m4/xvasprintf.m4: Fix obvious typo.
108674 2006-05-11  Jim Meyering  <jim@meyering.net>
108676         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
108677         James Lemley.
108679 2006-05-10  Simon Josefsson  <jas@extundo.com>
108681         * lib/md4.c: Typo fix, update copyright years.
108682         (K1, K2): Don't use L because it turn computations into 64-bit on
108683         64-bit platforms.
108685 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
108687         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
108688         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
108689         unwanted sign propagation, e.g., on hosts with 64-bit int.
108690         There still are some problems with reeelly weird theoretical hosts
108691         (e.g., 33-bit int) but it's not worth worrying about now.
108692         * lib/sha1.c (rol): Likewise.
108693         (K1, K2, K3, K4): Remove unnecessary L suffix.
108695 2006-05-10  Bruno Haible  <bruno@clisp.org>
108697         * lib/des.c: Cast to avoid warnings.
108699 2006-05-09  Bruno Haible  <bruno@clisp.org>
108701         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
108702         (Depends-on): Depend also on xsize, stdarg.
108703         (configure.ac): Add gl_XVASPRINTF.
108705 2006-05-09  Bruno Haible  <bruno@clisp.org>
108707         * m4/xvasprintf.m4: New file.
108709 2006-05-09  Bruno Haible  <bruno@clisp.org>
108711         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
108712         (EOVERFLOW): Define fallback value.
108713         (xstrcat): New function.
108714         (xvasprintf): Recognize the special case of a string concatenation.
108716 2006-05-08  Eric Blake  <ebb9@byu.net>
108718         * gnulib-tool (func_version): Base copyright year on CVS date.
108719         (func_emit_copyright_notice): New function.
108720         (func_emit_lib_Makefile_am): Use it.
108721         (func_emit_tests_Makefile_am): Likewise.
108722         (func_import): Likewise.
108724 2006-05-08  Bruno Haible  <bruno@clisp.org>
108726         * modules/stdarg: New file.
108727         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
108729 2006-05-08  Bruno Haible  <bruno@clisp.org>
108731         * m4/stdarg.m4: New file, from GNU gettext.
108733 2006-05-08  Bruno Haible  <bruno@clisp.org>
108735         * config/srclist.txt (build-aux/config.rpath): different from latest
108736         release.
108738 2006-05-08  Bruno Haible  <bruno@clisp.org>
108740         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
108742 2006-05-05  Jim Meyering  <jim@meyering.net>
108744         * m4/warning.m4: New file, derived from bison's file by the same name.
108746 2006-05-03  Bruno Haible  <bruno@clisp.org>
108748         * lib/stdint_.h: Shorter URL.
108749         * lib/inttypes.h: Likewise.
108751 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
108753         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
108755 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
108757         * lib/verify.h: Document the internals better.  Most of this change
108758         was written by Bruno Haible.
108760 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
108762         * doc/verify.texi: New file, partly based on a proposal by
108763         Bruno Haible.
108765 2006-05-02  Bruno Haible  <bruno@clisp.org>
108767         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
108768         test from here...
108769         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
108771 2006-04-29  Bruno Haible  <bruno@clisp.org>
108773         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
108774         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
108776 2006-04-29  Bruno Haible  <bruno@clisp.org>
108778         * gnulib-tool: Make --update option actually work.
108780 2006-04-29  Bruno Haible  <bruno@clisp.org>
108782         * doc/gcd.texi: New file.
108783         * doc/gnulib.texi: Include it.
108785 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
108787         * lib/getdate.y (get_date): When adding relative date, start with the
108788         initial time, not with the result of the first mktime call.
108790 2006-04-25  Bruno Haible  <bruno@clisp.org>
108792         * gnulib-tool (func_import): Output the include directives in three
108793         blocks, sorted separately.
108794         Reported by Ben Pfaff <blp@cs.stanford.edu>.
108796 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
108798         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
108799         to define main with arguments, for C++.  Reported by Eric Blake.
108800         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
108801         Prefer 'int main ()' to 'int main (void)', for C++.
108802         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
108803         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
108804         for 'main', for C99 and C++.
108806 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
108808         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
108809         Don't assume that exit status -1 is valid.
108810         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
108811         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
108812         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
108813         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
108814         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
108815         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
108816         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
108817         functions can be used without declaring them, or that you can
108818         exit with status -1.
108819         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
108821 2006-04-24  Karl Berry  <karl@gnu.org>
108823         * config/srclist.txt (longdouble.m4): sync lost.
108825 2006-04-24  Eric Blake  <ebb9@byu.net>
108827         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
108829 2006-04-24  Bruno Haible  <bruno@clisp.org>
108831         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
108832         poll() implementation in AIX.
108833         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108835 2006-04-24  Bruno Haible  <bruno@clisp.org>
108837         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
108838         assigned exactly once.
108840 2006-04-23  Claudio Fontana  <claudio@gnu.org>
108841             Bruno Haible  <bruno@clisp.org>
108843         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
108844         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
108845         for AM_CPPFLAGS.
108847 2006-04-23  Bruno Haible  <bruno@clisp.org>
108849         * modules/copy-file: Depend on unistd.
108850         * modules/execute: Likewise.
108851         * modules/fatal-signal: Likewise.
108852         * modules/findprog: Likewise.
108853         * modules/mkdtemp : Likewise.
108854         * modules/pipe: Likewise.
108855         * modules/wait-process: Likewise.
108857 2006-04-23  Bruno Haible  <bruno@clisp.org>
108859         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
108860         condition was already detected.
108861         Reported by Ben Pfaff <blp@cs.stanford.edu>.
108863 2006-04-23  Bruno Haible  <bruno@clisp.org>
108865         * lib/copy-file.c: Include <unistd.h> unconditionally.
108866         * lib/execute.c: Likewise.
108867         * lib/fatal-signal.c: Likewise.
108868         * lib/findprog.c: Likewise.
108869         * lib/mkdtemp.c: Likewise.
108870         * lib/pipe.h: Likewise.
108871         * lib/pipe.c: Likewise.
108872         * lib/wait-process.h: Likewise.
108874 2006-04-23  Bruno Haible  <bruno@clisp.org>
108876         * gnulib-tool (func_usage): Fix --import description. Document
108877         --update.
108878         (func_import): Create temporary file in a temporary directory, if
108879         --dry-run is specified. Silence errors from 'grep' when there are no
108880         m4 files in $m4dir.
108881         (func_create_testdir): Silence errors from 'grep' when there are no
108882         m4 files in $m4dir.
108883         Reported by Karl Berry <karl@freefriends.org>.
108885 2006-04-20  Bruno Haible  <bruno@clisp.org>
108887         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
108888         one argument, so that the code will be portable to Autoconf 2.60.
108889         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
108890         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
108891         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
108893 2006-04-19  Derek Price  <derek@ximbiot.com>
108894             Eric Blake  <ebb9@byu.net>
108896         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
108897         rather than "/full/path.h".  Update comment to match.  Shorten &
108898         generalize m4_translit call via AS_TR_CPP.
108900 2006-04-19  Derek Price  <derek@ximbiot.com>
108901             Eric Blake  <ebb9@byu.net>
108903         * lib/inttypes.h: Correct grammar in comment.
108905 2006-04-18  Derek Price  <derek@ximbiot.com>
108906             Paul Eggert  <eggert@cs.ucla.edu>
108908         * modules/inttypes: New file.
108909         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
108911 2006-04-18  Derek Price  <derek@ximbiot.com>
108912             Paul Eggert  <eggert@cs.ucla.edu>
108914         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
108915         New files.
108917 2006-04-18  Derek Price  <derek@ximbiot.com>
108918             Paul Eggert  <eggert@cs.ucla.edu>
108920         * lib/inttypes.h: New file.
108921         * lib/strtoimax.c: Assume <inttypes.h>.
108923 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
108925         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
108926         isn't mounted.  Problem reported by Kir Kolyshkin.
108928 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
108930         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
108931         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
108932         Derek R. Price.
108933         * lib/regex.h (RE_DUP_MAX): Update comment to match current
108934         implementation.
108936 2006-04-12  Eric Blake  <ebb9@byu.net>
108938         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
108939         is now done automatically by the corresponding Autoconf macro.
108941 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
108943         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
108944         time_r.h.
108946 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
108948         Merge regex changes from libc, removing some of our
108949         POSIX-conformance changes that were rejected and redoing them in a
108950         less-intrusive way.
108952         * lib/regcomp.c (re_compile_internal, init_dfa):
108953         Length arg is now size_t, not Idx.  All uses changed.
108954         (peek_token): Forward decl now says internal_function.
108955         (__re_error_msgid, __re_error_msgid_idx):
108956         Now static rather than extern with attribute_hidden.
108957         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
108958         For some reason libc prefers K&R style defns for external functions.
108959         (regerror) [!defined _LIBC]: Likewise.
108960         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
108961         (seek_collating_symbol_entry, lookup_collation_sequence_value):
108962         (build_range_exp, build_collating_symbol):
108963         Use K&R-style defn.
108964         (re_compile_fastmap): Use '\0' to memset, not 0.
108965         (utf8_sb_map): Make the calculations more obvious.
108966         (init_dfa, parse_bracket_exp, build_charclass_op):
108967         Call calloc and cast result, as glibc does.
108968         (init_word_char, fetch_token, peek_token, peek_token_bracket):
108969         (build_range_exp, build_collating_symbol):
108970         Now internal functions.
108972         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
108974         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
108975         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
108976         Don't depend on VMS; depend on __VMS instead, for POSIX
108977         namespace cleanness.
108978         (regoff_t): Define to ssize_t, not long int.
108980         Remove the REG_ macros named below.  Instead, make the old names
108981         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
108982         __USE_GNU_REGEX.
108983         (REG_BACKSLASH_ESCAPE_IN_LISTS):
108984         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
108985         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
108986         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
108987         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
108988         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
108989         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
108990         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
108991         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
108992         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
108993         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
108994         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
108995         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
108996         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
108997         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
108998         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
108999         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
109000         (REG_NREGS):
109001         Remove.  All uses replaced by the old RE_* names.
109002         (RE_BACKSLASH_ESCAPE_IN_LISTS):
109003         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
109004         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
109005         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
109006         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
109007         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
109008         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
109009         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
109010         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
109011         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
109012         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
109013         Don't bother having these macros be independent of each others'
109014         values, since they no longer exist in the POSIX name space.
109016         Rename the following member names back to their old names,
109017         unless !__USE_GNU_REGEX.  All uses changed back.
109018         (buffer): Renamed from re_buffer.
109019         (allocated): Renamed from re_allocated.
109020         (used): Renamed from re_used.
109021         (syntax): Renamed from re_syntax.
109022         (fastmap): Renamed from re_fastmap.
109023         (translate): Renamed from re_translate.
109024         (can_be_null): Renamed from re_can_be_null.
109025         (regs_allocated): Renamed from re_regs_allocated.
109026         (fastmap_accurate): Renamed from re_fastmap_accurate.
109027         (no_sub): Renamed from re_no_sub.
109028         (not_bol): Renamed from re_not_bol.
109029         (not_eol): Renamed from re_not_eol.
109030         (newline_anchor): Renamed from re_newline_anchor.
109031         (num_regs): Renamed from rm_num_regs.
109032         (start): Renamed from rm_start.
109033         (end): Renamed from rm_end.
109035         (free_state): Move up a bit.
109037         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
109038         #define to be empty.
109039         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
109040         when that is what is intended.
109041         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
109042         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
109043         (MAX): New macro.
109044         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
109045         All uses changed back to re_malloc, etc.  It's now the caller's
109046         responsibility to check for overflow; all callers changed.
109047         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
109048         (re_x2nrealloc): Remove.
109049         (free_state): Remove decl.
109051         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
109052         (re_set_registers, re_exec):
109053         Use K&R-style defn.
109055         2006-01-31  Roland McGrath  <roland@redhat.com>
109057         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
109058         Reported by Mike Frysinger <vapier@gentoo.org>.
109060         2006-01-15  Andreas Jaeger  <aj@suse.de>
109062         [BZ #1950]
109063         * lib/regex_internal.c (re_string_reconstruct): Adjust for
109064         build_wcs_upper_buffer change.
109065         (build_wcs_upper_buffer): Change return type.
109067         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
109069         * lib/regex_internal.h: Include <stdint.h> if available.
109071         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
109073         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
109075         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
109077         * lib/regcomp.c: Adjust for changed secondary hash function.
109079         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
109081         * lib/regex.h: Pretty printing.
109082         Clean up namespace a bit.
109084         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
109086         * lib/regexec.c (update_cur_sifted_state, check_arrival,
109087         check_arrival_add_next_nodes): Avoid using uninitialized variable.
109089         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
109090                     Ulrich Drepper  <drepper@redhat.com>
109092         [BZ #1302]
109093         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
109094         changed.
109095         (bitset_word_t): Renamed from bitset_word.  All uses changed.
109097         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
109099         [BZ #281]
109100         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
109101         * lib/regcomp.c: Remove unnecessary uses of
109102         unsigned RE_TRANSLATE_TYPE.
109103         * lib/regex_internal.h: Likewise.
109104         * lib/regex_internal.c: Likewise.
109105         * lib/regexec.c: Likewise.
109106         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
109108         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
109110         * lib/regexec.c (find_recover_state): Remove unnecessary
109111         initialization.
109112         (transit_state_bkref): Make DFA a const pointer.
109113         (get_subexp): Likewise.
109114         (check_arrival): Likewise.
109115         (update_cur_sifted_state): Likewise.
109116         (re_search_internal): Likewise.
109117         (prune_impossible_nodes): Likewise.
109118         (acquire_init_state_context): Likewise.
109119         (proceed_next_node): Likewise.
109120         (set_regs): Likewise.
109121         (free_fail_stack_return): Likewise.
109122         (check_arrival_expand_ecl): Mark DFA parameter as const.
109123         (check_arrival_expand_ecl_sub): Likewise.
109124         (check_subexp_limits): Likewise.
109125         (sub_epsilon_src_nodes):  Likewise.
109126         (add_epsilon_src_nodes):  Likewise.
109127         (merge_state_array): Likewise.
109128         (update_regs): Likewise.
109129         (build_trtable): Likewise.
109130         (sift_states_backward): Mark MCTX parameter as const.
109131         (build_sifted_states): Likewise.
109132         (update_cur_sifted_state): Likewise.
109133         (sift_states_mkref): Likewise.
109134         (check_arrival_expand_ecl): Mark eclosure as const.
109135         (check_dst_limits_calc_pos_1): Likewise.
109136         * lib/regex_internal.h (re_match_context_t): Make dfa a const
109137         pointer.
109139         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
109141         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
109142         (transit_state_sb): Likewise.
109143         (transit_state_mb): Likewise.
109144         (sift_states_iter_mb): Likewise.
109145         (check_arrival_add_next_nodes): Likewise.
109146         (check_node_accept_bytes): Change first parameter to pointer-to-const.
109147         [_LIBC] (re_search_2_stub): Use mempcpy.
109149         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
109150         mbrtowc for very simple UTF-8 case.
109152         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
109153         a pointer-to-const.
109154         (re_acquire_state_context): Likewise.
109155         * lib/regex_internal.h: Adjust prototypes.
109157         * lib/regex.c: Prevent using C++ compilers.
109159         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
109160         (re_acquire_state_context): Likewise.
109162 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
109164         * modules/regex (Depends-on): Add ssize_t.
109166 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
109168         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
109169         translation table.
109171 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
109173         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
109175 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
109176             Bruno Haible  <bruno@clisp.org>
109178         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
109179         <sys/types.h> and <inttypes.h>.
109181 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109183         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
109184         `__error_t_defined', so argp.h will not typedef the former.
109186 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
109188         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
109189         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
109190         glibc names.  Even if glibc is changed to conform to POSIX, the
109191         traditional names will be available anyway, since regex depends on
109192         the extensions module.  Also, fix a longstanding typo in the
109193         implementation of Spencer ERE test #75 from grep 2.3.  Problems
109194         reported by Emanuele Giaquinta.  Also, change sense of cached
109195         variable, so that the message makes sense.
109197 2006-03-24  Simon Josefsson  <jas@extundo.com>
109199         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
109200         including some doc fixes.
109201         (base64_encode_alloc): Fix +1 bug on allocation failures.
109203 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109205         * lib/base64.c (base64_encode): Do not read past end of array with
109206         unsanitized input on systems with CHAR_BIT > 8.
109208 2006-03-24  Eric Blake  <ebb9@byu.net>
109210         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
109212 2006-03-22  Karl Berry  <karl@gnu.org>
109214         * config/srclist.txt (*setenv.[ch]): get from coreutils.
109215         * config/srclistvars.sh (COREUTILS): new var.
109217 2006-03-17  Jim Meyering  <jim@meyering.net>
109219         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
109220         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
109222 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
109224         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
109225         no longer needs it.  Instead, check that regoff_t is as least
109226         as wide as ptrdiff_t.
109228         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
109229         so that our regex.h stays compatible with the installed regex.
109230         This is helpful for installers who configure --without-included-regex.
109231         Problem reported by Emanuele Giaquinta.
109233 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
109235         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
109236         Typedef to long int, not to off_, as POSIX will likely change
109237         in that direction.
109239 2006-03-15  Eric Blake  <ebb9@byu.net>
109241         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
109243 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
109245         * lib/argp-help.c (validate_uparams): Fix typo
109246         * lib/argp-parse.c (argp_default_options): Consistently begin help
109247         messages with a lowercase letter.
109249 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
109251         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
109252         overrun buffers and shouldn't be used (much as gets shouldn't be
109253         used).
109254         * lib/time_r.c (asctime_r, ctime_r): Likewise.
109256 2006-03-08  Simon Josefsson  <jas@extundo.com>
109258         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
109259         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
109261 2006-03-08  Simon Josefsson  <jas@extundo.com>
109263         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
109264         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
109266 2006-03-08  Simon Josefsson  <jas@extundo.com>
109268         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
109269         signal that configure disabled the device.
109271 2006-03-08  Simon Josefsson  <jas@extundo.com>
109273         * build-aux/maint.mk: Fix refresh-po, to handle no translated
109274         languages.
109276 2006-03-07  Simon Josefsson  <jas@extundo.com>
109278         * modules/getopt (Depends-on): Add unistd.
109280         * modules/unistd: New file.
109282 2006-03-07  Simon Josefsson  <jas@extundo.com>
109284         * modules/gc-random: New file.
109286 2006-03-07  Simon Josefsson  <jas@extundo.com>
109288         * m4/unistd_h.m4: New file.
109290 2006-03-07  Simon Josefsson  <jas@extundo.com>
109292         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
109293         test to be side-effect free by storing the result in the cache
109294         variable gl_cv_lib_readline, and moving the assignment of
109295         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
109296         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
109298 2006-03-07  Simon Josefsson  <jas@extundo.com>
109300         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
109301         error on missing devices (the functions will return an error).
109303         * m4/gc.m4: Move random stuff to gc-random.m4
109305 2006-03-07  Simon Josefsson  <jas@extundo.com>
109307         * lib/unistd_.h: New file.
109309 2006-03-07  Simon Josefsson  <jas@extundo.com>
109311         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
109313 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
109315         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
109316         Problem reported by Juan Manuel Guerrero.
109318 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
109320         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
109321         the unistd module.
109322         * lib/getlogin_r.c: Likewise.
109323         * lib/getlogin_r.h: Likewise.
109324         * lib/glob.c: Likewise.
109325         * lib/pagealign_alloc.c: Likewise.
109326         * lib/unistd_.h: Remove; no longer needed.
109328 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
109330         * MODULES.html.sh (Support for systems lacking POSIX:2001):
109331         Add unistd.
109332         * modules/c-stack (Depends-on): Add unistd.
109333         * modules/getlogin_r: Likewise.
109334         * modules/glob: Likewise.
109335         * modules/pagealign_alloc: Likewise.
109336         * modules/unistd (Files): Remove lib/unistd_.h.
109337         (EXTRA_DIST): Remove.
109338         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
109339         need unistd_.h.
109340         (MOSTLYCLEANFILES): Remove unistd.h-t.
109342 2006-03-03  Simon Josefsson  <jas@extundo.com>
109344         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
109346 2006-03-03  Simon Josefsson  <jas@extundo.com>
109348         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
109349         libidn and bison.
109351 2006-03-03  Simon Josefsson  <jas@extundo.com>
109353         * build-aux/maint.mk: Add indent target.
109355 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
109357         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
109358         our replacement poll.h in any case, to avoid a differing
109359         declaration from a system header.  Seen on AIX.
109361 2006-03-01  Simon Josefsson  <jas@extundo.com>
109363         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
109364         <kasal@ucw.cz>.
109366 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
109368         * modules/gettime (Depends-on): Add extensions module.
109369         * modules/nanosleep (Depends-on): Likewise.
109370         * modules/settime (Depends-on): Likewise.
109372 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
109374         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
109375         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
109376         pedantically.
109377         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
109378         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
109380         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
109381         not "==".  Reported by Ralf Wildenhues.
109383 2006-03-01  Karl Berry  <karl@gnu.org>
109385         * doc/Copyright/request-*: new files, synced from gnuorg.
109387 2006-03-01  Karl Berry  <karl@gnu.org>
109389         * config/srclist.txt (Copyright/*): new entries.
109391 2006-02-28  Simon Josefsson  <jas@extundo.com>
109393         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
109395 2006-02-27  Simon Josefsson  <jas@extundo.com>
109397         * lib/base64.h: Indent #define's.  From Jim Meyering
109398         <jim@meyering.net>.
109400 2006-02-27  Jim Meyering  <jim@meyering.net>
109402         Revert the change of 2006-02-24, so these files can continue
109403         to be sync'd from gettext.
109404         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
109405         of `config.h'.
109407 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
109409         * modules/intprops: New file.
109410         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
109411         Add intprops.
109412         * modules/getloadavg (Files): Remove lib/intprops.h.
109413         (Depends-on): Add intprops.
109414         * modules/human: Likewise.
109415         * modules/inttostr: Likewise.
109416         * modules/openat: Likewise.
109417         * modules/sig2str: Likewise.
109418         * modules/userspec: Likewise.
109419         * modules/utimecmp: Likewise.
109420         * modules/xnanosleep: Likewise.
109421         * modules/xstrtol: Likewise.
109423 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
109425         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
109426         * modules/lock-tests (TESTS): Use $(EXEEXT).
109427         * modules/tls-tests: Likewise.
109428         * modules/argp-tests: Likewise.
109429         (check_PROGRAMS): New var, replacing...
109430         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
109432 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109434         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
109435         `config.h'.
109437 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
109439         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
109441 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109443         Sync from coreutils.
109444         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
109445         gl_CHDIR_SAFER.
109447 2006-02-22  Jim Meyering  <jim@meyering.net>
109449         Sync from coreutils.
109450         * m4/chdir-safer.m4: New file.
109452 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
109454         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
109455         AT_FDCWD exceeds INT_MAX.
109456         * lib/openat.h (AT_FDCWD): Likewise.
109458 2006-02-17  Eric Blake  <address@hidden>
109460         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
109462 2006-02-16  Simon Josefsson  <jas@extundo.com>
109464         * modules/getaddrinfo (Depends-on): Add sys_socket.
109466 2006-02-15  Simon Josefsson  <jas@extundo.com>
109468         * build-aux/maint.mk: Add dsyntax-check rule.
109470 2006-02-15  Eric Blake  <ebb9@byu.net>
109472         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
109473         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
109474         'present but cannot compile' warnings on cygwin.
109475         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
109476         use ws2tcpip.h if sys/socket.h works.
109477         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
109478         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
109480 2006-02-14  Simon Josefsson  <jas@extundo.com>
109482         * modules/maintainer-makefile (Files): Rename.
109484         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
109485         and (the local) Makefile.cfg to maint-cfg.mk.
109487         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
109488         to the latter.
109490         * modules/maintainer-makefile: New module.
109492         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
109493         severaly stripped to make it possible to build it up from scratch
109494         with reliable tests.
109496         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
109497         fixes to permit overriding the default actions when configure and
109498         makefile are not available.
109500 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
109502         Sync from coreutils.
109503         * modules/lstat (Depends-on): Don't depend on xalloc.
109504         (License): Change from GPL to LGPL, since this is now simply a
109505         replacement for a libc function.
109507 2006-02-14  Jim Meyering  <jim@meyering.net>
109509         Sync from coreutils.
109511         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
109512         failure on deficient systems, and simplify gnulib lgpl dependencies.
109513         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
109514         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
109516         * lib/xalloc-die.c: Remove unused definition of N_.
109518 2006-02-14  Jim Meyering  <jim@meyering.net>
109520         Sync from coreutils.
109521         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
109522         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
109523         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
109524         double-quote uses of that variable, to accommodate the rare case in
109525         which getmntent is available in none of the libraries checked.  This
109526         happens at least on FreeBSD 5.0.
109528 2006-02-13  Simon Josefsson  <jas@extundo.com>
109530         * gnulib-tool (Usage): Fix --import, from
109531         karl@freefriends.org (Karl Berry).
109533 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
109535         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
109537 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
109539         * lib/argp-namefrob.h: Restore changes accidentally lost during the
109540         "autoupdate" on 2005-12-12.
109542 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
109544         * modules/closeout (Depends-on): Remove atexit.
109546 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
109548         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
109549         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
109551 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
109553         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
109554         __EXTENSIONS__ if this causes compilation to fail.  Problem
109555         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
109556         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
109558 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
109560         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
109561         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
109562         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
109563         All uses changed.
109565 2006-01-26  Simon Josefsson  <jas@extundo.com>
109567         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
109568         prototype is visible on mingw32.
109570         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
109571         for mingw32.
109573         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
109574         mingw32).
109576 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
109578         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
109579         attempt to open for write; this always fails, at least on POSIX
109580         hosts.  This reinstates the 2006-01-09 change, which was
109581         inadvertently removed.
109583 2006-01-26  Bruno Haible  <bruno@clisp.org>
109585         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
109586         Reported by Paul Eggert.
109588 2006-01-26  Bruno Haible  <bruno@clisp.org>
109589             Paul Eggert  <eggert@cs.ucla.edu>
109591         * lib/stdbool_.h (_Bool)
109592         [(! (defined __cplusplus || defined __BEOS__)
109593           && !defined __GNUC__
109594           && !(defined __HP_cc || defined __xlc__
109595                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
109596                || defined __sgi))]:
109597         #define to signed char in these cases too; this simplifies
109598         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
109599         etc., separately) and makes it more conservative.
109601 2006-01-25  Simon Josefsson  <jas@extundo.com>
109603         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
109604         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
109605         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
109607 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
109609         * lib/argp-namefrob.h: Bugfix. Remove stray #
109611 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
109613         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
109614         so that we test the test.
109615         Check for yet another HP-UX cc bug involving *bool |= bool.
109617 2006-01-25  Karl Berry  <karl@gnu.org>
109619         * config/srclist.txt (vasnprintf.c): sync lost.
109621 2006-01-25  Jim Meyering  <jim@meyering.net>
109623         Sync from the stable (b5) branch of coreutils:
109625         * lib/fts.c (fts_children): Don't let close() clobber errno from
109626         failed fchdir().
109628         * lib/fts.c (fts_stat): When following a symlink-to-directory,
109629         don't necessarily interpret stat-fails+lstat-succeeds as indicating
109630         a dangling symlink.  That can also happen at least for ELOOP.
109631         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
109632         FYI, this bug predates the inclusion of fts.c in coreutils.
109634         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
109635         in their own block, so pre-c99 compilers don't object.
109637         Avoid the double-free (first in fts_read, second in fts_close) that
109638         would occur when an `active' directory is made inaccessible (e.g.,
109639         via chmod a-x) during a traversal.
109640         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
109641         before returning.  Reproduce this failure by
109642         mkdir -p a/b; cd a; chmod a-x . b
109643         Reported by Stavros Passas.
109645 2006-01-25  Jim Meyering  <jim@meyering.net>
109647         * lib/fileblocks.c: Remove more useless parentheses.
109648         * lib/readutmp.h: Likewise.
109650 2006-01-25  Bruno Haible  <bruno@clisp.org>
109652         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
109653         warnings.
109654         Reported by Paul Eggert.
109656 2006-01-25  Bruno Haible  <bruno@clisp.org>
109658         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
109659         rid of a trap command. For Solaris sh.
109660         Reported by Mark D. Baushke <mdb@gnu.org>.
109662 2006-01-24  Simon Josefsson  <jas@extundo.com>
109664         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
109665         Bruno.
109667 2006-01-24  Karl Berry  <karl@gnu.org>
109669         * config/srclist.txt (argp-namefrob.h): sync lost.
109671 2006-01-24  Jim Meyering  <jim@meyering.net>
109673         * modules/openat (Files): Add lib/intprops.h.
109674         From Mark D. Baushke.
109676 2006-01-24  Jim Meyering  <jim@meyering.net>
109678         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
109679         Reported by Mark D. Baushke.
109681 2006-01-24  Jim Meyering  <jim@meyering.net>
109683         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
109685 2006-01-24  Bruno Haible  <bruno@clisp.org>
109687         * modules/strnlen (Maintainer): Change from glibc to all.
109689 2006-01-24  Bruno Haible  <bruno@clisp.org>
109691         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
109692         Patch by Paul Eggert.
109694 2006-01-24  Bruno Haible  <bruno@clisp.org>
109696         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
109697         already has it.
109698         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
109699         2005-11-26.
109701         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
109702         'signed char' to avoid problems with the built-in _Bool type.
109703         Reported by Paul Eggert on 2005-11-26.
109705 2006-01-24  Bruno Haible  <bruno@clisp.org>
109707         * gnulib-tool (func_import): Avoid constructing complicated sed
109708         expressions inside backquote.
109709         Report and solution by Mark D. Baushke <mdb@gnu.org>.
109711 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
109713         These changes imported from libc.
109714         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
109715         test and two separate function calls.
109716         * lib/strndup.c (__strndup): Add libc_hidden_def.
109718 2006-01-23  Simon Josefsson  <jas@extundo.com>
109720         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
109721         Remove the test_*_SOURCES variable: automake infers it by default.
109722         * modules/tls-tests: Likewise.
109724 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
109726         Work around porting bugs reported by Dieter in
109727         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
109728         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
109729         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
109730         Include "getopt.h" first, to check interface.
109731         (getenv): Declare only if defined HAVE_DECL_GETENV &&
109732         !HAVE_DECL_GETENV.
109733         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
109734         (__strndup): Revert to K&R-style function dfns, the glibc style.
109735         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
109736         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
109737         Include strnlen.h first, to get prototype properly.
109738         (strnlen): Renamed from __strnlen.
109739         Remove weak alias.
109741 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
109743         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
109745 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
109747         * config/srclist.txt: Adjust to reflect glibc reorganization.
109748         This affects only comments.
109750 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
109752          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
109753          Reported by Bruce Korb <bkorb@gnu.org>.
109755 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
109757         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
109758         to pacify gcc -Wswitch-default.
109760 2006-01-22  Bruno Haible  <bruno@clisp.org>
109762         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
109763         temporary buffer for sprintf, take into account the precision also
109764         for 'd', 'i', 'u', 'o', 'x', 'X'.
109766 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
109768         * modules/argp-tests: New module
109769         * tests/test-argp.c: New file
109770         * tests/test-argp-2.sh: New file
109772 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
109774         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
109775         (__argp_base_name): Removed
109776         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
109777         typo.
109778         (__argp_base_name): Provide macro definition or extern declaration
109779         depending on the configuration
109781 2006-01-20  Simon Josefsson  <jas@extundo.com>
109783         * modules/inet_ntop (Depends-on): Depend on sys_socket.
109785 2006-01-20  Simon Josefsson  <jas@extundo.com>
109787         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
109789 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
109791         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
109792         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
109793         Suggested by Bruno Haible.
109795 2006-01-20  Karl Berry  <karl@gnu.org>
109797         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
109798         until changes propagate, I guess.
109800 2006-01-19  Simon Josefsson  <jas@extundo.com>
109802         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
109804 2006-01-19  Simon Josefsson  <jas@extundo.com>
109806         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
109808 2006-01-19  Simon Josefsson  <jas@extundo.com>
109810         * gnulib-tool: Set check_PROGRAMS.
109812         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
109813         modules/des-tests, modules/gc-arcfour-tests,
109814         modules/gc-arctwo-tests, modules/gc-des-tests,
109815         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
109816         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
109817         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
109818         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
109819         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
109820         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
109821         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
109822         test_*_SOURCES.
109824 2006-01-18  Simon Josefsson  <jas@extundo.com>
109826         * modules/socklen (Depends-on): Depend on sys_socket.
109828 2006-01-18  Simon Josefsson  <jas@extundo.com>
109830         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
109831         modules/des-tests, modules/gc-arcfour-tests,
109832         modules/gc-arctwo-tests, modules/gc-des-tests,
109833         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
109834         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
109835         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
109836         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
109837         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
109838         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
109839         $(EXEEXT) to automake TESTS variable, for mingw32.
109841 2006-01-17  Simon Josefsson  <jas@extundo.com>
109843         * modules/socklen (Include): Need sys/socket.h.
109845 2006-01-17  Bruno Haible  <bruno@clisp.org>
109847         * modules/ssize_t (Include): Add <sys/types.h>.
109849 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
109851         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
109852         it's not portable and it doesn't work with cross-compiles.
109853         Problem reported by Bruno Haible.  Fix missing-$ typo in
109854         'test "gl_cv_ignore_unused_libraries" ...' that prevented
109855         -zignore from being used with Sun's C compiler.
109857 2006-01-12  Simon Josefsson  <jas@extundo.com>
109859         * lib/base64.c: Fix warning, reported by Bruno Haible
109860         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
109862 2006-01-12  Bruno Haible  <bruno@clisp.org>
109864         * modules/ldd: New file.
109865         * build-aux/ldd.sh.in: New file.
109866         * MODULES.html.sh (Support for building libraries and executables): Add
109867         ldd.
109869 2006-01-12  Bruno Haible  <bruno@clisp.org>
109871         * m4/ldd.m4: New file.
109873 2006-01-12  Bruno Haible  <bruno@clisp.org>
109875         * gnulib-tool (func_import, func_create_testdir): Don't go into an
109876         endless loop while replacing $auxdir with build-aux.
109878 2006-01-11  Simon Josefsson  <jas@extundo.com>
109880         * lib/stdint_.h (SIZE_MAX): Add missing (.
109882 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
109884         Sync from coreutils.
109885         * lib/md5.c: Fix commentary typos.
109886         (alignof, UNALIGNED_P): No need for a GCC-specific version.
109887         * lib/md5.h (__attribute__): Remove; unused.
109888         * lib/sha1.c: Fix commentary to match md5 better.
109889         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
109890         so that we don't need to worry about alignment.  All uses changed.
109891         This merges the 2005-10-28 md5 change into sha1.
109893 2006-01-11  Jim Meyering  <jim@meyering.net>
109895         Sync from coreutils.
109896         * lib/md5.c (OP): Fix spacing.
109898 2006-01-11  Bruno Haible  <bruno@clisp.org>
109900         Ensure automatic ordering between gl_LOCK and gl_ARGP.
109901         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
109902         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
109904 2006-01-11  Bruno Haible  <bruno@clisp.org>
109906         Ensure automatic ordering between gl_LOCK and gl_ARGP.
109907         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
109908         the "early" section as well.
109910 2006-01-11  Bruno Haible  <bruno@clisp.org>
109912         Avoid "ar: no archive members specified" error on MacOS X.
109913         * gnulib-tool (func_modules_add_dummy): New function.
109914         (func_import, func_create_testdir): Invoke it.
109916 2006-01-11  Bruno Haible  <bruno@clisp.org>
109918         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
109919         with $auxdir in AC_CONFIG_FILES statements.
109921 2006-01-11  Bruno Haible  <bruno@clisp.org>
109923         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
109924         Initialize also noinst_HEADERS to empty.
109926 2006-01-11  Bruno Haible  <bruno@clisp.org>
109928         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
109929         variables.
109930         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
109931         autoreconf.
109933 2006-01-11  Bruno Haible  <bruno@clisp.org>
109935         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
109936         overridable by the user.
109937         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
109939 2006-01-10  Simon Josefsson  <jas@extundo.com>
109941         * modules/sys_socket: New file.
109943 2006-01-10  Simon Josefsson  <jas@extundo.com>
109945         * m4/sys_socket_h.m4: New file.
109947 2006-01-10  Simon Josefsson  <jas@extundo.com>
109949         * lib/socket_.h: New file.
109951 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
109953         * modules/readutmp (Maintainer): Add myself.
109955 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
109957         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
109958         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
109959         People who are still concerned with buggy memcmp implementations
109960         can invoke gl_FUNC_MEMCMP themselves.
109962 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
109964         * lib/regex_internal.h (BITSET_WORD_BITS):
109965         Work around a bug in 64-bit PGC (before version 6.1-2), where the
109966         preprocessor mishandles large unsigned values as if they were signed.
109967         Problem reported by Claudio Fontana in
109968         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
109970 2006-01-10  Jim Meyering  <jim@meyering.net>
109972         Avoid the double-free (first in fts_read, second in fts_close) that
109973         would occur when an `active' directory is made inaccessible (e.g.,
109974         via chmod a-x) during a traversal.
109975         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
109976         before returning.  Reproduce this failure by
109977         mkdir -p a/b; cd a; chmod a-x . b
109978         Reported by Stavros Passas.
109980         Sync from coreutils.
109981         * lib/sha1.c: Tweak grammar in a comment.
109983 2006-01-10  Jim Meyering  <jim@meyering.net>
109985         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
109986         Patch by Joerg Sonnenberger.
109988 2006-01-10  Bruno Haible  <bruno@clisp.org>
109990         * modules/readutmp: Depend on module free.
109991         * modules/strtok_r: Depend on module restrict.
109993 2006-01-10  Bruno Haible  <bruno@clisp.org>
109995         * modules/gettext (configure.ac): Add an invocation of
109996         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
109998 2006-01-10  Bruno Haible  <bruno@clisp.org>
110000         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
110001         Reported by Werner Lemberg <wl@gnu.org>.
110003 2006-01-10  Bruno Haible  <bruno@clisp.org>
110005         * lib/localcharset.c: Update from GNU gettext.
110007 2006-01-10  Bruno Haible  <bruno@clisp.org>
110009         * lib/argp.h (__const): Remove macro. Use const instead.
110010         * lib/argp-fmtstream.h (__const): Likewise.
110011         * lib/glob_.h (__const): Remove macro.
110012         * lib/glob-libc.h: Use const instead of __const.
110014 2006-01-10  Bruno Haible  <bruno@clisp.org>
110016         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
110017         variable.
110018         Needed to avoid an automake error regarding the 'gettext' module.
110020 2006-01-09  Simon Josefsson  <jas@extundo.com>
110022         * modules/inet_ntop (Depends-on): Add restrict.
110024 2006-01-09  Simon Josefsson  <jas@extundo.com>
110026         * modules/gc-rijndael-tests (License): Put under LGPL.
110028         * modules/gc-des-tests (License): Likewise.
110030         * modules/gc-arcfour-tests (License): Likewise.
110032         * modules/gc-arctwo-tests (License): Likewise.
110034         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
110036         * modules/gc-hmac-sha1-tests (Files): Likewise.
110038         * modules/gc-hmac-md5-tests (License): Likewise.
110040         * modules/gc-sha1-tests (License): Likewise.
110042         * modules/gc-md5-tests (License): Likewise.
110044         * modules/gc-md4-tests (License): Likewise.
110046         * modules/gc-md2-tests (License): Likewise.
110048         * modules/gc-tests (License): Likewise.
110050         * modules/des-tests (License): Likewise.
110052         * modules/md4-tests (License): Likewise.
110054         * modules/md2-tests (License): Likewise.
110056 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
110058         Sync from coreutils:
110060         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
110061         * modules/lib-ignore: New file.
110062         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
110063         chdir-safer.m4, lchmod.m4.
110064         * modules/openat: Add mkdirat.c, openat-priv.h.
110066 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
110068         Sync from coreutils.
110069         * m4/lib-ignore.m4: New file.
110070         * m4/lchmod.m4: New file.
110072 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
110074         Sync from coreutils.
110075         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
110076         for write access: POSIX says that must fail.
110077         * lib/fts.c (diropen): Likewise.
110078         * lib/save-cwd.c (save_cwd): Likewise.
110079         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
110080         well, for minor improvements on hosts that lack O_DIRECTORY.
110081         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
110082         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
110083         Fall back on chown if open failed with EACCES.
110085         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
110086         Report an error at compile-time if only a 1-second nominal clock
110087         resolution is found.
110089         * lib/lchmod.h: New file.
110090         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
110091         (make_dir_parents): Use lchown rather than chown, and
110092         lchmod rather than chmod.
110094         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
110095         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
110096         "proc" reported by n0dalus.
110098         * lib/mountlist.c: Include <limits.h>.
110099         (dev_from_mount_options)
110100         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
110101         New function.  It no longer assumes "dev=" has the System V meaning
110102         on Linux (since it doesn't).  It also parses "dev=" more carefully.
110103         (read_file_system_list)
110104         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
110105         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
110106         dev= in that case.
110108         * lib/posixtm.h (PDS_PRE_2000): New macro.
110109         * lib/posixtm.c (year): Arg is now syntax_bits rather than
110110         allow_century.  All usages changed.  Reject dates outside the range
110111         1969-1999 if PDS_PRE_2000 is used.
110113 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
110115         Sync from coreutils.
110116         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
110117         (Time of day items): Mention the possibility of leap seconds.
110118         Problem reported by Dr. David Alan Gilbert.
110120 2006-01-09  Jim Meyering  <jim@meyering.net>
110122         Sync from coreutils.
110124         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
110126         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
110128         * lib/modechange.c (mode_compile): Reject an invalid mode string
110129         that starts with an octal digit.  From Andreas Gruenbacher.
110131         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
110132         and dup to open_safer and dup_safer, respectively.
110133         (openat_permissive): Fix typo in comment.
110135         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
110136         "gettext.h"; either no longer needed or are guaranteed by openat.h.
110137         (_): Remove; no longer needed.
110138         (openat): Renamed from rpl_openat; no need for rpl_openat
110139         since openat.h renames openat for us.
110140         Replace most of the body with a call to openat_permissive,
110141         to avoid duplicate code.
110142         Port to (probably hypothetical) environments were mode_t is
110143         wider than int.
110144         (openat_permissive): Require mode arg, so that we can check
110145         types better.  Put it just after flags.  Change cwd failure
110146         indicator from pointer-to-bool to pointer-to-errno-value.
110147         All callers changed.
110148         Invoke openat_save_fail and/or openat_restore_fail if
110149         cwd_errno is null, so that openat can call us.
110150         (openat_permissive, fdopendir, fstatat, unlinkat):
110151         Simplify errno handling to avoid some duplicate code,
110152         as it's OK to set errno on success.
110153         * lib/openat.h: Revamp code so that function macros depend on
110154         __OPENAT_PREFIX only, not also on AT_FDCWD.
110155         (openat_ro): Remove.  Caller changed to use openat_permissive.
110156         (openat_permissive): Now a macro, if not a function.
110157         (openat_restore_fail, openat_save_fail): Now always functions,
110158         since mkdirat needs them even if __OPENAT_PREFIX is defined.
110160         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
110161         and openat.c.
110162         * lib/mkdirat.c: Include openat-priv.h.
110163         Remove definitions of macros defined therein.
110164         * lib/openat.c: Likewise.
110166         * lib/mkdirat.c (mkdirat): New file and function.
110167         * lib/openat.h (mkdirat): Declare.
110169         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
110171         * lib/openat.h (openat_permissive): Declare.
110172         (openat_ro): Define.
110174         * lib/openat.c (EXPECTED_ERRNO): New macro.
110175         (openat_permissive): New function -- used in remove.c rewrite.
110176         (all functions): Set errno just before returning, only if there
110177         was an actual failure.
110178         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
110180         Emulate openat-family functions using Linux's procfs, if possible.
110181         Idea and some code based on Ulrich Drepper's glibc changes.
110183         * lib/openat.c: (BUILD_PROC_NAME): New macro.
110184         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
110185         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
110186         before falling back on save_cwd and restore_cwd.
110187         (fdopendir, fstatat, unlinkat): Likewise.
110189         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
110190         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
110192         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
110193         as second argument to va_arg.  Otherwise, some versions of gcc
110194         warn that `if this code is reached, the program will abort'.
110196 2006-01-09  Jim Meyering  <jim@meyering.net>
110198         Sync from coreutils.
110199         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
110200         Require openat-priv.h.
110202 2006-01-09  Bruno Haible  <bruno@clisp.org>
110204         * modules/strnlen (Include): Use strnlen.h.
110206 2006-01-09  Bruno Haible  <bruno@clisp.org>
110208         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
110210 2006-01-09  Bruno Haible  <bruno@clisp.org>
110212         * lib/sysexit_.h (EX_OK): New macro.
110213         Suggested by Martin Lambers <marlam@marlam.de>.
110215 2006-01-09  Bruno Haible  <bruno@clisp.org>
110217         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
110218         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
110220 2006-01-09  Bruno Haible  <bruno@clisp.org>
110222         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
110223         numbers.
110225 2006-01-09  Bruno Haible  <bruno@clisp.org>
110227         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
110228         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
110229         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
110230         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
110232 2006-01-09  Bruno Haible  <bruno@clisp.org>
110234         * build-aux/javacomp.sh.in: New file, moved from lib/.
110235         * modules/javacomp-script (Files): Update.
110236         (configure.ac): Add AC_CONFIG_FILES invocation.
110237         (EXTRA_DIST): Remove variable.
110239         * build-aux/javaexec.sh.in: New file, moved from lib/.
110240         * modules/javaexec (Files): Update.
110241         (configure.ac): Add AC_CONFIG_FILES invocation.
110242         (EXTRA_DIST): Remove javaexec.sh.in.
110244         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
110245         * modules/csharpcomp-script (Files): Update.
110246         (configure.ac): Add AC_CONFIG_FILES invocation.
110247         (EXTRA_DIST): Remove variable.
110249         * build-aux/csharpexec.sh.in: New file, moved from lib/.
110250         * modules/csharpexec (Files): Update.
110251         (configure.ac): Add AC_CONFIG_FILES invocation.
110252         (EXTRA_DIST): Remove csharpexec.sh.in.
110254 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
110256         Sync from coreutils.
110258         Add POSIX ACL support
110259         * lib/acl.h (copy_acl, set_acl): Add declarations.
110260         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
110261         systems other than Linux.
110262         (chmod_or_fchmod): New function: use fchmod when possible,
110263         and chmod otherwise.
110264         (file_has_acl): Add a POSIX ACL implementation, with a
110265         Linux-specific subcase.
110266         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
110267         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
110268         acls are unsupported.
110269         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
110270         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
110271         are unsupported.
110273 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
110275         Sync from coreutils.
110276         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
110278 2006-01-07  Bruno Haible  <bruno@clisp.org>
110280         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
110281         gl_EARLY.
110283 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
110285         * lib/strftime.c (tzname): Don't declare if it is already #defined.
110286         Problem reported for Mingw by Mark Junker.
110288 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
110290         * README: Gnulib normally doesn't generate a tarball.
110292 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
110294         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
110295         long int, not int, for nanosecond counts, so that people who are
110296         used to POSIX struct timespec won't be surprised.  Reported by Jim
110297         Meyering.
110299 2005-12-28  Bruno Haible  <bruno@clisp.org>
110301         * build-aux/config.rpath: Update from GNU gettext.
110303 2005-12-16  Jim Meyering  <jim@meyering.net>
110305         * modules/fprintftime: New module.
110306         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
110308 2005-12-16  Jim Meyering  <jim@meyering.net>
110310         * m4/fprintftime.m4: New file.
110312 2005-12-16  Jim Meyering  <jim@meyering.net>
110314         * lib/fprintftime.c, lib/fprintftime.h: New files.
110316 2005-12-15  Simon Josefsson  <jas@extundo.com>
110318         * modules/socklen (configure.ac): Fix M4 macro name, to align with
110319         new m4/socklen.m4.
110321 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
110323         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
110324         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
110326 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
110328         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
110329         * lib/argp-help.c (fill_in_uparams): Check if the constructed
110330         struct uparams is valid. Fall back to the default values if it is
110331         not.
110333 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
110335         * modules/argp (Files): Add argp-pin.c
110336         (Depends-on): dirname
110337         (lib_SOURCES): Add argp-pin.c
110339 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
110341         * m4/argp.m4:  Check if program_invocation_name and
110342         program_invocation_short_name are declared and define appropriate
110343         macros if they are not.
110345 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
110347         * lib/argp-help.c (__argp_base_name): New function
110348         (__argp_short_program_name): Rewrite using __argp_base_name
110349         * lib/argp-namefrob.h: Define program_invocation_name and
110350         program_invocation_short_name if requested
110351         (__argp_base_name): Add prototype
110352         * lib/argp-parse.c (argp_def): Use gettext wrappers
110353         (argp_default_parser): Use __argp_base_name
110354         * lib/argp-pin.c: New file. Defines program_invocation_name and
110355         program_invocation_short_name on systems that lack them.
110357 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
110359         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
110360         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
110361         porting problem reported by Georg Schwarz in
110362         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
110364 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
110366         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
110367         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
110368         porting problem reported by Georg Schwarz in
110369         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
110371 2005-12-05  Bruno Haible  <bruno@clisp.org>
110373         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
110374         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
110375         Reported by Mark Junker <mjscod@gmx.de>.
110377 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
110379         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
110380         Use implementation from Albert Chin, with some
110381         comments/corrections by Stepan Kasal and myself.
110383 2005-12-02  Bruno Haible  <bruno@clisp.org>
110385         * gnulib-tool (func_import): Accept GPLed build tool modules when
110386         --lgpl is given.
110387         * modules/csharpcomp-script: New file.
110388         * modules/csharpcomp: Depend on it.
110389         * modules/javacomp-script: New file.
110390         * modules/javacomp: Depend on it.
110391         Suggested by Simon Josefsson.
110393 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
110395         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
110396         statement, to work around an HP-UX 10.20 compiler bug reported by
110397         Peter O'Gorman.
110399 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
110401         * modules/savedir (Depends-on): Add openat.
110403 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
110405         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
110406         (uintmax_t) [defined uintmax_t]: Do not declare.
110407         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
110408         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
110409         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
110410         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
110411         sake of portability to weird hosts that C allows (though we don't
110412         know of any practical examples).
110414         * lib/savedir.h (fdsavedir): New decl.
110415         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
110416         contains most of the former guts of savedir.
110417         (savedir): Use savedirstream.
110418         Include "openat.h".
110420 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
110422         * modules/obstack (Files): Add m4/ulonglong.m4.
110423         Problem reported by Davide Angelocola.
110425 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
110427         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
110428         coreutils no longer futzes with rounding modes.
110430 2005-11-14  Jim Meyering  <jim@meyering.net>
110432         * lib/mkstemp-safer.c: Include <config.h>, required for possible
110433         replacement of mkstemp.
110435 2005-11-10  Simon Josefsson  <jas@extundo.com>
110437         * lib/readline.c: Remove EOL.
110439 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
110441         * modules/gethrxtime (Depends-on): Add gettime.
110443 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
110445         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
110446         or gettimeofday; no longer needed.
110448 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
110450         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
110451         time business.
110452         (gethrxtime) [! (HAVE_NANOUPTIME
110453         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
110454         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
110455         our own approximation.
110457 2005-11-08  Eric Blake  <ebb9@byu.net>
110459         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
110461 2005-11-08  Eric Blake  <ebb9@byu.net>
110463         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
110465 2005-11-04  Bruno Haible  <bruno@clisp.org>
110467         * gnulib-tool: Implement --update mode.
110469 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
110471         Fix porting problem reported by Theodoros V. Kalamatianos.
110472         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
110473         Don't assume that futimes failing means we must fail.
110475 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
110477         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
110478         variables to suggest the intended function of the PATH_MAX check.
110480 2005-10-30  Kean Johnston  <jkj@sco.com>
110482         Trivial changes to support SCO systems.
110483         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
110484         as PATH_MAX.
110485         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
110486         where __ptr is null when no I/O is pending.
110488 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
110490         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
110491         leave errno alone.  Problem reported by Dmitry V. Levin.
110493 2005-10-28  Simon Josefsson  <jas@extundo.com>
110495         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
110496         Test more.
110498         * tests/test-gc-md2.c, tests/test-md2.c: New files.
110500         * modules/md2, modules/md2-tests: New files.
110502 2005-10-28  Simon Josefsson  <jas@extundo.com>
110504         * m4/inet_ntop.m4: More tests.
110506         * m4/gc-md2.m4, md2.m4: New file.
110508 2005-10-28  Simon Josefsson  <jas@extundo.com>
110510         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
110511         "restrict" keywords, as per POSIX.  Protect the function
110512         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
110513         Don't use K&R prototypes.  Check the sprintf return values.
110514         Re-define EAFNOSUPPORT if not present.  Indent.
110516         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
110517         suggested by Bruno Haible <bruno@clisp.org>.
110519         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
110521         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
110523         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
110524         libgcrypt).
110526         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
110528         * lib/md2.h, lib/md2.c: New files.
110530 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
110532         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
110533         errno alone.  Problem reported by Frederic Jolliton.
110535 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
110537         * modules/verify (License): Change from GPL to LGPL.  This is a
110538         tiny module and there are apparently near-equivalents that are
110539         under the BSD license.
110541 2005-10-24  Simon Josefsson  <jas@extundo.com>
110543         * modules/sha1: Relicense to LGPL.
110545 2005-10-24  Simon Josefsson  <jas@extundo.com>
110547         * lib/md4.h: Shrink buffer size, now that we changed the type.
110549 2005-10-23  Simon Josefsson  <jas@extundo.com>
110551         * gnulib-tool (func_import): Fix --tests-base.
110553 2005-10-22  Simon Josefsson  <jas@extundo.com>
110555         * modules/arcfour (Depends-on): Need stdint.
110557 2005-10-22  Simon Josefsson  <jas@extundo.com>
110559         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
110560         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
110562 2005-10-22  Simon Josefsson  <jas@extundo.com>
110564         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
110565         suggested by Bruno Haible <bruno@clisp.org>.
110567 2005-10-22  Simon Josefsson  <jas@extundo.com>
110569         * lib/crc.h: Include stddef.h, for size_t.
110571 2005-10-22  Simon Josefsson  <jas@extundo.com>
110573         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
110574         arcfour_context struct (simplify test vector testing in GNU
110575         Shishi).
110577 2005-10-21  Simon Josefsson  <jas@extundo.com>
110579         * modules/des, modules/des-tests: New files.
110581         * modules/gc-des, modules/gc-des-tests: New files.
110583         * tests/test-des.c, tests/test-gc-des.c: New file.
110585 2005-10-21  Simon Josefsson  <jas@extundo.com>
110587         * modules/arctwo, modules/arctwo-tests: New files.
110589         * tests/test-arctwo.c: New file.
110591         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
110593         * tests/test-gc-arctwo.c: New file.
110595 2005-10-21  Simon Josefsson  <jas@extundo.com>
110597         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
110598         Bruno Haible <bruno@clisp.org>.
110600         * m4/gc-des.m4: New file.
110602 2005-10-21  Simon Josefsson  <jas@extundo.com>
110604         * m4/arctwo.m4: New file.
110606         * m4/gc-arctwo.m4: New file.
110608 2005-10-21  Simon Josefsson  <jas@extundo.com>
110610         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
110611         block.
110613 2005-10-21  Simon Josefsson  <jas@extundo.com>
110615         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
110616         <bruno@clisp.org>.
110618         * lib/hmac-sha1.c (hmac_sha1): Likewise.
110620         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
110621         Bruno Haible <bruno@clisp.org>.
110623         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
110624         <bruno@clisp.org>.
110626 2005-10-21  Simon Josefsson  <jas@extundo.com>
110628         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
110630 2005-10-21  Simon Josefsson  <jas@extundo.com>
110632         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
110634 2005-10-21  Simon Josefsson  <jas@extundo.com>
110636         * lib/des.h, lib/des.c: New files.
110638         * lib/gc-gnulib.c: Support DES.c
110640 2005-10-21  Simon Josefsson  <jas@extundo.com>
110642         * lib/arctwo.h, lib/arctwo.c: New files.
110644         * lib/gc-gnulib.c: Support ARCTWO.
110646 2005-10-21  Simon Josefsson  <jas@extundo.com>
110648         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
110649         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
110651 2005-10-21  Simon Josefsson  <jas@extundo.com>
110653         * gnulib-tool (func_import, func_create_testdir): Define automake
110654         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
110655         Makefile.am snippet),
110656         suggested by Bruno Haible <bruno@clisp.org>.
110658         * modules/gc (Makefile.am): Use it.
110660 2005-10-21  Bruno Haible  <bruno@clisp.org>
110662         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
110663         patch.
110665 2005-10-19  Simon Josefsson  <jas@extundo.com>
110667         * tests/test-gc-rijndael.c: New file.
110669         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
110671 2005-10-19  Simon Josefsson  <jas@extundo.com>
110673         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
110674         interface too.
110676 2005-10-19  Simon Josefsson  <jas@extundo.com>
110678         * tests/test-gc-arcfour.c: New file.
110680         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
110682 2005-10-19  Simon Josefsson  <jas@extundo.com>
110684         * modules/gc-md4, modules/gc-md4-tests: New file.
110686         * tests/test-gc-md4.c: New file.
110688 2005-10-19  Simon Josefsson  <jas@extundo.com>
110690         * m4/gc-md4.m4: New file.
110692 2005-10-19  Simon Josefsson  <jas@extundo.com>
110694         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
110695         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
110696         <kasal@ucw.cz>.
110698 2005-10-19  Simon Josefsson  <jas@extundo.com>
110700         * m4/gc-arcfour.m4: New file.
110702         * m4/gc-rijndael.m4: New file.
110704 2005-10-19  Simon Josefsson  <jas@extundo.com>
110706         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
110708 2005-10-19  Simon Josefsson  <jas@extundo.com>
110710         * lib/gc-gnulib.c: Support ARCFOUR.
110712 2005-10-19  Simon Josefsson  <jas@extundo.com>
110714         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
110715         support.
110717         * lib/gc.h: Add ECB enum type.
110719         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
110721 2005-10-18  Simon Josefsson  <jas@extundo.com>
110723         * tests/test-md5.c: New file.
110725         * modules/md5-tests: New file.
110727 2005-10-18  Simon Josefsson  <jas@extundo.com>
110729         * tests/test-md4.c: New file.
110731         * modules/md4, modules/md4-tests: New files.
110733 2005-10-18  Simon Josefsson  <jas@extundo.com>
110735         * m4/md4.m4: New file.
110737 2005-10-18  Simon Josefsson  <jas@extundo.com>
110739         * lib/md4.h, lib/md4.c: New files, based on md5.?.
110741 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
110743         * gnulib-tool (func_create_testdir): Omit the second check whether
110744         BUILT_SOURCES in nonempty.
110746 2005-10-17  Simon Josefsson  <jas@extundo.com>
110748         * tests/test-rijndael.c: New file.
110750 2005-10-17  Simon Josefsson  <jas@extundo.com>
110752         * modules/sha1: Depend on stdint instead of md5.
110754         * modules/md5: Depend on stdint, remove uint32_t.
110756 2005-10-17  Simon Josefsson  <jas@extundo.com>
110758         * modules/gc-sha1-tests: New file.
110760         * tests/test-gc-sha1.c: New file.
110762 2005-10-17  Simon Josefsson  <jas@extundo.com>
110764         * m4/md5.m4: Remove call to uint32_t.m4.
110766 2005-10-17  Simon Josefsson  <jas@extundo.com>
110768         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
110770         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
110771         md5.h.
110773         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
110775         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
110777 2005-10-17  Simon Josefsson  <jas@extundo.com>
110779         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
110781 2005-10-17  Simon Josefsson  <jas@extundo.com>
110783         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
110785 2005-10-17  Simon Josefsson  <jas@extundo.com>
110787         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
110789         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
110791 2005-10-17  Bruno Haible  <bruno@clisp.org>
110793         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
110794         that it can also be used in a test.
110796 2005-10-16  Bruno Haible  <bruno@clisp.org>
110798         * gnulib-tool (func_emit_tests_Makefile_am): Also define
110799         TESTS_ENVIRONMENT, so that individual tests can augment it.
110801         * gnulib-tool (func_create_testdir): Use an intermediate target for
110802         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
110803         macros, like $(ALLOCA_H), which cannot be passed through the command
110804         line.
110806 2005-10-15  Simon Josefsson  <jas@extundo.com>
110808         * modules/rijndael-tests: New file.
110810         * modules/rijndael: New file.
110812 2005-10-15  Simon Josefsson  <jas@extundo.com>
110814         * m4/rijndael.m4: New file.
110816 2005-10-15  Simon Josefsson  <jas@extundo.com>
110818         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
110820         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
110822 2005-10-14  Simon Josefsson  <jas@extundo.com>
110824         * tests/test-arcfour.c: New file.
110826         * modules/arcfour, modules/arcfour-tests: New files.
110828 2005-10-14  Simon Josefsson  <jas@extundo.com>
110830         * m4/arcfour.m4: New file.
110832 2005-10-14  Simon Josefsson  <jas@extundo.com>
110834         * lib/arcfour.h, lib/arcfour.c: New files.
110836 2005-10-14  Roland McGrath  <roland@redhat.com>
110838         Import from libc.  [BZ #1331]
110839         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
110840         macro argument.
110841         Reported by Matej Vela <vela@debian.org>.
110843 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
110845         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
110846         include <wchar.h>; no longer needed.
110848 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
110850         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
110852 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
110853         and  Ulrich Drepper  <drepper@redhat.com>
110855         Import from libc.
110856         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
110857         instead of inline stream orientation test and two separate
110858         function calls.  Pay no attention to USE_IN_LIBIO.
110860 2005-10-13  Simon Josefsson  <jas@extundo.com>
110862         * modules/gc-hmac-md5-tests: New file.
110864         * tests/test-gc-hmac-sha1.c: New file.
110866         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
110868         * modules/gc-hmac-md5-tests: New file.
110870         * tests/test-gc-md5.c: New file.
110872         * modules/gc-md5-tests: New file.
110874 2005-10-13  Simon Josefsson  <jas@extundo.com>
110876         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
110877         Move memory allocation outside of loop.
110879 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
110881         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
110882         intermediate directory is in a read-only file system.  Problem
110883         reported by Eric Blake.
110885 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
110887         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
110889 2005-10-12  Simon Josefsson  <jas@extundo.com>
110891         * tests/test-hmac-sha1.c: New file.
110893         * modules/hmac-sha1-tests: New file.
110895         * modules/hmac-sha1: New file.
110897 2005-10-12  Simon Josefsson  <jas@extundo.com>
110899         * modules/gc-sha1: New file.
110901 2005-10-12  Simon Josefsson  <jas@extundo.com>
110903         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
110905         * tests/test-gc-pbkdf2-sha1.c: New file.
110907 2005-10-12  Simon Josefsson  <jas@extundo.com>
110909         * modules/gc-md5, modules/gc-hmac-md5: New files.
110911         * modules/gc (Files): Remove md5, memxor and hmac files.
110913 2005-10-12  Simon Josefsson  <jas@extundo.com>
110915         * m4/gc-pbkdf2-sha1.m4: New file.
110917         * m4/gc-hmac-sha1.m4: New file.
110919         * m4/gc-sha1: New file.
110921         * m4/hmac-sha1.m4: New file.
110923 2005-10-12  Simon Josefsson  <jas@extundo.com>
110925         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
110927         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
110929 2005-10-12  Simon Josefsson  <jas@extundo.com>
110931         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
110932         suggested by Bruno Haible <bruno@clisp.org>.
110934 2005-10-12  Simon Josefsson  <jas@extundo.com>
110936         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
110938 2005-10-12  Simon Josefsson  <jas@extundo.com>
110940         * lib/gc-pbkdf2-sha1.c: New file.
110942         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
110944 2005-10-12  Simon Josefsson  <jas@extundo.com>
110946         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
110948         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
110950 2005-10-12  Simon Josefsson  <jas@extundo.com>
110952         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
110953         GC_USE_HMAC_MD5, respectively.
110955         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
110956         (gc_md5): Fix typo.
110958         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
110960         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
110962         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
110964 2005-10-12  Bruno Haible  <bruno@clisp.org>
110966         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
110967         Reported by Stepan Kasal <kasal@ucw.cz>.
110969 2005-10-11  Simon Josefsson  <jas@extundo.com>
110971         * tests/test-crc.c: New file.
110973         * modules/crc, modules/crc-tests: New files.
110975 2005-10-11  Simon Josefsson  <jas@extundo.com>
110977         * m4/crc.m4: New file.
110979 2005-10-11  Simon Josefsson  <jas@extundo.com>
110981         * lib/gc.h: Add gc_hash and gc_hash_buffer.
110983         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
110985         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
110987 2005-10-11  Simon Josefsson  <jas@extundo.com>
110989         * lib/crc.h, lib/crc.c: New files.
110991         * lib/gc.h (gc_hash_buffer): Add doc.
110993 2005-10-11  Bruno Haible  <bruno@clisp.org>
110995         * modules/c-strcasestr: New file.
110996         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
110998 2005-10-11  Bruno Haible  <bruno@clisp.org>
111000         * modules/c-strcase: New file.
111001         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
111003 2005-10-11  Bruno Haible  <bruno@clisp.org>
111005         * lib/strcasecmp.c: Include limits.h.
111006         (strcasecmp): Avoid integer overflow on exotic platforms.
111007         * lib/strncasecmp.c: Include limits.h.
111008         (strncasecmp): Avoid integer overflow on exotic platforms.
111009         Reported by Paul Eggert.
111011 2005-10-11  Bruno Haible  <bruno@clisp.org>
111013         * lib/c-strcasestr.h: New file, from GNU gettext.
111014         * lib/c-strcasestr.c: New file, from GNU gettext.
111016 2005-10-11  Bruno Haible  <bruno@clisp.org>
111018         * lib/c-strcase.h: New file, from GNU gettext.
111019         * lib/c-strcasecmp.c: New file, from GNU gettext.
111020         * lib/c-strncasecmp.c: New file, from GNU gettext.
111022 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
111024         * modules/mempcpy (License): GPL -> LGPL.
111025         * modules/strchrnul (License): Likewise.
111026         * modules/sysexits (License): Likewise.
111028 2005-10-08  Simon Josefsson  <jas@extundo.com>
111030         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
111032 2005-10-07  Simon Josefsson  <jas@extundo.com>
111034         * m4/memxor.m4: Remove gl_C_RESTRICT call.
111036 2005-10-06  Simon Josefsson  <jas@extundo.com>
111038         * tests/test-hmac-md5.c: New file.
111040         * modules/hmac-md5-tests: New file.
111042         * modules/hmac-md5: New file.
111044 2005-10-06  Simon Josefsson  <jas@extundo.com>
111046         * m4/hmac-md5.m4: New file.
111048         * m4/memxor.m4: Require gl_C_RESTRICT.
111050 2005-10-06  Simon Josefsson  <jas@extundo.com>
111052         * lib/memxor.c (memxor): Avoid casts and warnings.
111054 2005-10-06  Simon Josefsson  <jas@extundo.com>
111056         * lib/hmac-md5.c: New file.
111058         * lib/hmac.h: New file.
111060 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
111062         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
111063         promotes to int, not unsigned int, to catch the AIX 5.3
111064         compiler bug.
111066 2005-10-05  Simon Josefsson  <jas@extundo.com>
111068         * modules/memxor: New file.
111070         * modules/iconv (Files): Move config.rpath to havelib, it is used
111071         there.
111073         * modules/havelib (Files): Add config.rpath.
111075 2005-10-05  Simon Josefsson  <jas@extundo.com>
111077         * m4/memxor.m4: New file.
111079 2005-10-05  Simon Josefsson  <jas@extundo.com>
111081         * lib/memxor.c (memxor): Fix compiler error.
111083         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
111084         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
111086         * lib/memxor.h, lib/memxor.c: New files.
111088         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
111089         we assume all systems have it, suggested by Jim Meyering
111090         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
111091         any systems lack sys/socket.h; mingw32 is known to lack it, but we
111092         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
111093         same reasons.
111095 2005-10-05  Simon Josefsson  <jas@extundo.com>
111097         * config/srclist.txt: Add glibc bug 1423 for md5.h.
111099 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
111101         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
111102         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
111103         needed, since the source code now assumes these .h files.
111105 2005-10-05  Derek Price  <derek@ximbiot.com>
111107         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
111109 2005-10-05  Bruno Haible  <bruno@clisp.org>
111111         * modules/stdint (License): Change to LGPL.
111113 2005-10-04  Simon Josefsson  <jas@extundo.com>
111115         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
111116         D. Baushke" <mdb@gnu.org>.
111118 2005-10-04  Bruno Haible  <bruno@clisp.org>
111120         * lib/verify.h (verify_true): Provide alternative definition for C++.
111122 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
111124         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
111125         (SSIZE_MAX): New macro, if not already defined.
111126         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
111127         than 2 GiB.
111129 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
111131         Sync from coreutils.
111132         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
111133         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
111134         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
111135         ULLONG_MAX doesn't work with 2.7.2.1.
111137 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
111139         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
111140         From Ben Pfaff.
111142         * modules/exclude (Depends-on): Depend on verify.
111143         * modules/strtoimax (Depends-on): Likewise.
111144         * modules/utimecmp (Depends-on): Likewise.
111146 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
111148         * lib/exclude.c: Include verify.h.
111149         (verify): Remove.  All callers changed to use verify.h's version.
111150         * lib/strtoimax.c: Likewise.
111151         * lib/utimecmp.c: Likewis.e
111153         Sync from coreutils.
111154         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
111155         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
111156         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
111157         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
111158         bother returning ENOSYS if settimeofday or stime fails; just let
111159         them return whatever errno they want to return.
111160         * lib/utimens.c: Include unistd.h, for dup2.
111161         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
111162         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
111164 2005-10-02  Jim Meyering  <jim@meyering.net>
111166         Sync from coreutils.
111167         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
111168         from glibc-2.2.5 that fails for read-only files.
111170 2005-10-02  Jim Meyering  <jim@meyering.net>
111172         Sync from coreutils.
111173         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
111174         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
111175         `#if HAVE_CONFIG_H'.
111176         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
111177         Remove AT_FDCWD test.
111178         Do not consume the fd unless successful.
111179         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
111180         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
111181         block, so that we don't even try to compile it if settimeofday is
111182         available.  This works around a compilation failure on OSF1 V5.1,
111183         due to stime requiring a `long int*' while tv_sec is `int'.
111185 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
111187         Sync from coreutils.
111188         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
111189         against `yes', rather than just testing for nonempty.
111191 2005-10-01  Simon Josefsson  <jas@extundo.com>
111193         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
111194         and Darwin.
111196         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
111197         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
111198         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
111199         freeaddrinfo and gai_strerror are declared by the POSIX headers.
111200         Check if struct addrinfo is declared.
111202 2005-10-01  Simon Josefsson  <jas@extundo.com>
111204         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
111205         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
111206         AI_* and EAI_* definitions.  Protect function declarations.
111208 2005-10-01  Jim Meyering  <jim@meyering.net>
111210         Sync from coreutils.
111212         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
111213         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
111214         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
111215         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
111216         in the inet and nsl libraries.  Required on Solaris 5.7.
111218 2005-10-01  Jim Meyering  <jim@meyering.net>
111220         Sync from coreutils.
111221         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
111222         in the inet and nsl libraries.  Required on Solaris 5.7.
111224 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
111226         * lib/getdelim.c (getdelim): Remove unused variables.
111228 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
111230         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
111231         so that the code works even with ancient cpp.  Portability problem
111232         with GCC 2.7.2.1 reported by Thomas M.Ott.
111234 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
111236         * modules/regex (Depends-on): Add strcase.
111238         * modules/gethostname (Licence): Change from GPL to LGPL, since
111239         gethostname.c is a trivial implementation of a standard library
111240         function.
111241         * modules/poll (License): Change from GPL to LGPL, since it's
111242         derived from LGPL code.
111244 2005-09-27  Jim Meyering  <jim@meyering.net>
111246         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
111247         HAVE_CONFIG_H.
111249         * lib/intprops.h (signed_type_or_expr__): Define.
111250         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
111251         for unsigned types.
111253 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
111255         * lib/verify.h (verify_expr): Remove, replacing with:
111256         (verify_true): New macro that returns true instead of void.
111257         (verify_type__): Remove.
111258         (verify): Use verify_true rather than verify_type__.
111260 2005-09-26  Bruno Haible  <bruno@clisp.org>
111262         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
111263         is necessary.
111264         (lib_SOURCES): Remove mbchar.c.
111265         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
111266         (Files): Add m4/mbrtowc.m4.
111267         * modules/mbiter: Likewise.
111268         * modules/mbuiter: Likewise.
111270 2005-09-26  Bruno Haible  <bruno@clisp.org>
111272         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
111273         compile mbchar.c if they are not both present.
111274         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
111275         * m4/mbiter.m4 (gl_MBITER): Likewise.
111276         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
111277         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
111278         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
111280 2005-09-25  Jim Meyering  <jim@meyering.net>
111282         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
111283         also uses socklen_t.
111285 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
111287         * lib/utimens.c (ENOSYS): Define if not already defined.
111288         (futimens): Support having a null PATH if the file descriptor
111289         is nonnegative.
111291         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
111292         Remove.
111293         (__attribute): Define to empty unless GCC 3.1 or later.
111294         This works around a core dump on OpenBSD 3.4, which has GCC
111295         2.95.3, which dumps core when given __attribute__(()).  It also
111296         simplifies other tests, since we really don't want to bother with
111297         worrying about which ancient version of GCC supported what.
111298         Original problem reported by Yoann Vandoorselaere, with part of
111299         the fix suggested by Derek Price.
111301 2005-09-24  Jim Meyering  <jim@meyering.net>
111303         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
111304         so we can once again use a positive bitfield width of 1 -- now we
111305         don't have to explain why we were using a bitfield width of 2.
111307 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
111309         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
111310         and similarly for the other external symbols.  Problem reported
111311         by James Gallager.
111313         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
111314         bug reported by Jim Meyering.
111316         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
111317         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
111318         not needed, since socklen is a prerequisite module.
111320 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
111322         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
111323         Problem reported by Eric Blake.
111324         (getaddrinfo): Initialize se so that it's not garbage.
111325         Redo internal storage allocation so that it doesn't make unportable
111326         assumptions about alignment.
111327         Fix a memory leak.
111329         * lib/utimens.c (futimens): Use futimesat if available.
111330         Prefer it to futimes since it doesn't have the futimes bug.
111332         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
111333         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
111334         Instead, declare a function that returns a pointer to an array,
111335         and use verify_type__ to declare the size of the array.
111336         Problem and germ of a solution reported by Bruno Haible.
111337         (verify_type__): Use 2, not 1, for bitfield size, to avoid
111338         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
111340 2005-09-23  Jim Meyering  <jim@meyering.net>
111342         Sync from coreutils.
111343         Correct build failure (socklen_t not defined) on at least
111344         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
111345         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
111347 2005-09-23  Jim Meyering  <jim@meyering.net>
111349         * modules/getaddrinfo (Depends-on): Add socklen.
111351 2005-09-23  Bruno Haible  <bruno@clisp.org>
111353         * tests/test-verify.c: New file.
111355 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
111357         Sync from coreutils.
111359         * modules/argmatch (Depends-on): Add verify.
111360         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
111361         unistd-safer.
111362         * modules/save-cwd (Depends-on): Likewise.
111364         * modules/openat (Files): Add lib/openat-die.c.
111365         (Depends-on): Remove error, exitfail.
111366         Add dirname.
111368         * modules/verify: New file.
111369         * MODULES.html.sh (Diagnostics <assert.h>): New section,
111370         with "verify" module.
111372 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
111374         Sync from coreutils.
111376         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
111377         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
111378         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
111379         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
111380         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
111381         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
111382         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
111383         Don't bother checking for string.h, stdlib.h, unistd.h.
111384         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
111385         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
111386         module's job.
111387         * m4/jm-macros.m4 (gl_MACROS): Likewise.
111388         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
111390         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
111391         (gl_GETDATE): Use it.
111393         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
111395 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
111397         Sync from coreutils.
111399         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
111400         stat-time.h.
111401         * lib/argmatch.h: Include verify.h
111402         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
111403         (ARGMATCH_ASSERT): Remove; unused.
111404         * lib/canonicalize.c: Assume STDC_HEADERS.
111405         * lib/exclude.c: Include "strcase.h".
111406         * lib/regex_internal.h [!defined _LIBC]: Likewise.
111407         * lib/getusershell.c: Include stdio--.h rather than stdio.h
111408         and stdio-safer.h.
111409         (getusershell): Call fopen, not fopen_safer.
111410         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
111411         Do not include unistd-safer.h.
111412         (save_cwd): Don't call fd_safer; no longer needed
111413         now that we include fcntl--.h.
111415         * lib/getdate.y (relative_time): New type.
111416         (RELATIVE_TIME_0): New constant.
111417         (parser_control): Use relative_time instead of doing it ourselves.
111418         (%union): Add new relative_time rel member.
111419         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
111420         Now typeless.
111421         (relunit, relunit_snumber): Now of type rel.
111422         (zone, rel, relunit, get_date): Adjust to above changes.
111424         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
111425         Do not include unistd-safer.h.
111426         (getloadavg): Don't call fd_safer; no longer needed
111427         now that we include fcntl--.h.
111429         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
111430         (make_dir_parents): Treat ENOSYS like EEXIST.
111432         Improve quality of diagnostics on restore_cwd failure.
111433         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
111434         (make_dir_parents): Last arg is now int * (for errno), not bool *.
111435         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
111436         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
111437         each time through the loop.  Do not diagnose restore_cwd failure;
111438         that is the caller's job (and perhaps the caller does not care).
111440         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
111441         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
111442         If the file already exists but is not a directory, don't bother
111443         to try to make its parents.
111444         Close potential file descriptor leak if we can't chdir("/") (!).
111445         Don't always return true if chdir($PWD) fails; return true only
111446         if the requested action was done successfully (except for the
111447         chdir($PWD)).
111448         Don't log final directory unless we actually made it.
111449         Refactor to avoid duplicate code to fix up permissions.
111450         Don't attempt to fix up parent permissions if chdir($PWD) fails.
111452         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
111453         to make it a bit faster and (I hope) clearer.
111454         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
111455         Fix bug in formats like %2N.
111457         * lib/verify.h: New file.
111459 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
111461         Sync from coreutils.
111462         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
111464 2005-09-22  Jim Meyering  <jim@meyering.net>
111466         Sync from coreutils.
111468         * m4/lstat.m4 (gl_FUNC_LSTAT):
111469         Use AC_LIBSOURCES to require lstat.c and lstat.h.
111470         Remove obsolete comment.
111471         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
111472         * m4/xstrtod.m4: Likewise.
111474         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
111476 2005-09-22  Jim Meyering  <jim@meyering.net>
111478         Sync from coreutils.
111480         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
111482         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
111483         the .tm_year member, since otherwise gcc-4.0 would now warn about
111484         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
111486         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
111487         order to avoid an unsuppressible warning from gcc on 64-bit systems.
111489         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
111490         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
111491         when run in a time zone for which daylight savings time is in effect
111492         for the starting date.
111494         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
111495         stop us from restricting permissions of just-created absolute-named
111496         directories.
111497         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
111498         to restore initial working directory.
111499         * lib/mkdir-p.c (make_dir_parents): New parameter:
111500         different_working_dir, to tell caller if/when we change the working
111501         directory and are unable to return to the initial one.
111502         * lib/mkdir-p.h (make_dir_parents): Update prototype.
111503         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
111504         `return false'.  This fixes a bug introduced on 2004-07-30.
111506         * lib/openat.c (fdopendir): Be sure to close the supplied
111507         file descriptor before returning.  This makes our replacement
111508         implementation a little closer to Solaris's, where fdopendir
111509         ties the file descriptor to the returned DIR* pointer.
111510         * lib/openat.c (unlinkat): New function.
111511         * lib/openat.h (unlinkat): Add prototype.
111512         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
111513         (openat_restore_fail): Rename from openat_restore_die.
111514         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
111516         Provide an alternative to exiting immediately upon save_cwd or
111517         restore_cwd failure.  Now, an application can arrange e.g.,
111518         to perform a longjump in that case.
111519         * lib/openat.c: Include dirname.h.
111520         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
111521         (rpl_openat, fdopendir, fstatat): Call openat_save_die
111522         and openat_restore_die rather than calling error directly.
111523         Don't include "error.h" or "exitfail.h"; they're no longer needed.
111525         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
111526         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
111527         define.
111529         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
111530         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
111531                             int utc, int nanoseconds);
111532         Background:
111533         date should not have to allocate a megabyte of virtual memory to
111534         handle a format argument like +%1048575T.  When implemented with
111535         strftime, it must allocate such a buffer, use strftime to fill it
111536         in, print it, then free it.
111537         With fprintftime, it simply prints everything and exits.
111538         With no need for memory allocation, that's one fewer way to fail.
111539         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
111540         optional field width, not before, so we accept %9:z, not %:9z.
111541         (my_strftime): Be sure to use L_('x') for literals.
111543         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
111544         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
111545         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
111546         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
111547         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
111548         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
111549         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
111550         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
111551         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
111552         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
111553         * lib/xgethostname.c, lib/xreadlink.c:
111554         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
111556         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
111557         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
111558         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
111559         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
111560         and don't include <sys/file.h>).
111562 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
111564         Sync from coreutils.
111566         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
111567         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
111568         [!LDAV_DONE]: Avoid unused variable warning.
111570 2005-09-21  Bruno Haible  <bruno@clisp.org>
111572         * lib/unicodeio.h (unicode_to_mb): New declaration.
111574 2005-09-20  Derek Price  <derek@ximbiot.com>
111576         * lib/getaddrinfo.c: Don't include <netdb.h> included from
111577         getaddrinfo.h.
111579 2005-09-20  Bruno Haible  <bruno@clisp.org>
111581         * gnulib-tool: Remove trailing slashes from the values specified for
111582         --source-base, --m4-base, --tests-base, --aux-dir.
111583         Suggested by Simon Josefsson <jas@extundo.com>.
111585 2005-09-20  Bruno Haible  <bruno@clisp.org>
111587         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
111588         func_modules_to_filelist, func_import, func_create_testdir): Make all
111589         sorting results locale-independent, so that gnulib-cache.m4 doesn't
111590         change when gnulib-tool is invoked in a different locale.
111592 2005-09-19  Simon Josefsson  <jas@extundo.com>
111594         * m4/socklen.m4: Fix typo.
111596 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111598         Use a consistent style for including <config.h>.
111599         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
111600         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
111601         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
111602         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
111603         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
111604         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
111605         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
111606         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
111607         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
111608         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
111609         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
111610         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
111611         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
111612         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
111613         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
111614         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
111615         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
111616         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
111617         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
111618         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
111619         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
111620         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
111621         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
111622         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
111623         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
111624         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
111625         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
111626         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
111627         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
111628         lib/xstrtoumax.c, lib/yesno.c:
111629         Standardize inclusion of config.h.
111630         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
111631         lib/inttostr.h:  Removed inclusion of config.h from header files.
111632         * lib/inttostr.c:  Adjusted in-tree users.
111633         * lib/timespec.h: Remove superfluous warning to include config.h.
111634         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
111635         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
111636         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
111637         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
111638         config.h with HAVE_CONFIG_H.
111640 2005-09-19  Jim Meyering  <jim@meyering.net>
111642         * modules/pathmax (License): Change to LGPL.
111644 2005-09-19  Derek Price  <derek@ximbiot.com>
111646         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
111648 2005-09-19  Bruno Haible  <bruno@clisp.org>
111650         * gnulib-tool (import): Provide default for --tests-base.
111652 2005-09-19  Bruno Haible  <bruno@clisp.org>
111654         * doc/quote.texi: New file, extracted from gnulib.texi.
111655         * doc/ctime.texi: New file, extracted from gnulib.texi.
111656         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
111657         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
111658         * doc/gnulib.texi: Include them.
111660 2005-09-18  Bruno Haible  <bruno@clisp.org>
111662         Portability fix.
111663         * gnulib-tool (func_readlink): New function.
111664         (func_ln_if_changed): Use it.
111666 2005-09-18  Bruno Haible  <bruno@clisp.org>
111668         * gnulib-tool: Support --with-tests also with --import.
111669         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
111670         (func_import): Use variables $testsbase and $inctests. Emit a
111671         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
111672         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
111673         SUBDIRS += $testsdir.
111674         (func_create_testdir): Update.
111676 2005-09-18  Bruno Haible  <bruno@clisp.org>
111678         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
111679         instead of $dry_run.
111680         (func_cp_if_changed, func_mv_if_changed): Remove functions.
111681         (func_ln_if_changed): Don't handle dry-run here.
111682         (func_import): In dry-run mode, detect more precisely which actions
111683         would be performed, and don't use "...ing" verbs.
111685 2005-09-18  Bruno Haible  <bruno@clisp.org>
111687         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
111688         (func_import): Use join on two temporary files instead of three nested
111689         loops, in order to determine which files are new or old.
111691 2005-09-18  Bruno Haible  <bruno@clisp.org>
111693         * gnulib-tool (func_import): Comment out code that spits out the
111694         new files with --dry-run.
111696 2005-09-18  Bruno Haible  <bruno@clisp.org>
111698         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
111700 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
111702         * lib/stat-time.h: New file.
111703         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
111704         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
111705         in a different way.
111706         (timespec_cmp): New function.
111707         * lib/utimecmp.c: Include stat-time.h.
111708         (SYSCALL_RESOLUTION): Depend on whether various struct stat
111709         members exist, not on the obsolescent ST_MTIM_NSEC.
111710         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
111712 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
111714         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
111716 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
111718         * MODULES.html.sh (File system functions): Add stat-time.
111719         * modules/stat-time: New file.
111720         * modules/timespec (Files): Remove m4/st_mtim.m4; this
111721         is now done in a different way, by the stat-time module.
111722         * modules/utimecmp (Depends-on): Add stat-time.
111724 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
111726         * m4/st_mtim.m4: Remove.  Superseded by...
111727         * m4/stat-time.m4: New file.
111728         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
111729         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
111731 2005-09-15  Derek Price  <derek@ximbiot.com>
111733         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
111735 2005-09-15  Derek Price  <derek@ximbiot.com>
111737         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
111738         * lib/regex_internal.c: Ditto, using this...
111739         (__GNUC_PREREQ): ...new macro.
111740         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
111741         using...
111742         (__GNUC_PREREQ): ...this new macro.
111744         * lib/strstr.h: Include string.h. Define strstr as a macro here.
111746 2005-09-15  Derek Price  <derek@ximbiot.com>
111747             Paul Eggert  <eggert@cs.ucla.edu>
111749         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
111750         changes, consolidating in...
111751         * lib/regex_internal.h: ...this file.
111753 2005-09-13  Jim Meyering  <jim@meyering.net>
111755         * lib/canon-host.c: Filter through gnu indent and reword comments
111756         slightly.
111757         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
111759 2005-09-13  Derek Price  <derek@ximbiot.com>
111761         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
111762         failure.
111763         Reported by Jim Meyering  <jim@meyering.net>.
111765 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
111767         * lib/base64.c: Typo.
111768         (base64_encode): Put b64str in initialized data section.
111770 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
111772         Merge glibc and coreutils changes into gnulib, plus a few
111773         extra fixes.
111774         * lib/md5.c: Use #error rather than a string.
111775         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
111776         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
111777         (__attribute__): Define to empty for non recent-GCC.
111778         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
111779         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
111780         Renamed from their non-__ counterparts, with new macros replacing
111781         them if not _LIBC.  Add __THROW attribute.
111782         (rol): Remove.
111783         (struct md5_ctx): Align buffer if using GCC.
111784         * lib/sha1.h (struct sha1_ctx): Likewise.
111785         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
111786         The old name was backwards.
111787         (NOTSWAP): Remove; not used.
111788         (rol): New macro, moved here from md5.h.
111789         (sha1_process_block): Remove a FIXME that doesn't make sense.
111791 2005-09-12  Derek Price  <derek@ximbiot.com>
111793         Return usable errors from canon-host.
111794         * lib/canon-host.h: New file.
111795         * lib/canon-host.c (canon_host): Wrap...
111796         (canon_host_r): ...this new function, which now relies exclusively on
111797         getaddrinfo.
111798         (ch_strerror): New function.
111799         (last_cherror): New global.
111800         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
111801         interface.
111802         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
111803         void *.
111804         (freeaddrinfo): Free ai->ai_canonname when set.
111806 2005-09-12  Derek Price  <derek@ximbiot.com>
111808         Make canon-host require getaddrinfo.
111809         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
111810         AC_LIBSOURCE canon-host.h.  Call...
111811         (gl_PREREQ_CANON_HOST): ...this new function, which requires
111812         gl_GETADDRINFO.
111813         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
111815 2005-09-12  Derek Price  <derek@ximbiot.com>
111817         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
111818         LGPL.
111819         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
111821 2005-09-12  Derek Price  <derek@ximbiot.com>
111823         * lib/gai_strerror.c: Include config.h when available.  Include
111824         getaddrinfo.h before other headers to test interface.
111825         Reported by Larry Jones <lawrence.jones@ugs.com>.
111827 2005-09-12  Derek Price  <derek@ximbiot.com>
111828             Paul Eggert  <eggert@cs.ucla.edu>
111830         * modules/glob (Files): Add glob-libc.h.
111832 2005-09-12  Derek Price  <derek@ximbiot.com>
111833             Paul Eggert  <eggert@cs.ucla.edu>
111835         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
111836         glob_.h, glob-libc.h.
111837         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
111839 2005-09-12  Derek Price  <derek@ximbiot.com>
111840             Paul Eggert  <eggert@cs.ucla.edu>
111842         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
111843         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
111844         protecting things that should be done only in gnulib contexts.
111845         * lib/glob_.h: New file, containing only the glob things needed for
111846         gnulib.
111847         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
111848         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
111849         (glob, globfree, glob_pattern_p): Now defined simply in terms of
111850         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
111851         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
111852         and to respect the namespace rules better.
111854 2005-09-08  Simon Josefsson  <jas@extundo.com>
111856         * modules/socklen: New file.
111858 2005-09-08  Simon Josefsson  <jas@extundo.com>
111860         * m4/socklen.m4: New file.
111862 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
111864         * modules/utimens (Files): Add m4/utimbuf.m4, since
111865         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
111866         Reported by Sergey Poznyakoff.
111868 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
111870         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
111871         definitions, since that's the preferred style in glibc.
111872         Fix a minor spacing issue, and update copyright notice to match
111873         glibc's.
111875 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
111877         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
111879 2005-09-06  Simon Josefsson  <jas@extundo.com>
111881         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
111882         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
111884 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
111886         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
111887         warning.
111889 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
111891         * config/srclist.txt: Add glibc bug 1302.
111893 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
111895         Change bitset word type from unsigned int to unsigned long int,
111896         as this has better performance on typical 64-bit hosts.
111897         Port bitset code to hosts with unusual word sizes.
111898         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
111899         (build_collating_symbol):
111900         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
111901         argument is a bitset.  This is merely a style issue, but it makes
111902         it clearer that an entire array is expected.
111903         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
111904         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
111905         Port to the case where bitset_word is not the same as unsigned int.
111906         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
111907         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
111908         Likewise.
111909         * lib/regexec.c (check_dst_limits_calc_pos_1,
111910         check_subexp_matching_top):
111911         (build_trtable, group_nodes_into_DFAstates):
111912         Likewise.
111913         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
111914         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
111915         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
111916         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
111917         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
111918         * lib/regcomp.c (optimize_subexps, lower_subexp):
111919         Work even if bitset_word has holes in its bitwise representation.
111920         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
111921         * lib/regexec.c (check_dst_limits_calc_pos_1,
111922         check_subexp_matching_top):
111923         Likewise.
111924         * lib/regex_internal.c (re_string_reconstruct):
111925         Don't assume UCHAR_MAX == 255.
111926         * lib/regex_internal.h (bitset_set_all): Likewise.
111927         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
111928         All uses changed.
111929         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
111930         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
111931         All uses changed.
111932         (BITSET_WORD_MAX): New macro.
111933         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
111934         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
111935         (bitset_empty, bitset_copy):
111936         Prefer sizeof (bitset) to multiplying it out ourselves.
111937         (bitset_not_merge): Remove; unused.
111938         (bitset_contain): Return bool, not unsigned int with one bit on.
111939         All callers changed.
111940         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
111941         alignment than re_node_set; do this by defining a new internal
111942         type struct dests_alloc and using it to allocate memory.
111944 2005-09-05  Bruno Haible  <bruno@clisp.org>
111946         * gnulib-tool (func_import): Fix comparison in handling of symbolic
111947         links.
111949 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
111951         * modules/size_max (Makefile.am): Add size_max.h
111953 2005-09-04  Derek Price  <derek@ximbiot.com>
111955         * gnulib-tool (func_import): Fix reversed $symbolic logic.
111957 2005-09-03  Simon Josefsson  <jas@extundo.com>
111959         * gnulib-tool: Fix typo.
111961 2005-09-03  Simon Josefsson  <jas@extundo.com>
111963         * config/srclist.txt: Add glibc bug 1293.
111965 2005-09-03  Derek Price  <derek@ximbiot.com>
111967         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
111968         From Larry Jones <lawrence.jones@ugs.com>.
111970 2005-09-02  Simon Josefsson  <jas@extundo.com>
111972         * modules/socklen: New file.
111974 2005-09-02  Simon Josefsson  <jas@extundo.com>
111976         * modules/havelib: New module.
111978         * modules/gettext, modules/iconv, modules/lock, modules/readline:
111979         Use havelib.
111981 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
111983         Check for arithmetic overflow when calculating sizes, to prevent
111984         some buffer-overflow issues.  These patches are conservative, in the
111985         sense that when I couldn't determine whether an overflow was possible,
111986         I inserted a run-time check.
111987         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
111988         macros.
111989         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
111990         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
111991         (re_xnrealloc, re_x2nrealloc): New inline functions.
111992         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
111993         parse_bracket_exp):
111994         (build_equiv_class, build_charclass): Check for arithmetic overflow
111995         in size expression calculations.
111996         * lib/regex_internal.c (re_string_realloc_buffers):
111997         (build_wcs_upper_buffer, re_node_set_add_intersect):
111998         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
111999         (re_dfa_add_node, register_state): Likewise.
112000         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
112001         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
112002         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
112003         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
112005 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
112007         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
112008         m4/ulonglong.m4.  Problem reported by Martin Lambers.
112010 2005-09-02  Bruno Haible  <bruno@clisp.org>
112012         Support for lib vs. lib64 distinction on biarch platforms.
112013         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
112014         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
112015         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
112017 2005-09-02  Bruno Haible  <bruno@clisp.org>
112019         * gnulib-tool (import): In the other first-use case, provide defaults
112020         as well.
112022 2005-09-02  Bruno Haible  <bruno@clisp.org>
112024         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
112025         patches not yet found in the latest gettext release.
112027 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112029         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
112030         to avoid a collision with bits/local_lim.h in glibc.
112031         All uses changed.  Problem reported by Dmitry V. Levin in
112032         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
112034         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
112035         bugs in int versus size_t comparisons.
112036         (re_string_context_at): Fix bug where the code assumed that
112037         Idx is signed.
112039         Use bool where appropriate.
112040         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
112041         All callers changed.
112042         (calc_eclosure_iter): Likewise, for ROOT arg.
112043         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
112044         (build_charclass_op): Likewise, for NON_MATCH arg.
112045         * lib/regex_internal.c (re_string_allocate, re_string_construct):
112046         (re_string_construct_common): Likewise, for ICASE arg.
112047         * lib/regexec.c (re_search_2_stub, re_search_stub):
112048         Likewise, for RET_LEN arg.
112049         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
112050         (set_regs): Likewise, for FL_BACKTRACK arg.
112051         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
112052         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
112053         (calc_eclosure_iter, parse_bracket_exp):
112054         Use bool for internal variables that are booleans.
112055         * lib/regexec.c (re_search_internal, check_matching,
112056         proceed_next_node):
112057         (set_regs, build_sifted_states, sift_states_bkref):
112058         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
112059         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
112060         (find_collation_sequence_value):
112061         Likewise.
112062         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
112063         (re_node_set_compare):
112064         Return bool, not int. All callers changed.
112065         * lib/regexec.c (check_halt_node_context, check_dst_limits):
112066         (build_trtable, check_node_accept): Likewise.
112067         * lib/regex_internal.h: Include stdbool.h.
112069         Fix bugs uncovered when converting to bool.
112070         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
112071         failure instead of charging ahead blindly.
112072         * lib/regex_internal.c (register_state): Likewise.
112073         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
112074         for freeing internal storage.
112075         (group_nodes_into_DFA_states): Use unsigned int, not int, for
112076         bitset pieces used as boolean, to avoid undefined behavior
112077         on hosts that do int overflow checking.
112079 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112081         * config/srclist.txt: Add glibc bugs 1285-1287.
112083 2005-09-01  Jim Meyering  <jim@meyering.net>
112085         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
112086         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
112087         Require gl_STAT_MACROS, too.
112089 2005-09-01  Bruno Haible  <bruno@clisp.org>
112091         * gnulib-tool (import): In the first-use case, provide defaults.
112093 2005-09-01  Bruno Haible  <bruno@clisp.org>
112095         * gnulib-tool (func_import): Remove the .tmp files.
112097 2005-09-01  Bruno Haible  <bruno@clisp.org>
112099         * gnulib-tool (func_import): Fix handling of symbolic links.
112101 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112103         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
112104         old glibc regex code mishandles strings longer than 2**31 bytes.
112105         This patch fixes this when the regex code is used in gnulib
112106         (i.e., outside glibc).
112108         This patch should not affect the use of the regex code inside
112109         glibc.  No doubt this problem also needs to be handled for glibc
112110         as well, but the result will be an incompatible change to the
112111         glibc ABI, and the old ABI will have to be supported too.  That
112112         can be the subject for another patch.
112114         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
112115         governing whether the rest of this patch is active.  By default,
112116         the macro is disabled and the patch has no effect.
112117         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
112118         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
112119         (struct re_pattern_buffer, re_search, re_search_2, re_match):
112120         (re_match_2, re_set_registers): Use the new types.
112121         * lib/regex_internal.h (Idx, re_hashval_t): New types.
112122         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
112123         New macros.
112124         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
112125         (re_string_context_at, bin_tree_t, re_dfastate_t):
112126         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
112127         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
112128         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
112129         (re_string_char_size_at, re_string_wchar_at):
112130         (re_string_elem_size_at):
112131         Use the new types and macros to port to 64-bit hosts.
112132         Use unsigned types for internal values, so that the code
112133         mostly works even for arrays larger than SSIZE_MAX.
112134         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
112135         (search_duplicated_node, calc_eclosure_iter, fetch_number):
112136         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
112137         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
112138         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
112139         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
112140         (calc_inveclosure, parse_dup_op, build_range_exp):
112141         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
112142         (fetch_number, create_token_tree, mark_opt_subexp):
112143         Likewise.
112144         * lib/regex_internal.c (re_string_construct_common,
112145         create_ci_newstate):
112146         (create_cd_newstate, re_string_allocate, re_string_construct):
112147         (re_string_realloc_buffers, build_wcs_upper_buffer):
112148         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
112149         (re_string_reconstruct, re_string_peek_byte_case):
112150         (re_string_fetch_byte_case, re_string_context_at):
112151         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
112152         (re_node_set_init_copy, re_node_set_add_intersect):
112153         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
112154         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
112155         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
112156         (re_acquire_state, re_acquire_state_context, register_state):
112157         Likewise.
112158         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
112159         search_cur_bkref_entry):
112160         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
112161         (re_search_internal, re_search_2_stub, re_search_stub)
112162         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
112163         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
112164         (update_cur_sifted_state, check_dst_limits):
112165         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
112166         (check_subexp_limits, sift_states_bkref, merge_state_array):
112167         (check_subexp_matching_top, get_subexp, get_subexp_sub):
112168         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
112169         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
112170         (expand_bkref_cache, check_node_accept_bytes):
112171         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
112172         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
112173         (acquire_init_state_context, check_halt_node_context):
112174         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
112175         (sift_states_backward, clean_state_log_if_needed):
112176         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
112177         (find_recover_state, transit_state_sb, transit_state_mb):
112178         (transit_state_bkref, build_trtable, match_ctx_clean):
112179         Likewise.
112180         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
112181         to work around an assumption that REG_MISSING is negative.
112183         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
112184         (seek_collating_symbol_entry) [defined _LIBC]:
112185         (lookup_collation_sequence_value) [defined _LIBC]:
112186         (build_range_exp, build_collating_symbol) [defined _LIBC]:
112187         Use prototypes rather than old-style function definitions.
112188         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
112189         (transit_state_sb) [0]:
112190         (find_collation_sequence_value) [defined _LIBC]: Likewise.
112192         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
112193         rm_eo.
112195         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
112196         (optimize_subexps, lower_subexp):
112197         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
112198         since the signed shift might overflow.  Use 1u<<31 instead.
112199         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
112200         Likewise.
112201         * lib/regexec.c (check_dst_limits_calc_pos_1,
112202         check_subexp_matching_top): Likewise.
112204         * lib/regcomp.c (optimize_subexps, lower_subexp):
112205         Use CHAR_BIT rather than 8, for clarity.
112206         * lib/regexec.c (check_dst_limits_calc_pos_1):
112207         (check_subexp_matching_top): Likewise.
112208         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
112209         have to worry about portability issues when shifting it left.
112210         Remove no-longer-needed test for table_size > 0.
112211         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
112212         in a word, as the resulting behavior is undefined.
112213         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
112214         in one case, a <= should have been an <, and in another case the
112215         whole test was missing.
112216         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
112217         the standard name CHAR_BIT.
112218         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
112219         this is not true on one's complement and signed-magnitude hosts.
112221         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
112222         next_last_offset.
112223         (struct re_dfa_t): Remove unused member states_alloc.
112224         * lib/regcomp.c (init_dfa): Don't initialize unused members.
112226 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112228         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
112229         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
112230         and large-file glibc and in 32-bit large-file Solaris.
112232 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112234         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
112235         lengths fit in regoff_t; this isn't true if regoff_t is the same
112236         width as size_t.
112237         * lib/regex.c (re_search_internal): 5th arg is LAST_START
112238         (= START + RANGE) instead of RANGE.  This avoids overflow
112239         problems when regoff_t is the same width as size_t.
112240         All callers changed.
112241         (re_search_2_stub): Check for overflow when adding the
112242         sizes of the two strings.
112243         (re_search_stub): Check for overflow when adding START
112244         to RANGE; if it occurs, substitute the extreme value.
112246 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112248         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
112250 2005-08-31  Jim Meyering  <jim@meyering.net>
112252         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
112253         a pointer-to-const.
112254         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
112255         (register_state): Likewise.
112256         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
112257         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
112258         (group_nodes_into_DFAstates): Likewise.
112260 2005-08-31  Jim Meyering  <jim@meyering.net>
112262         * check-module: Add a FIXME comment.
112264 2005-08-31  Eric Blake  <ebb9@byu.net>
112266         * modules/unistd-safer (Files): Add unistd--.h.
112267         * modules/stdio-safer (Files): Add stdio--.h.
112269 2005-08-31  Derek Price  <derek@ximbiot.com>
112271         * lib/getdelim.c (getdelim): Return EOF on EOF.
112272         Reported by Larry Jones <lawrence.jones@ugs.com>.
112274 2005-08-31  Bruno Haible  <bruno@clisp.org>
112276         Avoid unnecessary diffs in the generated lib/Makefile.am.
112277         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
112278         the generated files.
112279         (func_import): Don't set cmd.
112281 2005-08-31  Bruno Haible  <bruno@clisp.org>
112283         * lib/strstr.c: Include <stddef.h>, for NULL.
112284         * lib/strcasestr.c: Likewise.
112285         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
112287 2005-08-31  Bruno Haible  <bruno@clisp.org>
112289         * gnulib-tool: New option --macro-prefix.
112290         (func_import): Use macro_prefix.
112291         (import): Handle option --macro-prefix.
112293 2005-08-31  Bruno Haible  <bruno@clisp.org>
112295         * gnulib-tool (import): Rename most ac_* variables to cached_*.
112296         Also use new variables cached_lgpl, cached_libtool.
112298 2005-08-31  Bruno Haible  <bruno@clisp.org>
112300         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
112301         always instantiating them.
112303 2005-08-31  Bruno Haible  <bruno@clisp.org>
112305         * gnulib-tool (func_import): Read the previous cached settings
112306         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
112307         earlier added by gnulib but are now dropped. Warn when a gnulib file
112308         overwrites a non-gnulib file.
112310 2005-08-31  Bruno Haible  <bruno@clisp.org>
112312         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
112313         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
112314         projects that don't keep autogenerated files in CVS. Put into
112315         actioncmd only the specified modules, not the transitive closure.
112317 2005-08-31  Bruno Haible  <bruno@clisp.org>
112319         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
112320         Create directories that shall be filled.
112321         (import): Don't look for gl_* macros in configure.ac. Recurse across
112322         all directories containing a gnulib-cache.m4 files, if meaningful.
112324 2005-08-31  Bruno Haible  <bruno@clisp.org>
112326         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
112327         (import): Set seen_libtool when we see gl_LIBTOOL.
112329 2005-08-31  Bruno Haible  <bruno@clisp.org>
112331         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
112332         declaration macro definitions from generated gnulib.m4.
112334 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
112336         * lib/iconvme.h: Add prototype for iconv_alloc.
112338 2005-08-29  Simon Josefsson  <jas@extundo.com>
112340         * lib/iconvme.c: Fix errno.
112342 2005-08-29  Bruno Haible  <bruno@clisp.org>
112344         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
112345         that it works when the directory contains spaces.
112347 2005-08-29  Bruno Haible  <bruno@clisp.org>
112349         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
112351 2005-08-29  Bruno Haible  <bruno@clisp.org>
112353         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
112354         Emit more advice.
112356 2005-08-29  Bruno Haible  <bruno@clisp.org>
112357         and Stepan Kasal  <kasal@ucw.cz>
112359         * check-module: If more parameters are given, check each of them
112360         separately; add more exceptions, as noted by Jim Meyering.
112361         (check_module): New procedure.
112362         (%exempt_header): Now contains all exceptions.
112364 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
112366         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
112368 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
112370         * lib/iconvme.c: Split iconv_string into iconv_alloc.
112372 2005-08-28  Bruno Haible  <bruno@clisp.org>
112374         * m4/gnulib-tool.m4: New file.
112376 2005-08-27  Jim Meyering  <jim@meyering.net>
112378         * modules/unistd-safer (Files): Add pipe-safer.c.
112379         * modules/fcntl-safer (Files): Add creat-safer.c.
112381 2005-08-27  Jim Meyering  <jim@meyering.net>
112383         * m4/stdlib-safer.m4: New file.  From coreutils.
112384         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
112385         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
112386         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
112387         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
112388         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
112390 2005-08-27  Jim Meyering  <jim@meyering.net>
112392         * lib/fopen-safer.c: Merge minor changes from coreutils.
112393         * lib/dup-safer.c: Likewise.
112394         * lib/fd-safer.c: Likewise.
112396         Merge from coreutils.
112397         * lib/stdio--.h: New file.
112398         * lib/stdlib--.h: New file.
112399         * lib/mkstemp-safer.c: New file.
112401         GNU tar needs these.
112402         * lib/pipe-safer.c: New file.
112403         * lib/creat-safer.c: New file.
112404         * lib/fcntl--.h (creat): Define to creat_safer.
112405         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
112406         * lib/unistd--.h (pipe): Define to pipe_safer.
112407         * lib/unistd-safer.h: Declare pipe_safer.
112409 2005-08-26  Simon Josefsson  <jas@extundo.com>
112411         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
112412         Haible <bruno@clisp.org>.
112414 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
112416         * lib/regex_internal.h: Remove all references to
112417         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
112418         or better.
112419         (bitset_not, bitset_merge, bitset_not_merge):
112420         (bitset_mask, re_string_allocate, re_string_construct):
112421         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
112422         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
112423         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
112424         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
112425         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
112426         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
112427         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
112428         (re_acquire_state_context):
112429         Remove unnecessary forward decls.
112430         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
112431         Put __attribute at function definition,
112432         now that the function decl has been removed.
112433         * lib/regex_internal.c (re_string_peek_byte_case):
112434         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
112435         Likewise.
112437 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
112439         * m4/regex.m4: Add AC_PREREQ(2.50).
112440         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
112442 2005-08-25  Simon Josefsson  <jas@extundo.com>
112444         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
112445         __fsetlocking.
112447 2005-08-25  Simon Josefsson  <jas@extundo.com>
112449         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
112450         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
112451         GLIBC specific code.
112453 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
112455         Make regex safe for g++.  This fixes one real bug (an "err"
112456         that should have been "*err").  g++ problem reported by
112457         Sam Steingold.
112458         * lib/regex_internal.h (re_calloc): New macro, consistent with
112459         re_malloc etc.  All callers of calloc changed to use re_calloc.
112460         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
112461         not int.  All callers changed.
112462         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
112463         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
112464         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
112465         (find_recover_state): Change "err" to "*err"; this fixes what
112466         appears to be a real bug.
112467         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
112468         versus int.
112470 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
112472         * modules/regex (Depends-on): Add malloc, since the code
112473         assumes that !malloc(0) means failure.
112475 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
112477         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
112479         alloca modernization/simplification for regex.
112480         * lib/regex.c: Remove portability cruft for alloca.  This no longer
112481         needs to be at the start of the file, and can be moved into
112482         regex_internal.h and simplified.
112483         * lib/regex_internal.h: Include <alloca.h>.
112484         (__libc_use_alloca) [!defined _LIBC]: New macro.
112485         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
112486         now works outside glibc.
112488 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
112490         * config/srclist.txt: Add glibc bugs 1241, 1245.
112492 2005-08-25  Jim Meyering  <jim@meyering.net>
112494         * lib/open-safer.c: Include <config.h>.
112495         Otherwise, we'd lose LARGEFILE support in any file using
112496         e.g. "fcntl--.h"
112498 2005-08-25  Bruno Haible  <bruno@clisp.org>
112500         * m4/minmax.m4: Require autoconf 2.52.
112501         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
112502         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
112503         alternatives of translit over the alphabet.
112504         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
112506 2005-08-24  Simon Josefsson  <jas@extundo.com>
112508         * tests/test-getpass.c: New file.
112510 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
112512         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
112513         for GNU regex features.
112515 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
112517         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
112518         * lib/regex.h (regerror): Likewise.
112520         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
112521         requires this.  (The code never needed it.)
112523         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
112524         All uses of recently-renamed identifiers changed to use the new,
112525         POSIX-compliant names.  The code will build and run just fine
112526         without these changes, but it's better to eat our own dog food
112527         and use the standard-conforming names.
112529         * lib/regex.h: Fix a multitude of POSIX name space violations.
112530         These changes have an effect only for programs that define
112531         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
112532         do not change anything for programs compiled in the normal way.
112533         Also, there is no effect on the ABI.
112535         (_REGEX_SOURCE): New macro.
112536         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
112537         defined and _GNU_SOURCE is not; this fixes a name space violation.
112539         Rename the following macros to obey POSIX requirements.
112540         The old names are still visible as macros if _REGEX_SOURCE is defined.
112541         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
112542         RE_BACKSLASH_ESCAPE_IN_LISTS.
112543         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
112544         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
112545         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
112546         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
112547         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
112548         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
112549         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
112550         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
112551         (REG_INTERVALS): renamed from RE_INTERVALS.
112552         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
112553         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
112554         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
112555         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
112556         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
112557         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
112558         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
112559         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
112560         RE_UNMATCHED_RIGHT_PAREN_ORD.
112561         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
112562         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
112563         (REG_DEBUG): renamed from RE_DEBUG.
112564         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
112565         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
112566         unusual, since we can't clash with the POSIX REG_ICASE.
112567         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
112568         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
112569         (REG_NO_SUB): renamed from RE_NO_SUB.
112570         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
112571         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
112572         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
112573         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
112574         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
112575         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
112576         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
112577         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
112578         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
112579         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
112580         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
112581         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
112582         RE_SYNTAX_POSIX_MINIMAL_BASIC.
112583         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
112584         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
112585         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
112586         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
112587         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
112588         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
112589         (REG_FIXED): Renamed from REGS_FIXED.
112590         (REG_NREGS): Renamed from RE_NREGS.
112592         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
112593         of other REG_* macros, since POSIX says the user is allowed to
112594         #undef these macros selectively.
112596         (reg_errcode_t): Update comment stating what other tables need
112597         to be consistent.
112599         Rename the following enum values to obey POSIX requirements.
112600         The old names are still visible as macros.
112601         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
112602         is not defined, since GNU is supposed to be a superset of POSIX as
112603         much as possible, and since we want reg_errcode_t to be a signed
112604         type for implementation consistency.
112605         (_REG_NOERROR): Renamed from REG_NOERROR.
112606         (_REG_NOMATCH): Renamed from REG_NOMATCH.
112607         (_REG_BADPAT): Renamed from REG_BADPAT.
112608         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
112609         (_REG_ECTYPE): Renamed from REG_ECTYPE.
112610         (_REG_EESCAPE): Renamed from REG_EESCAPE.
112611         (_REG_ESUBREG): Renamed from REG_ESUBREG.
112612         (_REG_EBRACK): Renamed from REG_EBRACK.
112613         (_REG_EPAREN): Renamed from REG_EPAREN.
112614         (_REG_EBRACE): Renamed from REG_EBRACE.
112615         (_REG_BADBR): Renamed from REG_BADBR.
112616         (_REG_ERANGE): Renamed from REG_ERANGE.
112617         (_REG_ESPACE): Renamed from REG_ESPACE.
112618         (_REG_BADRPT): Renamed from REG_BADRPT.
112619         (_REG_EEND): Renamed from REG_EEND.
112620         (_REG_ESIZE): Renamed from REG_ESIZE.
112621         (_REG_ERPAREN): Renamed from REG_ERPAREN.
112622         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
112623         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
112624         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
112625         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
112627         (_REG_RE_NAME, _REG_RM_NAME): New macros.
112628         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
112629         changed.  But support the old name if the new one is not defined
112630         and if _REGEX_SOURCE.
112632         Change the following member names in struct re_pattern_buffer.
112633         The old names are still supported if !_REGEX_SOURCE.
112634         The new names are always supported, regardless of _REGEX_SOURCE.
112635         (re_buffer): Renamed from buffer.
112636         (re_allocated): Renamed from allocated.
112637         (re_used): Renamed from used.
112638         (re_syntax): Renamed from syntax.
112639         (re_fastmap): Renamed from fastmap.
112640         (re_translate): Renamed from translate.
112641         (re_can_be_null): Renamed from can_be_null.
112642         (re_regs_allocated): Renamed from regs_allocated.
112643         (re_fastmap_accurate): Renamed from fastmap_accurate.
112644         (re_no_sub): Renamed from no_sub.
112645         (re_not_bol): Renamed from not_bol.
112646         (re_not_eol): Renamed from not_eol.
112647         (re_newline_anchor): Renamed from newline_anchor.
112649         Change the following member names in struct re_registers.
112650         The old names are still supported if !_REGEX_SOURCE.
112651         The new names are always supported, regardless of _REGEX_SOURCE.
112652         (rm_num_regs): Renamed from num_regs.
112653         (rm_start): Renamed from start.
112654         (rm_end): Renamed from end.
112656         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
112657         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
112658         Prepend __ to parameter names.
112660         Undo yesterday's changes.
112662 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
112664         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
112665         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
112666         lib/regex.c.
112668 2005-08-24  Jim Meyering  <jim@meyering.net>
112670         Sync from coreutils.
112671         * m4/fcntl-safer.m4: New file.
112673         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
112674         and object files for this module.
112676 2005-08-24  Jim Meyering  <jim@meyering.net>
112678         Sync from coreutils.
112679         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
112681 2005-08-24  Jim Meyering  <jim@meyering.net>
112683         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
112684         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
112686 2005-08-24  Jim Meyering  <jim@meyering.net>
112688         * modules/fcntl-safer: New module.
112689         * modules/fts (Depends-on): Add fcntl-safer.
112690         * MODULES.html.sh (File descriptor based Input/Output):
112691         Add fcntl-safer.
112693 2005-08-24  Bruno Haible  <bruno@clisp.org>
112695         Support for unit test modules.
112696         * modules/README: Mention tests modules.
112697         * modules/TEMPLATE-TESTS: New file.
112698         * gnulib-tool: New options --extract-tests-module, --with-tests and
112699         --tests-base (unused for the moment).
112700         (testsbase, inctests): New variables.
112701         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
112702         (func_verify_module): Exclude TEMPLATE-TESTS.
112703         (func_verify_nontests_module, func_verify_tests_module): New functions.
112704         (func_get_dependencies): Add implicit dependency for tests modules.
112705         (func_get_tests_module): New function.
112706         (func_modules_transitive_closure): When --with-tests was specified,
112707         include the unit tests as well, unless explicitly avoided.
112708         (func_emit_lib_Makefile_am): Ignore the tests modules here.
112709         (func_emit_tests_Makefile_am): New function.
112710         (func_create_testdir): When --with-tests was specified, emit a
112711         tests/ directory.
112712         * MODULES.html.sh (Future developments): Update.
112714 2005-08-24  Bruno Haible  <bruno@clisp.org>
112716         * modules/tls-tests: New file.
112717         * tests/test-tls.c: New file, from GNU gettext.
112719 2005-08-24  Bruno Haible  <bruno@clisp.org>
112721         * modules/lock-tests: New file.
112722         * tests/test-lock.c: New file, from GNU gettext.
112724 2005-08-24  Bruno Haible  <bruno@clisp.org>
112726         * lib/lock.h: Add multiple inclusion guard.
112727         * lib/tls.h: Add multiple inclusion guard.
112729 2005-08-24  Bruno Haible  <bruno@clisp.org>
112731         * gnulib-tool: Add support for the --aux-dir option to
112732         --create-testdir, --create-megatestdir, --test, --megatest.
112733         (func_create_testdir, func_create_megatestdir): Optionally emit a
112734         AC_CONFIG_AUX_DIR directive.
112735         (create-testdir, create-megatestdir, test, megatest): Provide a
112736         default value for $auxdir.
112738 2005-08-24  Bruno Haible  <bruno@clisp.org>
112740         * gnulib-tool (import): Use compound statement instead of subshell
112741         where possible.
112743 2005-08-24  Bruno Haible  <bruno@clisp.org>
112745         * gnulib-tool (import): Change --aux-dir default to "build-aux".
112747 2005-08-24  Bruno Haible  <bruno@clisp.org>
112749         * gnulib-tool (func_version): Update.
112751 2005-08-24  Bruno Haible  <bruno@clisp.org>
112753         * gnulib-tool (func_import, func_create_testdir,
112754         func_create_megatestdir): Quote all autoconf macro arguments.
112756 2005-08-24  Bruno Haible  <bruno@clisp.org>
112758         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
112759         option --force, because --force causes the aclocal.m4 of each
112760         subdirectory to be newer than the corresponding config.h.in.
112762 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
112764         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
112765         All contents moved to gl_REGEX.
112766         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
112767         assume that it does.
112769 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
112771         * lib/regex.h (REG_NOSYS)
112772         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
112773         Define, since POSIX requires it as of 2001.
112774         (_REG_ENOSYS)
112775         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
112776         New private symbol, used to keep the enum signed in all cases.
112777         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
112778         Youngman in
112779         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
112781         * lib/regex_internal.c (re_string_skip_chars, register_state):
112782         (calc_state_hash):
112783         Remove forward decls; no longer needed now that we use prototypes.
112784         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
112785         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
112786         (clean_state_log_if_needed): Likewise.
112788 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
112790         * config/srclist.txt: Add glibc bugs 1231-1233.
112792 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
112794         Fix problems reported by Sam Steingold in
112795         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
112796         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
112797         assumed that reg_errcode_t is a signed type, which is not
112798         necessarily true if _XOPEN_SOURCE is not defined.
112799         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
112800         since some compilers warn about it otherwise.
112802 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
112804         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
112805         (init_word_char, create_initial_state, duplicate_node_closure):
112806         (fetch_token, peek_token_bracket, build_range_exp):
112807         (build_collating_symbol): Remove forward decls; no longer needed
112808         now that we use prototypes.
112810         * lib/regcomp.c:
112811         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
112812         (re_compile_fastmap_iter, regcomp, regerror, regfree):
112813         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
112814         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
112815         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
112816         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
112817         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
112818         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
112819         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
112820         (build_range_exp, build_collating_symbol, parse_bracket_exp):
112821         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
112822         (build_charclass, build_charclass_op, fetch_number, create_tree):
112823         (create_token_tree, mark_opt_subexp, duplicate_tree):
112824         Use prototypes rather than old-style definitions.
112826         * lib/regex_internal.c:
112827         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
112828         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
112829         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
112830         (re_string_reconstruct, re_string_peek_byte_case):
112831         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
112832         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
112833         (re_node_set_init_copy, re_node_set_add_intersect):
112834         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
112835         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
112836         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
112837         (re_acquire_state, re_acquire_state_context, register_state):
112838         (create_ci_newstate, create_cd_newstate, free_state):
112839         Likewise.
112840         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
112841         re_search_2):
112842         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
112843         (re_search_internal, prune_impossible_nodes):
112844         (acquire_init_state_context, check_matching, static):
112845         (check_halt_node_context, check_halt_state_context, proceed_next_node):
112846         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
112847         (update_regs, sift_states_backward, build_sifted_states):
112848         (clean_state_log_if_needed, merge_state_array):
112849         (update_cur_sifted_state, add_epsilon_src_nodes):
112850         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
112851         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
112852         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
112853         (find_recover_state, check_subexp_matching_top, transit_state_mb):
112854         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
112855         (check_arrival, check_arrival_add_next_nodes):
112856         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
112857         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
112858         (check_node_accept_bytes, check_node_accept, extend_buffers):
112859         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
112860         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
112861         (sift_ctx_init):
112862         Likewise.
112864         * lib/regex_internal.h:
112865         (re_string_allocate, re_string_construct, re_string_reconstruct):
112866         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
112867         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
112868         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
112869         (re_string_context_at, re_string_peek_byte_case):
112870         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
112871         is defined, since we now use prototypes always.
112873         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
112874         C89 or better.  All uses removed.
112876 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
112878         * config/srclist.txt: Add glibc bugs 1220-1227.
112880 2005-08-20  Jim Meyering  <jim@meyering.net>
112882         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
112883         of unused local, dfa.
112885 2005-08-20  Bruno Haible  <bruno@clisp.org>
112887         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
112889 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
112891         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
112892         (re_node_set_insert_last, re_dfa_add_node):
112893         Rename local variables to avoid GCC shadowing warnings.
112895 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
112897         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
112898         [defined lint]: Suppress bogus uninitialized-variable warnings.
112900         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
112901         and let the caller return REG_ESPACE if out of space.  This
112902         removes an uninitialied-variable warning with GCC 4.0.1, and also
112903         avoids taking the address of a local variable.  All callers
112904         changed.
112906 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
112908         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
112909         $LIBCSRC/posix/regexec.c.
112910         Add glibc bug 1217 for regcomp.c.
112912 2005-08-19  Jim Meyering  <jim@meyering.net>
112914         * lib/regexec.c (proceed_next_node): Redo local variables to
112915         avoid GCC shadowing warnings.
112917 2005-08-18  Bruno Haible  <bruno@clisp.org>
112919         * lib/strstr.c (strstr): Fix return value in multibyte case.
112920         * lib/strcasestr.c (strcasestr): Likewise.
112922 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
112924         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
112926 2005-08-17  Jim Meyering  <jim@meyering.net>
112928         Make the %s format (seconds since the epoch) work for a negative
112929         number and when used with a zero-padded field width, e.g. %015s.
112931         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
112932         label so that it precedes the code to set `digits'.  Otherwise,
112933         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
112934         print `00-22'.  Now, it prints `-0022', as it should.
112936 2005-08-17  Bruno Haible  <bruno@clisp.org>
112938         * modules/strstr (Files): Add m4/mbrtowc.m4.
112939         (Depends-on): Add mbuiter.
112941 2005-08-17  Bruno Haible  <bruno@clisp.org>
112943         * modules/strcasestr: New file.
112944         * MODULES.html.sh (String handling, based on ANSI C 89): Add
112945         strcasestr.
112947 2005-08-17  Bruno Haible  <bruno@clisp.org>
112949         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
112951 2005-08-17  Bruno Haible  <bruno@clisp.org>
112953         * modules/mbuiter: New file.
112954         * MODULES.html.sh (Extended multibyte and wide character utilities):
112955         Add mbuiter.
112957 2005-08-17  Bruno Haible  <bruno@clisp.org>
112959         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
112960         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
112962 2005-08-17  Bruno Haible  <bruno@clisp.org>
112964         * m4/strcasestr.m4: New file.
112966 2005-08-17  Bruno Haible  <bruno@clisp.org>
112968         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
112969         * lib/strstr.c: Completely rewritten, with multibyte locale support.
112971 2005-08-17  Bruno Haible  <bruno@clisp.org>
112973         * lib/strcasestr.h: New file.
112974         * lib/strcasestr.c: New file.
112976 2005-08-17  Bruno Haible  <bruno@clisp.org>
112978         * lib/strcasecmp.c: Use mbuiter.h.
112980 2005-08-17  Bruno Haible  <bruno@clisp.org>
112982         * lib/mbuiter.h: New file.
112984 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
112986         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
112987         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
112988         and gl_GETOPT are both invoked via different paths (as happens
112989         with GNU tar CVS because it uses both argp and getopt), the former
112990         wins.
112992 2005-08-16  Bruno Haible  <bruno@clisp.org>
112994         * modules/tls: New file.
112995         * MODULES.html.sh (Multithreading): Add tls.
112997 2005-08-16  Bruno Haible  <bruno@clisp.org>
112999         * modules/strnlen1: New file.
113000         * MODULES.html.sh (String handling): Add strnlen1.
113002 2005-08-16  Bruno Haible  <bruno@clisp.org>
113004         * modules/strcase (Files): Add m4/mbrtowc.m4.
113005         (Depends-on): Add strnlen1, mbchar.
113007 2005-08-16  Bruno Haible  <bruno@clisp.org>
113009         * modules/mbiter: New file.
113010         * MODULES.html.sh (Extended multibyte and wide character utilities):
113011         Add mbiter.
113013 2005-08-16  Bruno Haible  <bruno@clisp.org>
113015         * modules/mbfile: New file.
113016         * MODULES.html.sh (Extended multibyte and wide character utilities):
113017         Add mbfile.
113019 2005-08-16  Bruno Haible  <bruno@clisp.org>
113021         * modules/mbchar: New file.
113022         * MODULES.html.sh (Extended multibyte and wide character utilities):
113023         New section.
113025 2005-08-16  Bruno Haible  <bruno@clisp.org>
113027         * m4/tls.m4: New file, from GNU gettext.
113029 2005-08-16  Bruno Haible  <bruno@clisp.org>
113031         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
113032         always.
113033         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
113035 2005-08-16  Bruno Haible  <bruno@clisp.org>
113037         * m4/mbiter.m4: New file.
113039 2005-08-16  Bruno Haible  <bruno@clisp.org>
113041         * m4/mbfile.m4: New file.
113043 2005-08-16  Bruno Haible  <bruno@clisp.org>
113045         * m4/mbchar.m4: New file.
113047 2005-08-16  Bruno Haible  <bruno@clisp.org>
113049         * lib/tls.h: New file, from GNU gettext.
113050         * lib/tls.c: New file, from GNU gettext.
113052 2005-08-16  Bruno Haible  <bruno@clisp.org>
113054         * lib/strnlen1.h: New file.
113055         * lib/strnlen1.c: New file.
113057 2005-08-16  Bruno Haible  <bruno@clisp.org>
113059         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
113060         (mbi_init): Update.
113061         (mbi_avail, mbi_advance): Let the iteration end before the terminating
113062         NUL byte, not after it.
113064 2005-08-16  Bruno Haible  <bruno@clisp.org>
113066         * lib/strcase.h (strcasecmp): Add note in comments.
113067         * lib/strncasecmp.c: Use code from strcasecmp.c.
113068         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
113069         (strcasecmp): Work correctly in multibyte locales.
113071 2005-08-16  Bruno Haible  <bruno@clisp.org>
113073         * lib/mbiter.h: New file.
113075 2005-08-16  Bruno Haible  <bruno@clisp.org>
113077         * lib/mbfile.h: New file.
113079 2005-08-16  Bruno Haible  <bruno@clisp.org>
113081         * lib/mbchar.h: New file.
113082         * lib/mbchar.c: New file.
113084 2005-08-16  Bruno Haible  <bruno@clisp.org>
113086         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
113087         the valid ones. Makes the comparison operations transitive:
113088         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
113089         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
113091 2005-08-15  Simon Josefsson  <jas@extundo.com>
113093         * modules/ssize_t (License): Change to 'unlimited'.
113095         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
113097 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113099         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
113100         Add comments for each pending glibc patch.
113102 2005-08-15  Bruno Haible  <bruno@clisp.org>
113104         * lib/regex.h (__restrict_arr): Don't define to __restrict if
113105         __cplusplus is defined.
113107 2005-08-14  Jim Meyering  <jim@meyering.net>
113109         Sync from coreutils.
113111         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
113112         Use the hash-table-based cycle-detection code not just when
113113         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
113114         Reported by James Youngman in
113115         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
113116         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
113117         FTS_TIGHT_CYCLE_CHECK.
113118         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
113119         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
113120         once again.
113121         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
113122         * lib/fts.c (fd_safer): Remove decl.
113123         Include fcntl--.h rather than unistd-safer.h
113124         (fts_safe_changedir): Don't call fd_safer; no longer needed
113125         now that we include fcntl--.h.
113127 2005-08-12  Simon Josefsson  <jas@extundo.com>
113129         * modules/getndelim2: Use ssize_t module.
113130         * modules/getnline: Likewise.
113131         * modules/safe-read: Likewise.
113132         * modules/xreadlink: Likewise.
113134         * modules/ssize_t: New file.
113136 2005-08-12  Simon Josefsson  <jas@extundo.com>
113138         * m4/readline.m4: Look for termcap, curses or ncurses if required.
113140 2005-08-12  Simon Josefsson  <jas@extundo.com>
113142         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
113143         ssize_t.
113145 2005-08-12  Simon Josefsson  <jas@extundo.com>
113147         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
113148         readline, getdelim and check_version.
113149         (Support for systems lacking ISO C 99: Sizes of integer types):
113150         Add size_max.
113152 2005-08-12  Bruno Haible  <bruno@clisp.org>
113154         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
113156 2005-08-11  Simon Josefsson  <jas@extundo.com>
113158         * modules/readline: New file.
113160         * modules/strnlen (Files): Add strnlen.h.
113162 2005-08-11  Simon Josefsson  <jas@extundo.com>
113164         * m4/readline.m4: New file.
113166 2005-08-11  Simon Josefsson  <jas@extundo.com>
113168         * lib/readline.h, readline.c: New file.
113170 2005-08-11  Simon Josefsson  <jas@extundo.com>
113172         * doc/gnulib.texi (Initial import, Finishing touches): Mention
113173         gl_AVOID.
113175 2005-08-11  Bruno Haible  <bruno@clisp.org>
113177         * lib/strnlen.h (strnlen): Change parameter name to match comment.
113179 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
113181         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
113183 2005-08-10  Simon Josefsson  <jas@extundo.com>
113185         * tests/test-iconvme.c: New file.
113187 2005-08-10  Simon Josefsson  <jas@extundo.com>
113189         * m4/strnlen.m4: New file.
113191         * m4/strndup.m4: Don't check for strnlen declaration, done in
113192         strnlen.m4.
113194 2005-08-10  Simon Josefsson  <jas@extundo.com>
113196         * lib/strndup.c: Use strnlen.h.
113198         * lib/strnlen.h: New file.
113200 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
113202         * README: Typos.
113204 2005-08-02  Simon Josefsson  <jas@extundo.com>
113206         * modules/readline: New file.
113208 2005-08-02  Simon Josefsson  <jas@extundo.com>
113210         * modules/getdelim: New file.
113212         * modules/getline: Rewrite, don't use getndelim2.
113214 2005-08-02  Simon Josefsson  <jas@extundo.com>
113216         * m4/getline.m4: Separate out getdelim stuff into separate module.
113218         * m4/getdelim.m4: New file.
113220 2005-08-02  Simon Josefsson  <jas@extundo.com>
113222         * lib/getline.h, getline.c: Rewrite.
113224         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
113226 2005-07-31  Bruno Haible  <bruno@clisp.org>
113228         * lib/lock.h (gl_lock_initializer): New macro.
113229         (gl_lock_define_initialized): Use it.
113230         (gl_rwlock_initializer): New macro.
113231         (gl_rwlock_define_initialized): Use it.
113232         (gl_recursive_lock_initializer): New macro.
113233         (gl_recursive_lock_define_initialized): Use it.
113235 2005-07-30  Karl Berry  <karl@gnu.org>
113237         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
113238         Report from Ben Pfaff, regarding getopt.
113240 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
113242         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
113243         normal way.
113244         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
113245         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
113246         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
113247         (gl_GETOPT): Use the new macros.  Most of the implementation
113248         is moved to the new macros.  This is for programs like Emacs
113249         that don't want all the functionality of gl_GETOPT.
113251 2005-07-26  Bruno Haible  <bruno@clisp.org>
113253         * m4/lock.m4: Update from GNU gettext.
113255 2005-07-26  Bruno Haible  <bruno@clisp.org>
113257         * lib/lock.h: Update from GNU gettext.
113258         * lib/lock.c: Update from GNU gettext.
113260 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
113262         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
113263         obsolescent AC_TRY_RUN.  Include the default includes files, for
113264         'exit'.
113266 2005-07-24  Bruno Haible  <bruno@clisp.org>
113268         * modules/visibility: New file.
113269         * MODULES.html.sh (Misc): Add visibility.
113271 2005-07-24  Bruno Haible  <bruno@clisp.org>
113273         * m4/visibility.m4: New file.
113275 2005-07-24  Bruno Haible  <bruno@clisp.org>
113277         * doc/visibility.texi: New file.
113279 2005-07-22  Bruno Haible  <bruno@clisp.org>
113281         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
113282         $(ALLOCA_H), redundant through BUILT_SOURCES.
113283         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
113284         redundant through BUILT_SOURCES.
113285         * modules/byteswap (Makefile.am): Remove explicit dependency on
113286         $(BYTESWAP_H), redundant through BUILT_SOURCES.
113287         * modules/fnmatch (Makefile.am): Remove explicit dependency on
113288         $(FNMATCH_H), redundant through BUILT_SOURCES.
113289         * modules/getopt (Makefile.am): Remove explicit dependency on
113290         $(GETOPT_H), redundant through BUILT_SOURCES.
113291         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
113292         redundant through BUILT_SOURCES.
113293         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
113294         redundant through BUILT_SOURCES.
113295         * modules/stdbool (Makefile.am): Remove explicit dependency on
113296         $(STDBOOL_H), redundant through BUILT_SOURCES.
113297         * modules/stdint (Makefile.am): Remove explicit dependency on
113298         $(STDINT_H), redundant through BUILT_SOURCES.
113299         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
113300         Remove explicit dependency on $(SYSEXITS_H).
113301         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
113303 2005-07-18  Simon Josefsson  <jas@extundo.com>
113305         * lib/check-version.c (check_version): Accept identical versions too.
113307 2005-07-18  Bruno Haible  <bruno@clisp.org>
113309         * modules/lock: New file.
113310         * MODULES.html.sh (Multithreading): New section.
113312 2005-07-18  Bruno Haible  <bruno@clisp.org>
113314         * m4/lock.m4: New file, from GNU gettext.
113316 2005-07-18  Bruno Haible  <bruno@clisp.org>
113318         * lib/lock.h: New file, from GNU gettext.
113319         * lib/lock.c: New file, from GNU gettext.
113321 2005-07-18  Bruno Haible  <bruno@clisp.org>
113323         * lib/lock.h (gl_once_t): New type.
113324         (gl_once_define, gl_once): New macros.
113325         * lib/lock.c (fresh_once): New variable.
113326         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
113327         functions.
113329 2005-07-16  Simon Josefsson  <jas@extundo.com>
113331         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
113332         workaround, suggested by Bruno.
113334 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
113336         * modules/xalloc (Depends-on): Add xalloc-die.
113337         * modules/xvasprintf (Depends-on): Add xalloc-die.
113339 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
113341         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
113342         with a minor change.
113344 2005-07-15  Bruno Haible  <bruno@clisp.org>
113346         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
113347         When using lib/poll.c, define poll as rpl_poll.
113349 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
113351         * modules/argp (Depends-on): Remove unlocked-io.
113353 2005-07-14  Derek Price  <derek@ximbiot.com>
113355         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
113356         for glob symlink bug.
113358 2005-07-14  Bruno Haible  <bruno@clisp.org>
113360         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
113361         Instead, test for *_unlocked function declarations directly.
113363 2005-07-11  Simon Josefsson  <jas@extundo.com>
113365         * modules/size_max: New file.
113367         * modules/xsize: Depend on size_max module for size_max.m4.
113369 2005-07-11  Simon Josefsson  <jas@extundo.com>
113371         * lib/size_max.h: New file.
113373 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
113375         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
113376         copyright symbol and the year.
113377         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
113378         (version_etc_va): Use parameterized copyright notice.
113379         Reword to conform to the current GNU coding standards.
113381 2005-07-11  Karl Berry  <karl@gnu.org>
113383         * doc/gnulib.texi (Quoting): new node.
113384         (Initial import): more info, from Patrice.
113386 2005-07-11  Bruno Haible  <bruno@clisp.org>
113388         * gnulib-tool (func_usage): Document option --avoid.
113389         (Command line options): Handle --avoid.
113390         (func_acceptable): New function.
113391         (func_modules_transitive_closure): Use it.
113393 2005-07-11  Bruno Haible  <bruno@clisp.org>
113395         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
113396         Reported by Jim Meyering.
113398 2005-07-10  Bruno Haible  <bruno@clisp.org>
113400         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
113401         Needed when size_t is smaller than 'unsigned int'.
113402         Reported by Paul Eggert.
113404 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
113406         * modules/argp (Depends-on): Add unlocked-io
113408 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
113410         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
113411         block of defines.
113413 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
113415         * config/srclist.txt: Comment out regcomp.c, since we have a porting
113416         fix now.
113418 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
113419         and Paul Eggert  <eggert@cs.ucla.edu>
113421         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
113422         in wint_t, not wchar_t.  Remove now-unnecessary cast.
113424 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
113426         * modules/regex (Files): Add lib/regex_internal.c,
113427         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
113428         (Depends-on): Add extensions.
113429         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
113431 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
113433         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
113434         pathconf.
113435         * m4/same.m4 (gl_SAME): Likewise.
113436         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
113438         * m4/regex.m4: Adjust to new libc regex implementation.
113439         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
113440         all the .c and .h parts of (the new) regex.
113441         Quote the m4 stuff better.
113442         Check for RE_ICASE bug of old gnulib.
113443         Check for REG_STARTEND of recent libc.
113444         Rename local variables from jm_* to gl_*.
113445         Quote operand of "test -f".
113446         Say "recent enough" version of libc, not "version 2".
113447         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
113448         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
113449         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
113450         Remove check for btowc, isascii.
113451         Require AM_LANGINFO_CODESET.
113453 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
113455         * lib/regex.c, regex.h: Sync from libc.
113456         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
113457         * lib/regexec.c:
113458         New files, synced from libc, except that regex_internal.h
113459         currently has a small porting fix.
113461 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
113463         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
113464         regex_internal.c, regexec.c.
113465         Add regex_internal.h too, but as a comment, since the libc version
113466         is currently broken in gnulib mode.
113468 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
113470         Support programs like Emacs that use gnulib but not gettext.
113471         * MODULES.html.sh (Internationalization functions): Add gettext-h.
113472         * modules/gettext-h: New file.
113473         * modules/gettext (Files): Remove lib/gettext.h.
113474         (Depends-on): Add gettext-h.
113475         (Makefile.am): Remove lib_SOURCES.
113476         * modules/argmatch, modules/c-stack, modules/closeout:
113477         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
113478         * modules/execute, modules/file-type, modules/getaddrinfo:
113479         * modules/getopt, modules/human, modules/javacomp:
113480         * modules/javaexec, modules/mkdir-p, modules/obstack:
113481         * modules/openat, modules/pagealign_alloc, modules/pipe:
113482         * modules/quotearg, modules/regex, modules/rpmatch:
113483         * modules/unicodeio, modules/userspec, modules/version-etc:
113484         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
113485         * modules/xsetenv:
113486         Depend on gettext-h, not gettext.
113488 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
113490         * gnulib-tool (func_import): Add support for 'public domain' license.
113491         * modules/alloca, modules/atexit, modules/memmove:
113492         Now public domain, not GPL.
113493         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
113494         * modules/realloc, modules/strerror, modules/strtod:
113495         Now LGPL, not GPL.
113497 2005-07-05  Bruno Haible  <bruno@clisp.org>
113499         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
113500         autoconf CVS. Needed for mingw.
113502 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
113504         Remove the dependency of the strftime module on the tzset module.
113505         * modules/strftime (Depends-on): Remove dependency on tzset.
113507 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
113509         Remove the dependency of the strftime module on the tzset module.
113510         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
113511         gl_FUNC_TZSET_CLOBBER.
113513 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
113515         Remove the dependency of the strftime module on the tzset module.
113516         * lib/strftime.c (my_strftime)
113517         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
113518         Copy the input structure, to work around some of the bug with
113519         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
113520         Solaris releases, you should also use the tzset module, but we won't
113521         require it as a dependency any more since we don't want LGPLed code
113522         to depend on GPLed code.
113524 2005-07-02  Jim Meyering  <jim@meyering.net>
113526         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
113527         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
113528         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
113529         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
113531 2005-07-02  Jim Meyering  <jim@meyering.net>
113533         * lib/backupfile.c (backup_args): Change a `0' to NULL.
113535 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
113537         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
113538         declares only 'struct timespec;' (!).
113540 2005-07-01  Jim Meyering  <jim@meyering.net>
113542         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
113543         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
113544         * lib/save-cwd.c, tempname.c:
113545         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
113546         and don't include <sys/file.h>).
113548 2005-06-29  Jim Meyering  <jim@meyering.net>
113550         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
113551         type name.  Use the variable name instead.
113552         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
113553         Likewise.
113555 2005-06-28  Simon Josefsson  <jas@extundo.com>
113557         * modules/check-version (Files): Add check-version.m4.
113559 2005-06-28  Simon Josefsson  <jas@extundo.com>
113561         * m4/check-version.m4: New file, suggested by Jim Meyering
113562         <jim@meyering.net>.
113564 2005-06-28  Simon Josefsson  <jas@extundo.com>
113566         * lib/check-version.h, lib/check-version.c: New files.
113568 2005-06-28  Simon Josefsson  <jas@extundo.com>
113570         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
113571         collision with global variable.  Better indentation.  Don't
113572         increment buffer pointer beyond buffer end.  Based on comments
113573         from Paul Eggert <eggert@cs.ucla.edu>.
113575         * lib/base64.h: Indent.
113577 2005-06-28  Simon Josefsson  <jas@extundo.com>
113579         * doc/gnulib.texi (Library version handling): New section.
113581 2005-06-28  Jim Meyering  <jim@meyering.net>
113583         * check-module (find_included_lib_files): Hard-code another
113584         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
113585         but modules/fts-lgpl (correctly) does not list those files.
113587         * modules/canonicalize (Files): Add lib/pathmax.h.
113589 2005-06-25  Simon Josefsson  <jas@extundo.com>
113591         * modules/check-version: New file.
113593 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
113595         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
113596         initializer of struct addrinfo, as an indication that we don't
113597         care how many members the structure has.
113599 2005-06-24  Derek Price  <derek@ximbiot.com>
113600         and Bruno Haible  <bruno@clisp.org>
113602         Remove stat module & update lstat.
113603         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
113604         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
113605         * m4/stat.m4: Remove this file.
113607 2005-06-24  Derek Price  <derek@ximbiot.com>
113608         and Bruno Haible  <bruno@clisp.org>
113610         Remove stat module & update lstat.
113611         * lib/stat.c: Remove this file...
113612         (slash_aware_lstat): ...moving this content and its support...
113613         * lib/lstat.c (rpl_lstat): ...into here.
113614         * lib/lstat.h: New file.
113616 2005-06-24  Derek Price  <derek@ximbiot.com>
113617         and Bruno Haible  <bruno@clisp.org>
113619         Remove stat module & update lstat.
113620         * config/srclist.txt (libc sources): Remove stat.
113622 2005-06-24  Derek Price  <derek@ximbiot.com>
113623         and Bruno Haible  <bruno@clisp.org>
113625         Remove stat module & update lstat.
113626         * MODULES.html.sh (stat): Remove.
113627         * MODULES.html: Regenerated.
113628         * modules/lstat (Description): Correct function name.
113629         (Files): Add "lstat.h".
113630         (Depends-on): Remove stat, add xalloc, stat-macros.
113631         * modules/stat: Remove this file.
113632         (Include): Add "lstat.h", remove <sys/stat.h>.
113634 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
113636         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
113637         (ranged_convert): Don't save conversion in a temporary struct.
113638         This causes a warning with GCC 4.0.0, and anyway in the typical
113639         case it's not worth the extra 100 bytes or so of code.
113640         (ranged_convert, __mktime_internal): When calling a function via a
113641         pointer P, use P () rather than (*P) (), as we now assume C89 or
113642         better.
113644 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
113646         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
113647         "who -r" failed to give output.  Problem reported by Tim Waugh.
113649         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
113650         (xcalloc): Use it to avoid needless tests.
113651         Problem reported by Jim Meyering.
113653 2005-06-20  Derek Price  <derek@ximbiot.com>
113655         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
113656         unnecessary for Autoconfs > 2.59c.
113658 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
113660         * lib/argp.h (__option_is_short): Check upper limit of
113661         __key. Isprint() requires its argument to have the value
113662         of an unsigned char or EOF.
113664 2005-06-16  Jim Meyering  <jim@meyering.net>
113666         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
113667         when either N or S is zero.
113669 2005-06-16  Derek Price  <derek@ximbiot.com>
113671         * m4/bison.m4: Declare YACC & YFLAGS precious.
113673 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
113675         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
113676         multibyte string or pattern, fall back on unibyte matching.
113677         Problem reported by James Youngman.
113679 2005-06-08  Bruno Haible  <bruno@clisp.org>
113681         * modules/csharpcomp: New file.
113682         * MODULES.html.sh (C#): Add csharpcomp.
113684 2005-06-08  Bruno Haible  <bruno@clisp.org>
113686         * m4/csharpcomp.m4: New file, from GNU gettext.
113688 2005-06-08  Bruno Haible  <bruno@clisp.org>
113690         * lib/csharpcomp.h: New file, from GNU gettext.
113691         * lib/csharpcomp.c: New file, from GNU gettext.
113692         * lib/csharpcomp.sh.in: New file, from GNU gettext.
113694 2005-06-08  Bruno Haible  <bruno@clisp.org>
113696         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
113697         warning on mingw.
113699 2005-06-07  Derek Price  <derek@ximbiot.com>
113701         Sync from CVS.
113702         * lib/glob_.h: Indent nested #ifdef.
113704 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
113706         Sync from coreutils.
113707         Use "file name" when talking about file names, instead of "filename"
113708         or "path", as per the GNU coding standards.
113709         * lib/mkdir-p.c: Renamed from makepath.c.
113710         (make_dir_parents): Renamed from make_path.  All callers changed.
113711         * lib/mkdir-p.h: Likewise.  All includers changed.
113712         * lib/filenamecat.c: Renamed from path-concat.c.
113713         (file_name_concat): Renamed from path_concat.  All callers changed.
113714         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
113715         * lib/filenamecat.h: Likewise.  All includers changed.
113716         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
113717         in comments or local variable names.
113718         * lib/basename.c: Likewise.
113719         * lib/canonicalize.c, canonicalize.h: Likewise.
113720         * lib/dirname.c, dirname.h: Likewise.
113721         * lib/euidaccess.c: Likewise.
113722         * lib/exclude.c: Likewise
113723         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
113724         * lib/fsusage.c, fsuage.h: Likewise.
113725         * lib/fts.c, fts_.h: Likewise.
113726         * lib/getcwd.c: Likewise.
113727         * lib/getloadavg.c: Likewise.
113728         * lib/mkstemp.c: Likewise.
113729         * lib/mountlist.c, mountlist.h: Likewise.
113730         * lib/openat.c, openat.h: Likewise.
113731         * lib/readlink-stub.c: Likewise.
113732         * lib/readutmp.c, readutmp.h: Likewise.
113733         * lib/rename.c: Likewise.
113734         * lib/rmdir.c: Likewise.
113735         * lib/same.c: Likewise.
113736         * lib/savedir.c: Likewise.
113737         * lib/stripslash.c: Likewise.
113738         * lib/tempname.c: Likewise.
113739         * lib/xreadlink.c: Likewise.
113740         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
113741         All uses changed.
113742         * lib/exclude.h: Likewise.
113744         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
113745         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
113746         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
113747         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
113748         * lib/pathmax.h: Include <limits.h> unconditionally, since other
113749         files have been getting away with it for years (MORE/BSD 4.3
113750         is extinct now).
113751         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
113752         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
113754         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
113755         Define to 256, not 255, as per modern POSIX.
113757 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
113759         Sync from coreutils.
113760         Use "file name" when talking about file names, instead of "filename"
113761         or "path", as per the GNU coding standards.
113762         * MODULES.html.sh: mkdir-p renamed from makepath.
113763         filenamecat renamed from path-concat.
113764         * modules/filenamecat: Renamed from modules/path-concat.
113765         (Files): filenamecat.h and filenamecat.c renamed from
113766         path-concat.h and path-concat.c.
113767         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
113768         (Include): filenamecat.h, not path-concat.h.
113769         * modules/mkdir-p: Renamed from modules/makepath.
113770         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
113771         makepath.c.
113772         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
113773         (Include): mkdir-p.h, not makepath.h.
113775 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
113777         Sync from coreutils.
113778         * m4/mkdir-p.m4: Renamed from makepath.m4.
113779         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
113780         Rename files from makepath.c to mkdir-p.c, and from
113781         makepath.h to mkdir-p.h.
113782         * m4/filenamecat.m4: Renamed from path-concat.m4.
113783         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
113784         Rename files from path-concat.c to filenamecat.c,
113785         and from path-concat.h to filenamecat.h.
113786         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
113787         "file name" in local variables or comments.
113788         * m4/rename.m4: Likewise.
113790 2005-06-01  Bruno Haible  <bruno@clisp.org>
113792         * modules/csharpexec: New file.
113793         * MODULES.html.sh (C#): New section.
113795 2005-06-01  Bruno Haible  <bruno@clisp.org>
113797         * m4/csharp.m4: New file, from GNU gettext.
113798         * m4/csharpexec.m4: New file, from GNU gettext.
113800 2005-06-01  Bruno Haible  <bruno@clisp.org>
113802         * lib/csharpexec.h: New file, from GNU gettext.
113803         * lib/csharpexec.c: New file, from GNU gettext.
113804         * lib/csharpexec.sh.in: New file, from GNU gettext.
113806 2005-05-31  Derek Price  <derek@ximbiot.com>
113807             Paul Eggert  <eggert@cs.ucla.edu>
113809         Sync from cvs.
113810         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
113812 2005-05-31  Derek Price  <derek@ximbiot.com>
113813             Paul Eggert  <eggert@cs.ucla.edu>
113815         Sync from cvs.
113816         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
113818 2005-05-29  Derek Price  <derek@ximbiot.com>
113820         * config/srclist.txt (glob_.h, glob.c): Add these files.
113822 2005-05-29  Derek Price  <derek@ximbiot.com>
113824         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
113825         * modules/glob: New file.
113826         * modules/getlogin_r: Add link to POSIX spec in description.
113828 2005-05-29  Derek Price  <derek@ximbiot.com>
113829             Paul Eggert  <eggert@cs.ucla.edu>
113831         * m4/glob.m4: New file.
113833 2005-05-29  Derek Price  <derek@ximbiot.com>
113834             Paul Eggert  <eggert@cs.ucla.edu>
113836         * lib/glob_.h, lib/glob.c: New files.
113838 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
113840         * modules/fts (Files): Remove m4/inttypes-pri.m4.
113841         * modules/fts-lgpl (Depends-on): Remove gettext.
113843 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
113845         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
113846         and don't require gt_INTTYPES_PRI.
113848 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
113850         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
113852         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
113853         the configuration hassle isn't worth it.
113854         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
113855         (LONGEST_MODIFIER, PRIuMAX): Remove.
113857 2005-05-27  Bruno Haible  <bruno@clisp.org>
113859         * lib/getlogin_r.h: Remove second include of <stddef.h>.
113861 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
113863         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
113864         _POSIX_PTHREAD_SEMANTICS for Solaris.
113866 2005-05-25  Derek Price  <derek@ximbiot.com>
113868         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
113870 2005-05-25  Derek Price  <derek@ximbiot.com>
113871             Paul Eggert  <eggert@cs.ucla.edu>
113873         * modules/getlogin_r, m4/getlogin_r.m4: New files.
113874         * lib/getlogin_r.c, getlogin_r.h: New files.
113876 2005-05-25  Bruno Haible  <bruno@clisp.org>
113877             Derek Price  <derek@ximbiot.com>
113879         * lib/getlogin_r.h: Simplify API documentation.
113881 2005-05-23  Derek Price  <derek@ximbiot.com>
113883         * modules/minmax (Files): Add m4/minmax.m4.
113884         (configure.ac): Add gl_MINMAX.
113886 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
113888         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
113889         so that unistd-safer.h (GPL'ed code) need not be included.
113891 2005-05-22  Bruno Haible  <bruno@clisp.org>
113893         * m4/minmax.m4: New file.
113894         Based on a patch by Derek Price <derek@ximbiot.com>.
113896 2005-05-22  Bruno Haible  <bruno@clisp.org>
113898         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
113899         (INT64_MIN): Fix definition.
113900         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
113902         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
113903         NEED_SIGNED_INT_TYPES.
113905         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
113906         HAVE_SYSTEM_INTTYPES.
113908 2005-05-22  Bruno Haible  <bruno@clisp.org>
113910         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
113911         Also include <sys/param.h> if it defines MIN, MAX.
113912         Based on a patch by Derek Price <derek@ximbiot.com>.
113914 2005-05-21  Jim Meyering  <jim@meyering.net>
113916         * modules/fts (Files): Add m4/inttypes-pri.m4.
113917         (Depends-on): Add lstat and remove gettext.  Alphabetize.
113919 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
113921         New fts module.
113922         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
113923         (setup_dir, free_dir): New functions.
113924         (enter_dir, leave_dir): Define trivial
113925         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
113926         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
113927         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
113928         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
113929         Move to fts-cycle.c.
113930         (fts_open): Use setup_dir.
113931         (fts_close): Use free_dir.
113932         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
113933         This adds a label and some gotos, but the alternatives were messier.
113934         Check for memory allocation failure when entering a dir.
113935         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
113936         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
113937         (FTS): New member fts_cycle, that is a union that contains the
113938         old active_dir_ht and cycle_state.  All uses changed to mention
113939         fts_cycle.ht and fts_cycle.state.
113940         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
113941         fts.c, with the following changes:
113942         (setup_dir, free_dir): New functions.
113943         (enter_dir): Now returns bool.  Return true if successful, false
113944         if memory exhausted.  All callers changed.
113945         Do not bother partly cleaning up on
113946         memory allocation failure; that is free_dir's job.
113947         However, free ad if hash_insert fails, to avoid memory leak.
113948         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
113949         fts->fts_options to see which union member to use.
113951 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
113953         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
113954         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
113956 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
113958         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
113960 2005-05-20  Jim Meyering  <jim@meyering.net>
113962         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
113963         Now a macro, to pacify GCC.
113965 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
113967         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
113968         of -1.
113970 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
113972         * lib/chown.c (rpl_chown): Return -1 on failure.
113974 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
113976         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
113977         Don't check for stddef.h.
113978         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
113979         don't use its results.
113980         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
113981         since we include them unconditionally.  Don't require
113982         AM_STDBOOL_H, since stdbool is a prerequisite.
113983         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
113984         since we assume C89 or better.
113985         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
113986         as we don't use their results.
113987         Don't check for fchdir, memmove, memset, strrchr, as we use
113988         them unconditionally.
113989         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
113990         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
113992 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
113994         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
113995         Include <stddef.h> unconditionally, since we assume C89 now.
113996         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
113997         * lib/fts.c: Include fts_.h first, to check interface.
113998         Do not include intprops.h; no longer needed.
113999         Include cycle-check.h and hash.h, since fts_.h no longer does.
114000         Remove unnecessary casts of closedir to void.
114001         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
114002         decide whether to decrement nlinks.
114003         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
114004         (FTS): Use struct hash_table * instead of Hash_table, so that
114005         we no longer need to include hash.h here.
114007 2005-05-18  Jim Meyering  <jim@meyering.net>
114009         * modules/dirfd (License): Change to LGPL.  Most of the code
114010         is already in the public domain.
114012 2005-05-18  Jim Meyering  <jim@meyering.net>
114014         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
114015         Reported by Yoann Vandoorselaere.
114017 2005-05-17  Jim Meyering  <jim@meyering.net>
114019         * m4/fts.m4: New file, from coreutils.
114021 2005-05-17  Jim Meyering  <jim@meyering.net>
114023         * lib/fts.c, lib/fts_.h: New files, from coreutils.
114025 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
114027         Sync from coreutils.
114028         * m4/unlinkdir.m4: New file.
114030 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
114032         Sync from coreutils.
114033         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
114034         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
114035         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
114036         White space changes only.
114037         * lib/makepath.c (make_path): Port to hosts where leading "//" is
114038         special.
114039         * lib/yesno.c: Include getline.h, not ctype.h.
114040         (yesno): Don't remove leading white space; POSIX doesn't allow it.
114041         Use getline to remove arbitrary restriction on response length.
114043 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
114045         * config/srclist-update: Spell out "Street" in FSF postal
114046         mail address; this is the style the FSF seems to prefer.
114048         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
114049         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
114050         this updates FSF postal mail address.
114052         Sync from coreutils.
114053         * modules/unlinkdir: New file.
114054         * modules/yesno (Depends-on): Add getline.
114055         * MODULES.html.sh (File system functions): Add unlinkdir.
114057 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
114059         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
114060         lib/strsep.h:
114061         Change the initial comment to refer to GPL, not LGPL.
114062         gnulib-tool will change it to LGPL as needed.
114064         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
114065         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
114066         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
114067         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
114068         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
114069         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
114070         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
114071         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
114072         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
114073         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
114074         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
114075         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
114076         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
114077         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
114078         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
114079         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
114080         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
114081         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
114082         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
114083         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
114084         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
114085         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
114086         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
114087         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
114088         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
114089         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
114090         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
114091         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
114092         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
114093         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
114094         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
114095         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
114096         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
114097         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
114098         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
114099         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
114100         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
114101         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
114102         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
114103         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
114104         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
114105         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
114106         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
114107         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
114108         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
114109         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
114110         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
114111         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
114112         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
114113         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
114114         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
114115         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
114116         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
114117         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
114118         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
114119         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
114120         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
114121         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
114122         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
114123         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
114124         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
114125         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
114126         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
114127         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
114128         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
114129         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
114130         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
114131         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
114132         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
114133         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
114134         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
114135         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
114136         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
114137         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
114138         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
114139         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
114140         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
114141         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
114142         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
114143         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
114144         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
114145         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
114146         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
114147         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
114148         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
114149         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
114150         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
114151         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
114152         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
114153         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
114154         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
114155         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
114156         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
114157         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
114158         lib/yesno.c, lib/yesno.h:
114159         Update FSF postal mail address.
114161 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
114163         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
114164         tests/test-memmem.c, tests/test-stpncpy.c:
114165         Update FSF postal mail address.
114167 2005-05-13  Bruno Haible  <bruno@clisp.org>
114169         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
114170         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
114171         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
114172         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
114173         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
114174         Add support for 64-bit integers in the MSVC compiler.
114176 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
114178         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
114180 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
114182         * gnulib-tool (func_import): Sort and uniquify recommended includes.
114184 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
114186         * doc/getdate.texi (General date syntax): Don't say that date
114187         date --iso-8601=ns generates acceptable dates; it doesn't yet.
114188         Problem reported by Nic Ferrier.
114190 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114192         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
114193         specified in ai_socktype. Fix invalid ai_protocol
114194         check. ai_protocol is usually set to 0 or depending on
114195         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
114196         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
114197         ai_socktype / ai_protocol in the returned addrinfo structure.
114199 2005-05-10  Simon Josefsson  <jas@extundo.com>
114201         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
114202         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
114204 2005-05-10  Karl Berry  <karl@gnu.org>
114206         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
114207         (from http://www.gnu.org/licenses).
114208         * doc/COPYING.LIB: also rename to COPYING.LESSER.
114209         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
114210         fdl.texi suffices.
114212 2005-05-10  Karl Berry  <karl@gnu.org>
114214         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
114215         (COPYING.DOC): remove.
114217         * config/srclist-update: new FSF address.
114219 2005-05-10  Derek Price  <derek@ximbiot.com>
114221         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
114222         possible.
114224 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114225             Bruno Haible  <bruno@clisp.org>
114227         * modules/inet_ntop: New file.
114228         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
114229         inet_ntop.
114231 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114232             Bruno Haible  <bruno@clisp.org>
114234         * m4/inet_ntop.m4: New file.
114236 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114237             Bruno Haible  <bruno@clisp.org>
114239         * lib/inet_ntop.h: New file.
114240         * lib/inet_ntop.c: New file, from glibc with modifications.
114242 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
114244         * modules/time_r (License): Change to LGPL.
114245         * modules/extensions (License): Change to LGPL.  Actually,
114246         the license is more permissive than that, but currently gnulib-tool
114247         doesn't know how to handle more-permissive licenses.
114249         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
114250         Problem reported by Dave Love.
114252 2005-05-08  Jim Meyering  <jim@meyering.net>
114254         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
114255         blank.
114257 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
114259         * modules/argmatch (Depends-on): Add stdbool.
114260         * modules/backupfile (Depends-on): Likewise.
114261         * modules/chdir-long (Depends-on): Likewise.
114262         * modules/closeout (Depends-on): Likewise.
114263         * modules/cycle-check (Depends-on): Likewise.
114264         * modules/dirname (Depends-on): Likewise.
114265         * modules/fnmatch (Depends-on): Likewise.
114266         * modules/fsusage (Depends-on): Likewise.
114267         * modules/fwriteerror (Depends-on): Likewise.
114268         * modules/getcwd (Depends-on): Likewise.
114269         * modules/getloadavg (Depends-on): Likewise.
114270         * modules/hard-locale (Depends-on): Likewise.
114271         * modules/makepath (Depends-on): Likewise.
114272         * modules/mountlist (Depends-on): Likewise.
114273         * modules/nanosleep (Depends-on): Likewise.
114274         * modules/posixtm (Depends-on): Likewise.
114275         * modules/quotearg (Depends-on): Likewise.
114276         * modules/readtokens (Depends-on): Likewise.
114277         * modules/readtokens0 (Depends-on): Likewise.
114278         * modules/readutmp (Depends-on): Likewise.
114279         * modules/save-cwd (Depends-on): Likewise.
114280         * modules/strftime (Depends-on): Likewise.
114281         * modules/userspec (Depends-on): Likewise.
114282         * modules/utimecmp (Depends-on): Likewise.
114283         * modules/xgetcwd (Depends-on): Likewise.
114284         * modules/xnanosleep (Depends-on): Likewise.
114285         * modules/xstrtod (Depends-on): Likewise.
114286         * modules/yesno (Depends-on): Likewise.
114288 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
114290         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
114291         needless checks.
114293 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
114295         Merge from coreutils.  Among other things,
114296         add bulletproofing for cases where stdin, stdout, or stderr are closed.
114297         * lib/fd-safer.c: New file.
114298         * lib/fcntl-safer.h, open-safer.c: Remove.
114299         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
114300         * lib/dup-safer.c: Include unistd-safer.h first.
114301         Don't include errno.h.
114302         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
114303         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
114304         * lib/file-type.c: Rely on file-type.h change.
114305         * lib/getloadavg.c: Include unistd-safer.h.
114306         (getloadavg): Use safer open.
114307         * lib/getusershell.c: Include "stdio-safer.h".
114308         (getusershell): Use safer fopen.
114309         * lib/long-options.c (long_options): Use NULL rather than 0.
114310         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
114311         'free'.
114312         * lib/modechange.c: Likewise.
114313         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
114314         (MODE_DONE): New constant.
114315         (struct mode_change): Remove 'next' member.
114316         (make_node_op_equals): New function; like the old one of the
114317         same name, except it allocates an array.
114318         (mode_compile, mode_create_from_ref): Use it.
114319         (mode_compile): Allocate result as an array, not a linked list.
114320         Parse octal string ourself, so that we catch mistakes like "+0".
114321         (mode_adjust): Arg is an array, not a linked list.
114322         * lib/modechange.c: Include stat-macros.h, xalloc.h.
114323         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
114324         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
114325         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
114326         Remove.  This is now stat-macros.h's job.
114327         (talloc): Remove.  All callers replaced by xalloc, so that
114328         our invokers don't have to worry about reporting memory failures.
114329         (make_node_op_equals): Remove.
114330         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
114331         New constants.
114332         (struct mode_change): Moved here from modechange.h.
114333         (mode_append_entry): Remove.
114334         (mode_compile): Remove MASKED_OPS arg, since it encouraged
114335         apps to have incorrect behavior.  Use simpler algorithm for head
114336         and tail.  Don't futz with umask; that's now the job of mode_adjust.
114337         Detect more invalid usages rather than having somewhat-random behavior.
114338         Don't insert an "a=" action, as that leads to incorrect behavior.
114339         (mode_compile, mode_create_from_ref): Return NULL on error instead
114340         of an enum, since now there's only one way to have an error.  All
114341         callers changed.
114342         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
114343         at the correct time.  Simplify calculation of "+u" and its ilk.
114344         Don't mishandle "+X".
114345         (mode_free): Remove "register" and localize decls.
114346         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
114347         (struct mode_change): Move to modechange.c; callers don't
114348         need to see this stuff.
114349         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
114350         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
114351         (mode_change, mode_adjust): Reflect the new signatures noted above.
114352         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
114353         that might redefine system include files.
114354         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
114355         (my_usleep): Use NULL rather than (void *) 0.
114356         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
114357         Use siginterrupt to specify that system calls should be interrupted.
114358         (rpl_nanosleep): Move initialization of suspended closer to call of
114359         my_usleep.
114360         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
114361         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
114362         (desirable_utmp_entry): New function.
114363         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
114364         using x2nrealloc, to simplify logic.
114365         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
114366         size calculation.  Do not assume utmp file is a regular file.
114367         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
114368         (READ_UTMP_CHECK_PIDS): New constant.
114369         * lib/save-cwd.c: Include unistd-safer.h.
114370         (save_cwd): Use fd_safer.
114371         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
114372         [!_LIBC] Include "stat-macros.h" instead.
114373         * lib/unistd-safer.h (fd_safer): New decl.
114375 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
114377         * modules/getloadavg (Depends-on): Add unistd-safer.
114378         * modules/getusershell (Depends-on): Add stdio-safer.
114379         * modules/lstat (Depends-on): Remove xalloc.
114380         * modules/mkstemp (Depends-on): Add stat-macros.
114381         * modules/modechange (Depends-on): Remove xstrtol.
114382         Add stat-macros, xalloc.
114383         * modules/save-cwd (Depends-on): Add unistd-safer.
114384         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
114385         * modules/unistd-safer (Files): Add lib/fd-safer.c
114386         (Makefile.am): Remove lib_SOURCES.
114388         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
114389         Remove fcntl-safer; unistd-safer supersedes it.
114391 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
114393         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
114394         AC_HEADER_STAT.
114395         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
114396         (gl_PREREQ_CHOWN): Remove.
114397         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
114398         it.  Don't require AC_HEADER_STAT.
114399         (gl_PREREQ_LSTAT): Remove.
114400         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
114401         Don't require AC_HEADER_STAT.
114402         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
114403         (gl_PREREQ_RMDIR): Remove.
114404         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
114405         mention stat-macros.h or AC_HEADER_STAT, since we'll make
114406         the stat-macros module a prerequisite.
114407         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
114408         * m4/filemode.m4 (gl_FILEMODE): Likewise.
114409         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
114410         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
114411         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
114412         variable names.
114413         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
114414         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
114415         variable prefixes.
114416         * m4/fcntl-safer.m4: Remove.
114417         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
114418         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
114419         Invoke gl_PREREQ_FD_SAFER.
114420         (gl_PREREQ_FD_SAFER): New macro.
114421         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
114422         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
114423         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
114424         Remove duplicate call to AC_LIBOBJ(readutmp).
114425         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
114427         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
114428         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
114430 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
114432         * MODULES.html.sh (Misc): Add byteswap.
114434 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
114436         * modules/getcwd (Depends-on): Add extensions.
114437         * modules/openat (Depends-on): Likewise.
114439 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
114441         * modules/byteswap: New file.
114443 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
114445         * m4/byteswap.m4: New file.
114447 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
114449         * lib/byteswap_.h: New file.
114451 2005-04-25  Karl Berry  <karl@gnu.org>
114453         * m4/gettext.m4: Update from GNU gettext 0.14.4.
114455 2005-04-25  Albert Chin  <china@thewrittenword.com>
114457         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
114458         Toolkit C bug.
114460 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
114462         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
114463         (func_ln_if_changed): Remove forcibly for no error message
114464         in case file does not exist.
114466 2005-04-19  Simon Josefsson  <jas@extundo.com>
114468         * gnulib-tool (Options): Make --symlink mean --symbolic.
114470 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
114472         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
114474 2005-04-16  Simon Josefsson  <jas@extundo.com>
114476         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
114478 2005-04-15  Simon Josefsson  <jas@extundo.com>
114480         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
114482 2005-04-15  Simon Josefsson  <jas@extundo.com>
114484         * gnulib-tool: Rename --symlink to --symbolic.
114486 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
114488         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
114489         symbolic links to files instead of copying/moving.  Add --aux-dir,
114490         specifying directory relative --dir where auxiliary build tools
114491         are placed.
114493 2005-04-14  Bruno Haible  <bruno@clisp.org>
114495         * modules/allocsa (License): Change to LGPL.
114496         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
114498 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
114500         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
114501         that "UTC +1 second" continues to work.  Problem reported
114502         by Dmitry V. Levin.
114503         (relunit_snumber): New rule.
114504         (relunit): Use it.
114506 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
114508         * lib/getdate.y (universal_time_zone_table): New constant.
114509         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
114510         universal_time_zone_table.
114511         (lookup_zone): Prefer universal_time_zone_table to
114512         local_time_zone_table, so that "GMT" time stamps are allowed in
114513         London during the summer.  Problem reported by Ian Abbott.
114515 2005-04-12  Jim Meyering  <jim@meyering.net>
114517         * lib/human.c (humblock): Set *options even when returning due to
114518         xstrtoumax conversion failure.  Thanks to a used-uninitialized
114519         warning from gcc-4.
114521 2005-04-09  Jim Meyering  <jim@meyering.net>
114523         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
114524         -Wuninitialized: initialize tm0.tm_year.
114526 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
114528         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
114529         count, since there's no maximum.  All uses changed.
114530         Add member dsts_seen.
114531         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
114532         not being INT_MAX.
114533         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
114534         Use pc_rels_seen to decide whether a date is absolute.
114536         * lib/getdate.y (number): Don't overwrite year.
114537         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
114538         check.
114540 2005-04-02  Simon Josefsson  <jas@extundo.com>
114542         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
114543         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
114545 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
114547         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
114548         where no absolute path name can be longer than PATH_MAX.
114550 2005-03-27  Jim Meyering  <jim@meyering.net>
114552         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
114554 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
114556         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
114557         "one's complement" -> "ones' complement" in comment, as per Knuth.
114558         "value of type" -> "type or expression" in comment.
114559         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
114561 2005-03-26  Jim Meyering  <jim@meyering.net>
114563         Comment nits.
114564         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
114565         Correct typos: s/or/of/.
114567 2005-03-26  Jim Meyering  <jim@meyering.net>
114569         * modules/check-include-files: Move to ../ and rename to...
114570         * check-module: ...this.
114572 2005-03-25  Jim Meyering  <jim@meyering.net>
114574         * modules/xvasprintf (Files): Add xalloc.h.
114576 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
114578         * modules/gettext (Files): config/config.rpath ->
114579         build-aux/config.rpath
114580         * modules/iconv (Files): Likewise.
114581         Problem reported by Oskar Liljeblad.
114583 2005-03-23  Jim Meyering  <jim@meyering.net>
114585         * modules/check-include-files: New script to check for
114586         missing dependencies, multiple includes, etc.
114588         * modules/c-strtold (Depends-on): Add xalloc.
114589         * modules/c-strtod (Depends-on): Add xalloc.
114590         * modules/hash (Depends-on): Add xalloc.
114591         (Files): Remove lib/xalloc.h.
114593         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
114594         * modules/userspec (Files): Add lib/inttostr.h.
114596 2005-03-23  Jim Meyering  <jim@meyering.net>
114598         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
114600 2005-03-22  Jim Meyering  <jim@meyering.net>
114602         * modules/stat-macros: New module.
114603         * modules/canonicalize, modules/euidaccess, modules/file-type,
114604         * modules/filemode, modules/lchown, modules/makepath,
114605         * modules/rmdir, modules/stat: Depend on new stat-macros module
114606         rather than listing lib/stat-macros.h manually.
114607         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
114609 2005-03-22  Jim Meyering  <jim@meyering.net>
114611         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
114613 2005-03-22  Bruno Haible  <bruno@clisp.org>
114615         * config/srclist.txt: Replace target directory 'config' with
114616         'build-aux'.
114617         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
114618         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
114619         ../build-aux/.
114621 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
114623         * modules/chdir-long (Depends-on): Add mempcpy.
114625         * modules/acl, modules/backupfile, modules/c-strtod,
114626         modules/c-strtold, modules/canon-host, modules/canonicalize,
114627         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
114628         modules/exclude, modules/exitfail, modules/file-type,
114629         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
114630         modules/getdate, modules/getline, modules/getpagesize,
114631         modules/getpass, modules/getugroups, modules/group-member,
114632         modules/hard-locale, modules/hash, modules/human, modules/idcache,
114633         modules/inttostr, modules/long-options, modules/makepath,
114634         modules/md5, modules/memcasecmp, modules/memcoll,
114635         modules/modechange, modules/mountlist, modules/path-concat,
114636         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
114637         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
114638         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
114639         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
114640         modules/strftime, modules/strndup, modules/strverscmp,
114641         modules/timespec, modules/unlocked-io, modules/userspec,
114642         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
114643         modules/yesno:
114644         Remove lib_SOURCES line from Makefile.am section, as this is now
114645         done automatically by the corresponding Autoconf macro.
114647 2005-03-21  Jim Meyering  <jim@meyering.net>
114649         Changes imported from coreutils.
114651         * lib/cycle-check.c: Don't include xalloc.h.
114653         * lib/path-concat.c: Don't include assert.h.
114654         (path_concat): Remove assertion that would have triggered
114655         for ABASE starting with more than one slash.
114656         Reported by Andreas Schwab.
114658         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
114659         properly when ABASE is an absolute file name.
114660         Correct the description of this function.
114661         Include <assert.h>.
114662         Add an assertion and a test driver.
114663         This fixes a bug introduced on 2004-07-02.
114664         Andreas Schwab reported the resulting failure of cp --parents:
114665         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
114667 2005-03-21  Jim Meyering  <jim@meyering.net>
114669         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
114670         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
114672 2005-03-21  Jim Meyering  <jim@meyering.net>
114673         and  Paul Eggert  <eggert@cs.ucla.edu>
114675         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
114676         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
114677         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
114678         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
114679         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
114680         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
114681         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
114682         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
114683         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
114684         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
114685         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
114686         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
114687         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
114688         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
114689         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
114690         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
114691         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
114692         for these modules.
114694 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
114696         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
114697         (which shouldn't happen), generate nothing instead of returning 0
114698         immediately, so that nstrftime (NULL, ...) doesn't return 0.
114700 2005-03-16  Bruno Haible  <bruno@clisp.org>
114702         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
114703         HAVE_LONGLONG_64BIT.
114705 2005-03-16  Bruno Haible  <bruno@clisp.org>
114707         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
114708         HAVE_LONGLONG_64BIT.
114710 2005-03-16  Bruno Haible  <bruno@clisp.org>
114712         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
114713         HAVE_LONGLONG_64BIT.
114715 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
114717         * lib/strftime.c (my_strftime): Prepend space to format so that we can
114718         reliably distinguish strftime failure from empty output on POSIX
114719         hosts.
114721 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
114723         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
114724         (iconv_string): Don't guess a size-zero buffer, as that might cause
114725         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
114726         result would be 'too large', where 'too large' is (heuristically)
114727         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
114728         overflow concerns.  This will prevent some unwanted malloc failures
114729         when the inputs are very large.
114731 2005-03-15  Karl Berry  <karl@gnu.org>
114733         * config/srclist.txt (config.rpath): from gettext.
114734         * config/config.rpath: update.
114736 2005-03-15  Bruno Haible  <bruno@clisp.org>
114738         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
114739         to 'negate'.
114741         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
114742         variable.
114744         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
114745         results.
114747 2005-03-14  Simon Josefsson  <jas@extundo.com>
114749         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
114750         <fx@gnu.org>.
114752 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
114754         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
114755         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
114756         intprops.h.
114757         * lib/strtol.c: Likewise.
114759 2005-03-14  Jim Meyering  <jim@meyering.net>
114761         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
114762         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
114763         to be nonzero so that we (and caller) can detect the difference
114764         between a valid zero-length expansion and an error return, even
114765         when the underlying strftime fails before writing anything into
114766         that location.
114768 2005-03-14  Bruno Haible  <bruno@clisp.org>
114770         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
114771         Update from GNU gettext 0.14.3.
114773 2005-03-10  Jim Meyering  <jim@meyering.net>
114775         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
114777 2005-03-10  Jim Meyering  <jim@meyering.net>
114779         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
114780         so that this module works on systems without fchdir.
114782 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
114784         Factor int-properties macros into a single file, except for
114785         glibc-related files.
114786         * lib/intprops.h: New file.
114787         * lib/getloadavg.c: Include it instead of limits.h.
114788         (INT_STRLEN_BOUND): Remove.
114789         * lib/human.c: Include intprops.h.
114790         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
114791         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
114792         302/1000.
114793         * lib/inttostr.h: Include intprops.h instead of limits.h.
114794         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
114795         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
114796         for consistency with intprops.h.
114797         (time_t_is_integer, twos_complement_arithmetic): Use them.
114798         * lib/sig2str.h: Include <signal.h>, intprops.h.
114799         (INT_STRLEN_BOUND): Remove.
114800         * lib/strftime.c (TYPE_SIGNED): Remove.
114801         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
114802         * lib/strtol.c: Adjust comments to match intprops.h.
114803         * lib/userspec.c: Include intprops.h.
114804         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
114805         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
114806         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
114807         instead of rolling our own expressions.
114808         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
114810         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
114811         instead of int.
114812         (my_strftime): Do not mishandle years close to INT_MAX, by doing
114813         the right thing even if adding 1900 would overflow.  Similarly
114814         for tm_mon + 1 and tm_yday + 1.
114815         Make %Y always equivalent to %C%y, and similarly for %G and %g.
114816         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
114817         (DO_SIGNED_NUMBER): New macro.
114818         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
114820 2005-03-07  Bruno Haible  <bruno@clisp.org>
114822         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
114824 2005-03-07  Bruno Haible  <bruno@clisp.org>
114826         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
114828 2005-03-04  Derek R. Price  <derek@ximbiot.com>
114830         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
114831         (func_import): Only replace files via --import when they have actually
114832         changed.
114834 2005-03-03  Derek R. Price  <derek@ximbiot.com>
114836         * m4/mmap-anon.m4: New file.
114837         * m4/pagealign_alloc.m4: New file.
114839 2005-03-03  Derek R. Price  <derek@ximbiot.com>
114840             Bruno Haible  <bruno@clisp.org>
114842         * modules/pagealign_alloc: New file.
114843         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
114845 2005-03-03  Derek R. Price  <derek@ximbiot.com>
114846             Bruno Haible  <bruno@clisp.org>
114848         * lib/pagealign_alloc.h: New file.
114849         * lib/pagealign_alloc.c: New file.
114851 2005-03-03  Bruno Haible  <bruno@clisp.org>
114853         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
114854         Use an all-permissive copyright notice, recommended by RMS.
114856 2005-03-02  Bruno Haible  <bruno@clisp.org>
114858         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
114859         of AIX, the replacement has to be done only after <string.h> is
114860         included, therefore not in config.h. stpncpy.h does the replacement,
114861         and stpncpy.c uses it.
114863 2005-03-02  Bruno Haible  <bruno@clisp.org>
114865         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
114866         stpncpy.c uses it.
114868 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
114870         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
114871         The workaround isn't strictly needed for POSIX conformance, and
114872         it's too much of a pain to configure and maintain.  We'll ask
114873         people to fix their kernels instead.
114874         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
114875         (NANOSLEEP_BUG_WORKAROUND): Remove.
114876         (xnanosleep): Remove the workaround.
114878 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
114880         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
114881         Reported by Derek Price.
114882         (Include): Add "timespec.h".
114884         * modules/xnanosleep (Depends-on): Remove gethrxtime.
114886 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
114888         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
114889         to detect nanosleep bug.
114891 2005-03-01  Bruno Haible  <bruno@clisp.org>
114893         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
114895 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
114897         * modules/gethrxtime: New file.
114898         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
114899         (Depends-on): Add gethrxtime.
114900         (configure.ac): Add gl_XNANOSLEEP.
114901         (Makefile.am): Remove lib_SOURCES line.
114903 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
114905         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
114906         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
114908 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
114910         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
114911         * lib/timespec.h (gettime): Return void, since it always
114912         succeeds now.  All uses changed.
114913         * lib/gettime.c (gettime): Likewise.
114914         [HAVE_NANOTIME]: Prefer nanotime.
114915         Assume gettimeofday succeeds, as POSIX requires.
114916         Assime time () succeeds, since other code already does.
114917         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
114918         (timespec_subtract): Remove.
114919         (NANOSLEEP_BUG_WORKAROUND): New constant.
114920         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
114921         things considerably.  Use it only on GNU/Linux hosts, since the
114922         workaround shouldn't be needed elsewhere.
114924 2005-02-24  Bruno Haible  <bruno@clisp.org>
114926         * modules/gettext (Files): Add m4/glibc2.m4.
114928 2005-02-24  Bruno Haible  <bruno@clisp.org>
114930         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
114931         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
114932         * m4/progtest.m4:
114933         Update from GNU gettext 0.14.2.
114934         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
114936 2005-02-24  Bruno Haible  <bruno@clisp.org>
114938         * lib/localcharset.c: Update from GNU gettext 0.14.2.
114939         * lib/config.charset: Update from GNU gettext 0.14.2.
114941 2005-02-24  Bruno Haible  <bruno@clisp.org>
114943         * lib/gettext.h: Update from GNU gettext 0.14.2.
114945 2005-02-23  Simon Josefsson  <jas@extundo.com>
114947         * m4/iconvme.m4: New file.
114949 2005-02-23  Jim Meyering  <jim@meyering.net>
114951         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
114952         change.
114953         Thanks to Bruno Haible for catching it.
114955 2005-02-22  Simon Josefsson  <jas@extundo.com>
114957         * modules/iconvme: New file.
114959         * MODULES.html.sh: Add iconvme.
114961 2005-02-22  Simon Josefsson  <jas@extundo.com>
114963         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
114965 2005-02-22  Simon Josefsson  <jas@extundo.com>
114967         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
114969 2005-02-22  Jim Meyering  <jim@meyering.net>
114971         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
114972         s/ifndef/ifdef/.
114974 2005-02-20  Neil Conway  <neilc@samurai.com>
114976         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
114977         returned by OSX/Darwin if the specified buffer is not large
114978         enough for the hostname.
114980 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
114982         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
114983         pass it to _help, otherwise the latter coredumps trying to
114984         dereference state.root_argp.
114986 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
114988         * modules/chdir-long (Depends-on): Add memrchr.
114989         * modules/memrchr (Files): Add lib/memrchr.h.
114990         (Include): "memrchr.h".
114992 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
114994         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
114996 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
114998         * lib/memrchr.h: New file.
114999         * lib/chdir-long.c: Include it.
115000         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
115001         Don't bother including stddef.h.
115003 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
115005         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
115006         inclusion.
115007         Include <sys/types.h>, for dev_t.
115008         (ME_DUMMY, ME_REMOTE): Move from here....
115009         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
115010         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
115011         Dmitry V. Levin.
115012         Include mountlist.h first, to test the interface.
115014 2005-01-29  Bruno Haible  <bruno@clisp.org>
115016         * lib/progname.c (program_name): Initialize.
115017         Needed when linking statically on MacOS X.
115019 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
115021         Sync from coreutils.
115022         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
115023         (Depends-on): Add c-strtod.
115024         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
115026 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
115028         Sync from coreutils.
115029         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
115031         Remove files that are specific to coreutils.
115032         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
115034 2005-01-28  Bruno Haible  <bruno@clisp.org>
115036         * modules/javacomp: New file.
115037         * MODULES.html.sh (Java): Add javacomp.
115039 2005-01-28  Bruno Haible  <bruno@clisp.org>
115041         * m4/javacomp.m4: New file, from GNU gettext.
115043 2005-01-28  Bruno Haible  <bruno@clisp.org>
115045         * lib/javacomp.sh.in: New file, from GNU gettext.
115046         * lib/javacomp.h: New file, from GNU gettext.
115047         * lib/javacomp.c: New file, from GNU gettext.
115049 2005-01-26  Simon Josefsson  <jas@extundo.com>
115051         * lib/gai_strerror.c: Use GPL in header.
115053 2005-01-26  Bruno Haible  <bruno@clisp.org>
115055         * modules/javaexec: New file.
115056         * MODULES.html.sh (Java): Add javaexec.
115058 2005-01-26  Bruno Haible  <bruno@clisp.org>
115060         * m4/javaexec.m4: New file, from GNU gettext.
115062 2005-01-26  Bruno Haible  <bruno@clisp.org>
115064         * lib/javaexec.sh.in: New file, from GNU gettext.
115065         * lib/javaexec.h: New file, from GNU gettext.
115066         * lib/javaexec.c: New file, from GNU gettext.
115068 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
115070         * modules/lchown (Depends-on): Remove lchown.h
115072 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
115074         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
115075         must be defined if the header file was not found, in order
115076         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
115078 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
115080         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
115081         initializers for struct pentry_state.
115082         (__argp_error): Check return value of __asprintf
115083         (__argp_failure): Translate error message
115085         * lib/argp-parse.c: Removed braces around the expansion of N_()
115087 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
115089         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
115090         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
115091         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
115092         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
115093         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
115094         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
115095         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
115096         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
115097         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
115098         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
115099         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
115100         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
115101         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
115102         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
115103         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
115104         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
115105         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
115106         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
115107         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
115108         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
115109         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
115110         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
115111         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
115112         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
115113         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
115114         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
115115         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
115116         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
115117         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
115118         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
115119         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
115120         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
115121         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
115122         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
115123         xstrtol.m4, xstrtoumax.m4, yesno.m4:
115124         Use an all-permissive copyright notice, recommended by RMS.
115126 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
115128         * modules/chdir-long (Depends-on): Remove mempcpy.
115130 2005-01-21  Jim Meyering  <jim@meyering.net>
115132         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
115133         same value as for Solaris 9.
115135         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
115136         component length.  This included changing the parameter to be
115137         of type `char *' rather than `char const *'.
115138         * lib/chdir-long.h (chdir_long): Update prototype.
115140         * lib/openat.c (fdopendir, fstatat): New functions.
115141         * lib/openat.h: Include headers required for use of DIR and struct
115142         stat.
115143         [AT_SYMLINK_NOFOLLOW]: Define.
115144         (fdopendir, fstatat): Add prototypes.
115146 2005-01-21  Bruno Haible  <bruno@clisp.org>
115148         * modules/classpath: New file.
115149         * MODULES.html.sh (Java): Add classpath.
115151 2005-01-21  Bruno Haible  <bruno@clisp.org>
115153         * lib/classpath.h: New file, from GNU gettext.
115154         * lib/classpath.c: New file, from GNU gettext.
115156 2005-01-20  Simon Josefsson  <jas@extundo.com>
115158         * modules/version-etc-fsf: New file.
115160 2005-01-20  Simon Josefsson  <jas@extundo.com>
115162         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
115163         * lib/version-etc.c: Remove version_etc_copyright.
115164         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
115165         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
115167 2005-01-20  Simon Josefsson  <jas@extundo.com>
115169         * lib/base64.h (isbase64): Add.
115171         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
115172         using a unsigned prototype, don't inline.
115173         (base64_decode): Use it.
115175 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
115177         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
115178         it.
115180 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
115182         * lib/save-cwd.c (save_cwd): Remove code to support the case
115183         where fchdir is missing or flaky.
115185 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
115187         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
115189 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
115191         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
115192         AC_LIBSOURCES now does this.
115193         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
115194         with new ullong_max module.
115196 2005-01-19  Bruno Haible  <bruno@clisp.org>
115198         * modules/sh-quote: New file.
115199         * MODULES.html.sh (Executing programs): Add sh-quote.
115201 2005-01-19  Bruno Haible  <bruno@clisp.org>
115203         * lib/sh-quote.h: New file, from GNU gettext.
115204         * lib/sh-quote.c: New file, from GNU gettext.
115206 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
115208         Merge from coreutils.
115209         * m4/ullong_max.m4: New file.
115210         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
115211         (gl_MACROS): Assume localeconv exists.
115213 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
115215         Merge changes from coreutils, as described below in several
115216         changelogs dated today.
115218         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
115219         (O_DIRECTORY): Remove; not needed here, since "." must be
115220         a directory.  All uses removed.
115221         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
115222         universal on Suns, and we also need to test for IRIX.
115223         Revamp code to use 'if' rather than '#if'.
115224         Avoid unnecessary comparison of cwd->desc to 0.
115226         * lib/utimens.c (futimens): Robustify the previous patch, by checking
115227         for known valid error numbers rather than observed invalid ones.
115229 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
115231         * modules/ullong_max: New file.
115233         * modules/chdir-long, modules/openat: New files.
115234         * modules/save-cwd (Depends-on): Depend on chdir-long.
115235         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
115237 2005-01-18  Jim Meyering  <jim@meyering.net>
115239         Merge from coreutils.
115240         * m4/chdir-long.m4, m4/openat.m4: New files.
115241         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
115242         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
115243         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
115244         is sane and DOES follow symlinks.  Besides, testing 20 different
115245         systems found no broken chown implementations.
115246         Prompted by a change in rsync's copy of this macro.
115247         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
115249         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
115251         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
115252         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
115253         NULL-means-set-to-current-time semantics.
115254         Remove temporary file immediately, rather than waiting
115255         for configure's at-exit trap code to do it.
115257 2005-01-18  Jim Meyering  <jim@meyering.net>
115259         * lib/version-etc.c (version_etc_copyright): Update copyright date.
115261         * lib/utimens.c (futimens): Account for the fact that futimes
115262         can also fail with errno == ENOSYS or errno == ENOENT.
115263         Patch from Dmitry V. Levin.
115265         Change the name of the robust chdir function from chdir to chdir_long.
115266         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
115267         (restore_cwd): Use chdir_long, not chdir.
115268         * lib/chdir-long.c: Renamed from chdir.c.
115269         * lib/chdir-long.h: Renamed from chdir.h.
115270         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
115271         Hurd.
115273 2005-01-18  Bruno Haible  <bruno@clisp.org>
115275         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
115276         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
115277         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
115278         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
115279         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
115280         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
115281         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
115282         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
115283         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
115284         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
115285         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
115286         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
115287         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
115288         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
115289         Use an all-permissive copyright notice, recommended by RMS.
115291 2005-01-18  Bob Proulx  <bob@proulx.com>
115293         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
115294         simplify offsetof() macro construct to avoid compile failure with
115295         native HP-UX 11.0 ANSI C compiler.
115297 2005-01-17  Bruno Haible  <bruno@clisp.org>
115299         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
115300         redundant because stpncpy.m4 takes care of it.
115302 2005-01-17  Bruno Haible  <bruno@clisp.org>
115304         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
115306 2005-01-17  Bruno Haible  <bruno@clisp.org>
115308         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
115309         used.
115311 2005-01-17  Bruno Haible  <bruno@clisp.org>
115313         * lib/fwriteerror.h (fwriteerror): Change specification to include
115314         fclose.
115315         * lib/fwriteerror.c: Include <stdbool.h>.
115316         (fwriteerror): At the end, close the file stream. Record whether
115317         stdout was already closed.
115319 2005-01-17  Bruno Haible  <bruno@clisp.org>
115321         * lib/execute.c (environ): Declare if needed.
115322         * lib/pipe.c (environ): Likewise.
115323         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
115325 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
115327         * modules/argp: Depend on vsnprintf
115329 2005-01-10  Jim Meyering  <jim@meyering.net>
115331         * modules/closeout (Depends-on): Add atexit.
115333 2005-01-06  Bruno Haible  <bruno@clisp.org>
115335         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
115337 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
115339         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
115340         definitions to be after all include files, to avoid collisions.
115341         Problem reported by Bob Proulx.
115343 2005-01-04  Jim Meyering  <jim@meyering.net>
115345         Changes imported from coreutils.
115346         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
115347         as the mkstemp template, use a temporary directory and an
115348         8.3-friendly template to avoid trouble on systems like DJGPP.
115349         Reported by Juan M. Guerrero via Stepan Kasal.
115350         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
115351         close. Remove the temporary directory right away, rather than waiting
115352         for configure's at-exit trap code to do it.
115353         Suggestion from Stepan Kasal.
115355 2005-01-01  Simon Josefsson  <jas@extundo.com>
115357         * gnulib-tool: Print #include directives when --import'ing.
115359 2004-12-28  Simon Josefsson  <jas@extundo.com>
115361         * tests/test-base64.c: Include required header files.  Remove
115362         unused variables.
115364 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
115366         * modules/error (Depends-on): Remove gettext.
115368 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
115370         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
115371         not needed.  This removes a dependency on the gettext module.
115372         [defined _LIBC]: Do not include <libintl.h>; not needed.
115374 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
115376         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
115377         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
115379 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
115381         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
115382         HAVE_DECL_STRTOLD.
115384 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
115386         * modules/getdate (Depends-on): Remove alloca-opt.
115388 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
115390         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
115392 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
115394         * lib/argp-parse.c: Include <stddef.h>.
115395         (alignof, alignto): New macros.
115396         (parser_init): Don't assume that void * is aligned sufficiently
115397         for struct option.
115399         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
115400         need to extend the stack.
115401         (YYINITDEPTH): New macro, so that the initial stack isn't overly
115402         large.
115404 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
115406         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
115408 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
115410         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
115411         (2004-10-24) change.  Apparently this was a false alarm.
115413         * modules/getdate: Depend on alloca-opt, not alloca.
115415 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
115417         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
115418         Remove now-obsolete comment about AIX.
115419         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
115420         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
115421         (YYMAXDEPTH): New macro.
115423 2004-12-18  Simon Josefsson  <jas@extundo.com>
115425         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
115427 2004-12-18  Bruno Haible  <bruno@clisp.org>
115429         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
115431 2004-12-18  Bruno Haible  <bruno@clisp.org>
115433         * lib/fatal-signal.c (fatal_signals): Make non-const.
115434         (init_fatal_signals): New function.
115435         (uninstall_handlers, install_handlers): Ignore signals that were set to
115436         SIG_IGN.
115437         (at_fatal_signal): Call init_fatal_signals.
115438         (init_fatal_signal_set): Likewise. Ignore signals that were set to
115439         SIG_IGN.
115440         Reported by Paul Eggert.
115442 2004-12-18  Bruno Haible  <bruno@clisp.org>
115444         * doc/alloca.texi: New file.
115445         * doc/alloca-opt.texi: New file.
115447 2004-12-17  Jim Meyering  <jim@meyering.net>
115449         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
115450         Otherwise, install-sh could exit with improper exit status when
115451         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
115453 2004-12-16  Simon Josefsson  <jas@extundo.com>
115455         * tests/test-base64.c: Add license.
115457 2004-12-15  Stepan Kasal  <address@hidden>
115459         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
115461 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
115463         * modules/getcwd (Files): Add m4/d-ino.m4.
115464         Suggested by Mark D. Baushke.
115466 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
115468         * lib/getdate.y (textint): New member "negative".
115469         (time_zone_hhmm): New function.
115470         Expect 14 shift-reduce conflicts, not 13.
115471         (o_colon_minutes): New rule.
115472         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
115473         (yylex): Set the "negative" member of signed numbers.
115475 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
115477         * doc/getdate.texi (Time of day items, Time zone items):
115478         Describe new formats +00:00, UTC+00:00.
115480 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
115482         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
115483         spurious "-l"s.  Problem reported by Stepan Kasal.
115485 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
115487         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
115488         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
115490 2004-12-04  Simon Josefsson  <jas@extundo.com>
115492         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
115493         Vandoorselaere <yoann@prelude-ids.org>.
115495 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
115497         Changes imported from coreutils.
115498         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
115499         exist.
115500         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
115502 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
115504         Changes imported from coreutils.
115505         * lib/hard-locale.c: Assume <locale.h> exists.
115506         Include "strdup.h".
115507         (GLIBC_VERSION): New macro.
115508         (hard_locale): Assume setlocale exists.
115509         Rewrite to avoid #ifdef.
115510         Use strdup rather than malloc + strcpy.
115511         * lib/human.c: Assume <locale.h> exists.
115512         (human_readable): Assume localeconv exists.
115514 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
115516         * modules/hard-locale (Depends-on): Add strdup.
115518 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
115520         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
115521         convert T2, not T.  (Imported from libc.)
115523 2004-11-30  Simon Josefsson  <jas@extundo.com>
115525         * modules/restrict (License): Change to LGPL.
115527 2004-11-30  Simon Josefsson  <jas@extundo.com>
115529         * m4/restrict.m4: Add copyright and copying conditions.
115531 2004-11-30  Simon Josefsson  <jas@extundo.com>
115533         * m4/base64.m4: New file.
115535 2004-11-30  Simon Josefsson  <jas@extundo.com>
115537         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
115538         base64.
115540         * tests/test-base64.c: New file.
115542         * modules/base64: New file.
115544 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
115546         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
115547         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
115549         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
115551 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
115553         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
115554         (__getcwd.c): Don't restore errno; glibc doesn't.
115555         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
115556         first, falling back to our code only if its results look suspicious.
115557         Ensure that the resulting buffer is only as large as necessary.
115559         * lib/readutmp.c: Include readutmp.h first.
115560         Include <errno.h>, since readutmp.h no longer does that.
115561         * lib/readutmp.h: Don't include <errno.h>,
115562         <sys/param.h>, <time.h>; not needed to establish interface.
115563         (errno): Remove decl.
115564         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
115565         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
115566         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
115568 2004-11-28  Simon Josefsson  <jas@extundo.com>
115570         * lib/base64.h, base64.c: New file.
115572 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
115574         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
115576 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
115578         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
115579         (Depends-on): Remove pathmax, same.  Add mempcpy.
115580         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
115581         (Makefile.am): Append getcwd.h to lib_SOURCES.
115582         (Include): Add getcwd.h.
115583         (Maintainer): Change from Jim Meyering to "all, glibc",
115584         since getdate now uses intended-for-glibc code.
115585         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
115586         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
115588 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
115590         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
115591         HP's ANSI C compiler.
115592         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
115593         Declaring int functions causes warnings on some modern systems and
115594         shouldn't be needed to compile on ancient ones.
115595         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
115596         defined.
115598         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
115599         with the following changes.
115600         (__set_errno): Parenthesize properly.
115601         Include <stdbool.h>.
115602         (MIN, MAX, MATCHING_INO): New macros.
115603         (__getcwd): Define with prototype, not K&R form.
115604         Use heuristics to allocate default buffer on stack if possible.
115605         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
115606         behavior, and to avoid the PATH_MAX limit when computing
115607         ../../../../...
115608         Use MATCHING_INO to compare inode number to file.
115609         Check for arithmetic overflow in size calculations.
115610         Fix bug in reallocation of dot array that caused getcwd to fail
115611         on directories nested deeper than 75.
115612         Be more careful about saving errno on error.
115613         Do not use realloc; use only free+malloc, as this is a bit
115614         more flexible and avoids a needless copy operation.
115615         Do not inspect st_dev and st_ino for symbolic links; POSIX
115616         doesn't specify the latter.
115617         Check for closedir errors.
115618         Avoid needless casts.
115619         Use "#ifdef weak_alias" around weak_alias, to be like other
115620         glibc code.
115621         The following changes to getcwd.c have effect only when used in
115622         gnulib; they have no effect inside glibc proper.
115623         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
115624         as alloca isn't used.
115625         (alloca, __alloca): Likewise.
115626         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
115627         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
115628         unconditionally, as gnulib assumes C89 or better.
115629         Do not include <sys/param.h>.
115630         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
115631         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
115632         better.
115633         (NULL) [!defined NULL]: Remove; we assume C89 or better.
115634         Include <dirent.h> in a way that is compatible with modern Autoconf.
115635         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
115636         New macros, if not already defined.
115637         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
115638         Use "_LIBC", not "defined _LIBC", for consistency.
115639         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
115640         a mempcpy module.
115641         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
115642         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
115643         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
115644         credit only to Jim Meyering and adjust the copyright dates.
115645         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
115646         <stdlib.h>, <unistd.h>, "pathmax.h".
115647         Instead, include "xgetcwd.h" (first) and "getcwd.h".
115648         (INITIAL_BUFFER_SIZE): Remove.
115649         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
115651 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
115653         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
115654         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
115655         Use the _ONCE methods, for efficiency.
115656         Check for fcntl.h.  In test program, include <errno.h>
115657         and <fcntl.h> if available.  Remove old K&R cruft from
115658         test program.  Check for common errors in GNU/Linux,
115659         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
115660         don't do AC_LIBOBJ, as that's getcwd.m4's job.
115661         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
115662         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
115663         name accordingly.
115664         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
115665         accommodate new getcwd.c.
115666         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
115667         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
115668         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
115669         that's all we need now.
115671 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
115673         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
115674         argp-parse.c depends on getopt internals, that means we should
115675         always use our getopt, to be on the safe side.
115676         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
115677         order not to spoil the result of an eventual previous invocation
115678         of gl_GETOPT_SUBSTITUTE.
115680 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
115682         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
115683         redefinition warnings. To avoid them, include the defines
115684         in `#if !defined __need_getopt ... #endif'. The only place
115685         where __getopt_argv_const is used is in definitions
115686         of getopt_long and getopt_long_only below, which are as well
115687         protected by `#ifndef __need_getopt'.
115688         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
115689         __need_getopt after including <stdio.h> and <unistd.h> These
115690         headers might have defined it.
115692 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
115694         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
115696 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
115698         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
115699         (futimens): New function, which uses futimes if available.
115700         (futimens, utimens): Support timespec==NULL, with same semantics
115701         as utime and utimens.
115702         * lib/utimens.h (futimens): New decl.
115704 2004-11-23  Jim Meyering  <jim@meyering.net>
115706         * lib/getopt_.h: Remove trailing blanks.
115708 2004-11-23  Jim Meyering  <jim@meyering.net>
115710         * lib/__fpending.c: Add comment.
115712 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
115714         * modules/canonicalize (Depends-on): Add xreadlink.
115715         Problem reported by James Youngman.
115717 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
115719         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
115720         New macros.
115721         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
115722         optopt): Use them instead of invoking ## directly; otherwise, the
115723         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
115725 2004-11-19  Bruno Haible  <bruno@clisp.org>
115727         * lib/strtok_r.c: Move comments from here...
115728         * lib/strtok_r.h: ... to here.
115730 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
115732         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
115733         implementations that mishandle size_t overflow.
115735 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
115737         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
115738         might fail.  Problem reported by Yoann Vandoorselaere.
115739         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
115740         implementations that mishandle size_t overflow.
115742 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
115744         * modules/canon-host (Depends-on): Add strdup.
115746 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
115748         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
115750 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
115752         * lib/canon-host.c: Include "strdup.h".
115753         (canon_host): Use getaddrinfo if available, so that IPv6 works.
115754         Use strdup instead of malloc/strcpy to duplicate strings.
115756         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
115757         (human_space_before_unit): New constant.
115758         * lib/human.c (human_readable): Support it.
115760         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
115761         (xgetcwd): Set errno correctly when failing.
115762         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
115763         the failure is actually due to a PATH_MAX problem.
115765         Further getopt changes to make it more likely that glibc will
115766         buy the changes back.
115767         * lib/getopt.c (POSIXLY_CORRECT): New constant.
115768         (getopt): Use it, so to preserve glibc semantic
115769         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
115770         when compiling for libc.
115771         * lib/getopt_.h (__getopt_argv_const): Bring it back.
115772         (getopt_long, getopt_long_only): Use it.
115774         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
115775         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
115776         (getopt): Argv is now char * const *, as per standard.
115777         (_getopt_internal_r, _getopt_internal): Argv is now char **,
115778         not char *__getopt_argv_const *.
115779         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
115780         _getopt_long_only_r): Likewise.
115781         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
115782         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
115783         _getopt_long_r, _getopt_long_only_r): Likewise.
115784         * lib/getopt_.h (__getopt_argv_const): Remove.
115785         (getopt): Argv is now char * const *, as per standard.
115787         * lib/getdate.y (tORDINAL): New token.
115788         (day, relunit): Allow it for relative times.
115789         (relative_time_table): Use tORDINAL for ordinals.
115791 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
115793         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
115794         Document that "second" isn't allowed as an ordinal number.
115796 2004-11-16  Jim Meyering  <jim@meyering.net>
115798         * modules/closeout (Depends-on): Add fpending.
115800 2004-11-15  Jim Meyering  <jim@meyering.net>
115802         * lib/closeout.c: Include "__fpending.h" once again.
115803         Include <stdbool.h>.
115804         (close_stdout): Don't fail just because stdout was closed initially,
115805         since some programs don't write to stdout in the normal course of
115806         operation (other than --version and --help), and we don't want this
115807         function to make e.g. `touch file >&-' fail.
115808         But do fail if it was closed and someone has tried to write to it.
115809         E.g., `printf foo >&-' must fail.
115811 2004-11-13  Jim Meyering  <jim@meyering.net>
115813         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
115815 2004-11-12  Simon Josefsson  <jas@extundo.com>
115817         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
115818         small doc fix is still pending.
115820 2004-11-11  Simon Josefsson  <jas@extundo.com>
115822         * modules/strtok_r: New file.
115824         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
115825         strtok_r.
115827 2004-11-11  Simon Josefsson  <jas@extundo.com>
115829         * m4/strtok_r.m4: New file.
115831         * m4/getopt.m4: Replace opterr.
115833 2004-11-11  Simon Josefsson  <jas@extundo.com>
115835         * lib/strtok_r.h, strtok_r.c: New file.
115837 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
115839         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
115840         of replacing opterr, getopt, etc.  This should handle the
115841         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
115843 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
115845         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
115846         we can stop lying to compilers about the constness of argv when we
115847         are compiled outside glibc.
115848         (getopt, getopt_long, getopt_long_only): Use it.
115849         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
115850         _getopt_internal, getopt): Likewise.
115851         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
115852         _getopt_long_only_r): Likewise.
115853         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
115854         _getopt_long_r, _getopt_long_only_r): Likewise.
115856         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
115857         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
115858         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
115859         the other external symbols.
115860         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
115861         declaration, since the above renaming now works around collisions.
115863 2004-11-11  Jim Meyering  <jim@meyering.net>
115865         * lib/linebreak.c: Remove trailing blanks.
115866         * lib/alloca_.h: Likewise.
115867         * lib/acosl.c: Likewise.
115868         * lib/euidaccess.c: Likewise.
115869         * lib/allocsa.h: Likewise.
115871 2004-11-10  Simon Josefsson  <jas@extundo.com>
115873         * m4/getaddrinfo.m4: New file.
115875 2004-11-10  Simon Josefsson  <jas@extundo.com>
115877         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
115879 2004-11-10  Simon Josefsson  <jas@extundo.com>
115881         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
115882         getaddrinfo.
115884         * modules/getaddrinfo: New file.
115886 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115888         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
115890 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115892         * lib/mktime.c (SHR): New macro, which is a portable
115893         substitute for >> that should work even on Crays.
115894         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
115895         Problem reported by Mark D. Baushke in
115896         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
115897         * lib/getdate.y (SHR): Likewise.
115898         (tm_diff): Use it.
115899         * lib/strftime.c (SHR): Likewise.
115900         (tm_diff): Use it.
115901         * lib/quotearg.c (struct quoting_options): Use unsigned int for
115902         quote_these_too, so that right shifts are well defined.  All uses
115903         changed.
115905 2004-11-10  Jim Meyering  <jim@meyering.net>
115907         Ensure that no close failure goes unreported.
115908         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
115909         return early when it seems there's nothing to flush.
115910         Don't include __fpending.h.
115912 2004-11-10  Jim Meyering  <jim@meyering.net>
115914         * modules/closeout (Depends-on): Remove fpending.
115916 2004-11-10  Jim Meyering  <jim@meyering.net>
115918         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
115920 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
115922         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
115923         gl_FUNC_STRFTIME.
115924         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
115925         and AC_REQUIRE when possible, to avoid duplicate checks.
115926         Check for <wchar.h>.
115928 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
115930         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
115932 2004-11-09  Bruno Haible  <bruno@clisp.org>
115934         * m4/sockpfaf.m4: New file.
115936 2004-11-05  Bruno Haible  <bruno@clisp.org>
115938         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
115939         Reported by Mark D. Baushke <mdb@cvshome.org>.
115941 2004-11-04  Bruno Haible  <bruno@clisp.org>
115943         2004-09-11  Bruno Haible  <bruno@clisp.org>
115944                 * allocsa.valgrind: New file.
115945         2004-02-06  Bruno Haible  <bruno@clisp.org>
115946                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
115947                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
115948                 Reported by Christopher Seip <chris.seip@hp.com>.
115950 2004-11-04  Bruno Haible  <bruno@clisp.org>
115952         * modules/allocsa (Files): Add lib/allocsa.valgrind.
115953         (Makefile.am): Distribute it.
115955 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
115957         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
115958         with errno == ERANGE if the buffer is too small.
115959         Problem reported by Mark D. Baushke.
115961 2004-11-03  Albert Chin  <china@thewrittenword.com>
115962             Paul Eggert  <eggert@cs.ucla.edu>
115964         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
115965         equivalent, substitute $ac_type for equivalent type rather than
115966         blindly using uint32_t *always* which won't work if uint32_t is not
115967         available.  Define _UINT32_T to work around typedef of uint32_t if
115968         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
115969         2.5.1.
115971 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
115973         * m4/jm-macros.m4: Sync from coreutils.
115974         (gl_MACROS): Check for mbrlen, for pathchk.
115975         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
115977 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
115979         * lib/xreadlink.c (MAXSIZE): New macro.
115980         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
115981         size does not exceed MAXSIZE.  Avoid cast.
115982         As suggested by Mark D. Baushke in
115983         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
115984         if readlink fails with buffer size just under MAXSIZE, try again
115985         with MAXSIZE.
115987 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
115989         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
115991 2004-11-02  Derek R. Price  <derek@ximbiot.com>
115992         and  Paul Eggert  <eggert@cs.ucla.edu>
115994         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
115995         (get_date): Overparenthesize to avoid GCC warning.
115997 2004-11-02  Bruno Haible  <bruno@clisp.org>
115999         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
116000         returns void.
116002 2004-11-02  Bruno Haible  <bruno@clisp.org>
116004         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
116005         function returns void.
116007 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
116009         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
116010         fflush_unlocked, flockfile, funlockfile, funlockfile,
116011         fputs_unlocked, putc_unlocked.
116013 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
116015         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
116016         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
116017         already declared.
116019 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
116021         * modules/getdate (Files): Add doc/getdate.texi.
116022         (Depends-on): Add setenv, xalloc.
116024 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
116026         * lib/getdate.y: Add support for TZ="foo" within a date string.
116027         Fix some bugs near time_t boundaries.  Reject dates with
116028         out-of-range components, e.g., "Sept 31".
116029         Include <stdlib.h>, "setenv.h", "xalloc.h".
116030         (ISDIGIT_LOCALE): Remove; unused.
116031         Note that the TZ and time functions used here are not reentrant.
116032         (mktime_ok, get_tz): New functions.
116033         (TZBUFSIZE): New constant.
116034         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
116035         This requires that we sometimes generate our own TZ="XXX..." setting.
116037 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
116039         * doc/getdate.texi: New file, from coreutils with modifications for
116040         the new TZ parsing.
116042 2004-10-27  Derek R. Price  <derek@ximbiot.com>
116044         * lib/mktime.c (not_equal_tm): Remove redundant check.
116046 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
116048         * modules/regex (lib_SOURCES): Add regex.c.
116049         Reported by James Youngman in
116050         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
116052 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
116054         * lib/getdate.y: Use Bison 1.875 features, and some minor
116055         code cleanups.  This change does not affect semantics.
116056         Don't include <stdlib.h>; no longer needed.
116057         Don't include unlocked-io.h; only the "#if TEST" code uses
116058         stdio, and performance isn't crucial there.
116059         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
116060         Bison 1.875 features as described below.
116061         All uses of "PC." replaced by "pc->".
116062         (YYSTYPE): Add a forward declaration.
116063         (yylex, yyerror): Use full prototypes in forward decls.
116064         Use "%pure-parser" rather than obsolescent "%pure_parser".
116065         Use %parse-param and %lex-param instead of obsolescent
116066         YYPARSE_PARAM and YYLEX_PARAM.
116067         (meridian_table, month_and_day_table, time_units_table,
116068         relative_time_table, time_zone_table, military_table,
116069         lookup_zone, lookup_word, get_date):
116070         Use NULL instead of 0 where appropriate.
116071         (to_hour): Avoid abort (), to avoid a dependency on
116072         stdlib.h.
116073         (yyerror, yylex): Now accepts parser_control * arg.
116074         (main) [TEST]: Use '\0' rather than 0 for char.
116076 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
116078         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
116080 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
116082         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
116083         It's now the caller's responsibility to handle the case where
116084         !HAVE_GETPAGESIZE && !defined getpagesize.
116086         * lib/mktime.c (leapyear): Arg is long int, not int.
116088 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
116090         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
116092 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
116094         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
116095         missing.  Problem reported by James Youngman.
116097 2004-10-16  Simon Josefsson  <jas@extundo.com>
116099         * gnulib-tool: Fix comments.  Fix parse problem.
116100         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
116102 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
116104         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
116105         implementation of getopt_long.  Problem reported by Alexander Taler in:
116106         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
116108 2004-10-15  Bruno Haible  <bruno@clisp.org>
116110         * gnulib-tool: Untabify. Initialize supplied_libname.
116111         (func_usage): More homogenous output.
116112         (func_modules_transitive_closure, func_modules_to_filelist,
116113         func_emit_lib_Makefile_am): New functions.
116114         (func_import): New function, extracted from big case statement. Use
116115         func_get_license, func_modules_transitive_closure,
116116         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
116117         opt_lgpl. Don't use test -a, as it's not portable.
116118         (func_create_testdir): Use func_modules_transitive_closure,
116119         func_modules_to_filelist, func_emit_lib_Makefile_am.
116121 2004-10-15  Bruno Haible  <bruno@clisp.org>
116123         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
116125 2004-10-15  Bruno Haible  <bruno@clisp.org>
116127         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
116128         the portions belonging to each module.
116129         Suggested by Derek Robert Price <derek@ximbiot.com>.
116131 2004-10-12  Simon Josefsson  <jas@extundo.com>
116133         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
116134         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
116135         to real functions.
116137 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
116139         * modules/vsnprintf: New file.
116141 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
116143         * m4/vsnprintf.m4: New file.
116145 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
116147         * lib/vsnprintf.h: New file.
116148         * lib/vsnprintf.c: New file.
116150 2004-10-11  Bruno Haible  <bruno@clisp.org>
116152         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
116153         vsnprintf.
116155 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
116157         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
116159 2004-10-07  Bruno Haible  <bruno@clisp.org>
116161         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
116162         fits into the provided buffer.
116164 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
116166         * lib/diacrit.c, diacrit.h: Add GPL notice.
116168         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
116169         notice.
116170         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
116171         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
116172         This avoids a potential constant-folding bug.
116174 2004-10-05  Bruno Haible  <bruno@clisp.org>
116176         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
116177         for the declaration of strsep.
116179 2004-10-05  Bruno Haible  <bruno@clisp.org>
116181         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
116183 2004-10-04  Simon Josefsson  <jas@extundo.com>
116185         * modules/memmem: New file.
116186         * tests/test-memmem.c: New file.
116187         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
116189 2004-10-04  Simon Josefsson  <jas@extundo.com>
116191         * m4/memmem.m4: New file.
116193 2004-10-04  Simon Josefsson  <jas@extundo.com>
116195         * lib/memmem.h: New file.
116196         * lib/memmem.c: New file, taken from glibc.
116198 2004-10-04  Simon Josefsson  <jas@extundo.com>
116200         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
116201         '#ifdef USE_UNLOCKED_IO'.
116203 2004-10-04  Simon Josefsson  <jas@extundo.com>
116205         * config/srclist.txt: Add memmem from glibc.
116207 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
116209         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
116211         * modules/argmatch, modules/argp, modules/closeout, modules/error,
116212         modules/exclude, modules/getdate, modules/getline,
116213         modules/getndelim2, modules/getpass, modules/getpass-gnu,
116214         modules/getusershell, modules/linebuffer, modules/md5,
116215         modules/mountlist, modules/posixtm, modules/readtokens,
116216         modules/readutmp, modules/regex, modules/sha1,
116217         modules/version-etc, modules/yesno:
116218         Remove dependency on unlocked-io.
116220 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
116222         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
116224         * m4/unlocked-io.m4: Add copyright notice.
116225         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
116227 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
116229         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
116230         * lib/xmalloc.c (xmemdup): Likewise.
116231         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
116232         XFREE): Remove these long-obsolescent macros.
116233         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
116234         * lib/xstrdup.c: Remove.
116236         * lib/regex.c (re_comp): Cast gettext return value to char *,
116237         Problem reported by Martin Neitzel via Mark D. Baushke.
116239 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
116241         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
116242         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
116243         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
116244         regex.c, sha1.c, version-etc.c, yesno.c:
116245         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
116246         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
116247         the includer's responsibility.
116249         Sync from coreutils.
116251         * lib/modechange.c (mode_compile): Don't decrement a pointer that
116252         points to the start of a string, as the C Standard says the
116253         resulting behavior is undefined.
116255         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
116256         simple -> simple_backups, numbered_existing ->
116257         numbered_existing_backups, numbered -> numbered_backups
116258         to avoid shadowing problems.  All uses changed.
116259         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
116260         * lib/backupfile.c (check_extension, numbered_backup):
116261         Rename locals to avoid shadowing 'basename'.
116262         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
116263         once.
116265         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
116266         * lib/.cvsignore: Add getopt.h.
116268 2004-10-04  Bruno Haible  <bruno@clisp.org>
116270         * modules/README: New file.
116271         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
116272         not a module.
116274 2004-10-02  Jim Meyering  <jim@meyering.net>
116276         * lib/dirfd.h, getpagesize.h: Add copyright notice.
116278 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
116280         * modules/strsep: New file.
116282 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
116284         * m4/strsep.m4: New file.
116286 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
116288         * lib/strsep.h: New file.
116289         * lib/strsep.c: New file.
116291 2004-10-01  Simon Josefsson  <jas@extundo.com>
116293         * lib/snprintf.c (snprintf): Handle size==0.
116295 2004-10-01  Simon Josefsson  <jas@extundo.com>
116296             Bruno Haible  <bruno@clisp.org>
116298         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
116299         (snprintf): Declare 'args'.
116301 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
116303         * lib/snprintf.c: Remove comments as to why each header is needed.
116305 2004-10-01  Bruno Haible  <bruno@clisp.org>
116307         * MODULES.html.sh: Add strsep.
116309 2004-09-30  Simon Josefsson  <jas@extundo.com>
116311         * modules/snprintf: New file.
116313 2004-09-30  Simon Josefsson  <jas@extundo.com>
116315         * m4/snprintf.m4: New file.
116317 2004-09-30  Simon Josefsson  <jas@extundo.com>
116319         * lib/snprintf.h, lib/snprintf.c: New files.
116321 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
116323         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
116324         (hol_entry_help): Never translate an empty string.
116325         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
116326         * lib/argp.h (OPTION_NO_TRANS): New option.
116328 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
116330         * modules/argp (Maintainer): Replace Simon Josefsson
116331         by Sergey Poznyakoff.
116333 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
116335         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
116336         changes merged back into glibc.
116338 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
116340         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
116342 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
116344         * lib/xvasprintf.c: Include xalloc.h.
116345         (xvasprintf): Use xalloc_die, not xmalloc_die.
116347 2004-09-29  Bruno Haible  <bruno@clisp.org>
116349         * modules/alloca-opt: New file, derived from modules/alloca.
116350         * modules/allocsa: Depend on alloca-opt instead of alloca.
116351         * modules/setenv: Likewise.
116352         * modules/vasnprintf: Likewise.
116353         * MODULES.html.sh: Add alloca-opt.
116355 2004-09-28  Simon Josefsson  <jas@extundo.com>
116357         * gnulib-tool: New parameter --lgpl, to asseert that modules are
116358         LGPL, and to replace license template from GPL to LGPL.
116360 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
116362         * modules/dummy: Change license to LGPL.
116364 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
116366         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
116368 2004-09-24  Simon Josefsson  <jas@extundo.com>
116370         * modules/minmax (License): Change from GPL to LGPL.
116372 2004-09-23  Simon Josefsson  <jas@extundo.com>
116374         * gnulib-tool (--import): Typo.
116376 2004-09-23  Simon Josefsson  <jas@extundo.com>
116378         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
116380 2004-09-22  Bruno Haible  <bruno@clisp.org>
116382         * modules/*: Add 'License' field.
116383         * gnulib-tool: Accept --extract-license option.
116384         (func_get_license): New function.
116386 2004-09-21  Bruno Haible  <bruno@clisp.org>
116388         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
116389         Reported by Simon Josefsson.
116391 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
116393         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
116394         gl_AC_TYPE_LONG_LONG.
116396 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
116398         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
116400 2004-09-18  Simon Josefsson  <jas@extundo.com>
116401         and  Paul Eggert  <eggert@cs.ucla.edu>
116403         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
116404         calls with autoreconf.  Define GL_LIB.
116406 2004-09-14  Karl Berry  <karl@gnu.org>
116408         * config/srclist.txt: unsync setenv.c, sigh.
116410 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
116412         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
116413         Problem reported by Bruno Haible in:
116414         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
116416 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
116418         * config/srclist.txt: Comment out argp-pvh.c.
116420 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
116422         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
116423         in case some system header has #define'd it.  Problem reported by
116424         Soeren D. Schulze in
116425         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
116427 2004-09-09  Karl Berry  <karl@gnu.org>
116429         * regex.[ch]: delete from the root.  These were supposed to be
116430                 synced with emacs cvs, but this has not happened for about
116431                 a year, and anyway nothing else uses emacs regex.[ch].
116432                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
116433                 lib/regex[.ch] is untouched.
116435 2004-09-09  Bruno Haible  <bruno@clisp.org>
116437         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
116439 2004-09-09  Bruno Haible  <bruno@clisp.org>
116441         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
116442         modifications.
116443         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
116445 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
116447         * modules/xvasprintf: New file.
116448         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
116450 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
116452         * lib/xvasprintf.h: New file.
116453         * lib/xvasprintf.c: New file.
116454         * lib/xasprintf.c: New file.
116456 2004-09-08  Bruno Haible  <bruno@clisp.org>
116458         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
116460 2004-09-08  Bruno Haible  <bruno@clisp.org>
116462         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
116463         length is > INT_MAX.
116464         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
116465         more.
116467 2004-09-08  Bruno Haible  <bruno@clisp.org>
116469         * lib/stdint_.h: New file, taken from GNU clisp.
116471 2004-09-08  Bruno Haible  <bruno@clisp.org>
116472             Oskar Liljeblad  <oskar@osk.mine.nu>
116474         * modules/stdint: New file.
116475         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
116477 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
116479         Import from coreutils.
116480         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
116481         strings on unbounded length.  alloca's performance benefits aren't
116482         that important here.
116483         (V_STRDUP): Remove.
116484         (parse_with_separator): New function, with most of the internals
116485         of the old parse_user_spec.  Allow user to omit both user and group,
116486         for compatibility with FreeBSD.
116487         Clone only the user name, not the entire spec.
116488         Do not set *uid, *gid unless entirely successful.
116489         Avoid memory leak in some failing cases.
116490         Fix regression for USER.GROUP reported by Dmitry V. Levin in
116491         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
116492         (parse_user_spec): Rewrite to use parse_with_separator.
116494 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
116496         * modules/userspec: Don't depend on alloca.
116498 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
116500         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
116502 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
116504         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
116505         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
116506         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
116508 2004-08-16  Simon Josefsson  <jas@extundo.com>
116510         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
116511         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
116512         Add --dry-run for --import.
116513         Let user provided command line parameters override configure.ac
116514         settings.
116516 2004-08-12  Simon Josefsson  <jas@extundo.com>
116518         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
116519         as discussed with Paul Eggert in threads rooted at
116520         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
116521         and
116522         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
116523         Before, the test was empty, and relied on ELIDE_CODE in source
116524         code.)
116525         (gl_PREREQ_GETOPT): New macro.
116526         (gl_GETOPT): Use them.
116528 2004-08-12  Simon Josefsson  <jas@extundo.com>
116530         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
116531         * lib/getopt_.h: Renamed from getopt.h.
116533 2004-08-12  Simon Josefsson  <jas@extundo.com>
116535         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
116536         Change default library name from libfoo to libgnu.
116537         Now, if you have a configure.ac that says:
116538                 gl_SOURCE_BASE(gl)
116539                 gl_M4_BASE(gl/m4)
116540                 gl_MODULES(error getopt etcetera)
116541                 gl_INIT
116542         you can import all you need by running:
116543                 ../gnulib/gnulib-tool --import
116545         * modules/getopt (Files): Rename getopt.h to getopt_.h.
116546         (Makefile.am): Rewrite, use logic from argz.
116547         (Include): Use <getopt.h> instead of "getopt.h".
116549 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
116551         * modules/argp (Files): Add m4/unlocked-io.m4.
116552         (Depends-on): Add extensions.
116554 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
116556         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
116557         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
116558         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
116559         Check for program_invocation_name, program_invocation_short_name,
116560         flockfile, funlockfile, features.h, _getopt_long_only_r.
116562 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
116564         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
116565         its complicated substitute.
116566         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
116567         and program_invocation_name.
116568         (__argp_basename) [!_LIBC]: Remove; the only use was
116569         replaced by its body.
116570         (__argp_short_program_name): Change condition from
116571         !defined __argp_short_program_name to
116572         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
116573         to match argp-namefrob.h.
116574         (__argp_failure): Don't assume strerror_r returns char *.
116575         * lib/argp-parse.c (N_): Define unconditionally.
116576         (argp_default_options): Fill out initializers with 0 to avoid
116577         gcc warnings.
116579 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
116581         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
116582         getopt1.c.
116584 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
116586         Merge from coreutils.
116588         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
116590         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
116591         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
116593 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
116595         Merge from coreutils.
116597         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
116598         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
116599         for Reliant Unix 5.43.
116601         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
116602         (union fooround): Use uintmax_t, not long int.
116603         The rest is a merge from libc:
116604         [defined _LIBC]: Include <shlib-compat.h>.
116605         (_obstack) [defined _LIBC]: Remove after 2.3.4.
116607         * lib/settime.c (settime): Recode to avoid warning with
116608         Sun Forte C 6U2.
116610         * lib/strverscmp.c: Convert to UTF-8.
116612 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
116614         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
116615         m4/uintmax_t.m4.
116617 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
116619         * modules/xalloc-die: New file.
116620         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
116622         * modules/md5 (Files): Add m4/uint32_t.m4.
116623         * modules/sha1: Renamed from modules/sha.
116624         (Files):
116625         Rename lib/sha.h to lib/sha1.h.
116626         Rename lib/sha.c to lib/sha1.c.
116627         Rename m4/sha.m4 to m4/sha1.m4.
116628         (lib_SOURCES): Likewise.
116629         (configure.ac): Rename gl_SHA to gl_SHA1.
116630         (Include): sha.h -> sha1.h.
116632 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
116634         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
116635         * m4/sha1.m4: Renamed from sha.m4.
116636         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
116638 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
116640         * lib/obstack.h (obstack_empty_p):
116641         Don't assume that chunk->contents is suitably aligned.
116642         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
116643         Likewise. Problem reported by Benno in
116644         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
116646         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
116647         readable.  This could be improved further but it'd take some work.
116649 2004-08-08  Simon Josefsson  <jas@extundo.com>
116651         * modules/xgethostname (Depends-on): Remove exit and error (not
116652         used).
116654         * modules/getpass-gnu: Add getpass.h.
116655         (Depends-on): Add stdbool.
116656         * modules/getpass: Add getpass.h.
116658 2004-08-08  Simon Josefsson  <jas@extundo.com>
116660         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
116661         Check getpass declaration.
116663 2004-08-08  Simon Josefsson  <jas@extundo.com>
116665         * lib/xgethostname.c: Don't include error.h (not used).
116667         * lib/getpass.h: Add.
116668         * lib/getpass.c: Include getpass.h first.
116670 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
116672         * lib/xalloc-die.c: New file.
116673         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
116674         All uses removed.
116675         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
116676         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
116677         xalloc-die.c.
116678         (_, N_, xalloc_die): Move to xalloc-die.c.
116679         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
116680         so that we needn't mess with xalloc_msg_memory_exhausted.
116682         * lib/sha1.h: Renamed from sha.h.
116683         (SHA1_H): Renamed from _SHA_H.
116684         (sha1_ctx): Renamed from sha_ctx.
116685         (sha1_init_ctx): Renamed from sha_init_ctx.
116686         (sha1_process_block): Renamed from sha_process_block.
116687         (sha1_process_bytes): Renamed from sha_process_bytes.
116688         (sha1_finish_ctx): Renamed from sha_finish_ctx.
116689         (sha1_read_ctx): Renamed from sha_read_ctx.
116690         (sha1_stream): Renamed from sha_stream.
116691         (sha1_buffer): Renamed from sha_buffer.
116692         * lib/sha1.c: Likewise; renamed from sha.c.
116693         Do not include <sys/types.h>.
116694         Include <stddef.h> rather than <stdlib.h>.
116696 2004-08-08  Bruno Haible  <bruno@clisp.org>
116698         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
116699         FILESYSTEM_PREFIX_LEN.
116700         * lib/progreloc.c: Likewise.
116701         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
116703 2004-08-06  Simon Josefsson  <jas@extundo.com>
116705         * modules/progname (Depends-on): Don't depend on stdbool.
116707 2004-08-06  Simon Josefsson  <jas@extundo.com>
116709         * modules/getsubopt: New file.
116710         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
116711         getsubopt.
116713 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
116715         More merge from coreutils.
116717         * m4/utimens.m4, m4/utimecmp.m4: New files.
116718         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
116719         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
116720         prereq.m4, sha.m4: Import changes from coreutils.
116722 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
116724         More merge from coreutils.
116725         * modules/raise, modules/readtokens0, modules/utimens:
116726         * modules/utimecmp, module/xnanosleep: New files.
116727         * modules/strftime: Add lib/strftime.h.
116728         Change include from <time.h> to "strftime.h".
116729         * modules/yesno: Add lib/yesno.h.
116730         * modules/backupfile: Remove lib/addext.c.
116731         * modules/euidaccess: Add stat-macros.h.
116732         * modules/canonicalize, modules/euidaccess,
116733         modules/filemode, modules/lchown, modules/makepath,
116734         modules/rmdir, modules/stat: Likewise.
116736 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
116738         Merge from tar.
116739         * lib/argp-help.c (make_hol, hol_append): Don't assume that
116740         SIZE_MAX is a valid preprocessor constant.
116741         (__argp_basename): Change from "#ifndef _LIBC"
116742         to "#ifndef __argp_short_program_name", so that
116743         we don't compile these functions for tar.
116745         More merges from coreutils.
116746         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
116747         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
116748         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
116749         * lib/addext.c: Remove; no longer needed.
116750         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
116751         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
116752         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
116753         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
116754         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
116755         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
116756         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
116757         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
116758         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
116759         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
116760         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
116761         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
116762         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
116763         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
116764         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
116765         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
116766         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
116767         Import changes from coreutils.
116769 2004-08-05  Simon Josefsson  <jas@extundo.com>
116771         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
116773 2004-08-05  Simon Josefsson  <jas@extundo.com>
116775         * m4/getsubopt.m4: New file.
116777 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
116779         Merge from coreutils.
116781         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
116782         * m4/getcwd-path-max.m4: New files.
116784         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
116785         FILESYSTEM_PREFIX_LEN ->
116786         FILE_SYSTEM_PREFIX_LEN.
116787         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
116788         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
116789         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
116790         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
116792         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
116793         prerequisite modules now handle the DOS stuff.
116794         Don't check for unistd.h.
116796 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
116798         Merge from coreutils.
116800         * lib/.gdb-history: Remove; this doesn't belong here.
116802         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
116803         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
116804         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
116805         * lib/getcwd.c: New files.
116807         * lib/dirname.h: Include <stdbool.h>.
116808         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
116809         for consistency with POSIX terminology.  All uses changed.
116810         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
116811         (strip_trailing_slashes): Use bool for booleans.
116812         * lib/stripslash.c (strip_trailing_slashes): Likewise.
116814         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
116815         sometimes returns a positive errno value even when it succeeds.
116816         (print_errno_message) [!LIBC]: Fall back on strerror if
116817         __strerror_r fails.
116819         * lib/path-concat.c (mempcpy): Don't define if a system header defines
116820         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
116821         (longest_relative_suffix): New function.
116822         (path_concat): Use it.  Assume first argument is not NULL.
116823         Port to DOS.  Omit redundant separators.
116824         Report an error instead of returning NULL.
116825         Use mempcpy instead of memcpy.
116826         (xpath_concat): Remove: not declared or used.
116828         * lib/same.h: Include <stdbool.h>
116829         (same_name): Return bool, not int.
116830         * lib/same.c (same_name): Likewise.
116831         (errno): Don't declare; we assume C89 or better now.
116833         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
116834         if not already defined.
116836         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
116837         * lib/dup-safer.c (errno): Likewise.
116839 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
116841         Merge from coreutils.
116842         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
116843         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
116844         * modules/path-concat: Don't depend on strdup.
116846 2004-08-03  Simon Josefsson  <jas@extundo.com>
116848         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
116849         * lib/progname.h: Don't include stdbool.h.
116851 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
116853         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
116854         * MODULES.html.sh (func_all_modules): Remove fatal.
116856 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
116858         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
116860 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
116862         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
116863         working.
116865 2004-08-02  Simon Josefsson  <jas@extundo.com>
116867         * lib/getsubopt.h: New file, with comments from Bruno Haible.
116868         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
116869         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
116871 2004-08-01  Simon Josefsson  <jas@extundo.com>
116873         * lib/xgetdomainname.c: Include stdlib.h, for free().
116875 2004-07-19  Bruno Haible  <bruno@clisp.org>
116877         * MODULES.html.sh (func_all_modules): Add dummy.
116879 2004-07-16  Simon Josefsson  <jas@extundo.com>
116881         * modules/dummy: New file.
116883 2004-07-16  Simon Josefsson  <jas@extundo.com>
116885         * lib/dummy.c: New file.
116887 2004-07-16  Bruno Haible  <bruno@clisp.org>
116889         * lib/backupfile.h: Add extern "C" for C++.
116890         * lib/closeout.h: Likewise.
116891         * lib/copy-file.h: Likewise.
116892         * lib/findprog.h: Likewise.
116893         * lib/full-write.h: Likewise.
116894         * lib/pathname.h: Likewise.
116895         * lib/progname.h: Likewise.
116896         * lib/stpcpy.h: Likewise.
116897         * lib/stpncpy.h: Likewise.
116898         * lib/strcase.h: Likewise.
116899         * lib/strstr.h: Likewise.
116900         * lib/xalloc.h: Likewise.
116902         * lib/mbswidth.h: Add extern "C" for C++.
116903         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
116905 2004-07-13  Robert Millan  <robertmh@gnu.org>
116907         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
116909 2004-07-09  Simon Josefsson  <jas@extundo.com>
116911         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
116912         failed without this.)
116914 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
116916         * modules/chown (Files): Add lib/fchown-stub.c, since
116917         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
116919 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
116921         * lib/fchown-stub.c: New file.
116923 2004-06-24  Jim Meyering  <jim@meyering.net>
116925         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
116927 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
116929         * modules/argz: Omit "#include".
116931         * MODULES.html.sh (func_all_modules): Add calloc, to match
116932         2004-06-01 addition of calloc module.
116934 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
116936         * m4/argz.m4: New file, which is autoupdated from libtool.
116938 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
116940         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
116941         libtool.
116943 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
116945         * config/srclist-update: Don't insist on "USA." before the
116946         close-comment, as libtool omits the period and puts the */ on a
116947         separate line.
116948         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
116949         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
116951 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
116953         * modules/argz: New file.
116954         * MODULES.html.sh (func_all_modules): Add argz.
116956 2004-06-12  Jim Meyering  <jim@meyering.net>
116957         and  Paul Eggert  <eggert@cs.ucla.edu>
116959         * modules/hash (Files): Add lib/xalloc.h.
116960         * modules/pipe (Depends-on): Add wait-process.
116961         * modules/stat (Depends-on): Add xalloc.
116962         * modules/userspec (Files): Add lib/userspec.h.
116963         * modules/xstrto
116965         Upgrade from gettext-0.13.
116966         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
116967         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
116968         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
116970 2004-06-10  Jim Meyering  <jim@meyering.net>
116972         * lib/calloc.c: New file.
116974 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
116976         * lib/getdate.y (yylex): Allow space between sign and number.
116977         Problem reported by Dan Jacobson.
116979 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
116981         Merge from coreutils CVS.
116983         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
116984         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
116985         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
116986         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
116987         xstrtol.m4: Fix copyright date and/or serial number.
116989         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
116990         See if we need an fchown replacement.
116991         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
116992         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
116993         and use the replacement function if we detect either defect.
116995         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
116996         gl_UTIMECMP.
116998 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
116999         and  Jim Meyering  <jim@meyering.net>
117001         Merge from coreutils CVS.
117003         * lib/stat-macros.h: New file, with contents from file-type.h
117004         and coreutils' system.h.
117005         * lib/file-type.c: Include "stat-macros.h".
117006         * lib/file-type.h (file_type): Move all macro definitions to new file,
117007         stat-macros.h.
117009         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
117010         Wrap old code with this conditional.
117011         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
117012         function that does not dereference symlinks.
117013         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
117015         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
117016         dependency problems.
117017         (xreadlink): Accept new arg SIZE, for efficiency.
117018         All decls and uses changed.
117019         * lib/xreadlink.h: Include <stddef.h>, for size_t.
117021         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
117022         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
117024         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
117025         sysexits.h.
117027 2004-06-01  Jim Meyering  <jim@meyering.net>
117029         * m4/calloc.m4: New file.
117031 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
117033         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
117034         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
117035         Also, fix a typo in a diagnostic.
117037 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
117039         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
117040         or AC_FUNC_REALLOC.
117042 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
117044         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
117045         macros to be defined.
117046         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
117047         the allocator returns NULL because the requested size is zero.
117049 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
117051         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
117052         var.  Add comment explaining why libc still defines it.  This
117053         merges the following patch from glibc:
117054         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
117056 2004-05-20  Andreas Schwab  <schwab@suse.de>
117058         * m4/free.m4: Replace free if it not known to work, not the other
117059         way round.
117061 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
117063         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
117064         present in glibc since revision 1.1 of this file.
117065         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
117066         obstack_alignment_mask, obstack_alloc, obstack_base,
117067         obstack_blank, obstack_blank_fast, obstack_chunk_size,
117068         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
117069         obstack_grow0, obstack_init, obstack_int_grow,
117070         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
117071         obstack_next_free, obstack_object_size, obstack_ptr_grow,
117072         obstack_ptr_grow_fast, obstack_room): Remove declarations of
117073         nonexistent functions.
117075 2004-05-18  Karl Berry  <karl@gnu.org>
117077         * config/srclist.txt: break link for vasnprintf.c.
117079 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
117081         Port obstack to the AS/400, where pointers are 16 bytes wide and
117082         you cannot cast an integer to a valid pointer.  This patch is
117083         currently waiting to be integrated into glibc; see
117084         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
117086         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
117087         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
117088         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
117089         (struct obstack): temp member is now a union of a pointer and
117090         an integer, instead of an integer.  All integer uses changed.
117091         This does not affect the physical layout of struct obstack,
117092         except on hosts (like the AS/400) where the size or alignment of
117093         void * is greater than that of ptrdiff_t.
117094         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
117095         __STDC__)]: Store temporary in pointer member of union, not
117096         integer member.
117097         * lib/obstack.c: Include <stddef.h>, for offsetof.
117098         (struct fooalign): Remove; it doesn't need a name.
117099         (union fooround): Change double to long double, and add void *.
117100         (DEFAULT_ALIGNMENT): Use offsetof to compute.
117101         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
117102         not a macro.  Hence the values are always int; so remove all
117103         casts-to-int in uses.
117105 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
117107         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
117108         we can get this patch merged into glibc.
117110 2004-05-17  Derek R. Price  <derek@ximbiot.com>
117111             Paul Eggert  <eggert@cs.ucla.edu>
117113         * m4/argp: Depend on alloca.
117115 2004-05-17  Derek R. Price  <derek@ximbiot.com>
117116             Paul Eggert  <eggert@cs.ucla.edu>
117118         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
117119         freecoding.
117121 2004-05-17  Bruno Haible  <bruno@clisp.org>
117123         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
117124         precision that consists of a '.' followed by an empty digit string.
117125         Patch by Tor Lillqvist <tml@iki.fi>.
117127 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
117129         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
117130         for backward compatibility with older code.  We need our own
117131         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
117132         it under some other name, and our alloca.h will define it.
117134 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
117135             Derek Price  <derek@ximbiot.com>
117137         * lib/alloca.c: Include <alloca.h>, to get our interface.
117138         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
117139         include <alloca.h> first.  Use C89 prototype for alloca; this
117140         requires including <stddef.h> for size_t.  Use extern "C" if C++.
117141         Use #elif for simplicity, since we can assume C89 now.
117142         Don't try to source the system alloca.h since it will not be found
117143         and to prevent recursively including its replacement.
117144         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
117145         * lib/regex.c: Likewise.
117147 2004-05-16  Derek Price  <derek@ximbiot.com>
117148             Paul Eggert  <eggert@cs.ucla.edu>
117150         getline cleanup.  This changes the getndelim2 API: both order of
117151         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
117152         no delimiter).
117154         * lib/getline.c: Don't include stddef.h or stdio.h, since our
117155         interface does that.
117156         (getline): Always use getdelim, so that we don't have two
117157         copies of this code.
117158         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
117159         if available.
117160         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
117161         (GETNDELIM2_MAXIMUM): New macro.
117162         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
117163         instead of the old practice of delim2==0.  All callers changed.
117164         Return -1 on overflow, instead of returning junk.
117165         Do not set *linesize unless allocation succeeds.
117166         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
117167         that we include sys/types.h.
117168         * lib/getnline.h: Likewise.
117169         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
117170         (getndelim2): Reorder arguments.
117171         * lib/getnline.c (getnline, getndelim):
117172         Don't discard the NMAX argument.
117173         (getnline): Invoke getndelim, to avoid code duplication.
117174         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
117175         of (size_t) -1 by callers of the getnline family.
117177 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
117179         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
117180         Check for gettimeofday.
117181         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
117182         Check for settimeofday, stime.
117184 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
117186         * lib/nanosleep.c (suspended): Change its type from int to
117187         sig_atomic_t volatile.
117188         (first_call): Make it private to rpl_nanosleep, and have it
117189         be zero initially as that's a bit faster.
117190         (my_usleep): Round up fractional times instead of truncating them,
117191         as this is the usual meaning for 'sleep'.
117193         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
117194         doesn't work.
117195         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
117196         (ENOSYS): Define if not defined.
117197         (settime): Fall back on stime if it exists and settimeofday fails.
117198         But don't bother with fallbacks if a method fails with errno == EPERM.
117200 2004-05-11  Jim Meyering  <jim@meyering.net>
117202         Prior to this change, the save_cwd caller required read access to the
117203         current directory on most systems (ones with the fchdir function).
117205         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
117206         fails, try write-only, and finally, resort to using xgetcwd.
117208 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
117210         * lib/obstack.c, obstack.h: Import changes from libc.
117212 2004-04-28  Bruno Haible  <bruno@clisp.org>
117214         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
117215         also implicitly appends .exe to executables.
117216         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
117217         accepts Windows pathnames.
117218         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
117219         Treat Cygwin like Windows, since it now accepts Windows pathnames.
117220         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
117221         Treat Cygwin like Windows, since it now accepts Windows pathnames.
117222         Reported by Derek Robert Price <derek@ximbiot.com>.
117224 2004-04-21  Karl Berry  <karl@gnu.org>
117226         * config/srclist.txt (localcharset.c): break sync.
117228 2004-04-20  Paul Eggert  <eggert@twinsun.com>
117230         * m4/host-os.m4: Add a copyright notice.
117232 2004-04-20  Jim Meyering  <jim@meyering.net>
117234         Change UTILS_ to gl_ in AC_DEFINE'd names.
117235         Change utils_- and jm_-prefixed variables, too.
117236         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
117237         UTILS_FUNC_MKDIR_TRAILING_SLASH.
117238         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
117240         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
117241         Don't emit trailing blanks.
117242         Also rename jm_-prefixed variables to have gl_ prefix.
117244         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
117245         Also rename jm_-prefixed variables to have gl_ prefix.
117247         * m4/jm-macros.m4: Reflect the renamings.
117248         * m4/prereq.m4: Likewise.
117250 2004-04-20  Jim Meyering  <jim@meyering.net>
117252         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
117253         memory.
117255 2004-04-20  Jim Meyering  <jim@meyering.net>
117256             Bruno Haible  <bruno@clisp.org>
117258         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
117259         memory when realloc fails.
117261 2004-04-19  Jim Meyering  <jim@meyering.net>
117263         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
117264         now that readutmp.c may call `free (0)'.
117266 2004-04-19  Bruno Haible  <bruno@clisp.org>
117268         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
117269         * m4/inttypes_h.m4: Likewise.
117270         * m4/stdint_h.m4: Likewise.
117271         * m4/intmax_t.m4: Likewise.
117272         * m4/uintmax_t.m4: Likewise.
117274 2004-04-18  Jim Meyering  <jim@meyering.net>
117276         * m4/prereq.m4: Don't forbid jm_ prefix.
117278         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
117279         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
117280         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
117281         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
117282         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
117283         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
117284         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
117285         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
117286         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
117287         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
117288         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
117289         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
117290         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
117291         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
117292         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
117293         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
117294         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
117295         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
117296         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
117298 2004-04-18  Jim Meyering  <jim@meyering.net>
117300         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
117301         failure, don't leak memory and do call END_UTMP_ENT.
117303 2004-04-16  Jim Meyering  <jim@meyering.net>
117305         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
117306         coreutils' stat program.
117307         (gl_PREREQ): Don't require jm_PREREQ_STAT.
117309 2004-04-11  Paul Eggert  <eggert@twinsun.com>
117311         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
117312         C89.
117313         (CHAR_BIT): Remove, since we assume C89.
117314         Include <stdint.h> if available, as per current Autoconf CVS advice.
117316 2004-03-31  Jim Meyering  <jim@meyering.net>
117318         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
117319         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
117320         * m4/xalloc.m4: Likewise.
117322 2004-03-30  Paul Eggert  <eggert@twinsun.com>
117324         Merge from coreutils.
117326         * m4/inttostr.m4: New file.
117327         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
117328         Require AM_STDBOOL_H and gl_TIMESPEC instead.
117329         Require gl_CLOCK_TIME.
117330         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
117332 2004-03-30  Paul Eggert  <eggert@twinsun.com>
117334         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
117335         not bool, to be more consistent with Unix conventions.
117336         Suggested by Bruno Haible.
117338         Merge from coreutils.
117340         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
117341         * lib/umaxtostr.c: New files.
117343         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
117344         the usual <time.h> dance.
117345         (get_date): Change signature to support fractional time stamps.
117346         All callers changed.
117347         * lib/getdate.y: Include "getdate.h" first, as we can now
117348         assume C89 and don't need to worry about 'const'.
117349         Similarly, include "unlocked-io.h" near start, not in middle.
117350         Include <limits.h>.
117351         (textint.value): Use long int rather than int.
117352         (textint.digits): Use size_t rather than int.
117353         (BILLION, LOG10_BILLION): New constants.
117354         (parser_control): New member rel_ns.  Members day_ordinal,
117355         time_zone, month, day, hour, minutes, rel_year, rel_month,
117356         rel_day, rel_hour, rel_minutes, rel_seconds
117357         are now long int, not int.  Member seconds is now struct timespec,
117358         not int.  New member timespec_seen.  Members dates_seen, days_seen,
117359         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
117360         not int.
117361         (%union.intval): Now long int, not int.
117362         New member timespec.
117363         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
117364         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
117365         (spec): Now is a timespec or an item list.
117366         (timespec, items): New nonterminals.
117367         (time, rel, relunit, number, get_date):
117368         Add support for fractional seconds.
117369         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
117370         (gmtime, localtime, mktime): Remove decls; not needed with C89.
117371         (to_hour): First arg is now long int, not int.
117372         (to_year): Returns long int, not int.
117373         Don't treat year -70 like 70.
117374         (tm_diff): Returns long int, not int.
117375         (lookup_word): Use bool instead of int when appropriate.
117376         (yylex): Use size_t for count, not int.
117377         Detect overflow when parsing large integer constants.
117378         Add support for fractions.
117379         (get_date): Make pointers 'const' if possible.
117380         Use more-portable code to detect integer overflow.
117381         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
117382         Don't use ctime; it's not reliable if the year has >4 digits.
117384         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
117385         This is for compatibility with BSD.
117387         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
117388         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
117389         From coreutils' system.h.
117391         * lib/userspec.c: Don't include "posixver.h".
117392         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
117393         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
117394         compatible extension.  Simplify code by removing a boolean int
117395         that was always nonzero if a string was nonnull.
117397 2004-03-30  Jim Meyering  <jim@meyering.net>
117399         Merge from coreutils.
117401         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
117402         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
117403         on some systems one must include <grp.h> before it.
117404         Reported by Christian Krackowizer.
117406 2004-03-30  Jim Meyering  <jim@meyering.net>
117408         Merge from coreutils.
117410         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
117412         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
117413         an empty input stream.
117415         * lib/readtokens.c: Include <stdbool.h>.
117416         (readtoken): Use `size_t' rather than int/long.
117417         All callers adjusted.
117418         Use `bool' rather than `int' where appropriate.
117419         Use memset rather than an explicit loop.
117420         Use x2nrealloc rather than xrealloc.
117421         Allow the use of `\0' as a delimiter.
117422         (readtokens): Likewise.
117423         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
117425 2004-03-30  Jim Meyering  <jim@meyering.net>
117427         * m4/realloc.m4: Remove file, since now it does no more than
117428         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
117429         the `configure.ac' section of module/realloc.
117430         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
117432 2004-03-30  Bruno Haible  <bruno@clisp.org>
117434         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
117435         nonnull.
117437 2004-03-29  Paul Eggert  <eggert@twinsun.com>
117439         Merge changes to getloadavg.c from coreutils and Emacs.
117441         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
117442         Define to an expression, not to the empty string.
117443         Include cloexec.h and xalloc.h.
117444         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
117445         Use set_cloexec_flag rather than rolling our own.
117446         * lib/cloexec.c, lib/cloexec.h: New files.
117448 2004-03-29  Paul Eggert  <eggert@twinsun.com>
117450         * m4/cloexec.m4: New file.
117452 2004-03-18  Paul Eggert  <eggert@twinsun.com>
117454         * lib/getopt.h: Sync with libc CVS.
117456 2004-03-18  Paul Eggert  <eggert@twinsun.com>
117457             Bruno Haible  <bruno@clisp.org>
117459         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
117460         mbswidth.
117462 2004-03-18  Paul Eggert  <eggert@twinsun.com>
117463             Bruno Haible  <bruno@clisp.org>
117465         * lib/mbswidth.h: Include <wchar.h> only if
117466         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
117467         <wchar.h>.
117468         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
117470 2004-03-09  Paul Eggert  <eggert@twinsun.com>
117472         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
117473         Sync with libc CVS.
117474         * lib/getopt_int.h: New file, also synced from libc.
117476 2004-03-09  Paul Eggert  <eggert@twinsun.com>
117478         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
117479         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
117480         Bring back getopt.c, getopt.h, getopt1.c.
117482 2004-03-07  Paul Eggert  <eggert@twinsun.com>
117484         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
117485         All uses changed.  Check for sa_sigaction member; this fixes
117486         a bug first reported by Jason Andrade in
117487         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
117489 2004-03-07  Paul Eggert  <eggert@twinsun.com>
117491         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
117492         '#if' expressions.  Unlike the code it replaces, it does not
117493         depend on (defined _SC_PAGESIZE).  However, it does depend on
117494         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
117495         first reported by Jason Andrade in
117496         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
117498 2004-02-25  Simon Josefsson  <jas@extundo.com>
117500         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
117502 2004-02-25  Simon Josefsson  <jas@extundo.com>
117504         * lib/strdup.h: New file.
117505         * lib/strdup.c: Include it.
117506         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
117507         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
117509 2004-02-23  Karl Berry  <karl@gnu.org>
117511         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
117512         (from fencepost.gnu.org:/gd/gnuorg).
117514 2004-02-23  Karl Berry  <karl@gnu.org>
117516         * config/srclistvars.sh (GNUORG) [karl]: redefine.
117517         * config/srclist.txt: add maintain/standards documents.
117519 2004-02-18  Bruno Haible  <bruno@clisp.org>
117521         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
117522         Reported by Derek Robert Price <derek@ximbiot.com>.
117524 2004-02-16  Karl Berry  <karl@gnu.org>
117526         * config/mkinstalldirs, install-sh: update from automake.
117528 2004-02-06  Karl Berry  <karl@gnu.org>
117530         * m4/po.m4: update from gettext 0.14.1.
117532 2004-02-06  Karl Berry  <karl@gnu.org>
117534         * lib/config.charset: update from gettext 0.14.1.
117536 2004-02-05  Paul Eggert  <eggert@twinsun.com>
117538         Add comments and code, prompted by suggestions from Bruno Haible
117539         for sh-quote.
117540         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
117541         describing the enum quoting_style values.
117542         * lib/quotearg.c (quotearg_alloc): New function.
117543         (quotearg_buffer_restyled): Treat lone { and } as special.
117544         Treat = as special.  Work around bug with older shells
117545         that "see" a '\' that is really the 2nd byte of a multibyte char.
117546         Quote empty string with shell_quoting_style.
117548 2004-02-03  Bruno Haible  <bruno@clisp.org>
117550         * m4/pipe.m4: New file, from GNU gettext.
117552 2004-02-03  Bruno Haible  <bruno@clisp.org>
117554         * lib/pipe.h: New file, from GNU gettext.
117555         * lib/pipe.c: New file, from GNU gettext.
117557 2004-01-27  Bruno Haible  <bruno@clisp.org>
117559         * m4/execute.m4: New file, from GNU gettext.
117561 2004-01-27  Bruno Haible  <bruno@clisp.org>
117563         * lib/execute.h: New file, from GNU gettext.
117564         * lib/execute.c: New file, from GNU gettext.
117565         * lib/w32spawn.h: New file, from GNU gettext.
117567 2004-01-24  Paul Eggert  <eggert@twinsun.com>
117569         Merge from diffutils.
117571         * lib/file-type.c (file_type): Add typed memory objects.
117572         * lib/file-type.h (S_TYPEISTMO): New macro.
117574         * lib/c-stack.h (c_stack_action): Remove argv argument.
117575         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
117576         (die): Don't calculate message unless segv_action returns.
117577         (get_stack_location, min_address_from_argv, max_address_from_argv,
117578         volatile stack_base, volatile_stack_size): Remove.
117579         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
117580         that every segmentation violation is a stack overflow.  (Ouch!)
117581         See Debian bug 136249 (still outstanding) for more info about why
117582         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
117584 2004-01-24  Paul Eggert  <eggert@twinsun.com>
117586         Exit-status fix from coreutils.
117588         Use exit_failure consistently in place of EXIT_FAILURE,
117589         so that program exit statuses are consistent on failure.
117591         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
117592         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
117593         * lib/argmatch.h: Comment fix to match the above.
117594         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
117595         Now a macro referring to exit_failure, instead of a separate
117596         variable.  Include "exitfail.h" to get it.
117597         * lib/xstrtol.h: Include "exitfail.h".
117598         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
117600         * lib/long-options.c (parse_long_options): Use prototype
117601         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
117602         for clarity.
117604 2004-01-21  Jim Meyering  <jim@meyering.net>
117606         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
117607         so as not to conflict with a different-sized __mktime_internal
117608         function in GNU libc.
117609         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
117610         Problem building statically-linked `ls' reported by Michael Brunnbauer.
117612 2004-01-20  Karl Berry  <karl@gnu.org>
117614         * config/config.guess: update from config.
117616         * config/srclistvars.sh: GNUWWWLICENSES for karl.
117618 2004-01-20  Bruno Haible  <bruno@clisp.org>
117620         Safer stack allocation.
117621         * lib/setenv.c: Include allocsa.h.
117622         (alloca): Remove fallback definition.
117623         (freea): Remove macro.
117624         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
117625         instead of freea.
117627 2004-01-20  Bruno Haible  <bruno@clisp.org>
117629         * m4/eealloc.m4: New file, from GNU gettext.
117631 2004-01-20  Bruno Haible  <bruno@clisp.org>
117633         * m4/allocsa.m4: New file, from GNU gettext.
117635 2004-01-20  Bruno Haible  <bruno@clisp.org>
117637         * lib/xallocsa.h: New file, from GNU gettext.
117638         * lib/xallocsa.c: New file, from GNU gettext.
117640 2004-01-20  Bruno Haible  <bruno@clisp.org>
117642         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
117644 2004-01-20  Bruno Haible  <bruno@clisp.org>
117646         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
117647         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
117648         specially.
117650 2004-01-20  Bruno Haible  <bruno@clisp.org>
117652         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
117653         patch.
117655 2004-01-20  Bruno Haible  <bruno@clisp.org>
117657         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
117659 2004-01-20  Bruno Haible  <bruno@clisp.org>
117661         * lib/eealloc.h: New file.
117663 2004-01-20  Bruno Haible  <bruno@clisp.org>
117665         * lib/binary-io.h: Avoid warnings on Cygwin.
117667 2004-01-20  Bruno Haible  <bruno@clisp.org>
117669         * lib/allocsa.h: New file, from GNU gettext.
117670         * lib/allocsa.c: New file, from GNU gettext.
117672 2004-01-18  Karl Berry  <karl@gnu.org>
117674         * doc/gpl.texi, doc/lgpl.texi: new files.
117676 2004-01-18  Karl Berry  <karl@gnu.org>
117678         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
117679         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
117681 2004-01-15  Paul Eggert  <eggert@twinsun.com>
117683         Merge from coreutils.
117685         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
117686         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
117687         (gl_DEFAULT_POSIX2_VERSION): Move
117688         the documentation from 'configure' into 'config.hin',
117689         so that 'configure --help' isn't burdened by it and
117690         we don't have to worry about its formatting there.
117691         Reword the documentation so that it's more succinct
117692         and can be run together into a single paragraph.
117693         * m4/same.m4 (gl_SAME): Check for pathconf.
117695 2004-01-15  Paul Eggert  <eggert@twinsun.com>
117697         Merge from coreutils.
117699         * lib/posixver.c: Include posixver.h.
117701         * lib/same.c: Include <stdbool.h>, <limits.h>.
117702         (_POSIX_NAME_MAX): Define if not defined.
117703         (MIN): New macro.
117704         (same_name): If file names are silently truncated, report
117705         that the file names are the same if they are the same after
117706         the silent truncation.
117708         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
117709         conversion function.
117710         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
117711         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
117712         longer needed.
117714 2004-01-15  Jim Meyering  <jim@meyering.net>
117716         Merge from coreutils.
117718         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
117719         if no library is required.
117720         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
117721         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
117722         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
117723         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
117724         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
117725         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
117726         value, $ac_cv_search_crypt, if it's "none required".
117727         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
117728         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
117729         not gl_FUNC_GETLOADAVG.
117730         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
117731         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
117733 2004-01-15  Jim Meyering  <jim@meyering.net>
117735         Merge from coreutils.
117737         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
117738         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
117739         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
117741         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
117742         optional configure-time default.
117744         * lib/version-etc.c (version_etc_copyright): Update copyright date.
117746         * lib/xreadlink.c (xreadlink): Correct outdated comment.
117748 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
117750         Merge from coreutils.
117752         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
117753         value, $ac_cv_search_nanosleep, if it's "none required".
117755 2004-01-14  Paul Eggert  <eggert@twinsun.com>
117757         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
117758         with like-named macro in fnmatch.c.
117759         (EXT): Use an internal constant instead.
117761         Merge fnmatch patches from glibc.
117762         * lib/fnmatch.c (mbsinit): Remove define.
117763         Add libc_hidden_ver (__fnmatch, fnmatch).
117764         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
117765         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
117767 2004-01-14  Karl Berry  <karl@gnu.org>
117769         * config/install-sh: update from automake.
117771 2004-01-13  Karl Berry  <karl@gnu.org>
117773         * config/install-sh: update from automake.
117775 2004-01-09  Karl Berry  <karl@gnu.org>
117777         * config/install-sh: update from automake.
117779 2004-01-05  Karl Berry  <karl@gnu.org>
117781         * config/config.{sub,guess}: update from config.
117783 2003-12-31  Karl Berry  <karl@gnu.org>
117785         * config/depcomp: update from automake.
117787 2003-12-14  Karl Berry  <karl@gnu.org>
117789         * lib/config.charset: update from gettext-runtime.
117791 2003-12-03  Paul Eggert  <eggert@twinsun.com>
117793         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
117794         Bug reported by Alfred M. Szmidt.
117796 2003-12-03  Bruno Haible  <bruno@clisp.org>
117798         * m4/gettext.m4: Upgrade from gettext-0.13.
117799         * m4/po.m4: Upgrade from gettext-0.13.
117800         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
117801         * m4/intmax.m4: New file, from gettext-0.13.
117802         * m4/printf-posix.m4: New file, from gettext-0.13.
117804 2003-11-29  Karl Berry  <karl@gnu.org>
117806         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
117808 2003-11-25  Paul Eggert  <eggert@twinsun.com>
117809             Bruno Haible  <bruno@clisp.org>
117811         * lib/printf-parse.h: Don't include sys/types.h.
117812         (ARG_NONE): New macro.
117813         (char_directive): Change type of *arg_index fields to size_t.
117814         * lib/printf-parse.c: Don't include sys/types.h.
117815         (SSIZE_MAX): Remove macro.
117816         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
117817         Remove unnecessary overflow check.
117818         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
117819         fields.
117821 2003-11-25  Bruno Haible  <bruno@clisp.org>
117823         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
117825 2003-11-25  Bruno Haible  <bruno@clisp.org>
117827         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
117828         gt_TYPE_SSIZE_T.
117830 2003-11-24  Paul Eggert  <eggert@twinsun.com>
117832         * modules/alloca: Remove dependency on xalloc.
117834 2003-11-24  Paul Eggert  <eggert@twinsun.com>
117836         * lib/alloca.c: Remove dependency on xalloc module.
117837         (xalloc_die): Remove.
117838         (memory_full) [!defined emacs]: New macro.
117839         [!defined emacs]: Don't include xalloc.h.
117840         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
117841         address arithmetic overflows.  Change datatypes a bit to avoid
117842         unnecessary casts.
117844 2003-11-22  Jim Meyering  <jim@meyering.net>
117846         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
117847         s/size/size_t/.
117849 2003-11-21  Karl Berry  <karl@gnu.org>
117851         * config/config.{sub,guess}: update from config.
117853 2003-11-18  Karl Berry  <karl@gnu.org>
117855         * config/config.{sub,guess}: update from config.
117857         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
117859 2003-11-17  Paul Eggert  <eggert@twinsun.com>
117861         * README: Mention that S+T cannot overflow if S is the size of
117862         an existing object and T is sufficiently small.
117864 2003-11-17  Jim Meyering  <jim@meyering.net>
117866         On systems without utime and without a utimes function capable of
117867         dealing with a NULL struct utimbuf* argument, this utime replacement
117868         could -- in unusual circumstances -- leak a file descriptor.
117869         * lib/utime.c: Include <unistd.h> and <errno.h>.
117870         (utime_null): Be sure to close `fd' and to preserve errno.
117871         Reported by Geoff Collyer via Arnold Robbins.
117873 2003-11-17  Bruno Haible  <bruno@clisp.org>
117875         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
117876         (Depends-on): Add xsize.
117878 2003-11-17  Bruno Haible  <bruno@clisp.org>
117880         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
117882 2003-11-17  Bruno Haible  <bruno@clisp.org>
117884         * lib/vasnprintf.c (alloca): Remove fallback definition.
117885         (freea): Remove definition.
117886         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
117887         Reported by Paul Eggert.
117889 2003-11-16  Paul Eggert  <eggert@twinsun.com>
117890             Bruno Haible  <bruno@clisp.org>
117892         Protect against address arithmetic overflow.
117893         * lib/printf-args.h: Include stddef.h.
117894         (arguments): Change type of field 'count' to size_t.
117895         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
117896         'unsigned int' where appropriate.
117897         * lib/printf-parse.h: Include sys/types.h.
117898         (char_directive): Change type of *arg_index fields to ssize_t.
117899         (char_directives): Change type of fields 'count', max_*_length to
117900         size_t.
117901         * lib/printf-parse.c: Include sys/types.h and xsize.h.
117902         (SSIZE_MAX): Define fallback value.
117903         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
117904         instead of 'int' where appropriate. Check a_allocated, d_allocated
117905         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
117906         * lib/vasnprintf.c: Include xsize.h.
117907         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
117908         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
117909         overflow. Avoid wraparound when converting a width or precision from
117910         decimal to binary.
117912 2003-11-16  Bruno Haible  <bruno@clisp.org>
117914         Update from GNU gettext.
117915         * lib/printf-parse.c: Generalize to it can be compiled for wide
117916         strings.
117917         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
117918         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
117919         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
117920         SNPRINTF): New macros.
117921         Don't include <alloca.h> if the file is used inside libintl.
117922         (local_wcslen): New function, for Solaris 2.5.1.
117923         (VASNPRINTF): Use it instead of wcslen.
117925 2003-11-16  Bruno Haible  <bruno@clisp.org>
117927         * lib/xsize.h (xmax): New function.
117928         (xsum, xsum3, xsum4): Declare as "pure" functions.
117930 2003-11-12  Paul Eggert  <eggert@twinsun.com>
117932         * modules/xalloc (Files): Undo latest change, since xalloc.h
117933         no longer needs SIZE_MAX or PTRDIFF_MAX.
117935 2003-11-12  Paul Eggert  <eggert@twinsun.com>
117937         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
117938         gl_PTRDIFF_MAX.
117940 2003-11-12  Paul Eggert  <eggert@twinsun.com>
117942         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
117943         "return", to pacify some unknown compiler.  Problem reported
117944         by Joerg Schilling.
117946 2003-11-12  Paul Eggert  <eggert@twinsun.com>
117948         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
117949         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
117950         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
117951         heuristic is just as accurate as far as we know, and it removes a
117952         dependency on size_max.m4 and ptrdiff_max.m4.
117954 2003-11-11  Bruno Haible  <bruno@clisp.org>
117956         * modules/xsize (Files): Add m4/size_max.m4.
117957         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
117959 2003-11-11  Bruno Haible  <bruno@clisp.org>
117961         * m4/size_max.m4: New file.
117962         * m4/ptrdiff_max.m4: New file.
117963         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
117964         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
117965         (gl_XALLOC): Invoke it.
117967 2003-11-11  Bruno Haible  <bruno@clisp.org>
117969         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
117970         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
117971         defined.
117973 2003-11-10  Paul Eggert  <eggert@twinsun.com>
117975         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
117976         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
117977         rejected some allocations of exactly SIZE_MAX - 2 bytes.
117978         From Bruno Haible.
117979         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
117980         not (size_t) -1, since it's defined here.
117982 2003-11-09  Karl Berry  <karl@gnu.org>
117984         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
117986 2003-11-06  Paul Eggert  <eggert@twinsun.com>
117988         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
117989         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
117990         Reject sizes of exactly SIZE_MAX bytes.
117991         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
117992         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
117994 2003-11-05  Bruno Haible  <bruno@clisp.org>
117996         * lib/xsize.h: Include limits.h, to avoid a possible collision with
117997         SIZE_MAX defined in <limits.h> on Solaris.
117999 2003-11-04  Jim Meyering  <jim@meyering.net>
118001         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
118002         variable names, rather than @VAR@.
118003         * modules/poll: Likewise.
118005 2003-11-04  Bruno Haible  <bruno@clisp.org>
118007         * modules/xsize: New file.
118008         * modules/linebreak: Depend on xsize.
118009         * MODULES.html.sh (func_all_modules): Add xsize.
118011 2003-11-04  Bruno Haible  <bruno@clisp.org>
118013         * m4/xsize.m4: New file.
118015 2003-11-04  Bruno Haible  <bruno@clisp.org>
118017         * lib/xsize.h: New file.
118018         * lib/linebreak.c: Include xsize.h.
118019         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
118020         argument for overflow.
118021         Suggested by Paul Eggert.
118023 2003-11-03  Karl Berry  <karl@gnu.org>
118025         * config/config.{guess,sub}: update from config.
118027 2003-11-03  Jim Meyering  <jim@meyering.net>
118029         * modules/userspec (lib_SOURCES): Add userspec.h.
118030         (Include): Add "userspec.h".
118031         Improve description.
118033 2003-11-03  Jim Meyering  <jim@meyering.net>
118035         * lib/userspec.c: Include "userspec.h".
118036         * lib/userspec.h: New file.
118038 2003-11-03  Bruno Haible  <bruno@clisp.org>
118040         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
118042 2003-11-03  Bruno Haible  <bruno@clisp.org>
118044         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
118045         available, to avoid (extremely rare) race condition.
118046         Suggested by Paul Eggert.
118048 2003-11-02  Karl Berry  <karl@gnu.org>
118050         * config/srclist.txt (vasprintf.c): sync broken, sigh.
118052 2003-10-31  Paul Eggert  <eggert@twinsun.com>
118054         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
118055         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
118056         (read_filesystem_list): Set and use me_type_malloced.
118057         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
118058         whatever the type happens to be), for brevity and consistency.
118059         Check for size calculation overflow on Alphas running OSF/1.
118061 2003-10-31  Jim Meyering  <jim@meyering.net>
118063         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
118065         * lib/linebuffer.c: Include <string.h> for declaration of memset.
118067 2003-10-30  Paul Eggert  <eggert@twinsun.com>
118068             Bruno Haible  <bruno@clisp.org>
118070         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
118071         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
118073 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
118075         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
118076         netbsd*-gnu*.  Suggested by Robert Millan.
118078 2003-10-29  Paul Eggert  <eggert@twinsun.com>
118080         * modules/group-member: Depend on stdbool.
118082 2003-10-29  Paul Eggert  <eggert@twinsun.com>
118084         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
118086 2003-10-29  Paul Eggert  <eggert@twinsun.com>
118088         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
118089         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
118090         after the 'gnu' in these cases.  This fixes some bugs in the
118091         previous change, and is based on suggestions by Robert Millan.
118093 2003-10-29  Paul Eggert  <eggert@twinsun.com>
118095         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
118096         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
118097         no longer needed.
118098         * lib/quotearg.c (quotearg_n_options): Use it.
118099         * lib/group-member.c: Include <stdbool.h>.
118100         (free_group_info): Arg is now const *; don't free arg.
118101         (get_group_info): Now returns bool and accepts struct group_info *,
118102         rather than returning a malloc'ed struct group_info *.
118103         All uses changed.  Check for overflow in internal size calculation.
118105         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
118106         rather than xmalloc/xrealloc.
118107         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
118108         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
118109         conformance bug: the old code used a pointer after freeing the
118110         storage that it addressed.
118111         * lib/hash.c (hash_initialize): Simplify the code by using
118112         xalloc_oversized rather than doing it by hand.
118113         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
118114         the buffer preserved.  Use free and xmalloc instead.
118115         * lib/quotearg.c (quotearg_n_options): Likewise.
118116         Use a simpler test for size overflow.  Don't use xalloc_oversized
118117         because unsigned int might be wider than size_t (!); this suggests
118118         that we should switch from unsigned int to size_t for slot numbers.
118120 2003-10-28  Paul Eggert  <eggert@twinsun.com>
118122         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
118123         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
118124         NetBSD kernels.  Requested by Richard Stallman.
118126 2003-10-27  Paul Eggert  <eggert@twinsun.com>
118128         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
118129         to allocate the returned structure.  Do not allocate a subarray,
118130         as x2nrealloc will do that.
118131         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
118132         instead of xnrealloc.
118133         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
118135 2003-10-27  Bruno Haible  <bruno@clisp.org>
118137         * lib/stdbool_.h: Better support for BeOS.
118139 2003-10-26  Paul Eggert  <eggert@twinsun.com>
118141         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
118142         now uses inline.
118144 2003-10-26  Paul Eggert  <eggert@twinsun.com>
118146         * lib/xalloc.h (xalloc_oversized): New static inline function, for
118147         callers that want to do their own size-overflow checking.  Include
118148         <stdbool.h>, since xalloc_oversized returns bool.
118149         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
118150         to use xalloc_oversized.
118152         Add two functions x2realloc, x2nrealloc, for programs that grow
118153         arrays dynamically by doubling their sizes.
118154         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
118155         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
118156         New functions.
118158         Port to C99 semantics for 'inline' of external functions.
118159         Bug reported by Bruno Haible.
118160         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
118161         with the old contents of xnmalloc.
118162         (xnmalloc, xmalloc): Use it.
118163         (xnrealloc_inline): New static inline function,
118164         with the old contents of xnrealloc.
118165         (xnrealloc, xrealloc): Use it.
118167         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
118168         that.
118170 2003-10-26  Karl Berry  <karl@gnu.org>
118172         * config/srclist.txt (COPYING.DOC): no longer available from
118173         /gd/gnuorg; don't know where the ultimate source is.
118175 2003-10-25  Paul Eggert  <eggert@twinsun.com>
118177         Fix several address-calculation bugs in the hash modules,
118178         plus some minor code cleanup.
118180         * lib/hash.h: Include <stdbool.h>, for bool.
118181         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
118182         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
118183         hash_get_n_entries, hash_get_max_bucket_length,
118184         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
118185         hash_rehash): Use size_t rather than unsigned.
118186         * lib/hash.c (struct hash_table, hash_get_n_buckets,
118187         hash_get_n_buckets_used, hash_get_n_entries,
118188         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
118189         hash_get_entries, hash_do_for_each, hash_string, is_prime,
118190         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
118191         Likewise.
118192         (SIZE_MAX): Define if not defined.
118193         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
118194         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
118195         hash_print):
118196         Use const * when possible.
118197         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
118198         (check_tuning): Fix bug: if tuning parameters were very close to
118199         0 or 1, rounding errors could have caused subscript violations.
118200         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
118201         (hash_initialize): Add 'fail:' label
118202         to free table and return NULL, and use it to simplify code.
118203         Use calloc rather than clearing the storage ourself.
118204         (hash_initialize, hash_rehash): Check for arithmetic overflow in
118205         buffer size calculations.
118206         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
118207         Include <stddef.h>, for size_t.
118208         * lib/hash-pjw.c (hash_pjw): Likewise.
118209         Switch to method described by Bruno Haible.
118210         Include <limits.h>, for CHAR_BIT.
118211         (SIZE_BITS): New macro.
118213 2003-10-23  Paul Eggert  <eggert@twinsun.com>
118215         * m4/getline.m4 (AM_FUNC_GETLINE):
118216         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
118217         hosts.  Problem reported by Derek Robert Price in
118218         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
118219         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
118220         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
118222 2003-10-21  Paul Eggert  <eggert@twinsun.com>
118224         * lib/getndelim2.c (getndelim2): When size calculation overflows,
118225         ceiling the allocation at NMAX bytes rather than silently
118226         discarding input bytes before NMAX is reached.  This makes
118227         a difference only if NMAX exceeds SIZE_MAX / 2.
118229         * lib/obstack.c: Merge from glibc.
118230         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
118231         Add libc_hidden_def (_obstack_newchunk).
118232         (_obstack_free) [! defined _LIBC]: Remove.
118233         [defined _LIBC]: Make a strong alias from obstack_free, rather than
118234         a clone of the function body.
118235         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
118236         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
118238         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
118239         glibc.
118240         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
118241         arg to memcpy.
118243         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
118244         (obstack_ptr_grow_fast, obstack_int_grow_fast):
118245         Don't use lvalue casts, as GCC plans to remove support for them
118246         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
118247         was also present in the non-GCC version, indicating that this
118248         code had always been buggy and had never been widely used.
118249         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
118250         Use the fast variant of each macro, rather than copying the
118251         definiens of the fast variant; that way, we'll be more likely to
118252         catch future bugs in the fast variants.
118254 2003-10-20  Bruno Haible  <bruno@clisp.org>
118256         * modules/wait-process: New file.
118257         * MODULES.html.sh (func_all_modules): Add wait-process.
118259 2003-10-20  Bruno Haible  <bruno@clisp.org>
118261         * m4/wait-process.m4: New file.
118263 2003-10-20  Bruno Haible  <bruno@clisp.org>
118265         * lib/wait-process.h: New file, from GNU gettext.
118266         * lib/wait-process.c: New file, from GNU gettext.
118268 2003-10-19  Jim Meyering  <jim@meyering.net>
118270         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
118271         HPUX 10.20.
118273 2003-10-18  Karl Berry  <karl@gnu.org>
118275         * config/config.guess: update from config.
118277 2003-10-16  Paul Eggert  <eggert@twinsun.com>
118279         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
118280         (getgroups): First arg is int, not size_t.
118281         Don't let 'free' mangle errno.
118283 2003-10-16  Paul Eggert  <eggert@twinsun.com>
118285         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
118287 2003-10-16  Karl Berry  <karl@gnu.org>
118289         * config/config.{guess,sub}: update from config.
118291 2003-10-16  Jim Meyering  <jim@meyering.net>
118293         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
118294         memcpy.
118296 2003-10-15  Paul Eggert  <eggert@twinsun.com>
118298         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
118299         (SIZE_MAX): Remove.
118300         (new_exclude, add_exclude_file): Initial size no longer needs to
118301         be a power of 2.
118302         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
118303         our own address arithmetic overflow checking.
118305         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
118306         (fnmatch): Do not alloca more than 2000 wide characters;
118307         instead, use malloc for large buffers.
118308         Check for address arithmetic overflow, and return -1
118309         with errno set to ENOMEM in that case.
118310         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
118311         (NEW_PATTERN): Do not alloca more than 8000 bytes;
118312         instead, return -1.  Check for address arithmetic overflow.
118314 2003-10-14  Paul Eggert  <eggert@twinsun.com>
118316         Handle invalid suffixes and overflow independently, so that
118317         callers can treat them independently as needed.  Fix some bugs in
118318         suffix handling, e.g., "100k@" was not diagnosed as an invalid
118319         suffix for a human-readable blocksize.  The major caller-visible
118320         change is the addition of a new
118321         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
118322         that both overflow and suffix chars were found.
118324         * lib/human.c (humblock): Don't check separately for invalid suffix
118325         char; that is xstrtoumax's job (now that its bug is fixed).
118326         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
118327         INTMAX_MAX]: New macros.
118328         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
118329         TYPE_MAXIMUM): New macros.
118330         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
118331         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
118332         if overflow occurs, as it's what __strtol does and it's more useful
118333         in practice.
118334         (__xstrtol): If __strtol reports some error other than ERANGE,
118335         reflect it to the caller as LONGINT_INVALID.  If it reports
118336         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
118337         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
118338         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
118339         value.
118340         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
118341         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
118342         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
118343         [defined UINTMAX_MAX]: New macros.
118345 2003-10-14  Bruno Haible  <bruno@clisp.org>
118347         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
118349 2003-10-14  Bruno Haible  <bruno@clisp.org>
118351         * m4/sig_atomic_t: New file, from GNU gettext.
118352         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
118354 2003-10-14  Bruno Haible  <bruno@clisp.org>
118356         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
118357         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
118358         Also use volatile where needed.
118360 2003-10-12  Paul Eggert  <eggert@twinsun.com>
118362         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
118363         Change maintainer from Bruno Haible to 'all'.
118365 2003-10-12  Paul Eggert  <eggert@twinsun.com>
118367         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
118369 2003-10-12  Paul Eggert  <eggert@twinsun.com>
118371         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
118372         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
118373         and define in terms of the other primitives.
118374         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
118375         (SIZE_MAX): Define if not already defined.
118376         (array_size_overflow): New function.
118377         (xalloc_die): Abort instead of exiting if 'error' returns.
118378         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
118379         (xmalloc, xrealloc): Use them.
118380         (xcalloc): Check for address arithmetic overflow.
118381         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
118382         a bit faster than strcpy.
118384 2003-10-10  Simon Josefsson  <jas@extundo.com>
118386         * modules/argp (Depends-on): Add restrict and strcase.
118388 2003-10-10  Simon Josefsson  <jas@extundo.com>
118390         * m4/argp.m4: Add AC_C_INLINE.
118392 2003-10-08  Paul Eggert  <eggert@twinsun.com>
118394         Merge getpass from libc, plus a few fixes.
118396         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
118397         Include <stdbool.h>.
118398         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
118399         __fsetlocking to empty.
118400         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
118401         do include <bits/libc-lock.h>.
118402         Do not include <fcntl.h>; not needed.
118403         [_LIBC]: Include <wchar.h>.
118404         (NOTCANCEL_MODE): New macro.
118405         (flockfile, funlockfile) [_LIBC]: New macros.
118406         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
118407         [!_LIBC]: New macros.
118408         (call_fclose): New function.
118409         (getpass): Use it.  Save tty stream separately; this simplifies the
118410         code and makes it more reliable if stdin happens to equal stdout.
118411         Invoke __fsetlocking on tty.
118412         Handle thread cancellation if needed.
118413         Namespace cleanup (use __tcgetattr, __getline).
118414         Use bool for Booleans.
118415         [USE_IN_LIBIO]: Handle wide streams.
118416         [!_LIBC]: Unconditionally do the fseek, since we don't know what
118417         stream might go where.
118419         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
118420         doesn't have to include <stdio.h> before us.
118421         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
118422         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
118423         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
118424         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
118425         if not declared, so that we can use getpass.c code from libc without
118426         rewriting it.
118427         (flockfile, ftrylockfile, funlockfile): New macros.
118429 2003-10-08  Paul Eggert  <eggert@twinsun.com>
118431         * modules/getpass: Depend on stdbool.
118433 2003-10-08  Paul Eggert  <eggert@twinsun.com>
118435         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
118437 2003-10-07  Karl Berry  <karl@gnu.org>
118439         * config/config.{guess,sub}: update from config.
118441 2003-10-06  Jim Meyering  <jim@meyering.net>
118442             Bruno Haible  <bruno@clisp.org>
118444         This lets translators provide better translations for the
118445         "Written by ..." part of --version output.
118446         * lib/version-etc.h: Include stdarg.h.
118447         (version_etc_copyright): Declare as readonly.
118448         (version_etc): Make this function variadic with a NULL-terminated list
118449         of author name strings.
118450         (version_etc_va): New declaration.
118451         * lib/version-etc.c: Include stdarg.h, stdlib.h.
118452         (version_etc_copyright): Declare as readonly.
118453         (version_etc_va): New function. Provide a different translatable string
118454         for each possible number of authors < 10. Abbreviate when there are 10
118455         authors or more.
118456         (version_etc): Make this function variadic. Call version_etc_va.
118457         Suggestion from Gary V. Vaughan.
118459         * lib/long-options.h (parse_long_options): Change prototype: the
118460         authors string is moved to the end and becomes variadic.
118461         * lib/long-options.c: Include stdarg.h.
118462         (parse_long_options): Make this function variadic, too.
118463         Call version_etc_va, not version_etc.
118465 2003-10-06  Bruno Haible  <bruno@clisp.org>
118467         * modules/version-etc-2: Remove file.
118468         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
118470 2003-10-06  Bruno Haible  <bruno@clisp.org>
118472         * modules/fatal-signal: New file.
118473         * MODULES.html.sh (func_all_modules): Add fatal-signal.
118475 2003-10-06  Bruno Haible  <bruno@clisp.org>
118477         * m4/fatal-signal.m4: New file.
118478         * m4/signalblocking.m4: New file, from GNU gettext.
118480 2003-10-06  Bruno Haible  <bruno@clisp.org>
118482         * lib/version-etc-2.h: Remove file.
118483         * lib/version-etc-2.c: Remove file.
118485 2003-10-06  Bruno Haible  <bruno@clisp.org>
118487         * lib/fatal-signal.h: New file, from GNU gettext.
118488         * lib/fatal-signal.c: New file, from GNU gettext.
118490 2003-10-05  Paul Eggert  <eggert@twinsun.com>
118492         * README: Rework advice for preventing empty .o files.
118493         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
118494         not <sys/types.h>.
118496 2003-10-04  Karl Berry  <karl@gnu.org>
118498         * lib/argp*: update from libc.
118500 2003-10-04  Karl Berry  <karl@gnu.org>
118502         * config/config.{guess,sub}: update from config.
118504 2003-10-02  Bruno Haible  <bruno@clisp.org>
118506         * modules/lchown (Include): Add lchown.h.
118507         * modules/time_r (Include): Use "..." syntax.
118508         * modules/xgetdomainname (Include): Add xgetdomainname.h.
118510 2003-10-01  Simon Josefsson  <jas@extundo.com>
118512         * MODULES.html.sh (func_all_modules): Move gethostname from section
118513         'based on' to section 'lacking' POSIX:2001.
118515 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
118517         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
118518         to output mode on the same stream.
118520 2003-09-29  Paul Eggert  <eggert@twinsun.com>
118522         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
118523         Fix arg typo in previous patch.
118525 2003-09-28  Jim Meyering  <jim@meyering.net>
118527         * lib/error.c: Correct cpp indentation.
118529 2003-09-27  Paul Eggert  <eggert@twinsun.com>
118531         * modules/free: New file.
118533 2003-09-27  Paul Eggert  <eggert@twinsun.com>
118535         * m4/free.m4: New file.
118537 2003-09-27  Paul Eggert  <eggert@twinsun.com>
118539         * lib/minmax.h (MIN, MAX)
118540         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
118541         Omit the special code that used __typeof__, since we worry that
118542         it could be more trouble than it's worth.  See:
118543         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
118544         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
118546         * lib/free.c: New file.
118548 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
118550         Trivial fixes to Makefile.am parts of module listings.
118551         * modules/strstr: Append strstr.h to lib_SOURCES.
118552         * modules/strcase: Likewise, for strcase.h.
118554 2003-09-27  Karl Berry  <karl@gnu.org>
118556         * config/mkinstalldirs: update from automake.
118558 2003-09-26  Paul Eggert  <eggert@twinsun.com>
118560         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
118561         (error_tail): Do not loop, reallocating temporary buffer, since
118562         the output cannot contain more wide characters than the input
118563         contains bytes, the size must be big enough already.  This avoids
118564         one potential size overflow calculation.  Check for size overflow
118565         when calculating temporary buffer size.  Free temporary buffer
118566         when done, if it was allocated with malloc; this plugs a memory
118567         leak.  Remove casts from void * to pointers, that are no longer
118568         needed now that we're assuming C89 or better.
118570         Merge error changes from glibc.
118572         * lib/error.c, error.h: Update copyright notice header to match glibc.
118573         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
118574         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
118575         Disable cancellation while printing error.
118576         * lib/error.h: Prepend __ to parameter names.
118578 2003-09-26  Jim Meyering  <jim@meyering.net>
118580         * lib/error.c (error_tail): Move some declarations
118581         into inner scope where the local variables are used.
118583 2003-09-26  Bruno Haible  <bruno@clisp.org>
118585         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
118586         stpncpy().
118587         Don't define stpncpy through config.h; it's now done through stpncpy.h.
118589 2003-09-26  Bruno Haible  <bruno@clisp.org>
118591         * lib/stpncpy.h (gnu_stpncpy): New declaration.
118592         (stpncpy): Define as alias for gnu_stpncpy.
118593         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
118595 2003-09-25  Simon Josefsson  <jas@extundo.com>
118597         * lib/xgetdomainname.h: New file.
118598         * lib/xgetdomainname.c: New file.
118600 2003-09-25  Simon Josefsson  <jas@extundo.com>
118601             Bruno Haible  <bruno@clisp.org>
118603         * modules/getdomainname: New file.
118604         * modules/xgetdomainname: New file.
118605         * MODULES.html.sh (func_all_modules): Add getdomainname,
118606         xgetdomainname.
118608 2003-09-25  Simon Josefsson  <jas@extundo.com>
118609             Bruno Haible  <bruno@clisp.org>
118611         * m4/getdomainname.m4: New file.
118613 2003-09-25  Simon Josefsson  <jas@extundo.com>
118614             Bruno Haible  <bruno@clisp.org>
118616         * lib/getdomainname.h: New file.
118617         * lib/getdomainname.c: New file.
118619 2003-09-25  Karl Berry  <karl@gnu.org>
118621         * lib/argp-fmtstream.c, argp-help.c: update from libc.
118623 2003-09-25  Karl Berry  <karl@gnu.org>
118625         * config/install-sh: update from automake.
118627 2003-09-25  Bruno Haible  <bruno@clisp.org>
118629         * modules/version-etc-2: New file, from modules/version-etc with
118630         modifications.
118631         * MODULES.html.sh (func_all_modules): Add version-etc-2.
118633 2003-09-25  Bruno Haible  <bruno@clisp.org>
118635         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
118636         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
118638 2003-09-24  Simon Josefsson  <jas@extundo.com>
118640         * modules/xgethostname: Add xgethostname.h.
118642 2003-09-24  Paul Eggert  <eggert@twinsun.com>
118644         * lib/linebuffer.c (freebuffer): Don't free the argument, just
118645         the buffer associated with the argument.  Bug reported by
118646         Simon Josefsson.
118648 2003-09-24  Paul Eggert  <eggert@twinsun.com>
118650         * README: Document assumptions that 'int' is at least 32 bits
118651         wide, that integer arithmetic is 2's complement without overflow,
118652         that there are no holes in integer values, that adding sizes of
118653         two nonoverlapping objects can't overflow, and that all-bits-zero
118654         yields scalar zero.  Fix spelling and capitalization typos.
118656 2003-09-19  Karl Berry  <karl@gnu.org>
118658         * lib/argp.h: update from libc.
118660 2003-09-17  Paul Eggert  <eggert@twinsun.com>
118662         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
118663         to avoid spurious warnings like "AC_RUN_IFELSE was called before
118664         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
118666 2003-09-17  Paul Eggert  <eggert@twinsun.com>
118668         * gnulib-tool: Use "test -h", not "test -L", for portability
118669         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
118670         (tags_regexp): Remove, since \| doesn't conform to POSIX.
118671         (sed_extract_prog): Issue s commands one-by-one, rather than
118672         using \| in one s command.
118674 2003-09-16  Paul Eggert  <eggert@twinsun.com>
118676         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
118677         input error, instead of returning NULL the next time we are called
118678         (and therefore losing track of errno).
118680 2003-09-16  Bruno Haible  <bruno@clisp.org>
118682         * gnulib-tool (func_create_testdir): Warn about duplicated
118683         dependencies.
118685 2003-09-15  Paul Eggert  <eggert@twinsun.com>
118687         * modules/argmatch, modules/fatal, modules/obstack,
118688         modules/xalloc, modules/xgethostname: Sort dependencies by
118689         importance, not alphabetically.
118691 2003-09-15  Paul Eggert  <eggert@twinsun.com>
118693         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
118694         fails, so that the caller gets the proper errno.
118696         * lib/readutmp.c (read_utmp): Likewise.
118697         Check for fstat error.  Close stream and free storage
118698         when failing.
118700 2003-09-14  Karl Berry  <karl@gnu.org>
118702         * config/srclist.txt (strdup.c): disable for c89 changes.
118704 2003-09-14  Jim Meyering  <jim@meyering.net>
118706         * lib/getloadavg.c: Correct cpp indentation.
118707         * lib/strdup.c: Likewise.
118708         * lib/vasnprintf.c: Likewise.
118710 2003-09-14  Bruno Haible  <bruno@clisp.org>
118712         * modules/fwriteerror: New file.
118713         * MODULES.html.sh (func_all_modules): Add fwriteerror.
118715 2003-09-14  Bruno Haible  <bruno@clisp.org>
118717         * lib/fwriteerror.h: New file.
118718         * lib/fwriteerror.c: New file.
118720 2003-09-12  Paul Eggert  <eggert@twinsun.com>
118722         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
118723         modules/xgethostname, modules/xalloc: Depend on exit.
118725 2003-09-12  Paul Eggert  <eggert@twinsun.com>
118727         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
118729         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
118730         and AC_MINIX, too, so that their extensions are available.
118732         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
118733         This macro has been superseded by gl_BACKUPFILE.
118735         More patches to assume C89 or better.
118737         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
118739         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
118740         unconditionally.
118741         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
118742         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
118743         Include <string.h>, <stdlib.h> unconditionally.
118744         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
118745         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
118746         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
118747         headers or for string.h.
118748         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
118749         or strtoul.
118751         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
118752         headers.
118753         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
118754         * m4/userspec.m4 (gl_USERSPEC): Likewise.
118755         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
118756         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
118757         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
118758         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
118759         memcpy, memset.
118760         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
118761         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
118762         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
118763         strtol.
118764         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
118765         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
118766         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
118767         strtoul.
118769 2003-09-12  Paul Eggert  <eggert@twinsun.com>
118771         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
118772         * lib/obstack.c [!defined _LIBC]: Likewise.
118773         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
118774         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
118775         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
118777         More changes to assume C89 or better.
118779         * lib/error.c (error_tail): Assume vprintf.
118781         * lib/argmatch.c (getenv): Remove decl.
118782         * lib/progreloc.c (get_full_program_name): Define via prototype.
118783         * lib/setenv.c (clearenv): Likewise.
118784         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
118785         needed.
118786         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
118787         (malloc, memcpy): Remove decls.
118788         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
118789         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
118790         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
118791         (memcpy): Remove macro.
118792         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
118793         (__P): Remove.  All uses removed.
118794         (PTR): Remove.  All uses changed to void *.
118795         (CHAR_BIT, NULL): Remove.
118796         (spaces, zeros, memset_space, memset_zero)
118797         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
118798         Remove.
118799         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
118800         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
118801         Define with prototype.
118802         Remove now-unnecessary prototype decl.
118803         (extra_args_spec): Assume ANSI C.  All uses changed.
118804         (extra_args_spec_iso): Remove.
118805         (my_strftime, emacs_strftimeu): Define via prototype.
118806         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
118807         unconditionally.
118808         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
118809         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
118810         (strtoul, strtol): Remove decls.
118811         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
118812         LONG_MAX): Remove.
118813         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
118814         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
118815         (LOCALE_PARAM_PROTO): New macro.
118816         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
118817         (INTERNAL (strtol), strtol): Define with a prototype.
118818         (PARAMS): Remove.  All uses removed.
118819         * lib/tempname.c: Include <string.h> unconditionally.
118820         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
118821         * lib/xgethostname.c (main): Define with a prototype.
118822         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
118823         Include <stdlib.h> unconditionally.
118824         (calloc, malloc, realloc, free): Remove decls.
118825         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
118826         Include <stdlib.h> unconditionally.  Sort include file names.
118827         (strtod): Remove.
118828         (xstrtod): Define with a prototype.
118829         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
118830         (strtol, strtoul): Remove decls.
118832 2003-09-11  Paul Eggert  <eggert@twinsun.com>
118834         More patches to assume C89 or better.
118835         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
118836         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
118837         string.h, memchr, STDC_HEADERS.
118839 2003-09-11  Paul Eggert  <eggert@twinsun.com>
118841         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
118842         Include <stdlib.h>, <string.h> unconditionally.
118843         Remove now-unnecessary cast to char *.
118844         * lib/strnlen.c: Include <string.h> unconditionally.
118845         * lib/yesno.c (yesno): Define with a prototype.
118847 2003-09-11  Bruno Haible  <bruno@clisp.org>
118849         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
118851 2003-09-10  Jim Meyering  <jim@meyering.net>
118853         * lib/error.c: Correct indentation of cpp directives.
118855 2003-09-10  Bruno Haible  <bruno@clisp.org>
118857         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
118858         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
118859         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
118860         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
118861         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
118862         <stdlib.h> and <string.h> checks.
118863         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
118864         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
118866 2003-09-10  Bruno Haible  <bruno@clisp.org>
118868         * lib/strcspn.c: Include <string.h> unconditionally.
118869         * lib/strpbrk.c: Include <string.h> unconditionally.
118870         * lib/strstr.c: Include <string.h> unconditionally.
118871         * lib/unicodeio.c: Include <string.h> unconditionally.
118872         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
118873         * lib/unsetenv.c: Likewise.
118874         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
118875         * lib/yesno.c: Include <stdlib.h> unconditionally.
118876         (rpmatch): Add prototype.
118878 2003-09-09  Paul Eggert  <eggert@twinsun.com>
118880         More patches to assume C89 or better.
118881         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
118882         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
118883         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
118884         or for string.h.
118885         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
118886         stdlib.h.
118887         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
118888         C headers.
118889         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
118890         string.h.
118891         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
118892         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
118893         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
118894         or for string.h.
118895         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
118896         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
118897         C headers.
118898         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
118899         memcpy.
118900         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
118901         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
118902         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
118903         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
118904         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
118905         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
118906         string.h, free.
118907         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
118908         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
118909         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
118910         C headers, or for string.h.
118911         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
118912         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
118913         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
118914         headers, memory.h, stdlib.h, string.h, strings.h.
118915         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
118916         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
118917         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
118918         strchr.
118919         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
118920         headers, memory.h, string.h.
118921         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
118922         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
118923         free.
118924         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
118925         headers.
118926         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
118927         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
118928         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
118929         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
118930         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
118932 2003-09-09  Paul Eggert  <eggert@twinsun.com>
118934         More K&R removal.
118936         * lib/acosl.c (main): Use a prototype.
118937         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
118938         tanl.c: Likewise.
118940         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
118942         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
118943         (getopt, etopt_long, getopt_long_only, _getopt_internal)
118944         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
118945         with a prototype.
118946         * lib/getopt.c (const): Remove macro.
118947         Include <string.h> unconditionally.
118948         (my_index): Remove; all uses changed to strchr.
118949         (strlen): Remove decl.
118950         (exchange): Remove forward decl; no longer needed.
118951         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
118952         Define with prototype.
118953         * lib/getopt1.c (const): Remove macro.
118954         (getopt_long, getopt_long_only, main): Define with prototype.
118956         * lib/getugroups.c: Include <string.h> unconditionally.
118958         * lib/getusershell.c: Include <stdlib.h> unconditionally.
118959         (getusershell, setusershell, endusershell, readname, main):
118960         Define with prototypes.
118962         * lib/group-member.c: Include group-member.h first.
118963         Include <stdlib.h> unconditionally.
118965         * lib/hard-locale.c: Include hard-locale.h first.
118966         Include <stdlib.h>, <string.h> unconditionally.
118968         * lib/hash.c (free, malloc): Remove decls.
118969         Include <stdlib.h> unconditionally.
118971         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
118972         (getenv): Do not declare.
118974         * lib/idcache.c: Include <string.h> unconditionally.
118976         * lib/long-options.c: Include long-options.h first, to test interface.
118977         Include <stdlib.h> unconditionally.
118979         * lib/makepath.c: Include makepath.h first, to test interface.
118980         Include <stdlib.h> and <string.h> unconditionally.
118982         * lib/linebuffer.c: Include <stdlib.h>.
118983         (free): Remove decl.
118985         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
118986         stddef.h. rpl_malloc returns void *, not char *.
118987         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
118988         prototype.
118990         * lib/md5.h: Include <limits.h> unconditionally.
118991         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
118992         (__P): Remove; all uses removed.
118993         * lib/md5.c: Include "md5.h" first.
118994         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
118995         md5_buffer, md5_process_bytes, md5_process_block):
118996         Define with prototypes.
118997         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
118998         * lib/sha.c: Include "sha.h" first.
118999         Include <stdlib.h>, <string.h> unconditionally.
119001         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
119002         * lib/memcmp.c (__ptr_t): Likewise.
119003         * lib/memrchr.c (__ptr_t): Likewise.
119004         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
119005         Include <string.h> unconditionally.
119006         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
119007         * lib/memchr.c: Include <stdlib.h> unconditionally.
119008         * lib/memchr.c (LONG_MAX): Remove.
119009         * lib/memrchr.c (LONG_MAX): Likewise.
119010         * lib/memchr.c (__memchr): Define via a prototype.
119011         * lib/memrchr.c (__memrchr): Likewise.
119012         * lib/memcmp.c (__P): Remove, and remove all uses.
119013         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
119014         Remove forward decls; no longer needed.
119015         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
119016         Use types required by C89 in prototype.
119018         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
119019         * lib/savedir.c: Likewise.
119020         * lib/mkdir.c (free): Remove decl.
119021         * lib/rmdir.c (rmdir): Define with a prototype.
119022         * lib/savedir.c: Include savedir.h first, to test interface.
119024         * lib/mktime.c (STDC_HEADERS): Remove.
119025         Include <stdlib.h>, <string.h> unconditionally.
119027         * lib/modechange.c: Include <stdlib.h> unconditionally.
119028         (malloc): Remove decl.
119030         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
119031         (free): Remove decl.
119033         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
119034         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
119035         (This type really should be intptr_t, but that's a C99ism.)
119036         (_obstack_memcpy): Remove: all uses changed to memcpy.
119037         Include <string.h> unconditionally.
119038         (struct obstack): Assume __STDC__ for types of members
119039         chunkfun, freefun, extra_arg.
119040         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
119041         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
119042         obstack_begin, obstack_specify_allocation,
119043         obstack_specify_allocation_with_arg, obstack_chunkfun,
119044         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
119045         Remove unprototyped decls and the macros that use them.
119046         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
119047         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
119048         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
119049         (defined __STDC__ && __STDC__)]:
119050         Remove nonprototyped code.
119051         Include <stdlib.h> unconditionally.
119052         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
119053         _obstack_allocated_p, _obstack_free, obstack_free,
119054         _obstack_memory_used, print_and_abort):
119055         Define using prototypes.
119056         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
119057         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
119058         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
119059         obstack_next_free, obstack_object_size, obstack_room) [0]:
119060         Remove unused, unprototyped code.
119062         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
119064         * lib/physmem.c (physmem_total, physmem_available, main): Define
119065         with prototypes.
119067         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
119068         (main): Define with a prototype.
119070         * lib/posixver.c (getenv): Remove decl.
119072         * lib/putenv.c (malloc): Returns void *, not char *.
119073         Include <string.h> unconditionally.
119074         (strchr, memcpy, NULL): Do not define.
119076         * lib/readtokens.c: Include readtokens.h first, to test interface.
119077         Include <stdlib.h>, <string.h> unconditionally.
119078         (init_tokenbuffer): Define with a prototype.
119080         * lib/regex.c (PARAMS): Remove.  All uses removed.
119081         All uses of _RE_ARGS removed, too.
119082         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
119083         unconditionally.
119084         (bzero): Assume memset exists.
119085         (memcmp, memcpy, NULL): Remove.
119086         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
119087         char, or assignments to local vars of type signed char.
119088         (init_syntax_once, PREFIX(extract_number_and_incr),
119089         PREFIX(print_partial_compiled_pattern),
119090         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
119091         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
119092         PREFIX(regex_grow_registers), PREFIX(regex_compile),
119093         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
119094         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
119095         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
119096         wcs_compile_range, byte_compile_range, truncate_wchar,
119097         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
119098         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
119099         count_mbs_length, wcs_re_match_2_internal,
119100         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
119101         PREFIX(alt_match_null_string_p),
119102         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
119103         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
119104         regfree, PREFIX(extract_number)): Define with prototype.  Remove
119105         now-unnecessary declaration, if any.
119106         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
119107         regcomp, regexec):
119108         Remove now-unnecessary casts among pointer types.
119109         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
119111         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
119112         (free): Remove decl.
119114         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
119116         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
119117         (free): Remove decl.
119119         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
119120         * lib/xgetcwd.c: Likewise.
119122         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
119123         (free): Remove decl.
119125         * lib/strchrnul.c (strchrnul): Define with a prototype.
119126         Fix bug: c_in was not converted to char before searching.
119128         The following changes are not K&R related:
119130         * lib/group-member.h: Include <sys/types.h>, so that this file is
119131         self-contained.
119132         * lib/makepath.h: Likewise.
119134         * lib/getusershell.c (readname, default_index, line_size, readname):
119135         Use size_t, not int, for sizes.
119136         (readname): If the size overflows, report an error instead of
119137         looping forever.
119139 2003-09-09  Paul Eggert  <eggert@twinsun.com>
119141         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
119142         libc.
119144 2003-09-09  Paul Eggert  <eggert@twinsun.com>
119146         * README: New section: portability guidelines.
119148 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
119150         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
119151         C89 spec.
119153 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
119155         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
119157 2003-09-08  Paul Eggert  <eggert@twinsun.com>
119159         Assume C89 or better; remove K&R cruft.
119160         A few of these changes were first proposed by Derek Robert Price
119161         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
119163         * lib/addext.c: Include <string.h> unconditionally.
119164         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
119165         Don't declare getenv or malloc.
119167         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
119168         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
119169         (NULL): Remove.
119170         (find_stack_direction, alloca): Use prototypes.
119172         * lib/atexit.c (atexit): Define using a prototype.
119174         * lib/basename.c, dirname.c, stripslash.c:
119175         Include <string.h> unconditionally.
119177         * lib/bcopy.c: Include <stddef.h>.
119178         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
119180         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
119182         * lib/error.h (error, error_at_line, error_print_progname)
119183         [! (defined (__STDC__) && __STDC__)]: Remove decls.
119184         * lib/error.c: Include error.h first, to check interface.
119185         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
119186         (VA_START): Remove; all uses changeed to va_start.
119187         (exit, strerror): Remove decls.
119188         (error_print_progname): Prototype uncondionally.
119189         Don't include <errno.h>; no longer needed.
119190         (private_strerror): Remove.
119191         (error_tail): Always define.
119192         (error, error_at_line): Assume C89 or better; always use prototypes.
119193         * lib/fatal.c: Include "fatal.h" first, to test interface.
119194         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
119195         (VA_START): Remove; all uses changed to va_start.
119196         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
119197         this case.
119198         (exit): Remove decl.
119199         (fatal): Prototype unconditionally.  Assume va_start works.
119200         Abort at end, to pacify gcc.
119202         * lib/euidaccess.c (main): Define with a prototype.
119204         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
119206         * lib/exitfail.c: Include <stdlib.h> unconditionally.
119208         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
119209         prototypes.
119210         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
119211         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
119212         (getenv): Remove decl.
119213         (fnmatch): Define using a prototype.
119214         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
119215         (FCT): Define using a prototype.
119217         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
119219         * lib/gethostname.c: Include <stddef.h>.
119220         (gethostname): Define with prototype.  Length is size_t, not int.
119222 2003-09-08  Paul Eggert  <eggert@twinsun.com>
119224         Assume C89 or better; remove K&R cruft.
119225         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
119226         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
119227         string.h, getenv, malloc.
119228         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
119229         headers.
119230         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
119231         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
119232         do not check for strerror.
119233         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
119234         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
119235         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
119236         do not check for doprnt or vprintf.
119237         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
119238         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
119240 2003-09-08  Paul Eggert  <eggert@twinsun.com>
119242         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
119243         getversion.c should have been removed then, but was accidentally
119244         preserved.
119246         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
119247         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
119249 2003-09-08  Karl Berry  <karl@gnu.org>
119251         * config/config.sub, config.guess, srclistvars.sh: update from savannah
119252                 config, forget about prep.
119254         * config/depcomp, missing: update from automake.
119256 2003-09-07  Paul Eggert  <eggert@twinsun.com>
119258         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
119259         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
119261 2003-09-07  Paul Eggert  <eggert@twinsun.com>
119263         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
119264         copy_tm_result.  Bug reported by Simon Josefsson in
119265         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
119267 2003-09-06  Paul Eggert  <eggert@twinsun.com>
119269         * m4/time_r.m4: New file.
119270         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
119271         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
119272         is. Check for timegm declaration.
119273         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
119274         Do not check for gmtime_r.
119275         Replace mktime if __mktime_internal does not exist and if mktime
119276         hasn't been replaced already.
119278 2003-09-06  Paul Eggert  <eggert@twinsun.com>
119280         * lib/time_r.c, lib/time_r.h: New files.
119282         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
119283         __localtime_r.
119284         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
119285         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
119287         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
119288         __gmtime_r.
119289         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
119290         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
119291         Include <time_r.h>.
119293         * lib/timegm.c: Switch to glibc implementation, with the following
119294         changes:
119295         [defined HAVE_CONFIG_H]: Include <config.h>.
119296         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
119297         (__mktime_internal) [!defined _LIBC]: New decl.
119298         (__gmtime_r) [!defined _LIBC]: New macro and function.
119299         (timegm): Use a prototype, since gnulib assumes C89.
119300         Do not bother declaring tmp to be const, as it's not really usefu.
119301         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
119302         (timegm): Declare only if HAVE_DECL_TIMEGM.
119304 2003-09-06  Paul Eggert  <eggert@twinsun.com>
119306         * MODULES.html.sh (func_all_modules): Add time_r.
119307         * modules/time_r: New file.
119308         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
119309         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
119311 2003-09-03  Paul Eggert  <eggert@twinsun.com>
119313         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
119314         Bug reported by Lute Kamstra in
119315         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
119317         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
119318         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
119319         course with correspondingly smaller numbers for tomorrow and
119320         yesterday.  From Tadayoshi Funaba.  Originally installed into
119321         sh-utils on 1999-08-07, but the patch got lost (I guess during the
119322         coreutils merge?).
119324 2003-08-31  Simon Josefsson  <jas@extundo.com>
119326         * modules/timegm: New file.
119327         * MODULES.html.sh (func_all_modules): Add timegm.
119329 2003-08-31  Simon Josefsson  <jas@extundo.com>
119331         * m4/timegm.m4: New file.
119333 2003-08-31  Simon Josefsson  <jas@extundo.com>
119335         * lib/timegm.h: New file.
119336         * lib/timegm.c: New file.  Based on
119337         wget-1.8.2/src/http.c:mktime_from_utc.
119339 2003-08-31  Karl Berry  <karl@gnu.org>
119341         * lib/argp.h: update from libc.
119343 2003-08-28  Bruno Haible  <bruno@clisp.org>
119345         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
119346         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
119347         followed by '#define fnmatch fnmatch_posix' gives an error.
119349 2003-08-28  Bruno Haible  <bruno@clisp.org>
119351         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
119352         warning on QNX, which defines O_BINARY to 000000.
119354 2003-08-27  Jim Meyering  <jim@meyering.net>
119356         * m4/mkstemp.m4: Require that the system mkstemp be able to create
119357         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
119358         would fail after 32.  Reported by Danny Levinson.  Details here:
119359         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
119361 2003-08-24  Bruno Haible  <bruno@clisp.org>
119363         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
119364         MSVC7 <stdio.h> is included later.
119366 2003-08-22  Simon Josefsson  <jas@extundo.com>
119368         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
119370 2003-08-20  Karl Berry  <karl@gnu.org>
119372         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
119374 2003-08-20  Bruno Haible  <bruno@clisp.org>
119376         * modules/progname: New file.
119377         * MODULES.html.sh (func_all_modules): Add progname.
119379 2003-08-20  Bruno Haible  <bruno@clisp.org>
119381         * lib/progname.h: New file, from GNU gettext.
119382         * lib/progname.c: New file, from GNU gettext.
119383         * lib/progreloc.c: New file, from GNU gettext.
119385 2003-08-19  Jim Meyering  <jim@meyering.net>
119387         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
119388         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
119390 2003-08-19  Bruno Haible  <bruno@clisp.org>
119392         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
119393         more.
119395 2003-08-19  Bruno Haible  <bruno@clisp.org>
119397         * lib/xstrdup.c: Assume <string.h> exists.
119399 2003-08-18  Paul Eggert  <eggert@twinsun.com>
119401         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
119402         in makefile rules.
119404 2003-08-18  Jim Meyering  <jim@meyering.net>
119406         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
119407         * m4/lib-ld.m4: Likewise.
119409 2003-08-18  Jim Meyering  <jim@meyering.net>
119411         * lib/setenv.h: Indent nested cpp directive.
119412         * lib/vasnprintf.c: Remove trailing blanks.
119414 2003-08-17  Simon Josefsson  <jas@extundo.com>
119416         * modules/xstrndup: New file.
119417         * MODULES.html.sh (func_all_modules): Add xstrndup.
119419 2003-08-17  Simon Josefsson  <jas@extundo.com>
119421         * modules/argp: Fix autoconf macro name. Add more dependencies.
119423 2003-08-17  Simon Josefsson  <jas@extundo.com>
119425         * m4/xstrndup.m4: New file.
119427 2003-08-17  Simon Josefsson  <jas@extundo.com>
119429         * m4/argp.m4: New file.
119431 2003-08-17  Simon Josefsson  <jas@extundo.com>
119432             Bruno Haible  <bruno@clisp.org>
119434         * lib/xstrndup.h: New file.
119435         * lib/xstrndup.c: New file.
119437 2003-08-17  Bruno Haible  <bruno@clisp.org>
119439         * modules/strndup (Files, Include): Add lib/strndup.h.
119441 2003-08-17  Bruno Haible  <bruno@clisp.org>
119443         * modules/euidaccess (Files): Add lib/euidaccess.h.
119445 2003-08-17  Bruno Haible  <bruno@clisp.org>
119447         * lib/strndup.h: New file.
119449 2003-08-17  Bruno Haible  <bruno@clisp.org>
119451         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
119452         like AC_GNU_SOURCE.
119453         * modules/extensions (configure.ac): Comment out the invocation of
119454         gl_USE_SYSTEM_EXTENSIONS.
119456 2003-08-16  Paul Eggert  <eggert@twinsun.com>
119458         Merges from coreutils, etc.
119459         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
119460         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
119461         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
119462         fixing a typo.
119463         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
119464         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
119466 2003-08-16  Paul Eggert  <eggert@twinsun.com>
119468         Document merge from coreutils.
119469         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
119470         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
119471         * modules/utime: Add m4/utimes-null.m4.
119473 2003-08-16  Paul Eggert  <eggert@twinsun.com>
119475         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
119476         space, undoing this 2003-08-12 change:
119477         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
119479 2003-08-16  Paul Eggert  <eggert@twinsun.com>
119481         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
119482         strtoul.c from libc, undoing this 2003-08-12 change:
119483         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
119485 2003-08-16  Jim Meyering  <jim@meyering.net>
119487         Merges from coreutils.
119488         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
119489         prefix.  Adjust cache variables similarly.  Create 500 rather than
119490         just 300 files, to exercise bug on Darwin6.5, too.
119491         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
119492         $missing_dir.
119493         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
119494         AM_SYS_POSIX_TERMIOS.
119495         Reported by mkc@mathdogs.com.
119496         Also change use of $am_cv_sys_posix_termios
119497         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
119498         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
119499         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
119500         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
119501         in /proc/mounts until it finds one with matching device number.  This
119502         is unnecessary when the FILE argument *is* a mount point.  No stat call
119503         is necessary in that case.  So, disable the statvfs-testing code on
119504         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
119505         as RedHat bug# 84846.
119506         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
119507         to 1MB, so as not to render systems with no stack size limit (e.g.,
119508         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
119509         Include <unistd.h>.  On some systems,
119510         it is required for the definition of _SC_PAGESIZE.
119512 2003-08-16  Jim Meyering  <jim@meyering.net>
119514         Merge from coreutils.
119515         * lib/xstrtoimax.c: #else #if -> #elif.
119516         * lib/xstrtoumax.c: Likewise.
119518 2003-08-16  Jim Meyering  <jim@meyering.net>
119520         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
119521         * m4/utimes.m4: Removed.
119522         * m4/utimes-null.m4: Renamed from utimes.m4.
119524         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
119525         to 1MB, so as not to render systems with no stack size limit (e.g.,
119526         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
119527         Include <unistd.h>.  On some systems,
119528         it is required for the definition of _SC_PAGESIZE.
119530 2003-08-16  Jim Meyering  <jim@meyering.net>
119531         and Paul Eggert  <eggert@cs.ucla.edu>
119533         Merges from coreutils, etc.
119535         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
119536         using the latest version from cvs.  This avoids problems with #line
119537         directives using a vendor (Sun) compiler.
119538         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
119539         Don't set GETGROUPS_LIB here; now it's
119540         done via getgroups.m4's wrapper function.
119541         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
119542         rather than just in sh-util/configure.in, so that the
119543         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
119544         same.
119545         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
119546         AC_FUNC_GETLOADAVG where to find getloadavg.c.
119547         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
119548         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
119549         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
119550         Remove code that is now done by the newly-required macros.
119551         Append $(EXEEXT) to DF_PROG.
119552         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
119553         Do not invoke or require the following here,
119554         since prereq.m4 or some gnulib .m4 now does this for us:
119555         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
119556         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
119557         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
119558         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
119559         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
119560         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
119561         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
119562         AC_FUNC_OBSTACK.
119563         Do not replace the following functions, as this is now the job
119564         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
119565         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
119566         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
119567         atexit getpass, strdup, getpagesize.
119568         Replace 'raise'.
119569         Do not check for the following functions, as this is now the job
119570         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
119571         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
119572         setregid.
119573         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
119574         Check for sys/sysctl.h.
119575         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
119576         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
119577         of checking for ssize_t ourselves.
119579         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
119580         Require every macro that gnulib/modules/* suggests for us.
119581         (jm_PREREQ_ADDEXT): New macro.
119582         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
119583         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
119585         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
119586         (gl_PHYSMEM): Use it.
119587         Also check for `table' function.
119588         Check for new headers and functions.
119589         Add check for sys/sysmp.h.
119590         With suggestions from Kaveh Ghazi.
119591         Ignore headers that are present but cannot be compiled.  This
119592         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
119593         C 5.4.
119595 2003-08-15  Paul Eggert  <eggert@twinsun.com>
119597         Document merge from coreutils.
119598         * modules/userspec: Depend on posixver.
119599         * modules/strftime: Depend on tzset.
119601 2003-08-15  Paul Eggert  <eggert@twinsun.com>
119603         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
119604         rather than tab, after '#' in shell-script copyright notices.
119605         Suggested by Bruno Haible.
119607 2003-08-15  Paul Eggert  <eggert@twinsun.com>
119609         * config/srclist-update: Use three spaces, rather than tab, after '#'
119610         in shell-script copyright notices.  Suggested by Bruno Haible.
119611         Remove unnecessary parenthesization in regular expression.
119613 2003-08-15  Jim Meyering  <jim@meyering.net>
119615         Merge from coreutils.
119616         * lib/xgethostname.c: Include <stdlib.h>.
119617         (xghostname): Don't exit for anything other than memory-related
119618         failure; just return NULL.
119619         * lib/userspec.c: Include "posixver.h".
119620         (parse_user_spec): Accept `.' as a separator only
119621         in pre-POSIX-200112 mode.
119622         * lib/strtoimax.c: Use #elif rather than #else #if.
119623         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
119624         Remove function, now that we can rely on a working tzset function.
119625         [!_LIBC]: Ensure that the required autoconf test has been run.
119626         [!defined _NL_CURRENT && HAVE_STRFTIME]:
119627         Use underlying_strftime for %r.
119628         * lib/sha.c: Merge in some clean-up and optimization changes from
119629         glibc.
119630         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
119631         Ensure that it is a multiple of 64.
119632         Rearrange loop exit tests so as to avoid performing an
119633         additional fread after encountering an error or EOF.
119634         * lib/realloc.c: Update copyright date.
119636 2003-08-15  Jim Meyering  <jim@meyering.net>
119637         and Paul Eggert  <eggert@twinsun.com>
119639         Merge from coreutils.
119640         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
119641         member but strut utmpx does not.  Needed for AIX 4.3.3.
119642         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
119644 2003-08-15  Jim Meyering  <jim@meyering.net>
119645         and Paul Eggert  <eggert@cs.ucla.edu>
119647         Merges from coreutils, etc.
119648         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
119649         Require gl_FUNC_TZSET_CLOBBER.
119650         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
119651         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
119652         members.
119654 2003-08-14  Paul Eggert  <eggert@twinsun.com>
119656         Help the merge from coreutils.
119657         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
119658         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
119659         * m4/tzset.m4: Use it too.
119661 2003-08-14  Paul Eggert  <eggert@twinsun.com>
119663         * modules/tzset: New file.
119665 2003-08-14  Jim Meyering  <jim@meyering.net>
119667         Merges from coreutils.
119668         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
119669         variable names, rather than @FNMATCH_H@.
119670         * modules/alloca: Likewise for $(ALLOCA_H).
119672         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
119673         the three copies of the literal target, `fnmatch.h'.
119674         * modules/alloca (alloca.h): Likewise.
119676 2003-08-14  Jim Meyering  <jim@meyering.net>
119678         Merge from coreutils.
119679         * m4/tzset.m4: New file.
119680         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
119681         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
119682         otherwise, AIX 5.1 systems would end up using the latter.
119683         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
119684         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
119685         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
119686         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
119688 2003-08-14  Jim Meyering  <jim@meyering.net>
119690         Merge from coreutils.
119691         * lib/obstack.h: Whitespace changes.
119692         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
119693         and xcalloc return values.
119694         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
119695         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
119696         hang on OSF/1 5.1 for DIR on both local and remote file systems.
119697         Reported by (and fix confirmed by) Nelson H. F. Beebe.
119698         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
119699         error from mntctl.
119700         Use mntctl's return value to drive the entry-processing loop, since
119701         we can't rely on the value of the vmt_length member in the last
119702         entry.  On some systems doing so could result in exhausting
119703         virtual memory.  Based in part on a patch from Mike Jetzer.
119705 2003-08-14  Jim Meyering  <jim@meyering.net>
119706         and Paul Eggert  <eggert@twinsun.com>
119708         Merges from coreutils, plus other fixes.
119709         * lib/physmem.c: Merge in portability changes from gcc/libiberty
119710         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
119711         for credits and details.  Thanks to Kaveh Ghazi for helping
119712         to keep these files in sync.
119713         (ARRAY_SIZE): Define it.
119714         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
119715         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
119716         (memcasecmp): Don't assume size_t fits in unsigned int.
119717         Remove casts and duplicate code.
119718         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
119719         (memcpy): Remove definition.
119720         Merge in some clean-up and optimization changes from glibc.
119721         [BLOCKSIZE]: Move definition to top of file.
119722         Ensure that it is a multiple of 64.
119723         Rearrange loop exit tests so as to avoid performing an
119724         additional fread after encountering an error or EOF.
119725         * lib/md5.h (md5_uintptr): Define.
119726         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
119727         return to the initial working directory.  Preserve errno
119728         for caller.
119729         * lib/idcache.c: Include "xalloc.h".
119730         (xmalloc, xrealloc): Remove decls.
119731         (getuser): Remove casts no longer required in C89.
119732         * lib/human.c: Include stdio.h, for sprintf.
119733         * lib/group-member.c: Include "xalloc.h".
119734         (xmalloc, xrealloc): Remove decls.
119735         (get_group_info): Remove casts no longer required in C89.
119736         * lib/getusershell.c (readname): Remove casts no longer required in
119737         C89.
119738         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
119739         * lib/getline.c: Whitespace fix, from coreutils.
119741 2003-08-13  Paul Eggert  <eggert@twinsun.com>
119743         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
119744         Check for isascii.
119746         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
119747         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
119748         Undo previous (whitespace-only) change.
119750 2003-08-13  Paul Eggert  <eggert@twinsun.com>
119752         * lib/exclude.c: Include <ctype.h>
119753         (IN_CTYPE_DOMAIN): New macro.
119754         (is_space): New fn.
119755         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
119756         and empty lines.
119758         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
119759         Undo previous (whitespace-only) change.
119761 2003-08-13  Paul Eggert  <eggert@twinsun.com>
119763         * config/srclist-update: Change update back to the old behavior,
119764         leaving whitespace alone.  Use one 'sed' command rather than a
119765         pipeline.
119766         (fixlicense): Now a variable, not a function.
119767         (remove_trailing_blanks): Remove.
119768         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
119769         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
119770         Undo previous (whitespace-only) change.
119772 2003-08-12  Paul Eggert  <eggert@twinsun.com>
119774         Merge from coreutils.
119775         * modules/euidaccess: Add lib_SOURCES, include for new
119776         file euidaccess.h
119778 2003-08-12  Paul Eggert  <eggert@twinsun.com>
119780         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
119781         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
119782         Normalize leading white space and remove trailing white space.
119784         Merge from coreutils
119785         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
119787         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
119788         0.12.1.  These files are now being upgraded automatically by
119789         ../config/srclist-update.
119791 2003-08-12  Paul Eggert  <eggert@twinsun.com>
119793         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
119794         Normalize leading white space and remove trailing white space.
119795         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
119796         notice, as per ../config/srclist-update.
119798         Merge from coreutils.
119799         * lib/euidaccess.h: New file.
119800         * lib/euidaccess.c: Include it.
119801         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
119802         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
119803         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
119805 2003-08-12  Paul Eggert  <eggert@twinsun.com>
119807         * config/srclist-update: Add copyright notice.
119808         (remove_id_lines, remove_trailing_blanks): New constants.
119809         (fixfile): Use them to normalize spacing a bit in copied files.
119810         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
119811         Normalize leading white space and remove trailing white space.
119813         * config/texinfo.tex: Sync with texinfo.
119815         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
119816         strtoul.c from libc, to merge coreutils whitespace changes.
119818         * config/srclist.txt: Get the following m4 files from gettext:
119819         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
119820         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
119821         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
119822         wint_t.m4.
119824 2003-08-12  Karl Berry  <karl@gnu.org>
119826         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
119827         been made.
119829 2003-08-11  Paul Eggert  <eggert@twinsun.com>
119831         * modules/gnu-source, m4/gnu-source.m4:
119832         Remove; we're assuming Autoconf 2.54 or later now.
119833         Suggested by Bruno Haible.
119834         * MODULES.html.sh (func_all_modules): Remove gnu-source.
119836 2003-08-11  Bruno Haible  <bruno@clisp.org>
119838         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
119840 2003-08-11  Bruno Haible  <bruno@clisp.org>
119842         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
119843         (vasnprintf): Use it instead of wcslen.
119845 2003-08-11  Bruno Haible  <bruno@clisp.org>
119847         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
119848         value to ensure that _Bool promotes to int. Use #define for _Bool when
119849         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
119851 2003-08-10  Karl Berry  <karl@gnu.org>
119853         * lib/regex.h: update from libc (whitespace fix).
119855 2003-08-09  Paul Eggert  <eggert@twinsun.com>
119857         Merge some files from coreutils.  These changes were
119858         originally made by Jim Meyering.
119859         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
119860         many older Unixes require this.
119861         * lib/alloca.c (alloca): Remove cast to argument of free;
119862         no longer needed in C89.
119863         * lib/alloca_.h, regex.h: Fix white space to match
119864         what GNU indent does.
119866 2003-08-09  Paul Eggert  <eggert@twinsun.com>
119868         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
119869         apparently Emacs's Unicode mode got confused before my 2003-08-05
119870         checkin.
119872 2003-08-08  Paul Eggert  <eggert@twinsun.com>
119874         * m4/extensions.m4: New file.
119875         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
119876         Require gl_USE_SYSTEM_EXTENSIONS.
119877         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
119878         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
119880 2003-08-08  Paul Eggert  <eggert@twinsun.com>
119882         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
119883         * modules/extensions, modules/gnu-source: New files.
119884         * modules/timespec, modules/unlocked-io: Depend on extensions.
119886 2003-08-07  Paul Eggert  <eggert@twinsun.com>
119888         * modules/restrict: New file.
119889         * MODULES.html.sh (func_all_modules): Add restrict.
119890         * modules/regex: Depend on restrict.
119892 2003-08-07  Paul Eggert  <eggert@twinsun.com>
119894         * m4/restrict.m4: New file.
119895         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
119897 2003-08-07  Bruno Haible  <bruno@clisp.org>
119899         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
119900         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
119902 2003-08-07  Bruno Haible  <bruno@clisp.org>
119904         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
119905         makes the module 'getndelim2' compatible with the module 'getline'.
119907 2003-08-05  Paul Eggert  <eggert@twinsun.com>
119909         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
119910         byte with "\201" to avoid glitches when editing that source file
119911         with multi-gnome-terminal.
119913 2003-08-05  Paul Eggert  <eggert@twinsun.com>
119915         * lib/bumpalloc.h: Remove.
119917 2003-08-05  Paul Eggert  <eggert@twinsun.com>
119919         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
119920         * modules/bumpalloc: Remove.
119922 2003-08-04  Paul Eggert  <eggert@twinsun.com>
119924         * lib/getloadavg.c: Change copyright notice and spacing to conform to
119925         GNU coding style.
119927         Merge from coreutils.
119928         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
119929         1. From glibc.
119930         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
119931         from Karl Berry, implemented by Jim Meyering.
119932         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
119933         from Dmitry V. Levin.
119934         Remove anachronistic cast of xrealloc.
119935         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
119936         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
119937         type. Otherwise, it wouldn't compile with at least /bin/cc on
119938         ymp-cray-unicos9.0.2.X.
119939         Combine two mostly-identical uses of alloca into one.
119940         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
119942 2003-08-04  Dave Love  <d.love@dl.ac.uk>
119944         [From Emacs.]
119946         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
119947         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
119948         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
119949         obsolete NLIST_NAME_UNION.
119950         [__GNU__]: Undef BSD and FSCALE.
119951         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
119953 2003-08-03  Paul Eggert  <eggert@twinsun.com>
119955         * lib/stdbool_.h (_Bool): Make it signed char, instead of
119956         an enum type, so that it's guaranteed to promote to int.  See:
119957         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
119959 2003-08-03  Karl Berry  <karl@gnu.org>
119961         * config/depcomp: update from automake.
119963 2003-07-31  Paul Eggert  <eggert@twinsun.com>
119965         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
119966         (strerror): Don't assume that a printable int fits in 14 bytes.
119968 2003-07-31  Bruno Haible  <bruno@clisp.org>
119970         * modules/getpass-gnu: New file.
119971         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
119973 2003-07-31  Bruno Haible  <bruno@clisp.org>
119975         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
119977 2003-07-24  Karl Berry  <karl@gnu.org>
119979         * config/missing: update from automake.
119981 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
119982             Bruno Haible  <bruno@clisp.org>
119984         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
119985         * lib/getline.c (getline, getdelim): Likewise.
119986         Remove _GNU_SOURCE define; now it's defined in config.h through
119987         m4/getline.m4.
119989 2003-07-23  Karl Berry  <karl@gnu.org>
119991         * config/config.sub: update from prep.
119993 2003-07-22  Paul Eggert  <eggert@twinsun.com>
119995         * modules/xalloc (Depends-on): Add exitfail.
119996         * modules/xmemcoll: Likewise.
119998 2003-07-22  Paul Eggert  <eggert@twinsun.com>
120000         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
120001         over-parenthesization in macros.
120003         Sync with coreutils.
120005         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
120006         required by C99.
120008         Use `exit_failure' for xalloc and xmemcoll instead of their own
120009         private exit-failure variables.
120010         * lib/xalloc.h (xalloc_exit_failure): Remove.
120011         * lib/xmalloc.c: Likewise.  Include exitfail.h.
120012         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
120013         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
120014         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
120015         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
120017 2003-07-20  Jim Meyering  <jim@meyering.net>
120019         * modules/closeout (Depends-on): Add exitfail.
120020         Suggestion from Bruno Haible.
120022 2003-07-19  Karl Berry  <karl@gnu.org>
120024         * config/config.sub: update from prep.
120026 2003-07-18  Paul Eggert  <eggert@twinsun.com>
120028         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
120029         Remove.
120030         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
120031         to test that it can stand by itself.  Include "exitfail.h".
120032         Clients should set exit_failure instead.
120033         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
120035 2003-07-18  Bruno Haible  <bruno@clisp.org>
120037         * modules/getndelim2: New file.
120038         * modules/getline: Share files with module getndelim2.
120039         * modules/getnline: Depend on getndelim2 instead of sharing files with
120040         it. Add getnline.c to lib_SOURCES.
120041         * MODULES.html.sh (func_all_modules): Add getndelim2.
120043 2003-07-18  Bruno Haible  <bruno@clisp.org>
120045         * m4/getndelim2.m4: New file.
120046         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
120047         invoke gl_PREREQ_GETNDELIM2.
120048         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
120049         gl_PREREQ_GETNDELIM2.
120050         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
120051         gl_GETNDELIM2.
120053 2003-07-18  Bruno Haible  <bruno@clisp.org>
120055         * lib/getndelim2.h: New file.
120056         * lib/getndelim2.c: Make into a module of its own. Include config.h,
120057         getndelim2.h.
120058         (getndelim2): Make non-static. Change return type to ssize_t.
120059         * lib/getline.h: Change argument names.
120060         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
120061         * lib/getnline.c: Include getndelim2.h.
120063 2003-07-18  Andreas Schwab  <schwab@suse.de>
120065         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
120067 2003-07-17  Karl Berry  <karl@gnu.org>
120069         * config/config.sub: update from prep.
120071 2003-07-17  Bruno Haible  <bruno@clisp.org>
120073         * modules/getnline: New file.
120074         * modules/getline: Add lib/getndelim2.c to source file list.
120075         * MODULES.html.sh (func_all_modules): Add getnline.
120077 2003-07-17  Bruno Haible  <bruno@clisp.org>
120079         * m4/getnline.m4: New file.
120081 2003-07-17  Bruno Haible  <bruno@clisp.org>
120083         * m4/Makefile.am.in: Remove file.
120084         * m4/Makefile.am: Remove file.
120085         * m4/Makefile.in: Remove file.
120087 2003-07-17  Bruno Haible  <bruno@clisp.org>
120089         * lib/getnline.h: New file.
120090         * lib/getnline.c: New file.
120091         * lib/getndelim2.c: New file, extracted from getline.c.
120092         (getndelim2): Renamed from getdelim2, with added nmax argument.
120093         * lib/getline.c: Include getndelim2.c.
120094         (getdelim2): Moved out to getndelim2.c.
120095         (getline, getdelim): Update.
120097 2003-07-17  Bruno Haible  <bruno@clisp.org>
120099         * lib/Makefile.am: Remove file.
120100         * lib/Makefile.in: Remove file.
120102 2003-07-17  Bruno Haible  <bruno@clisp.org>
120104         * configure.in: Remove file.
120105         * Makefile.in: Remove file.
120107 2003-07-17  Bruno Haible  <bruno@clisp.org>
120109         * MODULES.html.sh: Put the </BODY> right before </HTML>.
120111 2003-07-16  Karl Berry  <karl@gnu.org>
120113         * config/srclist-update: was running fixlicense twice, which caused
120114                 texinfo.tex to be nullified for some reason.  Simplify,
120115                 $gplsrc is no longer needed as far as I can see?
120117 2003-07-16  Jim Meyering  <jim@meyering.net>
120119         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
120121 2003-07-15  Paul Eggert  <eggert@twinsun.com>
120123         * config/srclist.txt: Get the following files from gettext-runtime/intl
120124         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
120125         ref-del.sin.  From Bruno Haible.
120126         * config/srclist-update (fixfile): Change grep pattern again, since the
120127         previous fix didn't work (there was another trailing $).  Use
120128         '[$]' to escape the $s.
120130 2003-07-15  Karl Berry  <karl@gnu.org>
120132         * lib/vasnprintf.c: update from gettext.
120134 2003-07-15  Karl Berry  <karl@gnu.org>
120136         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
120137         gets expanded when surrounded by '$'.
120139 2003-07-15  Jim Meyering  <jim@meyering.net>
120141         * modules/save-cwd: Don't depend on error.  From Derek Price.
120143 2003-07-15  Jim Meyering  <jim@meyering.net>
120145         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
120147 2003-07-14  Simon Josefsson  <jas@extundo.com>
120149         * modules/mempcpy: New file.
120150         * MODULES.html.sh (func_all_modules): Add mempcpy.
120152 2003-07-14  Simon Josefsson  <jas@extundo.com>
120154         * m4/mempcpy.m4: New file.
120156 2003-07-14  Simon Josefsson  <jas@extundo.com>
120158         * lib/mempcpy.h: New file.
120159         * lib/mempcpy.c: New file.
120161 2003-07-14  Paul Eggert  <eggert@twinsun.com>
120163         * modules/getdate, modules/posixtm: Depend on mktime.
120165 2003-07-14  Paul Eggert  <eggert@twinsun.com>
120167         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
120168         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
120169         unicodeio.c, unicodeio.h, unlocked-io.h:
120170         Switch from LGPL to GPL.
120172 2003-07-14  Paul Eggert  <eggert@twinsun.com>
120174         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
120175         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
120176         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
120177         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
120178         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
120179         updated automatically by ../config/srclist-update.  This changes
120180         their license from LPGL to GPL.
120182 2003-07-14  Paul Eggert  <eggert@twinsun.com>
120184         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
120185         assumed to refer to the root of the most recent stable gettext version.
120186         * config/srclistvars.sh: Add defaults for eggert.
120187         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
120188         Match "This program" as well as "The program".  This is needed
120189         for gettext.
120191 2003-07-14  Jim Meyering  <jim@meyering.net>
120193         Don't emit diagnostics.  Let callers do that.
120194         * lib/save-cwd.c: Don't include "error.h".
120195         (save_cwd): Don't call error.  Ensure that errno is valid
120196         when returning nonzero.
120198         * lib/save-cwd.h (restore_cwd): Update prototype.
120199         * lib/save-cwd.c (restore_cwd): Remove two parameters.
120200         Simplify.  Don't call error upon failure.  Let callers do that.
120201         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
120202         when auditing is enabled.  But don't bother updating the #if.
120204 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
120206         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
120207         it breaks C++ compilation.
120208         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
120210 2003-07-10  Simon Josefsson  <jas@extundo.com>
120212         * modules/strchrnul (Makefile.am): Add strchrnul.h.
120214 2003-07-10  Jim Meyering  <jim@meyering.net>
120216         * m4/clock_time.m4: Remove trailing blank.
120217         * m4/intmax_t.m4: Likewise.
120219 2003-07-10  Jim Meyering  <jim@meyering.net>
120221         * lib/vasnprintf.c: Remove trailing blanks.
120222         Make cpp indentation consistent.
120224 2003-07-09  Paul Eggert  <eggert@twinsun.com>
120226         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
120227         posixver.c, strftime.c, strnlen.c, strverscmp.c:
120228         Switch from LGPL to GPL.
120230 2003-07-09  Paul Eggert  <eggert@twinsun.com>
120232         * config/srclist.txt: Sort sublists.  Add
120233         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
120234         that differ from gnulib for one reason or another; we'd like this list
120235         to be smaller but for now let's document what we have.
120237 2003-07-08  Paul Eggert  <eggert@twinsun.com>
120239         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
120240         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
120241         and sweeter "eval x=$x".
120242         * config/srclist.txt: Get lib/argp* from glibc.
120244 2003-07-07  Paul Eggert  <eggert@twinsun.com>
120246         * lib/mktime.c: Fix some boundary cases and remove need for floating
120247         point.
120249         Issue a compile-time diagnostic if time_t is floating point, or if
120250         two's complement arithmetic is not in effect, or if arithmetic
120251         right shift does not propagate the sign.  These assumptions were
120252         all in the original code but they weren't checked.
120254         (TIME_T_MIDPOINT, verify): New macros.
120255         (__isleap): Remove; it has integer overflow problems.
120256         (leapyear): New function, without those problems.
120257         (ydhms_tm_diff): Remove; splitting into two parts.
120258         (ydhms_diff): New function, containing the arithmetic part of
120259         the old ydhms_tm_diff function.  Issue a compile-time
120260         diagnostic if we are not using C99 integer division.
120261         Avoid casts when possible.
120262         (guess_time_tm): New function, containing the checking part of
120263         the old ydhms_tm_diff function.  Return the new value, rather than
120264         the difference between it and the old.  Accept a new argument T
120265         so that *T specifies the old value.  Check for overflow in the result.
120267         (__mktime_internal): Use a time_t offset, not a long int offset.
120268         This undoes the 2003-06-04 change, which is no longer needed now
120269         that we have better overflow checking.
120270         (localtime_offset): Likewise.
120272         (__mktime_internal): Avoid harmful overflow on hosts where time_t
120273         and long are 64-bit but int is only 32-bit.
120274         (ydhms_diff): Use long int to store year1 and yday1.
120275         Issue a compile-time diagnostic if long int is not wide enough.
120277         (__mktime_internal): Use long int to store adjusted year and yday.
120278         Use plain C rather than preprocessor commands, if that doesn't
120279         affect efficiency.
120280         Check for overflow (and try to repair) after each probe
120281         rather than checking only at the very end.  This avoids some bugs
120282         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
120283         does not equal GMT offset at maximum time).
120284         Use integer to check for overflow rather than floating point; this
120285         is more portable to non-IEEE hosts, and is a tad faster.
120286         When we detect that we are oscillating between two values,
120287         don't check whether tm_isdst has the requested value, since
120288         we already know the answer.  When tm_isdst has the wrong value,
120289         use a different heuristic to find the right one, based on the
120290         extreme values actually observed in practice in tz2003a,
120291         rather than the (overly optimistic) "previous 3 calendar quarters".
120293         (not_equal_tm, print_tm, check_result): Use "const T" rather than
120294         "T const" to accommodate glibc style.
120295         (check_result): Use less-confusing report format.  "long" -> "long int.
120296         (main): Likewise.
120297         Don't loop if the iteration overflows time_t.
120298         Allow a negative step in the iteration.
120300 2003-07-06  Karl Berry  <karl@gnu.org>
120302         * config/depcomp: update from automake.
120303         * config/config.sub: update from prep.
120305 2003-07-03  Karl Berry  <karl@gnu.org>
120307         * config/config.guess: update from prep.
120309 2003-07-01  Paul Eggert  <eggert@twinsun.com>
120311         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
120312         xreadlink.c now includes it unconditionally.
120314 2003-07-01  Paul Eggert  <eggert@twinsun.com>
120316         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
120317         having it depend on HAVE_SYS_TYPES_H.
120319 2003-07-01  Bruno Haible  <bruno@clisp.org>
120321         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
120322         <sys/types.h> should be sufficient.
120323         Reported by Paul Eggert.
120325 2003-06-26  Karl Berry  <karl@gnu.org>
120327         * config/depcomp: update from automake.
120329 2003-06-26  Bruno Haible  <bruno@clisp.org>
120331         * modules/human: Depend on module stdbool.
120333 2003-06-25  Bruno Haible  <bruno@clisp.org>
120335         * modules/readlink: New file.
120336         * modules/xreadlink: Depend on it.
120337         * MODULES.html.sh (func_all_modules): Add readlink.
120339 2003-06-25  Bruno Haible  <bruno@clisp.org>
120341         * m4/readlink.m4: New file.
120343 2003-06-25  Bruno Haible  <bruno@clisp.org>
120345         * lib/readlink.c: New file.
120347 2003-06-22  Karl Berry  <karl@gnu.org>
120349         * config/srclist.txt: update mkinstalldirs from automake.
120350         * config/mkinstalldirs: update.
120352 2003-06-22  Bruno Haible  <bruno@clisp.org>
120354         Portability to mingw32.
120355         * m4/ssize_t.m4: New file, from GNU gettext.
120356         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
120357         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
120359 2003-06-22  Bruno Haible  <bruno@clisp.org>
120361         * modules/safe-read: Add m4/ssize_t.m4.
120362         * modules/xreadlink: Add m4/ssize_t.m4.
120364 2003-06-20  Bruno Haible  <bruno@clisp.org>
120366         Assume C89, so PARAMS isn't needed.
120367         * lib/unicodeio.h (PARAMS): Remove.
120368         * lib/unicodeio.c: Don't use PARAMS.
120370 2003-06-18  Karl Berry  <karl@gnu.org>
120372         * config/config.{guess,sub}: update from prep.
120374 2003-06-18  Jim Meyering  <jim@meyering.net>
120376         Merge changes from coreutils.
120377         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
120378         Remove explicit declarations of xmalloc and realloc.
120379         Include xalloc.h.
120380         (read_utmp): Remove anachronistic cast of xmalloc.
120382 2003-06-17  Paul Eggert  <eggert@twinsun.com>
120384         Assume C89, so PARAMS isn't needed.
120385         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
120386         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
120387         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
120388         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
120389         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
120390         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
120391         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
120392         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
120393         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
120394         lib/xstrtod.h, lib/xstrtol.h: Likewise.
120395         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
120396         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
120397         no longer needed. Anyway, config.h should always be included before any
120398         other file.
120400 2003-06-11  Simon Josefsson  <jas@extundo.com>
120402         * modules/sysexits: New file.
120403         * MODULES.html.sh (func_all_modules): Add sysexits.
120405 2003-06-11  Simon Josefsson  <jas@extundo.com>
120407         * lib/sysexit_.h: New file.
120409 2003-06-11  Derek Price  <derek@ximbiot.com>
120411         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
120412         necessary.
120414 2003-06-11  Bruno Haible  <bruno@clisp.org>
120416         * m4/sysexits.m4: New file.
120418 2003-06-10  Simon Josefsson  <jas@extundo.com>
120420         * lib/argp.h: New file, from glibc.
120421         * lib/argp-ba.c: New file, from glibc.
120422         * lib/argp-eexst.c: New file, from glibc.
120423         * lib/argp-fmtstream.c: New file, from glibc.
120424         * lib/argp-fmtstream.h: New file, from glibc.
120425         * lib/argp-fs-xinl.c: New file, from glibc.
120426         * lib/argp-help.c: New file, from glibc.
120427         * lib/argp-namefrob.h: New file, from glibc.
120428         * lib/argp-parse.c: New file, from glibc.
120429         * lib/argp-pv.c: New file, from glibc.
120430         * lib/argp-pvh.c: New file, from glibc.
120431         * lib/argp-xinl.c: New file, from glibc.
120433 2003-06-10  Simon Josefsson  <jas@extundo.com>
120435         * modules/strchrnul: New file.
120437 2003-06-10  Simon Josefsson  <jas@extundo.com>
120439         * modules/argp: New file.
120441 2003-06-10  Simon Josefsson  <jas@extundo.com>
120443         * m4/strchrnul.m4: New file.
120445 2003-06-10  Simon Josefsson  <jas@extundo.com>
120447         * lib/strchrnul.h: New file.
120448         * lib/strchrnul.c: New file.
120450 2003-06-10  Bruno Haible  <bruno@clisp.org>
120452         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
120454 2003-06-07  Karl Berry  <karl@gnu.org>
120456         * config/config.{guess,sub}: update from prep.
120458 2003-06-07  Jim Meyering  <jim@meyering.net>
120460         * modules/strtod: Use $(...) notation, not @...@ for
120461         AC_REPLACE'd variables.
120462         * modules/localcharset: Likewise.
120464 2003-06-07  Jim Meyering  <jim@meyering.net>
120466         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
120467         in place of my name in the copyright comment.
120468         Remove definition and uses of __P.
120470         From coreutils.
120471         * lib/stat.c: Don't declare xmalloc explicitly.
120472         Instead, include "xalloc.h".
120473         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
120474         xrealloc, and xcalloc return values.
120475         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
120476         Improve comment.
120477         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
120479 2003-06-07  Bruno Haible  <bruno@clisp.org>
120481         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
120482         avoid AC_CONFIG_LINKS.
120483         * modules/fnmatch (Makefile.am): Use explicit creation rule for
120484         fnmatch.h, to avoid AC_CONFIG_LINKS.
120485         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
120487 2003-06-07  Bruno Haible  <bruno@clisp.org>
120489         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
120490         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
120491         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
120492         directory.
120493         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
120494         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
120495         directory.
120497 2003-06-06  Jim Meyering  <jim@meyering.net>
120499         Merge from coreutils.
120500         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
120501         Consolidate declarations and initializations of *_base* locals.
120503         Merge from coreutils.
120504         This avoids a core dump on systems without GNU putenv,
120505         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
120506         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
120507         (unsetenv): New static function, from GNU libc.
120508         (rpl_putenv): Use it.
120510         * lib/modechange.c: Remove trailing blanks.
120512         Merge from coreutils.
120513         * lib/fsusage.c: Remove declaration of statfs.
120514         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
120516         * lib/posixtm.c: Include <stdbool.h> unconditionally.
120518 2003-06-06  Jim Meyering  <jim@meyering.net>
120520         * lib/stdbool_.h: Renamed from stdbool.h.in.
120522 2003-06-06  Jim Meyering  <jim@meyering.net>
120523             Bruno Haible  <bruno@clisp.org>
120525         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
120526         Adjust Makefile.am snippet not to redirect directly to target.
120527         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
120529 2003-06-05  Paul Eggert  <eggert@twinsun.com>
120531         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
120532         mismatch, look in future quarters as well as past.  This fixes a
120533         bug when processing fall-backwards gaps immediately after a long
120534         period of daylight-saving time.
120536         * lib/mktime.c: Assume freestanding C89 or better.
120537         (HAVE_LIMITS_H): Remove.  Assume it's 1.
120538         (__P): Remove; not used.
120539         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
120540         (mktime, not_equal_tm, print_tm, check_result,
120541         main): Use prototypes.  Use const * where appropriate.
120542         (main): Fix typo in testing code that uncovered by above changes.
120543         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
120545 2003-06-04  Paul Eggert  <eggert@twinsun.com>
120547         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
120548         locale.h, localeconv.  This merges changes from coreutils.
120550         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
120551         It can be removed after the next Autoconf is released.
120552         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
120553         needed.
120555 2003-06-04  Paul Eggert  <eggert@twinsun.com>
120557         * lib/mktime.c: Fix Debian bug 177940
120558         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
120559         (localtime_offset): Now long int, not time_t, because we want it
120560         to be guaranteed to be signed.  All uses changed.
120561         (__mktime_internal): If overflow would occur when adding offset,
120562         don't add it.
120564         Merge 'human' changes from coreutils.  Rewrite to support
120565         locale-specific notations like thousands separators.
120566         * lib/human.c: Simplify authorship notice.
120567         Include human.h immediately after config.h.
120568         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
120569         <limits.h>: Do not include, since human.h does.
120570         (SIZE_MAX, UINTMAX_MAX): New macros.
120571         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
120572         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
120573         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
120574         (power_letter): Renamed from suffixes.
120575         (generate_suffix_backwards): Remove.
120576         (adjust_value): Now takes int style (because of human.h changes)
120577         and long double value (for greater precision on some platforms).
120578         (group_number): New function.
120579         (human_readable): Use it.  Use integer options, not enum.
120580         Put the options before the sizes in the arg list.
120581         Support all the new options.
120582         The old human_readable function has been removed;
120583         use inttostr.h instead.
120584         (human_readable, default_block_size, humblock):
120585         Use uintmax_t, not int, for block sizes.
120586         (human_readable_inexact, block_size_types): Remove.
120587         (block_size_opts): New constant.
120588         (human_options): Renamed from human_block_size, with new signature
120589         that allows block sizes up to UINTMAX_MAX.  All callers changed.
120590         * lib/human.h: Add copyright and authorship notice.
120591         Include <limits.h> and <stdbool.h> unconditionally.
120592         (PARAMS): Remove.  All uses removed.
120593         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
120594         (enum human_inexact_style): Remove tag; now a nameless enum.
120595         (human_floor, human_ceiling, human_round_to_even): Now have
120596         values 2, 0, 1 rather than -1, 1, 0.
120597         (human_group_digits, human_suppress_point_zero, human_autoscale,
120598         human_base_1024, human_SI, human_B): New constants.
120599         (human_readable_inexact, human_block_size): Remove.
120600         (human_readable): Size args are now uintmax_t, not int.
120601         (human_options): New decl.
120603         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
120604         unnecessary now that we assume C89 or better.  This change
120605         imported from coreutils.
120607         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
120608         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
120609         in the 2003-05-30 sync from glibc.
120611         .h files should stand alone, but we shouldn't include <sys/types.h>
120612         if we can get away with just <stddef.h>.
120614         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
120615         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
120616         rather than <sys/types.h>, as we merely need size_t.
120617         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
120618         to get size_t.
120619         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
120620         Include <stdio.h>, to get FILE.
120621         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
120622         memcasecmp.h has included <stddef.h> and all we need is size_t.
120623         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
120624         our interface, instead of including <sys/types.h>
120626 2003-06-04  Paul Eggert  <eggert@twinsun.com>
120628         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
120629         now, as glibc mktime is buggy on non-glibc systems.
120631 2003-06-03  Karl Berry  <karl@gnu.org>
120633         * config/config.sub: update from prep.
120635 2003-06-02  Paul Eggert  <eggert@twinsun.com>
120637         [from coreutils]
120638         Fix some minor time-related bugs with POSIX time arguments.
120639         Some valid time stamps were being rejected (notably -1, and
120640         time stamps before 1900 on 64-bit hosts).  And some invalid
120641         time stamps were being accepted, e.g. September 31.
120643         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
120644         that we can return (time_t) -1 successfully.
120645         * lib/posixtm.c: Likewise.
120646         [HAVE_STDBOOL_H]: Include <stdbool.h>.
120647         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
120648         (t): Remove static var.
120649         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
120650         of static var.  All uses changed.
120651         (year): Do not reject years before 1900; they can occur with
120652         64-bit time_t.
120653         (posix_time_parse): Do not check for out-of-range components;
120654         that is now the caller's responsibility, since our checks were
120655         only approximations.
120656         (posixtime): Use mktime to check for out-of-range components,
120657         since it knows them exactly.
120658         If mktime returns (time_t) -1, check whether an error actually occurred
120659         by invoking localtime on -1.
120660         (main) [TEST_POSIXTIME]: Check for input data errors, and report
120661         posixtime failures better.
120662         Improve the test data (in comments only).
120664 2003-06-02  Karl Berry  <karl@gnu.org>
120666         * config/mkinstalldirs (version): new variable.
120667         (--version): new option.
120668         (usage): improve message.
120670 2003-05-30  Karl Berry  <karl@gnu.org>
120672         * lib/mktime.c: update from libc.
120674 2003-05-30  Bruno Haible  <bruno@clisp.org>
120676         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
120677         * config/config.rpath: Upgrade to gettext-0.12.1.
120679 2003-05-30  Bruno Haible  <bruno@clisp.org>
120681         * m4/gettext.m4: Upgrade to gettext-0.12.1.
120682         * m4/nls.m4: New file, from gettext-0.12.1.
120683         * m4/po.m4: New file, from gettext-0.12.1.
120684         * m4/progtest.m4: Upgrade to gettext-0.12.1.
120686 2003-05-30  Bruno Haible  <bruno@clisp.org>
120688         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
120689         * lib/localcharset.h: Likewise.
120690         * lib/localcharset.c: Likewise.
120692 2003-05-29  Karl Berry  <karl@gnu.org>
120694         * config/config.rpath: update from gettext.
120696 2003-05-28  Paul Eggert  <eggert@twinsun.com>
120698         Assume the headers required for C89 freestanding compilers.
120699         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
120700         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
120701         * m4/human.m4 (gl_HUMAN): Likewise.
120702         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
120703         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
120704         * m4/userspec.m4 (gl_USERSPEC): Likewise.
120705         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
120706         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
120707         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
120709 2003-05-28  Paul Eggert  <eggert@twinsun.com>
120711         Assume the headers required for C89 freestanding compilers.
120712         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
120713         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
120714         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
120715         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
120716         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
120717         define, since <limits.h> is guaranteed to do that.
120718         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
120719         * lib/exclude.c: Include <stdbool.h> unconditionally.
120720         * lib/tempname.c: Include <stddef.h> unconditionally.
120721         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
120722         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
120723         <stddef.h> does that.
120724         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
120725         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
120726         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
120727         needed.
120728         * lib/xstrtol.c: Likewise.
120729         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
120730         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
120732         * lib/addext.c (addext): Use assignment rather than cast, to avoid
120733         warnings on some platforms.
120735         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
120736         arbitrarily.
120738 2003-05-26  Jim Meyering  <jim@meyering.net>
120740         Merge in a change from coreutils:
120741         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
120742         that is guaranteed to be `no'.  Use `no_such_member' to indicate
120743         that condition, rather than `-1' which is slightly misleading.
120744         Change the name of the cache variable to have the gl_ prefix.
120745         Prompted by a patch from Richard Dawe for DJGPP.
120747 2003-05-24  Karl Berry  <karl@gnu.org>
120749         * config/config.guess: update from prep.
120751 2003-05-22  Karl Berry  <karl@gnu.org>
120753         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
120755 2003-05-20  Karl Berry  <karl@gnu.org>
120757         * config/config.guess: update from prep.
120759 2003-05-18  Karl Berry  <karl@gnu.org>
120761         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
120762         might actually be set by the user.
120764         * config/depcomp, install-sh, mdate-sh: update from automake.
120766 2003-05-17  Bruno Haible  <bruno@clisp.org>
120768         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
120769         invalid expansion for AC_EGREP_CPP.
120770         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
120771         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
120772         Suggested by Akim Demaille <akim@epita.fr> in
120773         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
120775 2003-05-12  Jim Meyering  <jim@meyering.net>
120777         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
120778         the space-padded-by-default conversion specifiers, %e, %k, %l.
120780 2003-05-12  Bruno Haible  <bruno@clisp.org>
120782         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
120783         the string is longer than 4 KB.
120785 2003-05-11  Karl Berry  <karl@gnu.org>
120787         * config/config.{guess,sub}: update from prep.
120789 2003-05-09  Bruno Haible  <bruno@clisp.org>
120791         * modules/error: Add m4/strerror_r.m4 to file list.
120793 2003-05-03  Bruno Haible  <bruno@clisp.org>
120795         Upgrade to Unicode-4.0.
120796         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
120797         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
120798         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
120799         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
120800         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
120801         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
120802         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
120803         Change width of U+E0100..U+E01EF from 1 to 0.
120805 2003-04-25  Jim Meyering  <jim@meyering.net>
120807         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
120808         of type size_t, not int.
120810 2003-04-25  Bruno Haible  <bruno@clisp.org>
120812         * lib/copy-file.c: Include <stddef.h>, for size_t.
120814 2003-04-21  Paul Eggert  <eggert@twinsun.com>
120816         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
120817         code which expansion is under static control.  Patch imported from
120818         Akim Demaille's patch to Bison; see
120819         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
120821 2003-04-14  Bruno Haible  <bruno@clisp.org>
120823         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
120825 2003-04-11  Jim Meyering  <jim@meyering.net>
120827         Merge changes from Coreutils.
120829         2003-03-22  Jim Meyering  <jim@meyering.net>
120831         * lib/strftime.c (widen): Cast alloca return value to proper type.
120833         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
120835         From GNU libc.
120836         * lib/strftime.c (my_strftime): Handle very large width
120837         specifications for numeric values correctly.  Improve checks for
120838         overflow.
120840         2003-01-19  Jim Meyering  <jim@meyering.net>
120842         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
120843         definitions.
120844         (nl_get_alt_digit) [! defined my_strftime]: Define.
120845         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
120846         _nl_get_alt_digit and _nl_get_walt_digit.
120848         * lib/strftime.c (my_strftime): Merge in locale-related changes from
120849         libc. These changes have no effect outside of _LIBC.
120851 2003-04-10  Bruno Haible  <bruno@clisp.org>
120853         * modules/findprog: New file.
120854         * MODULES.html.sh (func_all_modules): Add it.
120856 2003-04-10  Bruno Haible  <bruno@clisp.org>
120858         * m4/findprog.m4: New file.
120859         * m4/eaccess.m4: New file.
120861 2003-04-10  Bruno Haible  <bruno@clisp.org>
120863         * lib/findprog.h: New file, from GNU gettext.
120864         * lib/findprog.c: New file, from GNU gettext.
120866 2003-04-05  Jim Meyering  <jim@meyering.net>
120868         Merge changes from Coreutils.
120870         * lib/exclude.h (PARAMS): Remove definition and uses.
120871         * lib/exclude.c: Remove uses of `PARAMS'.
120873         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
120874         Add test-cases for DOS filenames. Declare program_name.
120875         (main): Set up program_name.  Patch by Rich Dawe.
120877         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
120878         error from mntctl.
120879         Use mntctl's return value to drive the entry-processing loop, since
120880         we can't rely on the value of the vmt_length member in the last
120881         entry.  On some systems doing so could result in exhausting
120882         virtual memory.  Based in part on a patch from Mike Jetzer.
120884 2003-04-04  Bruno Haible  <bruno@clisp.org>
120886         * modules/linebreak: New file.
120887         * MODULES.html.sh (func_all_modules): Add it.
120889 2003-04-04  Bruno Haible  <bruno@clisp.org>
120891         * m4/linebreak.m4: New file.
120893 2003-04-04  Bruno Haible  <bruno@clisp.org>
120895         * lib/linebreak.h: New file, from GNU gettext.
120896         * lib/linebreak.c: New file, from GNU gettext with slight
120897         modifications.
120898         * lib/lbrkprop.h: New file, from GNU gettext.
120900 2003-04-03  Bruno Haible  <bruno@clisp.org>
120902         * modules/utf8-ucs4: New file.
120903         * modules/utf16-ucs4: New file.
120904         * modules/ucs4-utf8: New file.
120905         * modules/ucs4-utf16: New file.
120906         * MODULES.html.sh (func_all_modules): Add them.
120908 2003-04-03  Bruno Haible  <bruno@clisp.org>
120910         * m4/utf-ucs4.m4: New file.
120911         * m4/ucs4-utf.m4: New file.
120913 2003-04-03  Bruno Haible  <bruno@clisp.org>
120915         * lib/utf8-ucs4.h: New file, from GNU gettext.
120916         * lib/utf16-ucs4.h: New file, from GNU gettext.
120917         * lib/ucs4-utf8.h: New file, from GNU gettext.
120918         * lib/ucs4-utf16.h: New file, from GNU gettext.
120920 2003-04-02  Bruno Haible  <bruno@clisp.org>
120922         * modules/binary-io: New file.
120923         * MODULES.html.sh (func_all_modules): Add it.
120925 2003-04-02  Bruno Haible  <bruno@clisp.org>
120927         * lib/binary-io.h: New file, from GNU gettext.
120929 2003-04-01  Bruno Haible  <bruno@clisp.org>
120931         * modules/pathname: New file.
120932         * MODULES.html.sh (func_all_modules): Add it.
120934 2003-04-01  Bruno Haible  <bruno@clisp.org>
120936         * lib/pathname.h: New file, from GNU gettext.
120937         * lib/concatpath.c: New file, from GNU gettext.
120939 2003-03-30  Bruno Haible  <bruno@clisp.org>
120941         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
120943 2003-03-30  Bruno Haible  <bruno@clisp.org>
120945         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
120946         function chown() doesn't exist.
120948 2003-03-28  Bruno Haible  <bruno@clisp.org>
120950         * modules/copy-file: New file.
120951         * MODULES.html.sh (func_all_modules): Add it.
120953 2003-03-28  Bruno Haible  <bruno@clisp.org>
120955         * m4/copy-file.m4: New file.
120957 2003-03-28  Bruno Haible  <bruno@clisp.org>
120959         * lib/copy-file.h: New file, from GNU gettext.
120960         * lib/copy-file.c: New file, from GNU gettext.
120962 2003-03-18  Jim Meyering  <jim@meyering.net>
120964         * lib/quote.c (quote_n): Fix typo in comment.
120966 2003-03-18  Bruno Haible  <bruno@clisp.org>
120968         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
120969         checking.
120970         * m4/onceonly_2_57.m4: Likewise.
120972 2003-03-17  Bruno Haible  <bruno@clisp.org>
120974         * m4/onceonly.m4: Require autoconf 2.54 or newer.
120975         (m4_quote): Remove macro.
120976         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
120978 2003-03-14  Jim Meyering  <jim@meyering.net>
120980         Merge changes from Coreutils.
120981         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
120982         to be const, in order to avoid warnings.
120983         (obstack_room): Likewise.
120984         (obstack_empty_p): Likewise.
120986 2003-03-14  Bruno Haible  <bruno@clisp.org>
120988         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
120989         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
120991 2003-03-13  Paul Eggert  <eggert@twinsun.com>
120993         Merge changes from Bison.
120994         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
120995         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
120996         when compiling Bison 1.875's `bitset bset = obstack_alloc
120997         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
120998         * lib/hash.c: Include <stdbool.h> unconditionally.
121000 2003-03-13  Paul Eggert  <eggert@twinsun.com>
121002         * m4/onceonly.m4 (m4_quote): New macro.
121003         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
121004         Quote AC_FOREACH variable-expansions properly.
121006 2003-03-13  Paul Eggert  <eggert@twinsun.com>
121008         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
121010 2003-03-09  Paul Eggert  <eggert@twinsun.com>
121012         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
121013         Reported by Bruce Becker; see:
121014         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
121016 2003-03-03  Paul Eggert  <eggert@twinsun.com>
121017             Bruno Haible  <bruno@clisp.org>
121019         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
121020         Reported by John Hughes, see
121021         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
121023 2003-02-20  Bruno Haible  <bruno@clisp.org>
121025         * MODULES.html.sh (func_all_modules): Add poll.
121027 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
121029         * modules/poll: New file.
121031 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
121033         * lib/poll_.h: New file.
121034         * lib/poll.c: New file.
121036 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
121038         * m4/poll.m4: New file.
121040 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
121042         * modules/mathl: New file.
121044 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
121046         * lib/mathl.h: New file.
121047         * lib/acosl.c: New file.
121048         * lib/asinl.c: New file.
121049         * lib/atanl.c: New file.
121050         * lib/ceill.c: New file.
121051         * lib/cosl.c: New file.
121052         * lib/expl.c: New file.
121053         * lib/floorl.c: New file.
121054         * lib/frexpl.c: New file.
121055         * lib/ldexpl.c: New file.
121056         * lib/logl.c: New file.
121057         * lib/sincosl.c: New file.
121058         * lib/sinl.c: New file.
121059         * lib/sqrtl.c: New file.
121060         * lib/tanl.c: New file.
121061         * lib/trigl.c: New file.
121062         * lib/trigl.h: New file.
121064 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
121066         * m4/mathl.m4: New file.
121068 2003-02-18  Bruno Haible  <bruno@clisp.org>
121070         * MODULES.html.sh (func_all_modules): Add mathl.
121072 2003-02-17  Bruno Haible  <bruno@clisp.org>
121074         * modules/mkdtemp: New module.
121075         * MODULES.html.sh (func_all_modules): Add it.
121077 2003-02-17  Bruno Haible  <bruno@clisp.org>
121079         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
121081 2003-02-17  Bruno Haible  <bruno@clisp.org>
121083         * lib/mkdtemp.h: New file, from GNU gettext.
121084         * lib/mkdtemp.c: New file, from GNU gettext.
121086 2003-02-02  Jim Meyering  <jim@meyering.net>
121088         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
121089         e.g. glibc-2.2.93.
121091 2003-01-31  Bruno Haible  <bruno@clisp.org>
121093         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
121094         'rpl_rename'.
121095         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
121096         'rpl_strnlen'.
121097         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
121098         'rpl_strtod'.
121099         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
121100         'rpl_utime'.
121102 2003-01-31  Bruno Haible  <bruno@clisp.org>
121104         * lib/rename.c: #undef rename before defining rpl_rename.
121105         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
121107 2003-01-30  Bruno Haible  <bruno@clisp.org>
121109         * modules/vasnprintf, modules/vasprintf: New modules.
121110         * MODULES.html.sh (func_all_modules): Add them.
121112 2003-01-30  Bruno Haible  <bruno@clisp.org>
121114         * m4/signed.m4: New file, from GNU gettext.
121115         * m4/longdouble.m4: New file, from GNU gettext.
121116         * m4/wchar_t.m4: New file, from GNU gettext.
121117         * m4/wint_t.m4: New file, from GNU gettext.
121118         * m4/vasnprintf.m4: New file.
121119         * m4/vasprintf.m4: New file.
121121 2003-01-30  Bruno Haible  <bruno@clisp.org>
121123         * lib/printf-args.h: New file, from GNU gettext.
121124         * lib/printf-args.c: New file, from GNU gettext.
121125         * lib/printf-parse.h: New file, from GNU gettext.
121126         * lib/printf-parse.c: New file, from GNU gettext.
121127         * lib/vasnprintf.h: New file, from GNU gettext.
121128         * lib/vasnprintf.c: New file, from GNU gettext.
121129         * lib/asnprintf.c: New file, from GNU gettext.
121130         * lib/vasprintf.h: New file, from GNU gettext with modifications.
121131         * lib/vasprintf.c: New file, from GNU gettext.
121132         * lib/asprintf.c: New file, from GNU gettext.
121134 2003-01-29  Bruno Haible  <bruno@clisp.org>
121136         * modules/stpncpy: New module.
121137         * MODULES.html.sh (func_all_modules): Add it.
121139 2003-01-29  Bruno Haible  <bruno@clisp.org>
121141         * m4/stpncpy.m4: New file.
121143 2003-01-29  Bruno Haible  <bruno@clisp.org>
121145         * lib/stpncpy.h: New file, from GNU gettext with modifications.
121146         * lib/stpncpy.c: New file, from GNU gettext with modifications.
121148 2003-01-28  Bruno Haible  <bruno@clisp.org>
121150         * modules/c-ctype: New module.
121151         * MODULES.html.sh (func_all_modules): Add it.
121153 2003-01-28  Bruno Haible  <bruno@clisp.org>
121155         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
121156         Paul Eggert.
121157         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
121158         Paul Eggert.
121160 2003-01-27  Bruno Haible  <bruno@clisp.org>
121162         * modules/xsetenv: New module.
121163         * MODULES.html.sh (func_all_modules): Add it.
121165 2003-01-27  Bruno Haible  <bruno@clisp.org>
121167         * lib/xsetenv.h: New file, from GNU gettext.
121168         * lib/xsetenv.c: New file, from GNU gettext.
121170 2003-01-23  Jim Meyering  <jim@meyering.net>
121172         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
121173         from working on systems without dirfd (at least Irix and OSF1/Tru64).
121175 2003-01-23  Bruno Haible  <bruno@clisp.org>
121177         * modules/minmax: New module.
121178         * MODULES.html.sh (func_all_modules): Add it.
121180 2003-01-23  Bruno Haible  <bruno@clisp.org>
121182         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
121183         Eggert.
121185 2003-01-22  Bruno Haible  <bruno@clisp.org>
121187         * modules/exit: New module.
121188         * MODULES.html.sh (func_all_modules): Add it.
121190 2003-01-22  Bruno Haible  <bruno@clisp.org>
121192         * lib/exit.h: New file, from GNU gettext.
121194 2003-01-19  Bruno Haible  <bruno@clisp.org>
121196         * gnulib-tool: Recognize option --extract-maintainer.
121197         (func_get_maintainer): New function.
121198         * modules/*: Add Maintainer entry.
121200 2003-01-16  Jim Meyering  <jim@meyering.net>
121202         * m4/regex.m4: The `regex' struct is both input and output.
121203         Initialize it before each use.  Patch by Tim Waugh.
121205 2003-01-16  Bruno Haible  <bruno@clisp.org>
121207         * MODULES.html.sh: Add a table of contents. Add the module name as
121208         leftmost column. Add hyperlinks.
121210 2003-01-15  Bruno Haible  <bruno@clisp.org>
121212         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
121214 2003-01-15  Bruno Haible  <bruno@clisp.org>
121216         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
121217         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
121218         suffix.
121220 2003-01-15  Bruno Haible  <bruno@clisp.org>
121222         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
121224 2003-01-15  Bruno Haible  <bruno@clisp.org>
121226         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
121227         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
121229 2003-01-14  Jim Meyering  <jim@meyering.net>
121231         * lib/same.c (same_name): Tweak a comment.
121233 2003-01-14  Bruno Haible  <bruno@clisp.org>
121235         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
121236         when a string comparison is sufficient.
121238 2003-01-14  Bruno Haible  <bruno@clisp.org>
121240         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
121241         'unsigned int'.
121243 2003-01-14  Bruno Haible  <bruno@clisp.org>
121245         * lib/hash-pjw.c: Add comment about low quality of this function.
121247 2003-01-13  Bruno Haible  <bruno@clisp.org>
121249         * modules/stpcpy: Distribute lib/stpcpy.h.
121250         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
121252 2003-01-13  Bruno Haible  <bruno@clisp.org>
121254         * modules/*: Add a description.
121255         * modules/strpbrk: Fix Makefile.am snippet.
121256         * modules/strtoimax: Fix dependencies.
121257         * modules/strtoumax: Likewise.
121259 2003-01-13  Bruno Haible  <bruno@clisp.org>
121261         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
121262         * modules/alloca (Makefile.am): All object files depend on alloca.h.
121263         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
121265 2003-01-13  Bruno Haible  <bruno@clisp.org>
121267         * gnulib-tool (func_create_testdir): Store config/* files in the main
121268         directory.
121269         * config.rpath: Move to ...
121270         * config/config.rpath: ... here.
121271         * modules/gettext: Contains config/config.rpath, not config.rpath.
121272         * modules/iconv: Likewise.
121274 2003-01-12  Paul Eggert  <eggert@twinsun.com>
121276         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
121277         to avoid collisions with libcurses and libreadline.
121279         * m4/getstr.m4: Remove.
121280         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
121282 2003-01-12  Paul Eggert  <eggert@twinsun.com>
121284         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
121285         to avoid collisions with libcurses and libreadline.
121287         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
121288         * lib/getstr.h, getstr.c: Remove.
121289         * lib/getline.c: Include "getline.h", to check interface.
121290         Move body of old getstr.c here: this defines MIN_CHUNK and
121291         declares getdelim2, which is renamed from getstr.
121292         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
121294         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
121295         All uses changed.
121296         * lib/linebuffer.h: Likewise.
121297         (readline): Remove backward-compatibility macro.
121299 2003-01-12  Paul Eggert  <eggert@twinsun.com>
121301         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
121302         to avoid collisions with libcurses and libreadline.
121303         * getstr: Remove.
121304         * MODULES.html.sh: Remove getstr.
121305         * modules/getline: Depend on unlocked-io, not getstr.
121307 2003-01-12  Jim Meyering  <jim@meyering.net>
121309         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
121311 2003-01-10  Bruno Haible  <bruno@clisp.org>
121313         * modules/alloca: Change Makefile.am requirements. Simplify Include
121314         requirements. Add lib/alloca_.h to file list.
121316 2003-01-10  Bruno Haible  <bruno@clisp.org>
121318         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
121320 2003-01-10  Bruno Haible  <bruno@clisp.org>
121322         * lib/alloca_.h: New file.
121323         * lib/getdate.y: Unconditionally include alloca.h.
121324         * lib/makepath.c: Likewise.
121325         * lib/setenv.c: Likewise.
121326         * lib/userspec.c: Likewise.
121328 2003-01-09  Karl Berry  <karl@gnu.org>
121330         * MODULES.html.sh: include `dirname $0` in PATH, to find
121331         gnulib-tool.
121333 2003-01-09  Bruno Haible  <bruno@clisp.org>
121335         * modules/stdbool: Change configure.ac, Makefile.am requirements.
121336         Simplify Include requirements. Add lib/stdbool.h.in to file list.
121338 2003-01-09  Bruno Haible  <bruno@clisp.org>
121340         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
121342 2003-01-09  Bruno Haible  <bruno@clisp.org>
121344         * lib/stdbool.h.in: New file.
121346 2003-01-09  Bruno Haible  <bruno@clisp.org>
121348         * gnulib-tool (func_all_modules): Ignore files ending in ~.
121349         * MODULES.html.sh: Likewise.
121351 2003-01-08  Jim Meyering  <jim@meyering.net>
121353         * lib/full-write.c: Undefine and define-away `const' after inclusion
121354         of errno.h, not before.  Suggestion from Bruno Haible.
121356 2003-01-08  Bruno Haible  <bruno@clisp.org>
121358         * modules/full-read: Depend on full-write.
121360 2003-01-08  Bruno Haible  <bruno@clisp.org>
121362         * lib/safe-read.c: Include specification header first, to ensure its
121363         selfcontainedness.
121364         * lib/full-write.c: Likewise.
121366 2003-01-07  Jim Meyering  <jim@meyering.net>
121368         * lib/full-write.c: Rework so that it may serve to define full_read,
121369         too.
121370         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
121372 2003-01-07  Bruno Haible  <bruno@clisp.org>
121374         * lib/strtoimax.c: Include <stdint.h> as an alternative to
121375         <inttypes.h>.
121376         * lib/xstrtol.h: Likewise.
121377         * lib/xstrtoimax.c: Likewise.
121378         * lib/xstrtoumax.c: Likewise.
121379         * lib/human.h: Likewise.
121381         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
121382         on systems that have <inttypes.h> but not <stdint.h>.
121384 2003-01-07  Bruno Haible  <bruno@clisp.org>
121386         * MODULES.html.sh: Add copyright notice.
121387         (missed_files): Omit CVS directory entries.
121388         (func_module): Make it work with sed-3.02.
121389         * MODULES.txt: Remove file.
121391 2003-01-06  Jim Meyering  <jim@meyering.net>
121393         * lib/version-etc.c: Update year in translatable copyright string.
121395 2003-01-03  Karl Berry  <karl@gnu.org>
121397         * config/config.{guess,sub}: update from prep.
121399 2003-01-02  Karl Berry  <karl@gnu.org>
121401         * doc/COPYING.DOC: belatedly updated to 1.2.
121403 2003-01-01  Karl Berry  <karl@gnu.org>
121405         * gnulib-tool (func_verify_module): report module name $module in
121406         error message, not $1.
121407         * gnulib-tool (create-testdir): don't complain if destdir couldn't
121408         be created, only if it doesn't exist.
121409         * gnulib-tool (last_checkin_date): don't expand the $Date here.
121411 2002-12-31  Paul Eggert  <eggert@twinsun.com>
121413         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
121415 2002-12-31  Paul Eggert  <eggert@twinsun.com>
121417         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
121418         memcmp if strcoll doesn't work.
121420 2002-12-31  Bruno Haible  <bruno@clisp.org>
121422         * lib/utime.c (utime_null): No need to call ftruncate if the file was
121423         nonempty.
121425 2002-12-31  Bruno Haible  <bruno@clisp.org>
121427         * lib/memcoll.c (STRCOLL): New macro.
121428         (memcoll): Use it.
121430 2002-12-31  Bruno Haible  <bruno@clisp.org>
121432         * lib/localcharset.h: New file.
121433         * lib/localcharset.c: Include it.
121434         * lib/unicodeio.c: Likewise.
121436 2002-12-31  Bruno Haible  <bruno@clisp.org>
121438         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
121439         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
121441 2002-12-31  Bruno Haible  <bruno@clisp.org>
121443         * lib/getline.h: Include <stddef.h>, for size_t.
121445         * lib/unicodeio.h: Include <stddef.h>, for size_t.
121446         * lib/unicodeio.c: Don't include <stddef.h>.
121448 2002-12-31  Bruno Haible  <bruno@clisp.org>
121450         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
121451         HAVE_TM_ZONE.
121453 2002-12-24  Karl Berry  <karl@gnu.org>
121455         * config/config.guess: update from prep.
121457 2002-12-24  Bruno Haible  <bruno@clisp.org>
121459         General infrasructure.
121460         * m4/README: Rewritten.
121461         * m4/onceonly.m4: New file.
121462         * m4/onceonly_2_57.m4: New file.
121464         Module atexit.
121465         * m4/atexit.m4: New file.
121467         Module strtod.
121468         * m4/strtod.m4: New file.
121470         Module strtol.
121471         * m4/strtol.m4: New file.
121473         Module strtoul.
121474         * m4/strtoul.m4: New file.
121476         Module memchr.
121477         * m4/memchr.m4: New file.
121479         Module memcmp.
121480         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
121481         (jm_FUNC_MEMCMP): Invoke it.
121483         Module memcpy.
121484         * m4/memcpy.m4: New file.
121486         Module memmove.
121487         * m4/memmove.m4: New file.
121489         Module memset.
121490         * m4/memset.m4: New file.
121492         Module strcspn.
121493         * m4/strcspn.m4: New file.
121495         Module strpbrk.
121496         * m4/strpbrk.m4: New file.
121498         Module strstr.
121499         * m4/strstr.m4: New file.
121501         Module strerror.
121502         * m4/strerror.m4: New file.
121504         Module mktime.
121505         * m4/mktime.m4: Renamed from jm-mktime.m4.
121506         (gl_PREREQ_MKTIME): New macro.
121507         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
121509         Module malloc.
121510         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
121511         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
121512         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
121514         Module realloc.
121515         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
121516         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
121517         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
121519         Module strftime.
121520         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
121521         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
121522         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
121523         gl_TM_GMTOFF.
121524         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
121526         Module xalloc.
121527         * m4/xalloc.m4: New file.
121529         Module alloca.
121530         * m4/alloca.m4: New file.
121532         Module putenv.
121533         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
121534         (jm_FUNC_PUTENV): Invoke it.
121536         Module setenv.
121537         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
121538         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
121539         when invoked twice.
121540         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
121541         gt_FUNC_SETENV.
121543         Module memrchr.
121544         * m4/memrchr.m4: New file.
121546         Module stpcpy.
121547         * m4/stpcpy.m4: New file.
121549         Module strcase.
121550         * m4/strcase.m4: New file.
121552         Module strdup.
121553         * m4/strdup.m4: New file.
121555         Module strnlen.
121556         * m4/strnlen.m4: New file.
121558         Module strndup.
121559         * m4/strndup.m4: New file.
121561         Module xstrtod.
121562         * m4/xstrtod.m4: New file.
121564         Module xstrtol.
121565         * m4/xstrtol.m4: New file.
121567         Module getdate.
121568         * m4/getdate.m4: New file.
121570         Module unlocked-io.
121571         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
121572         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
121573         * m4/jm-glibc-io.m4n: Remove file.
121575         Module long-options.
121576         * m4/long-options.m4: New file.
121578         Module md5.
121579         * m4/md5.m4: New file.
121581         Module sha.
121582         * m4/sha.m4: New file.
121584         Module getstr.
121585         * m4/getstr.m4: New file.
121587         Module getline.
121588         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
121589         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
121590         <sys/types.h>, for size_t. Use the function name gnu_getline, not
121591         simply getline. Infoke gl_PREREQ_GETLINE.
121593         Module obstack.
121594         * m4/obstack.m4: New file.
121596         Module hash.
121597         * m4/hash.m4: New file.
121599         Module readtokens.
121600         * m4/readtokens.m4: New file.
121602         Module strverscmp.
121603         * m4/strverscmp.m4: New file.
121605         Module stdbool.
121606         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
121607         OSF/1.
121609         Module strtoll.
121610         * m4/strtoll.m4: New file.
121612         Module strtoull.
121613         * m4/strtoull.m4: New file.
121615         Module strtoimax.
121616         * m4/strtoimax.m4: New file.
121618         Module strtoumax.
121619         * m4/strtoumax.m4: New file.
121621         Module xstrtoimax.
121622         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
121623         jm_AC_PREREQ_XSTRTOIMAX.
121624         Moved the strtol prerequisites to strtol.m4.
121625         Moved the strtoll prerequisites to strtoll.m4.
121626         Moved the strtoimax prerequisites to strtoimax.m4.
121628         Module xstrtoumax.
121629         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
121630         jm_AC_PREREQ_XSTRTOUMAX.
121631         Moved the strtoul prerequisites to strtoul.m4.
121632         Moved the strtoull prerequisites to strtoull.m4.
121633         Moved the strtoumax prerequisites to strtoumax.m4.
121635         Module chown.
121636         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
121637         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
121639         Module dup2.
121640         * m4/dup2.m4: New file.
121642         Module ftruncate.
121643         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
121644         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
121646         Module getgroups.
121647         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
121648         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
121650         Module gettimeofday.
121651         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
121652         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
121653         gl_PREREQ_GETTIMEOFDAY.
121655         Module mkdir.
121656         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
121657         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
121659         Module mkstemp.
121660         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
121661         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
121662         jm_AC_TYPE_UINTMAX_T.
121663         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
121665         Module stat.
121666         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
121667         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
121669         Module lstat.
121670         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
121671         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
121673         Module timespec.
121674         * m4/timespec.m4 (gl_TIMESPEC): New macro.
121675         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
121676         * m4/st_mtim.m4: Indentation.
121678         Module nanosleep.
121679         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
121680         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
121681         gl_PREREQ_NANOSLEEP.
121683         Module regex.
121684         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
121685         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
121686         (gl_REGEX): New macro.
121688         Module rename.
121689         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
121690         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
121692         Module rmdir.
121693         * m4/rmdir.m4: New file.
121695         Module utime.
121696         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
121697         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
121698         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
121700         Module dirname.
121701         * m4/dirname.m4: New file.
121703         Module getopt.
121704         * m4/getopt.m4: New file.
121706         Module unistd-safer.
121707         * m4/unistd-safer.m4: New file.
121709         Module fnmatch.
121710         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
121711         declaration.
121712         (gl_PREREQ_FNMATCH_EXTRA): New macro.
121713         (gl_FUNC_FNMATCH_POSIX): New macro.
121714         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
121715         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
121716         simply fnmatch.
121718         Module exclude.
121719         * m4/exclude.m4: New file.
121721         Module human.
121722         * m4/human.m4: New file.
121724         Module acl.
121725         * m4/acl.m4: Nop.
121727         Module backupfile.
121728         * m4/backupfile.m4: New file.
121729         * m4/d-ino.m4: Indentation.
121731         Module fsusage.
121732         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
121733         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
121734         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
121736         Module dirfd.
121737         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
121738         requirements.
121740         Module euidaccess.
121741         * m4/euidaccess.m4: New file.
121743         Module file-type.
121744         * m4/file-type.m4: New file.
121746         Module fileblocks.
121747         * m4/fileblocks.m4: New file.
121749         Module filemode.
121750         * m4/filemode.m4: New file.
121752         Module isdir.
121753         * m4/isdir.m4: New file.
121755         Module lchown.
121756         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
121757         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
121759         Module makepath.
121760         * m4/makepath.m4: New file.
121762         Module modechange.
121763         * m4/modechange.m4: New file.
121765         Module mountlist.
121766         * m4/mountlist.m4: New file.
121767         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
121768         Indentation.
121770         Module path-concat.
121771         * m4/path-concat.m4: New file.
121773         Module pathmax.
121774         * m4/pathmax.m4: New file.
121776         Module same.
121777         * m4/same.m4: New file.
121779         Module save-cwd.
121780         * m4/save-cwd.m4: New file.
121782         Module savedir.
121783         * m4/savedir.m4: New file.
121785         Module xgetcwd.
121786         * m4/xgetcwd.m4: New file.
121787         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
121789         Module xreadlink.
121790         * m4/xreadlink.m4: New file.
121792         Module safe-read.
121793         * m4/safe-read.m4: New file.
121795         Module safe-write.
121796         * m4/safe-write.m4: New file.
121798         Module closeout.
121799         * m4/closeout.m4: New file.
121801         Module stdio-safer.
121802         * m4/stdio-safer.m4: New file.
121804         Module getpass.
121805         * m4/getpass.m4: New file.
121807         Module getugroups.
121808         * m4/getugroups.m4: New file.
121810         Module group-member.
121811         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
121812         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
121814         Module idcache.
121815         * m4/idcache.m4: New file.
121817         Module userspec.
121818         * m4/userspec.m4: New file.
121820         Module gettime.
121821         * m4/clock_time.m4: New file.
121822         * m4/gettime.m4: New file.
121824         Module settime.
121825         * m4/settime.m4: New file.
121827         Module posixtm.
121828         * m4/posixtm.m4: New file.
121830         Module gethostname.
121831         * m4/gethostname.m4: New file.
121833         Module canon-host.
121834         * m4/canon-host.m4: New file.
121836         Module gettext.
121837         * m4/codeset.m4: New file, from gettext-0.11.5.
121838         * m4/gettext.m4: New file, from gettext-0.11.5.
121839         * m4/glibc21.m4: New file, from gettext-0.11.5.
121840         * m4/iconv.m4: New file, from gettext-0.11.5.
121841         * m4/intdiv0.m4: New file, from gettext-0.11.5.
121842         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
121843         * m4/inttypes.m4: New file, from gettext-0.11.5.
121844         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
121845         * m4/isc-posix.m4: New file, from gettext-0.11.5.
121846         * m4/lcmessage.m4: New file, from gettext-0.11.5.
121847         * m4/lib-ld.m4: New file, from gettext-0.11.5.
121848         * m4/lib-link.m4: New file, from gettext-0.11.5.
121849         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
121850         * m4/progtest.m4: New file, from gettext-0.11.5.
121851         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
121852         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
121853         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
121855         Module localcharset.
121856         * m4/localcharset.m4: New file.
121858         Module hard-locale.
121859         * m4/hard-locale.m4: New file.
121861         Module mbswidth.
121862         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
121863         onceonly macros.
121864         * m4/mbrtowc.m4: Add comment.
121866         Module memcasecmp.
121867         * m4/memcasecmp.m4: New file.
121869         Module memcoll.
121870         * m4/memcoll.m4: New file.
121872         Module unicodeio.
121873         * m4/unicodeio.m4: New file.
121875         Module rpmatch.
121876         * m4/rpmatch.m4: New file.
121878         Module yesno.
121879         * m4/yesno.m4: New file.
121881         Module exitfail.
121882         * m4/exitfail.m4: New file.
121884         Module c-stack.
121885         * m4/c-stack.m4 (gl_C_STACK): New macro.
121886         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
121888         Module error.
121889         * m4/error.m4 (gl_ERROR): New macro.
121890         (jm_PREREQ_ERROR): Use onceonly macros.
121892         Module fatal.
121893         * m4/fatal.m4: New file.
121895         Module getloadavg.
121896         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
121897         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
121899         Module getpagesize.
121900         * m4/getpagesize.m4: New file.
121902         Module getusershell.
121903         * m4/getusershell.m4: New file.
121905         Module physmem.
121906         * m4/physmem.m4: New file.
121908         Module posixver.
121909         * m4/posixver.m4: New file.
121911         Module quotearg.
121912         * m4/quotearg.m4: New file.
121914         Module quote.
121915         * m4/quote.m4: New file.
121917         Module readutmp.
121918         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
121920         Module sig2str.
121921         * m4/sig2str.m4: New file.
121923         Other.
121924         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
121925         ulonglong.m4.
121926         * m4/intmax_t.m4: New file.
121927         * m4/d-type.m4: Indentation.
121928         * m4/jm-macros.m4: Update.
121929         * m4/prereq.m4 (jm_PREREQ): Update.
121930         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
121931         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
121932         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
121933         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
121934         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
121935         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
121936         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
121937         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
121938         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
121939         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
121940         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
121941         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
121942         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
121943         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
121944         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
121945         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
121946         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
121947         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
121948         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
121950 2002-12-24  Bruno Haible  <bruno@clisp.org>
121952         * MODULES.txt: Update according to m4/ changes.
121954         Module gettext.
121955         * config.rpath: New file, from gettext-0.11.5.
121957         * modules/*: New module descriptions.
121958         * gnulib-tool: New file.
121959         * MODULES.html.sh: New file.
121961 2002-12-21  Karl Berry  <karl@gnu.org>
121963         * doc/fdl.texi: update to version 1.2.
121965 2002-12-19  Karl Berry  <karl@gnu.org>
121967         * config/config.guess: update from prep.
121969 2002-12-18  Bruno Haible  <bruno@clisp.org>
121971         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
121972         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
121974 2002-12-17  Bruno Haible  <bruno@clisp.org>
121976         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
121977         stdlib.h, string.h.
121979 2002-12-17  Bruno Haible  <bruno@clisp.org>
121981         * lib/canon-host.c (strdup): Remove unused declaration.
121983         * lib/fsusage.c: Include full_read.h.
121984         (get_fs_usage): Use full_read instead of safe_read.
121986         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
121988 2002-12-12  Karl Berry  <karl@gnu.org>
121990         * config/config.guess: update from prep.
121992 2002-12-11  Bruno Haible  <bruno@clisp.org>
121994         * m4/setenv.m4: New file, from gettext-0.11.5.
121996 2002-12-11  Bruno Haible  <bruno@clisp.org>
121998         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
121999         not unsetenv().
122000         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
122001         modifications:
122003         2002-12-11  Bruno Haible  <bruno@clisp.org>
122005                 * setenv.c (alloca): Fall back to malloc.
122006                 (freea): New macro.
122007                 (setenv): Use freea() to free memory allocated with alloca().
122009         2002-11-13  Bruno Haible  <bruno@clisp.org>
122011                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
122012                 function declarations.
122013                 * unsetenv.c (unsetenv): Likewise.
122015         2002-03-04  Bruno Haible  <bruno@clisp.org>
122017                 Portability to AIX 4.3.3.
122018                 * unsetenv.c: New file, extracted from setenv.c.
122019                 * setenv.c: Move the unsetenv() function to unsetenv.c.
122021         2001-12-20  Bruno Haible  <bruno@clisp.org>
122023                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
122024                 use malloc instead. For SunOS 4.
122026         2001-12-11  Bruno Haible  <bruno@clisp.org>
122028                 * setenv.c: Declare alloca.
122029                 (compar_fn_t): New typedef.
122030                 (KNOWN_VALUE, STORE_VALUE): Use it.
122032         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
122033         setenv.h.
122035 2002-12-10  Paul Eggert  <eggert@twinsun.com>
122037         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
122038         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
122039         Choose values that are less likely to collide with system fnmatch
122040         options.
122041         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
122042         defined (e.g., a pure POSIX system).
122043         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
122044         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
122046 2002-12-06  Paul Eggert  <eggert@twinsun.com>
122048         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
122049         a pain in practice to deal with generated m4 files.  This change
122050         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
122052         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
122053         and jm-glibc-io.m4, as they are no longer a special case.
122054         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
122055         kludge and the auto-generation stuff.  Check only whether the
122056         functions are declared, not whether they exist, since older hosts
122057         that don't declare the functions can't use the optimization anyway.
122059 2002-12-06  Jim Meyering  <jim@meyering.net>
122061         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
122063         Merge in changes from libc's misc/error.c, in preparation
122064         for the merge of gnulib's changes back into libc.
122066         * lib/error.c (_): Define only if not already defined.
122067         Move definition to follow all #include directives.
122068         Include unlocked-io.h only if !_LIBC.
122069         [_LIBC]: Include <libio/libioP.h>.
122070         [USE_IN_LIBIO]: Include <libio/iolibio.h>
122071         (fflush): Tweak definition to use INTUSE.
122072         (putc): Define.
122074 2002-12-05  Paul Eggert  <eggert@twinsun.com>
122076         * lib/alloca.c [defined emacs]: Include "lisp.h".
122077         (xalloc_die) [defined emacs]: New macro.
122078         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
122079         [! defined emacs]: Include <xalloc.h>.
122080         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
122081         (pointer): Typedef to POINTER_TYPE *.
122082         (malloc): Remove decl; we now always use xmalloc.
122083         (alloca): Use old-style definition, since Emacs needs this.
122084         Check for arithmetic overflow when computing combined size.
122086 2002-12-04  Paul Eggert  <eggert@twinsun.com>
122088         Do not generate unlocked-io.h automatically, since it's easier to
122089         maintain it by hand.
122091         * lib/unlocked-io.h: New file, from GNU diffutils,
122092         but with proper copyright notice and attribution.
122093         * lib/gen-uio: Remove.
122094         * lib/Makefile.am: Add copyright notice.
122095         (libfetish_a_SOURCES): Add unlocked-io.h.
122096         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
122097         (DISTCLEANFILES, io_functions): Remove macros.
122098         (EXTRA_DIST): Remove gen_uio.
122099         (unlocked-io.h): Remove rule.
122101 2002-12-04  Jim Meyering  <jim@meyering.net>
122103         Reflect the fact that stat.c and lstat.c are no longer generated.
122104         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
122105         (DISTCLEANFILES): Likewise.
122106         (EXTRA_DIST): Likewise.
122107         (all_local): Don't depend on stat.c or lstat.c.
122108         (stat.c, lstat.c): Remove rules.
122109         (EXTRA_DIST): Remove xstat.in.
122111         * lib/xstat.in: Remove file.  Contents moved into stat.c.
122112         * lib/stat.c: New file.  Contents mostly from xstat.in.
122113         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
122114         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
122116         * lib/safe-read.c: Rework so that it may serve to define safe_write,
122117         too.
122118         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
122120 2002-12-03  Jim Meyering  <jim@meyering.net>
122122         * lib/safe-read.c, safe-write.c: Change variable names and comments,
122123         but not semantics, to minimize the differences between these two files.
122124         (safe_read): Change comment to mention SAFE_READ_ERROR.
122126         * lib/safe-read.c (IS_EINTR): Define.
122127         (safe_read): Use IS_EINTR in place of in-function cpp directives.
122129 2002-12-02  Jim Meyering  <jim@meyering.net>
122131         * lib/safe-read.c (EINTR): Define.
122132         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
122133         (INT_MAX): Provide fallback.
122134         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
122136         * lib/safe-read.h (SAFE_READ_ERROR): Define.
122138 2002-12-02  Bruno Haible  <bruno@clisp.org>
122140         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
122141         Define, taken from safe-read.c.
122142         (INT_MAX): Provide fallback.
122143         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
122144         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
122146         * lib/safe-read.c (EINTR): Remove definition.
122147         (safe_read): Don't use EINTR if it is absent.
122149 2002-12-01  Jim Meyering  <jim@meyering.net>
122151         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
122152         zero.
122153         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
122155 2002-11-27  Paul Eggert  <eggert@twinsun.com>
122157         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
122158         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
122159         with `if (! (value < limit)) abort ();', for readability.
122161 2002-11-26  Karl Berry  <karl@gnu.org>
122163         * lib/strdup.c: copy from libc again, with jim's ok.
122164         * lib/.cppi-disable: re-add strdup.c
122166 2002-11-25  Karl Berry  <karl@gnu.org>
122168         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
122169         instead of "strtol.c".
122171 2002-11-25  Karl Berry  <karl@gnu.org>
122173         * config/install-sh: update from automake for variable quoting, $0 in
122174         error msgs, etc.
122176         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
122177         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
122178         entry.
122180 2002-11-25  Jim Meyering  <jim@meyering.net>
122182         * lib/mktime.c: Sync from libc, now that it has the latest fix.
122184 2002-11-24  Karl Berry  <karl@gnu.org>
122186         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
122187         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
122189 2002-11-24  Jim Meyering  <jim@meyering.net>
122191         Update from coreutils:
122193         * lib/mktime.c: Merge in changes from libc.
122195         Avoid a link-time failure on some Linux systems.
122196         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
122197         (otherwise).
122198         (__mon_yday): Declare with the STATIC attribute.
122199         (__mktime_internal): Likewise.
122200         Based on a report from Greg Schafer.
122202 2002-11-23  Jim Meyering  <jim@meyering.net>
122204         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
122205         Use `unsigned', not `int', as type of index.
122207         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
122209         * lib/fsusage.c: Remove unneeded parentheses around operands of
122210         `defined'.
122212 2002-11-22  Paul Eggert  <eggert@twinsun.com>
122214         * lib/quotearg.h: Allow multiple inclusion by surrounding with
122215         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
122216         so that we can be included first.
122217         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
122218         * lib/quotearg.c: Include quotearg.h immediately after config.h.
122219         No need to include stddef.h or sys/types.h any more.
122220         Surround local include files with "", not "<>".
122221         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
122222         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
122223         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
122224         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
122225         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
122226         (ISPRINT): Remove; no longer needed now that we assume C89.
122228         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
122229         Preserve errno.
122231         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
122232         quotearg_char): Use SIZE_MAX rather than
122233         (size_t) -1 when we are talking about "infinity".
122235         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
122237 2002-11-22  Paul Eggert  <eggert@twinsun.com>
122239         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
122240         hint that one should use `if (! x) abort ();' rather than `assert
122241         (x);', and anyway it's one less thing to worry about configuring.
122242         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
122243         hash_rehash, hash_insert): Use abort rather than assert.
122245 2002-11-22  Bruno Haible  <bruno@clisp.org>
122247         * lib/safe-read.h: Assume C89. Add comments.
122248         (safe_read): Change return type to size_t.
122249         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
122250         byte counts > SSIZE_MAX correctly.
122251         * lib/safe-write.h: New file.
122252         * lib/safe-write.c: New file.
122253         * lib/full-read.h: New file.
122254         * lib/full-read.c: New file.
122255         * lib/full-write.h: Assume C89. Add comments.
122256         * lib/full-write.c: Include safe-write.h.
122257         (full_write): Rewritten to use safe_write.
122258         Suggested by Jim Meyering and Paul Eggert.
122260 2002-11-21  Jim Meyering  <jim@meyering.net>
122262         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
122264         Merge in changes from the coreutils.
122266         2002-09-25  Paul Eggert  <eggert@twinsun.com>
122267         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
122268         <stdint.h>.
122269         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
122270         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
122271         int.  Work more efficiently if X is the same width as uintmax_t.
122272         Do not compare X to -1, to avoid bogus compiler warning.
122273         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
122274         Don't assume that f_frsize and f_bsize are the same type.
122276         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
122277         warning on FreeBSD.
122279         * lib/makepath.c (make_path): Restore umask *before* creating the final
122280         component.
122281         (make_path): Minor reformatting.
122283         * lib/xmalloc.c: Adjust to work with new autoconf macros,
122284         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
122285         HAVE_MALLOC/HAVE_REALLOC.
122287         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
122288         dummy ones.  At least on GNU/Linux systems, `auto' means something
122289         else.
122290         From Michael Stone.
122292 2002-11-21  Bruno Haible  <bruno@clisp.org>
122294         Remove case insensitive option matching.
122295         * lib/argmatch.h (argcasematch): Remove declaration.
122296         (ARGCASEMATCH): Remove macro.
122297         (__xargmatch_internal): Remove case_sensitive argument.
122298         (XARGMATCH): Update.
122299         (XARGCASEMATCH): Remove macro.
122300         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
122301         case_sensitive argument.
122302         (argcasematch): Remove function.
122303         (__xargmatch_internal): Remove case_sensitive argument.
122304         (main): Use XARGMATCH instead of XARGCASEMATCH.
122306         * lib/xmalloc.c: Change compile-time error message. Add comment about
122307         required autoconf version.
122309 2002-11-20  Paul Eggert  <eggert@twinsun.com>
122311         Merge argmatch cleanups from Bison.  Assume C89.
122313         * lib/argmatch.c: Include config.h here, not in argmatch.h.
122314         Include stdlib.h, for EXIT_FAILURE.
122315         Always include <string.h>, since we assume C89.
122316         (EXIT_FAILURE): Remove pre-C89 bug workaround.
122317         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
122318         Include <stddef.h> instead, since it's all we need for size_t.
122319         (PARAMS): Remove.  All uses removed.
122320         (ARRAY_CARDINALITY): Do not bother to #undef.
122321         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
122322         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
122323         Remove unnecessary parentheses.
122324         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
122325         Insert necessary parentheses.
122326         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
122327         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
122329 2002-11-19  Bruno Haible  <bruno@clisp.org>
122331         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
122332         * lib/mbswidth.h: Include <stddef.h>, for size_t.
122334         * lib/mbswidth.h (PARAMS): Remove macro.
122335         (mbswidth, mbsnwidth): Use ANSI C function declarations.
122336         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
122338         * lib/gcd.h (PARAMS): Remove macro.
122339         (gcd): Use ANSI C function declarations.
122340         * lib/gcd.c (gcd): Likewise.
122342 2002-11-15  Bruno Haible  <bruno@clisp.org>
122344         * lib/strcspn.c: Include <stddef.h>.
122345         (strcspn): Use ANSI C function declaration. Change return type to
122346         size_t. Use NULL.
122347         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
122348         (strpbrk): Use NULL.
122349         * lib/strpbrk.h (PARAMS): Remove macro.
122350         (strpbrk): Use ANSI C function declaration.
122351         * lib/strstr.c: Don't include <sys/types.h>.
122352         * lib/strstr.h (PARAMS): Remove macro.
122353         (strstr): Use ANSI C function declarations.
122355 2002-11-14  Karl Berry  <karl@gnu.org>
122357         * config/mkinstalldirs: `do' on separate line, instead of
122358         `for var; do'.
122360 2002-11-06  Bruno Haible  <bruno@clisp.org>
122362         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
122363         * lib/gcd.c (gcd): Likewise.
122365 2002-11-05  Bruno Haible  <bruno@clisp.org>
122367         * lib/gcd.h: New file, from gettext-0.11.5.
122368         * lib/gcd.c: New file, from gettext-0.11.5.
122370 2002-11-05  Bruno Haible  <bruno@clisp.org>
122372         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
122373         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
122374         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
122375         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
122377         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
122378         <libintl.h>.
122379         * lib/makepath.c: Include gettext.h instead of <locale.h> and
122380         <libintl.h>.
122382         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
122383         * lib/human.c: Include gettext.h instead of <libintl.h>.
122384         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
122385         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
122386         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
122387         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
122388         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
122389         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
122390         (textdomain): Remove definition.
122391         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
122393         * lib/long-options.c: Remove include of <libintl.h> and definition of
122394         _.
122395         * lib/same.c: Remove include of <libintl.h> and definition of _.
122397 2002-11-04  Owen Taylor  <otaylor@redhat.com>
122399         * lib/config.charset: A few additions for Solaris.
122401 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
122403         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
122404         * lib/localcharset.c (locale_charset): Declare as extern "C".
122406 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
122408         * lib/config.charset: msdos in uk_UA uses CP1125.
122410 2002-11-04  Bruno Haible  <bruno@clisp.org>
122412         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
122413         * lib/strcase.h: New file, from GNU gettext-0.11.5.
122414         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
122415         * lib/strstr.h: New file, from GNU gettext-0.11.5.
122416         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
122418 2002-11-04  Bruno Haible  <bruno@clisp.org>
122420         * lib/localcharset.c (locale_charset): Don't return an empty string.
122422 2002-11-04  Bruno Haible  <bruno@clisp.org>
122424         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
122425         aliases.
122427 2002-11-04  Bruno Haible  <bruno@clisp.org>
122429         * lib/config.charset: Update for newest glibc. Add canonical names
122430         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
122432 2002-11-04  Bruno Haible  <bruno@clisp.org>
122434         * lib/config.charset: Add support for NetBSD.
122436 2002-11-04  Bruno Haible  <bruno@clisp.org>
122438         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
122440 2002-11-01  Bruno Haible  <bruno@clisp.org>
122442         * configure.in: Add AC_CONFIG_AUX_DIR call.
122443         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
122444         test/Makefile.
122445         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
122447 2002-09-28  Karl Berry  <karl@gnu.org>
122449         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
122450         installed automake until the next release, since changes have been
122451         made.
122453 2002-09-25  Karl Berry  <karl@gnu.org>
122455         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
122456         * lib/getopt*: copy from libc/posix.
122457         * lib/gettext.h: copy from gettext.
122458         * lib/.cppi-disable: add strdup.c, gettext.h.
122460 2002-09-25  Karl Berry  <karl@gnu.org>
122462         * config/srclist.txt: enable gettext.h check.
122463         * config/config.{guess,sub}: update from prep.
122464         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
122465                 from automake 1.6.3.
122466         See srclist*.
122468 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
122470         * regex.c (PATFETCH): Remove the translating fetch.
122471         (PATFETCH_RAW): Rename to PATFETCH.
122472         (set_image_of_range): New fun.
122473         (SET_RANGE_TABLE_WORK_AREA): Use it.
122474         (regex_compile): Don't translate the pattern chars so eagerly.
122475         Only do it when inserting an `exactn' bytecode or when handling
122476         a char-range.
122477         (mutually_exclusive_p): Avoid empty statement.
122479 2002-07-06  Jim Meyering  <meyering@lucent.com>
122481         * m4/README: Don't mention Makefile.am.in.
122482         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
122484 2002-07-01  Jim Meyering  <meyering@lucent.com>
122486         * lib/c-stack.c: Include sys/time.h.
122487         From Volker Borchert.
122489 2002-06-26  Paul Eggert  <eggert@twinsun.com>
122491         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
122493 2002-06-26  Paul Eggert  <eggert@twinsun.com>
122495         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
122496         New macro.  Use it uniformly instead of
122497         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
122498         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
122499         reported by Vin Shelton.
122501 2002-06-22  Paul Eggert  <eggert@twinsun.com>
122503         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
122504         Do not assume SA_SIGINFO behavior.
122505         Bug reported by Jim Meyering on NetBSD 1.5.2.
122507 2002-06-22  Jim Meyering  <meyering@lucent.com>
122509         * m4/c-stack.m4: New file, from diffutils-2.8.2.
122510         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
122512         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
122513         now that configure.ac uses AC_GNU_SOURCE.
122514         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
122515         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
122517         Update to latest tools.  Suggestions from Paul Eggert.
122518         * m4/stdbool.m4: New file, from diffutils-2.8.2.
122519         * m4/gnu-source.m4: Update from diffutils-2.8.2.
122520         * m4/fnmatch.m4: Likewise.
122521         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
122522         to AC_HEADER_STDBOOL
122524 2002-06-22  Jim Meyering  <meyering@lucent.com>
122526         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
122527         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
122529 2002-06-22  Jim Meyering  <meyering@lucent.com>
122531         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
122533         * lib/exitfail.c, exitfail.h: Likewise.
122534         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
122536         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
122537         of fnmatch.h.
122538         (EXTRA_DIST): Add fnmatch_loop.c.
122539         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
122541         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
122542         * lib/fnmatch.c: Update from diffutils-2.8.2.
122543         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
122544         * lib/fnmatch.h: Remove file.
122546 2002-06-21  Jim Meyering  <meyering@lucent.com>
122548         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
122549         * m4/mbrtowc.m4: Likewise.
122551         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
122552         * m4/mbswidth.m4: Reflect name change:
122553         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
122554         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
122556         * m4/lib-link.m4: Update from gettext-0.11.2.
122557         * m4/gettext.m4: Likewise.
122559         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
122560         From Alfred M. Szmidt.
122562 2002-06-18  Paul Eggert  <eggert@twinsun.com>
122564         * lib/file-type.h: Report an error if neither S_ISREG nor
122565         S_IFREG is defined, instead of using a test specific to glibc
122566         2.2.  This should be safe, since POSIX requires S_ISREG and
122567         Unix Version 7 had S_IFREG.  We don't need to check for
122568         <sys/types.h> since we don't use any symbols that it defines.
122570 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
122572         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
122573         $@-t, so that each temporary file name is unique and valid in the first
122574         8 characters, for operation under DOS.
122576 2002-06-15  Paul Eggert  <eggert@twinsun.com>
122578         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
122580 2002-06-15  Jim Meyering  <meyering@lucent.com>
122582         Work even with DJGPP 2.03, which lacks support for symlinks.
122583         From Richard Dawe.
122584         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
122585         is defined.
122586         * lib/lchown.c (S_ISLNK): Likewise.
122588 2002-06-15  Jim Meyering  <meyering@lucent.com>
122590         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
122591         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
122592         have been included before this file.
122594 2002-06-14  Jim Meyering  <meyering@lucent.com>
122596         * lib/file-type.h: Use the version from diffutils-2.8.2.
122597         * lib/file-type.c: Likewise.
122599 2002-06-07  Jim Meyering  <meyering@lucent.com>
122601         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
122602         They're needed at least for NetBSD 1.5.2.
122603         ($statxfs_includes): Include those same headers.
122604         ($statxfs_includes): Include sys/vfs.h if available.
122605         ($statxfs_includes): Likewise for sys/statvfs.h.
122606         Check for the following members in both structs statfs and statvfs:
122607         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
122609 2002-06-01  Jim Meyering  <meyering@lucent.com>
122611         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
122612         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
122614 2002-05-28  Jim Meyering  <meyering@lucent.com>
122616         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
122617         Reported by Volker Borchert.
122619 2002-05-27  Jim Meyering  <meyering@lucent.com>
122621         Fix a problem seen only on nonconforming systems whereby ls.c's
122622         use of localtime, and then of gettimeofday would cause trouble:
122623         the localtime call used to initialize rpl_gettimeofday's save
122624         mechanism would clobber ls's current local time information so
122625         that in any long listing the first file would always be listed
122626         with date 1970-01-01.  Analysis by Volker Borchert.
122628         * lib/gettimeofday.c (localtime): Undefine.
122629         (rpl_localtime): New function.
122631 2002-05-27  Jim Meyering  <meyering@lucent.com>
122633         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
122634         localtime.
122636         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
122637         use the replacement function; it wouldn't resolve at link time.
122638         Reported by Volker Borchert.
122640 2002-05-22  Jim Meyering  <meyering@lucent.com>
122642         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
122643         file-type.h.
122644         * lib/file-type.h: New file.
122645         * lib/file-type.c (file_type): New file/function.  Extracted from
122646         diffutils.
122648 2002-04-30  Jim Meyering  <meyering@lucent.com>
122650         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
122652 2002-04-29  Paul Eggert  <eggert@twinsun.com>
122654         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
122656 2002-04-29  Paul Eggert  <eggert@twinsun.com>
122658         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
122659         Do not check for alloca.h (no longer used) or stdbool.h (was never
122660         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
122662 2002-04-29  Paul Eggert  <eggert@twinsun.com>
122664         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
122666 2002-04-29  Jim Meyering  <meyering@lucent.com>
122668         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
122669         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
122670         Use AC_FUNC_STRNLEN here instead.
122672         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
122673         With autoconf-2.53a, it's part of AC_PROG_CC.
122675 2002-04-28  Paul Eggert  <eggert@twinsun.com>
122677         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
122678         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
122680 2002-04-28  Paul Eggert  <eggert@twinsun.com>
122682         * lib/sig2str.h, lib/sig2str.c: New files.
122683         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
122685 2002-04-28  Paul Eggert  <eggert@twinsun.com>
122687         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
122688         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
122689         of 127, since 64 is the largest conceivable number for ancient
122690         nonstandard hosts.
122691         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
122693 2002-04-28  Jim Meyering  <meyering@lucent.com>
122695         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
122697 2002-04-24  Jim Meyering  <meyering@lucent.com>
122699         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
122700         (jm_PREREQ): Use it.
122702         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
122703         mach/mach.h fcntl.h.
122704         Check for this function: setlocale.
122706 2002-04-24  Jim Meyering  <meyering@lucent.com>
122708         * lib/gettext.h: New file, from Gettext.
122709         * lib/Makefile.am (INCLUDES): Remove -I../intl.
122710         (libfetish_a_SOURCES): Add gettext.h.
122712 2002-04-16  Jim Meyering  <meyering@lucent.com>
122714         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
122715         ut_pid, ut_id, ut_exit.
122717 2002-04-16  Jim Meyering  <meyering@lucent.com>
122719         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
122720         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
122721         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
122723 2002-04-12  Jim Meyering  <meyering@lucent.com>
122725         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
122726         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
122727         existence of the getmntinfo function.  Needed for Darwin 5.3.
122729         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
122730         This is necessary at least on Darwin 5.3.
122732         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
122733         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
122734         strnlen.o in the library, and that makes some versions of ranlib
122735         object.
122737 2002-04-12  Jim Meyering  <meyering@lucent.com>
122739         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
122741 2002-04-09  Jim Meyering  <meyering@lucent.com>
122743         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
122744         to be more precise.  Rather than saying we're checking whether the
122745         function `works', say what we're testing.
122746         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
122747         Reported by Bruno Haible.
122749 2002-03-10  Jim Meyering  <meyering@lucent.com>
122751         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
122752         Suggestion from Santiago Vila.
122754 2002-03-08  Jim Meyering  <meyering@lucent.com>
122756         * lib/rename.c: Mention that this wrapper is needed also on
122757         mips-dec-ultrix4.4 systems.
122759 2002-03-02  Jim Meyering  <meyering@lucent.com>
122761         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
122762         not HAVE_CLOCK_SETTIME.
122764 2002-02-27  Paul Eggert  <eggert@twinsun.com>
122766         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
122767         Check for clock_settime.
122769 2002-02-27  Paul Eggert  <eggert@twinsun.com>
122771         * lib/nanosleep.h: Rename to....
122772         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
122774         * lib/gettime.c: New file.
122775         * lib/settime.c: New file.
122776         * lib/stime.c: Remove.
122778         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
122779         timespec.h.  Remove nanosleep.h.
122781 2002-02-25  Paul Eggert  <eggert@twinsun.com>
122783         * m4/acl.m4: New file.
122784         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
122785         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
122787 2002-02-25  Paul Eggert  <eggert@twinsun.com>
122789         * lib/acl.c, lib/acl.h: New files.
122790         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
122792 2002-02-24  Jim Meyering  <meyering@lucent.com>
122794         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
122795         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
122796         cause trouble.  Reported by Nelson Beebe.
122798 2002-02-23  Paul Eggert  <eggert@twinsun.com>
122800         * lib/path-concat.c (xpath_concat): Reorder code to pacify
122801         compilers that don't know that xalloc_die never returns.
122803 2002-02-20  Jim Meyering  <meyering@lucent.com>
122805         * lib/getdate.c: Regenerate using bison-1.33.
122807 2002-02-17  Jim Meyering  <meyering@lucent.com>
122809         * config/config.guess (main): Don't use `head -1'; it's no longer
122810         portable. Use `sed 1q' instead.
122812 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
122814         * m4/codeset.m4: Upgrade to gettext-0.11.
122815         * m4/gettext.m4: Upgrade to gettext-0.11.
122816         * m4/glibc21.m4: Upgrade to gettext-0.11.
122817         * m4/iconv.m4: Upgrade to gettext-0.11.
122818         * m4/isc-posix.m4: Upgrade to gettext-0.11.
122819         * m4/lcmessage.m4: Upgrade to gettext-0.11.
122820         * m4/lib-ld.m4: New file, from gettext-0.11.
122821         * m4/lib-link.m4: New file, from gettext-0.11.
122822         * m4/lib-prefix.m4: New file, from gettext-0.11.
122823         * m4/progtest.m4: Upgrade to gettext-0.11.
122825 2002-02-15  Paul Eggert  <eggert@twinsun.com>
122827         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
122828         (jm_PREREQ): Use it.
122830 2002-02-15  Paul Eggert  <eggert@twinsun.com>
122832         * lib/posixver.c, lib/posixver.h: New files.
122833         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
122835 2002-02-02  Paul Eggert  <eggert@twinsun.com>
122836             Bruno Haible  <bruno@clisp.org>
122838         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
122839         (fwrite_success_callback): New declaration.
122840         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
122841         print_unicode_char. Call failure callback instead of error.
122842         (fwrite_success_callback): New function.
122843         (exit_failure_callback): New function.
122844         (fallback_failure_callback): New function.
122845         (print_unicode_char): Call unicode_to_mb.
122847 2002-01-26  Jim Meyering  <meyering@lucent.com>
122849         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
122850         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
122852 2002-01-26  Jim Meyering  <meyering@lucent.com>
122854         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
122856 2002-01-22  Paul Eggert  <eggert@twinsun.com>
122858         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
122860 2002-01-22  Jim Meyering  <meyering@lucent.com>
122862         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
122863         Otherwise, some versions of automake would omit the rule that makes
122864         Makefile from Makefile.in.
122866 2002-01-21  Paul Eggert  <eggert@twinsun.com>
122868         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
122869         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
122870         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
122871         (memcoll): Set errno to zero if there is no error.
122873         * lib/quotearg.c (quotearg_buffer_restyled):
122874         Fix bug with quoting buffers containing NUL when backslashing escapes.
122875         This bug was exposed by the other changes in this patch.
122876         (quotearg_n_options): New arg ARGSIZE.
122877         All callers changed.
122878         (quoting_options_from_style): New function.
122879         (quotearg_n_style): Use it.
122880         (quotearg_n_style_mem): New function.
122882         * lib/quotearg.h (quotearg_n_style_mem): New function.
122884 2002-01-19  Jim Meyering  <meyering@lucent.com>
122886         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
122887         Remove useless quotes: DF_PROG="df".
122888         * m4/strnlen.m4: New file.
122890 2002-01-16  Paul Eggert  <eggert@twinsun.com>
122892         * lib/backupfile.c (ISDIGIT): Comment fix.
122893         * lib/getdate.y (ISDIGIT): Likewise.
122894         * lib/posixtm.c (ISDIGIT, year): Likewise.
122895         * lib/strverscmp.c (ISDIGIT): Likewise.
122896         * lib/userspec.c (ISDIGIT): Likewise.
122898 2002-01-16  Jim Meyering  <meyering@lucent.com>
122900         * lib/getdate.y: Add three semicolons, each just before a closing
122901         brace. Bison (as of version 1.31) no longer papers over that mistake.
122903 2002-01-05  Jim Meyering  <meyering@lucent.com>
122905         * lib/version-etc.c (version_etc_copyright): Update copyright year.
122907 2001-12-19  Paul Eggert  <eggert@twinsun.com>
122909         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
122910         not silently exit merely because the output buffer happens to
122911         have nothing pending.
122913 2001-12-18  Paul Eggert  <eggert@twinsun.com>
122915         See the big note in ../ChangeLog.
122916         * lib/human.c (suffixes): Prefer K to k for 1024.
122917         (generate_suffix_backwards): New function.
122918         (human_readable_inexact): Use it.
122919         * lib/xstrtol.c (__xstrtol): If there is no number but there
122920         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
122921         Accept 'K' as well as 'k'.
122923 2001-12-15  Jim Meyering  <meyering@lucent.com>
122925         * lib/regex.h (__restrict_arr): Update from libc.
122927         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
122928         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
122929         (STREQ): Define.
122931 2001-12-14  Jim Meyering  <meyering@lucent.com>
122933         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
122934         Suggestion from Bruno Haible.
122936 2001-12-10  Jim Meyering  <meyering@lucent.com>
122938         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
122939         xrealloc, Instead, include "xalloc.h".
122940         (initbuffer): Don't cast xmalloc return value to char*.
122941         (readline): Reword comment.
122942         Don't cast xrealloc return value to char*
122943         Return NULL, not 0.
122945 2001-12-09  Jim Meyering  <meyering@lucent.com>
122947         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
122948         about `signed and unsigned type in conditional expression'.
122949         * lib/posixtm.c (posix_time_parse): Likewise.
122951         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
122953         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
122954         to avoid a pedantic warning.
122956         * lib/getstr.c: Don't include assert.h.
122957         (getstr): Remove warning-evoking assertions.
122958         Return -1 if offset parameter is out of bounds.
122959         Change the type of a local from int to size_t.
122961         * lib/strftime.c (my_strftime_localtime_r): Include this function
122962         definition in the `#if ! HAVE_TM_GMTOFF' block.
122964         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
122965         Include xalloc.h instead.
122967 2001-12-02  Jim Meyering  <meyering@lucent.com>
122969         * lib/tempname.c: Don't declare getenv, thus reverting the change of
122970         2001-11-18.  It's no longer necessary, now that stdlib.h is always
122971         included.
122973         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
122974         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
122976 2001-11-30  Akim Demaille  <akim@epita.fr>
122978         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
122979         before being defined.
122981 2001-11-27  Paul Eggert  <eggert@twinsun.com>
122983         * lib/quotearg.h (quotearg_n, quotearg_n_style):
122984         First arg is int, not unsigned.
122985         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
122986         (SIZE_MAX, UINT_MAX): New macros.
122987         (quotearg_n_options): Abort if N is negative.
122988         Avoid overflow check on hosts where size_t is 64 bits and int
122989         is 32 bits, as overflow is impossible there.
122990         Fix off-by-one typo that caused unnecessary reallocation.
122992 2001-11-27  Jim Meyering  <meyering@lucent.com>
122994         * lib/tempname.c: Merge with version from libc.
122995         * lib/regex.c: Likewise.
122997         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
122998         systems for which STDC_HEADERS is 0, it was not included, resulting in
122999         a warning about an integer-to-pointer conversion problem with getenv.
123000         Reported by Volker Borchert.
123002 2001-11-26  Jim Meyering  <meyering@lucent.com>
123004         * lib/gtod.h: Remove file.
123005         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
123006         * lib/gettimeofday.c: Don't include gtod.h.
123007         (GTOD_init): Remove function.
123008         (rpl_gettimeofday): Do its job here instead, rather than aborting.
123009         Suggestion from Volker Borchert.
123011 2001-11-23  Jim Meyering  <meyering@lucent.com>
123013         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
123014         it.
123015         * lib/hash.c (struct hash_table): Define it here instead.
123017 2001-11-22  Jim Meyering  <meyering@lucent.com>
123019         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
123021 2001-11-20  Jim Meyering  <meyering@lucent.com>
123023         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
123024         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
123026 2001-11-19  Jim Meyering  <meyering@lucent.com>
123028         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
123029         directory.  Use "conftestXXXXXX" as the template.
123030         Suggestion from Paul Eggert.
123032         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
123033         immediately, so the test doesn't mistakenly hit the max-open-files
123034         limit.
123036 2001-11-18  Paul Eggert  <eggert@twinsun.com>
123038         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
123039         (TEMPORARIES): New macro.
123040         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
123041         removes an artificial limitation (e.g. HP-UX 10.20, where
123042         TMP_MAX is 17576).
123044 2001-11-18  Jim Meyering  <meyering@lucent.com>
123046         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
123048 2001-11-18  Jim Meyering  <meyering@lucent.com>
123050         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
123051         on SunOS 4.
123053         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
123054         files will be created before anything else.
123056 2001-11-17  Paul Eggert  <eggert@twinsun.com>
123058         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
123059         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
123061 2001-11-17  Jim Meyering  <meyering@lucent.com>
123063         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
123064         Prompted by a report from Bob Proulx.
123066         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
123067         Instead, require UTILS_FUNC_MKSTEMP.
123069 2001-11-17  Jim Meyering  <meyering@lucent.com>
123071         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
123072         Now, that's done as part of AC_FUNC_STRTOD.
123074 2001-11-17  Jim Meyering  <meyering@lucent.com>
123076         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
123077         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
123078         rather than group writable.  Patch by Juan F. Codagnone.
123080         * lib/readtokens.c: Remove explicit declarations of xmalloc and
123081         xrealloc, Instead, include "xalloc.h".
123083         * lib/mountlist.c: Include unlocked-io.h after all system headers.
123084         Remove explicit declarations of xmalloc, xrealloc,
123085         and xstrdup.  Instead, include "xalloc.h".
123087         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
123088         unlocked-io.h.
123089         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
123090         Likewise.
123091         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
123093         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
123094         Reported by Padraig Brady.
123096         * lib/mkstemp.c: #undef mkstemp.
123097         Include config.h.
123098         (rpl_mkstemp): Rename from mkstemp.
123099         Protoize.
123101 2001-11-16  Jim Meyering  <meyering@lucent.com>
123103         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
123104         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
123105         determine the amount of total physical memory, use pstat_getstatic.
123106         HPUX-11 doesn't define _SC_PHYS_PAGES.
123107         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
123108         If sysconf couldn't be used to determine the amount of available
123109         physical memory, use both pstat_getstatic and pstat_getdynamic.
123110         Based on a patch from Bob Proulx.
123112 2001-11-10  Jim Meyering  <meyering@lucent.com>
123114         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
123115         (jm_PREREQ): Use it.
123117 2001-11-09  Jim Meyering  <meyering@lucent.com>
123119         * m4/jm-macros.m4: Require autoconf-2.52f.
123120         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
123121         Use these AC_-prefixed names, not the AM_-prefixed ones.
123123         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
123125 2001-11-05  Jim Meyering  <meyering@lucent.com>
123127         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
123129 2001-11-04  Jim Meyering  <meyering@lucent.com>
123131         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
123132         $DEFS.
123134 2001-11-03  Jim Meyering  <meyering@lucent.com>
123136         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
123137         of AC_DEFUN.
123139         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
123140         know the name of the variable in the macro definition.
123142 2001-11-03  Jim Meyering  <meyering@lucent.com>
123144         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
123145         in argmatch_to_argument call.
123147         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
123148         argument.
123150         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
123151         e.g., a fault due to an attempt to free a NULL pointer.
123153 2001-11-01  Jim Meyering  <meyering@lucent.com>
123155         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
123156         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
123158 2001-11-01  Jim Meyering  <meyering@lucent.com>
123160         * lib/dirfd.c, lib/dirfd.h: New files.
123161         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
123163         * lib/hash.c (hash_print) [TESTING]: Clean up.
123165 2001-10-22  Paul Eggert  <eggert@twinsun.com>
123167         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
123168         to avoid a warning if -Wall.
123170 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
123172         * README: New file
123173         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
123174         (per RMS's instructions, this is now the canonical source)
123175         * lgpl/, gpl/: New directories.
123177 2001-10-21  Paul Eggert  <eggert@twinsun.com>
123179         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
123181 2001-10-21  Jim Meyering  <meyering@lucent.com>
123183         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
123184         this code would end up calling gettext even in packages built
123185         with --disable-nls.
123186         * lib/getopt.c (_): Likewise.
123187         * lib/regex.c (_): Likewise.
123189 2001-10-20  Paul Eggert  <eggert@twinsun.com>
123191         * m4/error.m4 (jm_PREREQ_ERROR):
123192         Do not invoke AC_CHECK_FUNCS with strerror_r, as
123193         AC_FUNC_STRERROR_R does that.
123194         Check for strerror declaration.
123196         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
123197         are supposed to have them these days.
123198         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
123199         Merge changes from latest Autoconf CVS.
123200         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
123201         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
123202         POSIX decided to standardize on the int flavor of strerror_r.
123204 2001-10-20  Paul Eggert  <eggert@twinsun.com>
123206         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
123207         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
123208         Use strerror_r that is only a macro, even if it is not a function.
123209         (strerror): Check for HAVE_DECL_STRERROR before declaring.
123210         (private_strerror): Use prototypes, not old-style function definition.
123211         (print_errno_message): New function.
123212         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
123213         char*-flavored one.
123214         (error_tail, error, error_at_line): Use it.
123216 2001-10-11  Jim Meyering  <meyering@lucent.com>
123218         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
123219         and quote_n (1, ... to avoid clobbering a buffer.
123221 2001-10-05  Jim Meyering  <meyering@lucent.com>
123223         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
123224         hash-pjw.h.
123225         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
123226         * lib/hash-pjw.h: New file.
123228 2001-09-30  Jim Meyering  <meyering@lucent.com>
123230         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
123231         `struct fsstat' has the `f_fstypename' member.
123232         Use that to define FS_TYPE, which is now used to make
123233         the getfsstat link test tighter.
123235 2001-09-30  Jim Meyering  <meyering@lucent.com>
123237         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
123238         Include <sys/ucred.h>, for Apple Darwin.
123239         Include sys/mount.h and sys/fs_types.h only if available.
123240         (FS_TYPE): Define.
123241         (read_filesystem_list): Use FS_TYPE.
123243 2001-09-29  Paul Eggert  <eggert@twinsun.com>
123245         * lib/exclude.c (excluded_filename): 0 -> false, since it's
123246         a boolean context.
123248 2001-09-29  Jim Meyering  <meyering@lucent.com>
123250         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
123251         [one-argument getmntent function]): Include stdio.h before mntent.h.
123252         SunOS 4.1.x needs it for the declaration of `FILE'.
123253         Patch by Volker Borchert.
123255         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
123256         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
123257         sys/fs_types.h, and make the link-test for getfsstat guard #include
123258         directives with appropriate #if HAVE_*_H tests so that we can
123259         detect getfsstat on Apple Darwin1.3.7 systems.
123260         Reported by Nelson Beebe.
123261         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
123263 2001-09-28  Paul Eggert  <eggert@twinsun.com>
123265         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
123266         #defines strtoimax.  Also treat the other strto* functions
123267         like strtoimax.
123269         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
123270         Check for strtoul and strtoumax,
123271         as those declarations are made even in the signed case.
123272         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
123273         Likewise, for strtol and strtoimax.
123275 2001-09-28  Paul Eggert  <eggert@twinsun.com>
123277         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
123278         #defines strtoimax.  Also treat the other strto* functions
123279         like strtoimax.
123281         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
123282         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
123283         (strtoimax, strtoumax): Do not declare if already defined as a macro.
123285 2001-09-26  Jim Meyering  <meyering@lucent.com>
123287         Most macros in unlocked-io.h had the wrong number of arguments.
123288         * lib/gen-uio: New script.
123289         (USE_UNLOCKED_IO): Define to 1 if not already defined.
123290         * lib/unlocked-io.hin: Remove file.
123291         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
123292         rather than trying to embed it here.
123293         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
123294         Reported by Padraig Brady.
123296 2001-09-25  Volker Borchert  <bt@teknon.de>
123298         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
123299         `result'.
123301 2001-09-24  Jim Meyering  <meyering@lucent.com>
123303         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
123305 2001-09-23  Jim Meyering  <meyering@lucent.com>
123307         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
123308         instead of the mere test for existence of mntent.h.  The latter
123309         would get a false-positive on AIX 3.4 systems.
123310         In the outer getmntent if-block, don't die if neither of the getmntent
123311         tests succeeds.  Instead, just fall through and continue with the
123312         remaining tests.
123314 2001-09-23  Jim Meyering  <meyering@lucent.com>
123316         * lib/mountlist.c: Remove useless parentheses in #if directives.
123317         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
123318         the deprecated MOUNTED symbol is no longer defined in mntent.h.
123320 2001-09-22  Jim Meyering  <meyering@lucent.com>
123322         * m4/gettext.m4: New file.  From gettext.
123323         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
123324         * m4/progtest.m4: Likewise
123325         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
123326         * m4/glibc21.m4: Likewise.
123328         * m4/libintl.m4: Remove.  No longer used.
123330 2001-09-22  Jim Meyering  <meyering@lucent.com>
123332         * lib/localcharset.c: Update from latest gettext.
123333         * lib/config.charset: Likewise.
123335 2001-09-20  Jim Meyering  <meyering@lucent.com>
123337         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
123338         strtoimax.
123339         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
123340         strtoumax.
123342 2001-09-20  Jim Meyering  <meyering@lucent.com>
123344         * lib/xstrtol.c (strtoimax): Guard declaration with
123345         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
123346         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
123347         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
123348         (strtoumax): Likewise, for completeness (it wasn't necessary).
123350 2001-09-17  Paul Eggert  <eggert@twinsun.com>
123352         * lib/strtoimax.c (HAVE_LONG_LONG):
123353         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
123354         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
123355         to work around bug in IBM C compiler.
123357 2001-09-17  Jim Meyering  <meyering@lucent.com>
123359         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
123360         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
123361         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
123362         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
123363         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
123364         whenever the right hand side need not be expanded by the shell.
123366 2001-09-16  Paul Eggert  <eggert@twinsun.com>
123368         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
123369         library.  It's not correct, as some older glibcs are buggy.
123370         fnmatch wasn't fixed until glibc 2.2.
123372         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
123373         special shell magic here.
123375 2001-09-16  Jim Meyering  <meyering@lucent.com>
123377         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
123378         * m4/jm-macros.m4: Require it.
123380 2001-09-16  Jim Meyering  <meyering@lucent.com>
123382         * lib/mkdir.c: New file.
123384 2001-09-15  Jim Meyering  <meyering@lucent.com>
123386         * m4/jm-macros.m4: Check for help2man.
123388 2001-09-11  Jim Meyering  <meyering@lucent.com>
123390         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
123391         The body, by Paul Eggert, was moved here from configure.in.
123392         * m4/jm-macros.m4: Require UTILS_HOST_OS.
123394 2001-09-04  Paul Eggert  <eggert@twinsun.com>
123396         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
123397         (jm_PREREQ): Use it.
123399 2001-09-04  Paul Eggert  <eggert@twinsun.com>
123401         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
123402         Use ssize_t, not int, to store result of readlink.
123403         Check for ssize_t overflow as well as size_t overflow,
123404         as POSIX says the result of readlink is implementation-defined
123405         when ssize_t overflows.
123406         Remove unnecessary cast to char*.
123407         Use free+malloc instead of realloc, as the storage doesn't need
123408         to be preserved and it's clearer and can be more efficient that way.
123409         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
123410         * lib/xreadlink.h (xreadlink): Update prototype.
123412 2001-09-04  Paul Eggert  <eggert@twinsun.com>
123414         * lib/xgetcwd.c: Revert some of the previous change; intead,
123415         fix the HAVE_GETCWD_NULL code to behave more like the
123416         !HAVE_GETCWD_NULL code used to.
123418         Include "xalloc.h".
123419         (xgetcwd): Do not return NULL when memory is exhausted; instead,
123420         invoke xalloc_die.
123422 2001-09-03  Paul Eggert  <eggert@twinsun.com>
123424         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
123425         sys/param.h, as pathmax.h includes them.
123427 2001-09-03  Paul Eggert  <eggert@twinsun.com>
123429         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
123430         (jm_PREREQ_XGETCWD): New macro.
123432         * m4/getcwd.m4: New file.
123434 2001-09-03  Paul Eggert  <eggert@twinsun.com>
123436         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
123437         like the HAVE_GETCWD_NULL code.
123438         Include pathmax.h if not HAVE_GETCWD.
123439         Do not include xalloc.h.
123440         (INITIAL_BUFFER_SIZE): New symbol.
123441         Do not use xmalloc / xrealloc, since the caller is responsible for
123442         handling errors.  Preserve errno around `free' during failure.
123443         Do not overrun buffer when using getwd.
123445 2001-09-03  Paul Eggert  <eggert@twinsun.com>
123447         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
123448         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
123449         getcwd (NULL, 0).
123451 2001-09-03  Paul Eggert  <eggert@twinsun.com>
123453         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
123454         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
123455         spotted by Jim Meyering.
123457 2001-09-03  Jim Meyering  <meyering@lucent.com>
123459         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
123460         failure.
123462 2001-09-02  Jim Meyering  <meyering@lucent.com>
123464         * lib/error.c: Update from GNU libc.
123466 2001-09-01  Jim Meyering  <meyering@lucent.com>
123468         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
123469         Used by df.
123471 2001-09-01  Jim Meyering  <meyering@lucent.com>
123473         * lib/xreadlink.c: New file.
123474         * lib/xreadlink.h: New file.
123475         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
123476         xreadlink.h.
123478         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
123479         doesn't conflict with sparc Solaris 7's definition in
123480         /usr/include/sys/int_types.h.
123482         * lib/exclude.c: Use `""', not `<>' to #include non-system header
123483         files.
123484         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
123485         and strncasecmp as r-values.  Unixware didn't have declarations.
123487 2001-08-31  Paul Eggert  <eggert@twinsun.com>
123489         * lib/xstrtol.h: Add copyright notice.
123490         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
123491         LONGINT_INVALID_SUFFIX_CHAR.
123493 2001-08-31  Paul Eggert  <eggert@twinsun.com>
123495         * lib/xstrtol.c (strtoimax): New decl.
123497 2001-08-31  Paul Eggert  <eggert@twinsun.com>
123499         * lib/xgetcwd.c: Don't include pathmax.h.
123500         Include stdlib.h and unistd.h if available.
123501         Include xalloc.h.
123502         (xmalloc, xstrdup, free): Remove decls.
123503         (xgetcwd): Don't assume sizes fit in unsigned.
123504         Check for overflow when computing sizes.
123505         Simplify reallocation code.
123507 2001-08-31  Paul Eggert  <eggert@twinsun.com>
123509         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
123510         a directory's st_size can have an arbitrary value, so the old
123511         usage could waste an arbitrary amount of memory.  All uses
123512         changed.
123513         * lib/savedir.h: Update prototype.
123515 2001-08-31  Paul Eggert  <eggert@twinsun.com>
123517         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
123519         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
123520         old strtoimax.c.
123522         Also, make the following further changes to make this file's
123523         configuration more similar to that of strtol.c:
123524         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
123525         (strtoumax, uintmax_t, strtoull, strtol): Remove.
123526         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
123527         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
123528         changed to signed values.
123530         And make the following changes as well:
123531         Fix copyright notice, as 1999 was missing.
123532         (verify): New macro.
123533         (strtoimax): Check sizes at compile-time, not run-time.
123534         Prefer strtol to strtoll if both work.
123535         (main): Remove; it was not that useful and was a pain to maintain.
123537         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
123539 2001-08-31  Jim Meyering  <meyering@lucent.com>
123541         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
123542         Use an initial, malloc'd, buffer of length 128 rather than
123543         a statically allocated one of length 1024.
123545 2001-08-30  Paul Eggert  <eggert@twinsun.com>
123547         Simplify code, partly by assuming autoconf 2.52 semantics.
123549         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
123551         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
123552         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
123553         All uses removed.
123554         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
123555         Move AC_REQUIRE to next-to-top level, to avoid confusion.
123556         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
123557         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
123558         jm_AC_HEADER_INTTYPES_H.
123559         * m4/jm-macros.m4 (jm_MACROS): Likewise.
123561         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
123563         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
123564         Quote first arg of AC_DEFUN.
123565         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
123566         since they are needed to parse the include file even if we need
123567         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
123568         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
123569         but with opposite signedness.
123571 2001-08-30  Paul Eggert  <eggert@twinsun.com>
123573         Merge 'exclude' changes from tar 1.13.22.
123574         This fixes one or two unlikely storage allocation overflow bugs,
123575         but doesn't change user-visible behavior otherwise.
123577 2001-08-30  Paul Eggert  <eggert@twinsun.com>
123579         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
123580         (jm_PREREQ_EXCLUDE): New macro.
123582 2001-08-30  Paul Eggert  <eggert@twinsun.com>
123584         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
123585         tm to be declared.
123587 2001-08-30  Paul Eggert  <eggert@twinsun.com>
123589         * lib/hash.c: Remove '2001' from copyright notice.
123591 2001-08-30  Paul Eggert  <eggert@twinsun.com>
123593         * lib/full-write.h: New file.
123594         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
123595         * lib/full-write.c: Correct credits, as cccp.c no longer
123596         exists and anyway it was so heavily changed from the old cccp
123597         code as to be unrecognizable.  Include full-write.h.
123598         (full_write): Return size_t, with short writes meaning failure.
123599         All callers changed.  This fixes a bug with large buffers
123600         on 64-bit hosts.
123601         * lib/utime.c: Include full-write.h.
123603 2001-08-30  Paul Eggert  <eggert@twinsun.com>
123605         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
123606         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
123607         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
123608         Include if available.
123609         (<xalloc.h>): Include
123610         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
123611         (verify): New macro.  Use it to verify that EXCLUDE macros do not
123612         collide with FNM macros.
123613         (struct patopts): New struct.
123614         (struct exclude): Use it, as exclude patterns now come with options.
123615         (new_exclude): Support above changes.
123616         (new_exclude, add_exclude_file):
123617         Initial size must now be a power of two to simplify overflow checking.
123618         (free_exclude, fnmatch_no_wildcards): New function.
123619         (excluded_filename): No longer requires options arg, as the options
123620         are determined by add_exclude.  Now returns bool, not int.
123621         (excluded_filename, add_exclude):
123622         Add support for the fancy new exclusion options.
123623         (add_exclude, add_exclude_file): Now takes int options arg.
123624         Check for arithmetic overflow when computing sizes.
123625         (add_exclude_file): xrealloc might modify errno, so don't
123626         realloc until after errno might be used.
123628         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
123629         New macros.
123630         (free_exclude): New decl.
123631         (add_exclude, add_exclude_file): Now takes int options arg.
123632         (excluded_filename): No longer requires options arg, as the options
123633         are determined by add_exclude.  Now returns bool, not int.
123635 2001-08-30  Paul Eggert  <eggert@twinsun.com>
123637         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
123639 2001-08-27  Jim Meyering  <meyering@lucent.com>
123641         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
123643         * lib/version-etc.c (N_): Remove definition.
123644         Revert most of last change.
123645         Instead, simply don't mark the `Copyright...' string for translation.
123646         Based on advice from Paul Eggert.
123648         * lib/strtoxmax.c: Tweak comment.
123650 2001-08-26  Jim Meyering  <meyering@lucent.com>
123652         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
123654         * m4/xstrtoimax.m4: New file.
123655         * m4/xstrtoumax.m4: Add comments explaining why we
123656         AC_REPLACE_FUNCS(strtol).
123658 2001-08-26  Jim Meyering  <meyering@lucent.com>
123660         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
123661         of copyright with `%s' so translators don't get an untranslated
123662         message in 2002.
123663         (COPYRIGHT_YEAR): Define.
123664         (version_etc): Use fprintf rather than fputs.
123665         Suggestion from Ulrich Drepper.
123667         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
123669         * lib/strtoll.c: New file, from GNU libc.
123670         * lib/xstrtoimax.c: New file.
123672         * lib/xstrtol.h: Add xstrtoimax.
123673         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
123674         * lib/strtoimax.c: New file.  Likewise, but first define
123675         STRTOUXMAX_SIGNED.
123677         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
123678         ...
123679         * lib/strtoxmax.c: ... then renamed to this.
123681 2001-08-18  Paul Eggert  <eggert@twinsun.com>
123683         * m4/inttypes.m4: Add AC_PREREQ(2.13).
123684         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
123685         (jm_AC_TYPE_INTMAX_T): New macro.
123686         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
123688         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
123690         * m4/longlong.m4: Renamed from ulonglong.m4.
123691         * m4/inttypes.m4: Renamed from inttypes_h.m4.
123692         * m4/uintmax_t.m4: Removed.
123694 2001-08-13  Paul Eggert  <eggert@twinsun.com>
123696         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
123697         Port to Solaris 8, where 'sed' requires a space after the 'r'
123698         command, and where sh dislikes "$/".  Clean up the spacing a bit.
123699         Redirect output to $tmp just once.
123701 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
123703         * lib/addext.c (<errno.h>): Include.
123704         (errno): Declare if not defined.
123705         (addext): Work correctly when pathconf returns -1 and leaves
123706         errno alone because there is no limit.  Also, work even if
123707         pathconf returns a value greater than SIZE_MAX.
123709 2001-08-12  Jim Meyering  <meyering@lucent.com>
123711         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
123712         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
123713         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
123714         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
123715         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
123716         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
123717         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
123718         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
123719         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
123720         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
123721         utime.m4, utimes.m4, xstrtoumax.m4:
123722         Quote the first argument in each use of AC_DEFUN.
123724 2001-08-12  Jim Meyering  <meyering@lucent.com>
123726         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
123727         Simply `return getcwd (NULL, 0);'.
123728         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
123729         Use 1300 as initial value for length, not PATH_MAX.
123731         * lib/pathmax.h: Clean up cpp syntax.
123733 2001-08-12  Jim Meyering  <meyering@lucent.com>
123735         * lib/gettimeofday.c: New file.
123736         * lib/gtod.h: New file.
123737         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
123739 2001-08-05  Jim Meyering  <meyering@lucent.com>
123741         * m4/jm-macros.m4: Require autoconf-2.52.
123743 2001-08-04  Jim Meyering  <meyering@lucent.com>
123745         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
123746         stmt, to get in sync with glibc.
123748 2001-08-03  Paul Eggert  <eggert@twinsun.com>
123750         The following changes are from gettext 0.10.39 as maintained by
123751         Bruno Haible.
123753         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
123754         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
123755         with inverted sense.  All uses changed.
123757         * lib/mbswidth.c: Don't include <limits.h>.
123758         Include <stdlib.h> and <string.h> unconditionally.
123759         (iswcntrl, mbsinit, ISCNTRL): New macros.
123760         (mbsnwidth): Use K&R style function declarations.
123761         Don't bother checking for MB_LEN_MAX == 1, since the compiler
123762         can optimize it when MB_CUR_MAX == 1.
123763         The width of control characters is zero, not 1.
123765 2001-08-03  Paul Eggert  <eggert@twinsun.com>
123767         The following changes are from gettext 0.10.39 as maintained by
123768         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
123770         * m4/codeset.m4: Upgrade to serial AM1.
123771         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
123772         all uses changed.  Quote first arg of AC_DEFUN.
123773         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
123775         * m4/iconv.m4: Upgrade to serial AM2.
123776         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
123777         Add --with-libconv-prefix.
123778         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
123779         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
123780         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
123781         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
123782         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
123784         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
123785         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
123786         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
123787         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
123788         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
123789         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
123790         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
123791         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
123792         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
123794         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
123795         string.h any more.
123797         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
123798         not the default value.
123800         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
123801         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
123802         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
123803         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
123804         Also check for iswcntrl, used for wcwidth fallback.
123805         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
123806         to Autoconf 2.13.
123808 2001-08-03  Jim Meyering  <meyering@lucent.com>
123810         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
123811         as it was in the original.  Reported by Paul Eggert.
123813 2001-07-16  Jim Meyering  <meyering@lucent.com>
123815         * m4/gettimeofday.m4: New file.
123816         Prompted by a report from Bernhard Baehr.
123818 2001-07-15  Jim Meyering  <meyering@lucent.com>
123820         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
123821         stuff. Now it's in ../Makefile.cfg.
123823 2001-07-15  Jim Meyering  <meyering@lucent.com>
123825         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
123826         (BUILT_SOURCES): Add unlocked-io.h.
123827         (io_functions): Define.
123828         (unlocked-io.h): New rule.
123829         (DISTCLEANFILES): Add unlocked-io.h.
123830         (all-local): Depend on unlocked-io.h, to ensure it is created.
123832         * lib/unlocked-io.hin: New file
123834         * lib/regex.c: Update from glibc.
123836 2001-07-05  Jim Meyering  <meyering@lucent.com>
123838         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
123839         recommendation.
123840         (libfetish_a_SOURCES): Put all .h files here instead.
123841         Remove a thus-exposed (better checks in automake) duplicate and
123842         two unnecessary .h files.
123844 2001-07-04  Jim Meyering  <meyering@lucent.com>
123846         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
123847         that generates jm-glibc-io.m4 so that it doesn't trigger any make
123848         distcheck failure.
123850 2001-07-02  Jim Meyering  <meyering@lucent.com>
123852         The following changes were prompted by suggestions from Bruno Haible.
123854         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
123855         is now generated.
123856         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
123857         definition of EXTRA_DIST.
123858         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
123859         ensure that the generated file is created/updated whenever the list
123860         of $(unlocked_functions) is changed.
123861         (jm-glibc-io.m4): New rule.
123862         (unlocked-io.h): New rule -- currently unused.
123864 2001-06-24  Jim Meyering  <meyering@lucent.com>
123866         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
123867         unmatched right bracket, rather than kludging it with an extra,
123868         falsely-matching quote in a comment.  Patch by Akim Demaille.
123870 2001-06-11  Jim Meyering  <meyering@lucent.com>
123872         * lib/regex.c: Update from GNU libc.
123874 2001-05-27  Jim Meyering  <meyering@lucent.com>
123876         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
123877         Check for ut_type in struct utmp.
123879 2001-05-27  Jim Meyering  <meyering@lucent.com>
123881         * lib/readutmp.h (UT_TYPE): Define.
123883 2001-05-24  Jim Meyering  <meyering@lucent.com>
123885         * lib/argmatch.c: Include "quote.h".
123886         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
123887         quote function.  Reported by Göran Uddeborg.
123889 2001-05-22  Jim Meyering  <meyering@lucent.com>
123891         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
123892         now that we use the package-supplied version unconditionally.
123893         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
123895 2001-05-21  Jim Meyering  <meyering@lucent.com>
123897         * m4/regex.m4: Change a couple backticks to single quotes to avoid
123898         shell syntax errors.
123900 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
123902         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
123904 2001-05-20  Paul Eggert  <eggert@twinsun.com>
123906         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
123907         Don't bother to check library strftime, since
123908         we'll be using our own my_strftime function anyway.
123909         Define my_strftime instead of strftime.
123911 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
123913         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
123914         which is not yet declared.
123916 2001-05-15  Jim Meyering  <meyering@lucent.com>
123918         * m4/regex.m4: Use proper quoting so brackets appear in the test
123919         program.
123920         Reported by, and with help from, Bruno Haible.
123922 2001-05-13  Jim Meyering  <meyering@lucent.com>
123924         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
123925         undefined.
123927 2001-05-11  Paul Eggert  <eggert@twinsun.com>
123929         dirname code cleanup.  base_name now behaves more compatibly
123930         with POSIX basename when given file names that have trailing
123931         slashes, and similarly for dir_name.  Add new primitives
123932         base_len and dir_len.  Put the directory-name-related decls
123933         into dirname.h.
123935         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
123936         * lib/backupfile.c (base_name): Likewise.
123937         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
123938         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
123939         * lib/makepath.c (strip_trailing_slashes): Likewise.
123940         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
123941         ISSLASH): Likewise.
123942         * lib/rename.c (strip_trailing_slashes): Likewise.
123943         * lib/same.c (base_name): Likewise.
123944         * lib/stripslash.c (ISSLASH): Likewise.
123946         * lib/addext.c: Include <dirname.h> after size_t is defined.
123947         * lib/backupfile.c: Likewise.
123949         * lib/addext.c (addext): Use base_len to trim redundant
123950         trailing slashes instead of doing it ourselves.
123951         But do not trim the last slash if it is not redundant.
123953         * lib/backupfile.c (find_backup_file_name,
123954         max_backup_version): Use base_len instead of rolling it ourselves.
123955         Handle the case of "" and (on DOS) "C:" correctly.
123957         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
123958         needed. Include <string.h>, <dirname.h>.
123959         (base_name): Allow file names ending in slashes, other than names
123960         that are all slashes.  In this case, return the basename followed
123961         by the slashes.  This is more general, and can be used in places
123962         where the original base_name purposely had an assertion failure.
123963         (base_len): New function.
123965         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
123966         Do not include <assert.h>; no longer needed.
123967         Include xalloc.h.
123968         (memrchr): Remove decl.
123969         (dir_name_r): Remove.
123970         (dir_len): Renamed from dirlen.  All callers changed.
123971         Rewrite in terms of base_name, for simplicity and consistency.
123972         (dir_name): Never return NULL.  All callers changed.
123973         Do not include <stdlib.h> in test program; no longer needed.
123974         return 0; is fine for test program.
123976         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
123977         New macros.
123978         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
123980         * lib/path-concat.c (path_concat): Use base_len to compute
123981         base length, not strlen; this means we cannot rely on memcpy
123982         to null-terminate.
123984         * lib/same.c (STREQ): Remove.
123985         (same_name): Handle the case where the basename ends in trailing '/'.
123987         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
123988         a slash was stripped.  Do not strip the last slash after a
123989         file system prefix.
123991 2001-05-11  Paul Eggert  <eggert@twinsun.com>
123993         * lib/Makefile.am (libfetish_a_SOURCES):
123994         Add strftime.c, since we now compile it on all hosts.
123996         * lib/strftime.c (my_strftime):
123997         Define to nstrftime if emacs, but only if my_strftime is not defined.
123998         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
123999         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
124000         Add one more extra argument: a nanoseconds value.
124001         All uses changed.
124002         (ns): New macro.
124003         (my_strftime function): Add %N format.
124004         (emacs_strftimeu): Renamed from emacs_strftime,
124005         with extra ut argument.
124007 2001-05-09  Paul Eggert  <eggert@twinsun.com>
124009         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
124011 2001-04-21  Jim Meyering  <meyering@lucent.com>
124013         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
124014         doesn't interfere.
124016 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
124018         * m4/ftruncate.m4: Check for chsize.
124019         Link with ftruncate.o unconditionally if ftruncate is missing.
124020         This was required when cross-compiling to i586-mingw32msvc.
124022 2001-04-08  Jim Meyering  <meyering@lucent.com>
124024         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
124025         recomputed; that's necessary when the offset spans a DST transition.
124026         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
124028 2001-04-02  Jim Meyering  <meyering@lucent.com>
124030         * lib/regex.h, regex.c: Update from GNU libc.
124032 2001-03-24  Jim Meyering  <meyering@lucent.com>
124034         * m4/jm-macros.m4: Require autoconf-2.49d.
124036 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
124038         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
124040 2001-03-19  Paul Eggert  <eggert@twinsun.com>
124042         * lib/version-etc.c (version_etc_copyright): Update to 2001.
124044 2001-03-17  Jim Meyering  <meyering@lucent.com>
124046         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
124047         now that the version in autoconf is equivalent.
124048         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
124050         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
124051         Suggestion from Akim Demaille.
124053         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
124054         (jm_PREREQ_TEMPNAME): New function.
124056 2001-03-16  Paul Eggert  <eggert@twinsun.com>
124058         * lib/tempname.c (uint64_t): Define to uintmax_t if
124059         not defined, and if UINT64_MAX is not defined.
124060         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
124061         Reported by John David Anglin.
124063 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
124065         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
124066         resolve alias if codeset is empty.
124067         * lib/config.charset (BeOS): Use wildcard syntax.
124069 2001-03-13  Jim Meyering  <meyering@lucent.com>
124071         * lib/path-concat.c (path_concat)
124072         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
124073         concatenating e.g., `C:' and `foo'.
124074         From Bruno Haible.
124076 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
124078         * lib/localcharset.c (locale_charset): Don't use
124079         setlocale(LC_CTYPE,NULL). Don't return NULL.
124080         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
124082 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
124084         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
124085         support for DOS/DJGPP.
124087 2001-03-01  Paul Eggert  <eggert@twinsun.com>
124089         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
124090         lacks mkstemp.  Compile our own tempname.c if we compile our own
124091         mkstemp.c, as mkstemp relies on tempname.
124093 2001-03-01  Jim Meyering  <meyering@lucent.com>
124095         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
124096         AH_VERBATIM really does output its argument verbatim.
124098 2001-02-28  Paul Eggert  <eggert@twinsun.com>
124100         * lib/Makefile.am (libfetish_a_SOURCES):
124101         Add dup-safer.c, fopen-safer.c.
124102         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
124104         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
124105         * lib/unistd-safer.h: New files.
124107 2001-02-25  Paul Eggert  <eggert@twinsun.com>
124109         The mkstemp replacement is taken from glibc 2.2.2, with some
124110         portability fixes for use outside glibc, as follows:
124112         * lib/tempname.c (struct_stat64): New macro.
124113         (direxists, __gen_tempname): Use it.
124114         This avoids a portability problem with Solaris 8.
124116         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
124117         (<stddef.h>, <stdint.h>, <string.h>):
124118         Include only if STDC_HEADERS || _LIBC.
124119         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
124120         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
124121         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
124122         (__set_errno): Define this macro if <errno.h> doesn't.
124123         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
124124         Define these macros if <stdio.h> doesn't.
124125         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
124126         Define these macros if <sys/stat.h>
124127         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
124128         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
124129         __xstat64): Define if not _LIBC.
124130         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
124131         (__gen_tempname): Invoke gettimeofday only if
124132         HAVE_GETTIMEOFDAY || _LIBC;
124133         otherwise, fall back on plain "time".
124134         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
124136         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
124138         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
124140 2001-02-18  Paul Eggert  <eggert@twinsun.com>
124142         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
124144 2001-02-17  Paul Eggert  <eggert@twinsun.com>
124146         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
124147         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
124148         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
124149         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
124151 2001-02-17  Paul Eggert  <eggert@twinsun.com>
124153         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
124154         Remove workaround macros for hosts that have mbrtowc but not
124155         mbstate_t, as we now insist on proper declarations for both
124156         before using mbrtowc.
124158 2001-02-17  Jim Meyering  <meyering@lucent.com>
124160         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
124161         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
124162         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
124163         UnixWare 7.1.1.
124165         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
124166         rather than AC_CACHE_VAL.
124168 2001-02-17  Jim Meyering  <meyering@lucent.com>
124170         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
124171         around included file name.
124173         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
124175         * lib/strftime.c: Update from GNU libc (the only changes were to
124176         comments).
124178 2001-02-17  Jim Meyering  <meyering@lucent.com>
124180         * lib/regex.c: Update from libc.
124182 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
124184         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
124185         clash.
124187 2001-02-16  Paul Eggert  <eggert@twinsun.com>
124189         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
124190         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
124191         Reported by Mark Hounschell via Paul Eggert.
124193 2001-02-07  Jim Meyering  <meyering@lucent.com>
124195         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
124197 2001-02-05  Jim Meyering  <meyering@lucent.com>
124199         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
124200         it includes the patch required for `large file' support with at least
124201         HP-UX's 10.20 /bin/cc.
124203 2001-02-03  Jim Meyering  <meyering@lucent.com>
124205         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
124206         AS_IF, now that it works once again (mysteriously).
124207         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
124209 2001-01-30  Jim Meyering  <meyering@lucent.com>
124211         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
124212         * m4/chown.m4: Rename conftestchown to conftest.chown.
124213         * m4/rename.m4: s/conftestdir/conftest.d1/ and
124214         s/conftestdir2/conftest.d2/.
124215         * m4/utimes.m4: s/conftestdata/conftest.data/
124216         Inspired by Pavel Roskin's change in autoconf.
124218 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
124220         * lib/config.charset: Update for FreeBSD 4.2.
124222 2001-01-27  Jim Meyering  <meyering@lucent.com>
124224         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
124225         a use of AS_IF.
124226         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
124228 2001-01-26  Jim Meyering  <meyering@lucent.com>
124230         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
124231         quotearg.c includes it.
124233 2001-01-26  Jim Meyering  <meyering@lucent.com>
124235         * lib/quotearg.c: Include stddef.h.
124236         * lib/quote.c: Include stddef.h.
124237         Reported by Axel Kittenberger.
124239         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
124240         line in double quotes so that it evokes a better diagnostic.
124241         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
124242         Reported by Axel Kittenberger.
124244 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
124246         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
124247         as if it was a `charset'.
124249 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
124251         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
124252         has const.
124254 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
124256         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
124257         to avoid a warning.  Add back 'const' to inptr.
124259 2001-01-20  Jim Meyering  <meyering@lucent.com>
124261         Be sure that headers are checked before used in code compiled
124262         for the type checks.
124263         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
124264         In place of that, invoke jm_CHECK_ALL_TYPES.
124265         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
124266         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
124267         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
124268         The check for ssize_t was mistakenly run before the test for unistd.h.
124270         The configure-time check for stdbool.h was missing.
124271         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
124272         (jm_PREREQ_HASH): New function.
124274 2001-01-17  Jim Meyering  <meyering@lucent.com>
124276         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
124277         for autoconf-2.49c.
124278         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
124280 2001-01-16  Jim Meyering  <meyering@lucent.com>
124282         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
124283         From Bruno Haible.
124285 2001-01-14  Jim Meyering  <meyering@lucent.com>
124287         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
124288         foo and bar.  Create conftestdir/ in the script, not in the C code.
124289         Remove directories in the script, not in the C code.
124290         Remove conftestdir{,2} before trying to create the directory.
124291         Make the entire configure script fail if the mkdir fails.
124293 2001-01-14  Jim Meyering  <meyering@lucent.com>
124295         * lib/rename.c: New file.  From Volker Borchert.
124296         Include stdlib.h, string.h or strings.h, and xalloc.h.
124297         Use strip_trailing_slashes rather than open-coding it.
124299 2001-01-03  Paul Eggert  <eggert@twinsun.com>
124301         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
124303 2001-01-03  Jim Meyering  <meyering@lucent.com>
124305         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
124306         of local `inptr' to avoid warning with some system declarations of
124307         iconv.
124309 2001-01-02  Volker Borchert  <bt@teknon.de>
124311         * m4/rename.m4: New file.
124312         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
124314 2001-01-01  Jim Meyering  <meyering@lucent.com>
124316         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
124317         even on systems with utmpx.h.  It's necessary for the declaration of
124318         utmp's ut_user member.  Reported by Andreas Jaeger.
124320         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
124321         available. They are required for the declarations of getgrgid and
124322         getpwuid resp.
124323         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
124324         Reported by Andreas Jaeger.
124326 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
124328         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
124329         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
124330         so `make install' also works in VPATH builds.
124332 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
124334         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
124335         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
124336         can be used in subdirectories.
124338 2000-12-29  Paul Eggert  <eggert@twinsun.com>
124340         * lib/modechange.c: Do not assume that mode_t uses the
124341         traditional octal encoding.  E.g. "chmod 1 FOO" should set
124342         the other-execute bit of FOO even if S_IXOTH != 1.
124344         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
124345         WOTH, XOTH, ALLM): New macros.
124346         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
124347          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
124348         Use them.
124349         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
124350         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
124351         (mode_compile):
124352         No need to use uintmax_t; unsigned long is long enough.
124353         Don't bother to get suffix since we don't use it.
124355 2000-12-26  Jim Meyering  <meyering@lucent.com>
124357         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
124358         better with autoheader.
124360 2000-12-24  Jim Meyering  <meyering@lucent.com>
124362         * lib/hash.c (is_prime): Return explicit boolean values.
124363         (hash_get_first): Return NULL to appease Irix5.6's 89.
124364         Reported by Nelson Beebe.
124366 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
124368         * lib/localcharset.c (locale_charset): Add support for Win32.
124370 2000-12-18  Paul Eggert  <eggert@twinsun.com>
124372         * lib/physmem.h, lib/physmem.c: New files.
124374         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
124375         (noinst_HEADERS): Add physmem.h.
124377         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
124378         't' for compatibility with Solaris 8 sort.
124380 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
124382         * lib/config.charset: Add support for BeOS.
124384 2000-12-17  Jim Meyering  <meyering@lucent.com>
124386         * m4/dos.m4 (jm_AC_DOS): New file and macro.
124387         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
124389 2000-12-16  Jim Meyering  <meyering@lucent.com>
124391         This bug had a serious impact on chown: `chown N:M FILE' (for integer
124392         N and M) would have treated it like `chown N:N FILE'.
124394         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
124396 2000-12-16  Jim Meyering  <meyering@lucent.com>
124398         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
124399         SHELLS_FILE to a file name that's useful on djgpp systems.
124400         Include stdlib.h.
124401         (ADDITIONAL_DEFAULT_SHELLS): Define.
124402         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
124403         Based mostly on a patch from Prashant TR.
124405 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
124407         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
124408         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
124409         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
124411 2000-12-08  Andreas Schwab  <schwab@suse.de>
124413         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
124414         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
124416 2000-12-07  Jim Meyering  <meyering@lucent.com>
124418         * lib/stripslash.c (ISSLASH): Define.
124419         (strip_trailing_slashes): Use ISSLASH rather than comparing against
124420         `/'.
124421         From Prashant TR.
124423         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
124424         (dir_name_r): Declare this function as static.
124425         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
124426         manifest itself on a name containing a mix of slashes and
124427         backslashes.
124428         Make this function work with names starting with a DOS-style
124429         drive letter and colon prefix.
124430         (dir_name): Append `.' if necessary.
124431         Based mostly on patches from Prashant TR and Eli Zaretskii.
124433         * lib/dirname.h (dir_name_r): Remove prototype.
124435 2000-12-06  Paul Eggert  <eggert@twinsun.com>
124437         * m4/off_t-format.m4: Remove this file.
124438         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
124440 2000-12-06  Jim Meyering  <meyering@lucent.com>
124442         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
124443         replacement strtoull, we may well need the replacement strtoul, too.
124444         Check for declarations of strtoul and strtoull.
124445         Check for strtol.  Mainly as a cue to cause automake to include
124446         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
124447         Check for limits.h -- strtol.c needs it.
124449 2000-12-05  Jim Meyering  <meyering@lucent.com>
124451         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
124453 2000-12-04  Jim Meyering  <meyering@lucent.com>
124455         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
124456         Also include memory.h, stdlib.h, unistd.h if appropriate.
124457         Reported by Andreas Jaeger (conflicting declaration of malloc).
124459 2000-12-02  Jim Meyering  <meyering@lucent.com>
124461         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
124462         * m4/jm-macros.m4 (jm_MACROS): require it.
124464 2000-12-02  Jim Meyering  <meyering@lucent.com>
124466         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
124468 2000-12-01  Paul Eggert  <eggert@twinsun.com>
124470         * lib/memrchr.c: Include <config.h> before any system include file.
124472 2000-11-30  Jim Meyering  <meyering@lucent.com>
124474         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
124476 2000-11-30  Jim Meyering  <meyering@lucent.com>
124478         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
124480 2000-11-29  Paul Eggert  <eggert@twinsun.com>
124482         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
124484 2000-11-26  Jim Meyering  <meyering@lucent.com>
124486         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
124488 2000-11-22  Paul Eggert  <eggert@twinsun.com>
124490         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
124491         size of (size_t) -1; it's not portable.
124493 2000-11-17  Jim Meyering  <meyering@lucent.com>
124495         * lib/strstr.c: Update from GNU libc.
124497 2000-11-17  Akim Demaille  <akim@epita.fr>
124499         * lib/obstack.h: Formatting changes.
124500         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
124501         prevent type checking.
124502         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
124503         cast the value to (void *): assigning a `foo *' to a `void *'
124504         variable is valid.
124505         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
124507 2000-11-16  Jim Meyering  <meyering@lucent.com>
124509         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
124511 2000-11-11  Jim Meyering  <meyering@lucent.com>
124513         * lib/error.c: Add a couple #includes, merging from GNU libc version.
124515 2000-11-10  Jim Meyering  <meyering@lucent.com>
124517         * lib/obstack.h: Update from GNU libc.
124518         * lib/obstack.c: Likewise.
124520 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
124522         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
124524 2000-11-06  Paul Eggert  <eggert@twinsun.com>
124526         * lib/getusershell.c (setusershell): Use rewind rather than
124527         fseek/fseeko, to avoid configuration hassles with fseeko.
124528         Don't bother opening SHELLS_FILE if shellstream is NULL;
124529         it's not necessary.
124531 2000-11-05  Jim Meyering  <meyering@lucent.com>
124533         * lib/makepath.h (make_dir): Declare.
124534         * lib/makepath.c (make_dir): Remove `static' attribute.
124535         Tweak a comment.
124537 2000-11-04  Jim Meyering  <meyering@lucent.com>
124539         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
124541 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
124543         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
124544         last one in a bucket, advance to the next bucket.
124546 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
124548         * lib/fnmatch.c: Do not comment out all the code if we are using
124549         the GNU C library, because in some cases we are replacing buggy
124550         code in the GNU C library itself.
124552 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
124554         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
124555         (regex_compile): Catch bogus \(\1\).
124557 2000-10-30  Paul Eggert  <eggert@twinsun.com>
124559         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
124560         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
124561         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
124563 2000-10-30  Paul Eggert  <eggert@twinsun.com>
124565         * lib/error.h, getline.h, modechange.h:
124566         Remove "2000" from Copyright line, as the file hasn't been
124567         changed this year other than in the copyright notice.
124569         * lib/xalloc.h: Add "2000" to Copyright line, as this file
124570         was changed this year.
124572 2000-10-29  Jim Meyering  <meyering@lucent.com>
124574         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
124575         renaming.
124576         * m4/ls-mntd-fs.m4: Likewise
124578 2000-10-29  Jim Meyering  <meyering@lucent.com>
124580         * lib/xstat.in: Fix grammar in comment.
124582 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
124584         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
124585         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
124586         doesn't define __restrict_arr.
124588 2000-10-28  Jim Meyering  <meyering@lucent.com>
124590         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
124591         (jm_PREREQ_MEMCHR): New function.
124593 2000-10-28  Jim Meyering  <meyering@lucent.com>
124595         * lib/memchr.c: Update from libc.
124596         Adjust for portability:
124597         [HAVE_STDLIB_H]: Include stdlib.h.
124598         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
124599         Undef __memchr, too.
124600         [!weak_alias]: Define __memchr to memchr.
124602         * lib/regex.c: Update from libc.
124603         * lib/regex.h: Likewise.
124604         * lib/getopt1.c: Likewise.
124605         * lib/memcmp.c: Likewise.
124607         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
124608         Avoid using fseek, when possible -- it's broken by design.
124609         Patch by Ulrich Drepper.
124611 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
124613         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
124614         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
124615         Giving in to popular pressure to shut up the compiler with casts.
124617 2000-10-26  Jim Meyering  <meyering@lucent.com>
124619         * lib/strftime.c: Update from libc.
124621 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
124623         * regex.c: More `unsigned char' -> `re_char' changes.
124624         Also change several `int' into `re_wchar_t'.
124625         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
124626         (PUSH_FAILURE_POINTER): Don't cast any more.
124627         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
124628         We want GCC to complain, since this piece of code makes
124629         re_match non-reentrant, which *should* be fixed.
124630         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
124631         (EXTEND_BUFFER): Use RETALLOC.
124632         (SET_LIST_BIT): Don't cast.
124633         (re_wchar_t): New type.
124634         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
124635         that those two functions will always properly return.
124636         (IMMEDIATE_QUIT_CHECK): Cast to void.
124637         (analyse_first): Use recursion rather than an explicit stack.
124638         (re_compile_fastmap): Can't fail anymore.
124639         (re_search_2): Don't check re_compile_fastmap for failure.
124640         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
124641         Now also sets the new value (passed in a new argument).
124642         (re_match_2_internal): Use it.
124643         Also, use a new var `reg' of type size_t when looping through regs
124644         rather than reuse the inappropriate `mcnt'.
124646 2000-10-25  Jim Meyering  <meyering@lucent.com>
124648         * lib/obstack.c: Update from libc.
124650 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
124652         * regex.c (regex_compile): Change the way of handling a range from
124653         a char less than 256 to a char not less than 256.
124655 2000-10-24  Andrew Innes  <andrewi@gnu.org>
124657         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
124658         NT-Emacs only.
124659         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
124660         so that re_search functions only quit when callers expect them to.
124662 2000-10-23  Jim Meyering  <meyering@lucent.com>
124664         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
124665         wrong.  That set_locale call must not have any side effects.
124666         From Paul Eggert.
124668 2000-10-22  Jim Meyering  <meyering@lucent.com>
124670         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
124671         [CYCLIC]: Remove now-unused definition.
124673         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
124674         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
124675         Suggestion from Ulrich Drepper.
124677 2000-10-21  Jim Meyering  <meyering@lucent.com>
124679         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
124680         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
124681         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
124683 2000-10-21  Jim Meyering  <meyering@lucent.com>
124685         * lib/dirname.c (memrchr): Declare if necessary.
124686         (dir_name): Remove the restriction that there be no
124687         trailing slashes.  Now, this code skips past them, effectively
124688         ignoring them.
124689         [TEST_DIRNAME] (main): New unit tests.
124691         * lib/memrchr.c: New file from GNU libc.
124692         Undef __memrchr, too.
124693         [!weak_alias]: Define __memrchr to memrchr.
124694         Guard weak_alias use with `#ifdef weak_alias'.
124696 2000-10-21  Jim Meyering  <meyering@lucent.com>
124698         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
124699         (dir_name): Use dir_name_r.
124700         * lib/dirname.h (dir_name_r): Declare it.
124702 2000-10-17  Jim Meyering  <meyering@lucent.com>
124704         * lib/quote.h (PARAMS): Define and use.
124705         Reported by Akim Demaille.
124707         * lib/getopt.c: Update from libc.
124709 2000-10-16  Jim Meyering  <meyering@lucent.com>
124711         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
124712         setlocale.
124713         From Jan Fedak.
124715 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
124717         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
124719 2000-09-25  Jim Meyering  <meyering@lucent.com>
124721         * lib/md5.h (rol): Define (from GnuPG).
124723         * lib/sha.c: Give credit (GnuPG) where due.
124724         (M): Use rol rather than open-coding it.
124725         Add a FIXME comment.
124727 2000-09-21  Jim Meyering  <meyering@lucent.com>
124729         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
124730         Reported by Michael Stone.
124732 2000-09-20  Jim Meyering  <meyering@lucent.com>
124734         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
124735         (noinst_HEADERS): Add sha.h.
124736         Based on code from Scott G. Miller and from GnuPG.
124738 2000-09-18  Jim Meyering  <meyering@lucent.com>
124740         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
124741         LIBS. Otherwise, everyone ends up linking with -lelf for some
124742         configurations.
124743         Reported by Mike Stone.
124745 2000-09-15  Jim Meyering  <meyering@lucent.com>
124747         * lib/regex.c: Update from libc.
124749 2000-09-10  Jim Meyering  <meyering@lucent.com>
124751         * lib/getopt.c (_getopt_internal): Update from glibc.
124753 2000-09-09  Jim Meyering  <meyering@lucent.com>
124755         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
124756         think it should be used as a general replacement for isascii.
124757         * lib/fnmatch.c: Likewise.
124758         * lib/mbswidth.c: Likewise
124759         * lib/regex.c: Likewise.
124761         Don't use atoi.
124762         * lib/userspec.c: Include sys/param.h and limits.h.
124763         Include xstrtol.h.
124764         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
124765         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
124766         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
124767         UID, GID.  Check range.
124769 2000-09-06  Jim Meyering  <meyering@lucent.com>
124771         * lib/getopt.c (_getopt_internal): Update from glibc.
124773 2000-08-30  Jim Meyering  <meyering@lucent.com>
124775         * lib/strftime.c: Merge in changes from GNU libc.
124777 2000-08-26  Jim Meyering  <meyering@lucent.com>
124779         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
124780         * m4/fpending.m4: New file.
124782 2000-08-26  Jim Meyering  <meyering@lucent.com>
124784         * lib/closeout.c: Include "__fpending.h".
124785         (close_stdout_status): Return right away if there's nothing to flush.
124787         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
124788         * lib/__fpending.c: New file.
124789         * lib/__fpending.h: New file.
124791 2000-08-20  Jim Meyering  <meyering@lucent.com>
124793         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
124794         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
124795         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
124797 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
124799         Improve fileutils installation on systems where running
124800         programs (like install) can't be unlinked.
124801         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
124802         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
124804 2000-08-07  Paul Eggert  <eggert@twinsun.com>
124806         Standardize on "memory exhausted" instead of "Memory exhausted"
124807         or "virtual memory exhausted".
124808         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
124809         "virtual memory exhausted".
124810         * lib/same.c (same_name): Invoke xalloc_die instead of printing
124811         our own message.
124812         * lib/userspec.c (parse_user_spec): Likewise.
124813         * lib/bumpalloc.h: comment fix
124814         * lib/same.c, userspec.c: Include xalloc.h.
124816         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
124817         not char *const and pointing to a constant array.
124818         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
124819         (xrealloc): Comment fix.
124821         * lib/userspec.c (parse_user_spec):
124822         Don't translate a message until just before returning,
124823         to avoid unnecessary translation.
124825 2000-08-07  Jim Meyering  <meyering@lucent.com>
124827         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
124828         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
124829         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
124830         getgroups.c, gethostname.c, getopt.h, group-member.c,
124831         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
124832         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
124833         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
124834         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
124835         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
124836         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
124837         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
124838         yesno.c: Back out Copyright date changes for each file with no change
124839         this year.  This eases coordination with other programs using the same
124840         source code modules.  From Paul Eggert.
124842 2000-08-06  Paul Eggert  <eggert@twinsun.com>
124844         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
124845         not char, for compatibility with glibc 2.1.3 strftime.c.
124847 2000-08-03  Greg McGary  <greg@mcgary.org>
124849         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
124850         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
124851         (EXTEND_BUFFER): Use them.
124853 2000-08-01  Jim Meyering  <meyering@lucent.com>
124855         * lib/dirname.c (ISSLASH): Define.
124856         (BACKSLASH_IS_PATH_SEPARATOR): Define.
124857         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
124858         both `\' and `/' may be use as path separators.
124859         Based on a patch from Prashant TR.
124861 2000-07-31  Paul Eggert  <eggert@twinsun.com>
124863         * lib/quotearg.c (quotearg_n_options): Don't make the initial
124864         slot vector a constant, since it might get modified.
124866 2000-07-31  Jim Meyering  <meyering@lucent.com>
124868         * lib/xmalloc.c: Use `virtual memory exhausted', not
124869         `Memory exhausted'.
124870         * lib/obstack.c (print_and_abort): Likewise.
124872 2000-07-30  Paul Eggert  <eggert@twinsun.com>
124874         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
124875         buffer, so that the caller can always quote one small
124876         component of a "memory exhausted" message in slot 0.
124877         From a suggestion by Jim Meyering.
124879 2000-07-30  Jim Meyering  <meyering@lucent.com>
124881         * lib/makepath.c (make_path): Quote the other instance, too.
124883         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
124884         (STATIC_BUF_SIZE): Define.
124885         (quotearg_n_options): Use only statically allocated storage when
124886         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
124887         than STATIC_BUF_SIZE.
124889 2000-07-29  Jim Meyering  <meyering@lucent.com>
124891         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
124892         * lib/dirname.c (dir_name): Likewise.
124894         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
124895         `/'.
124897         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
124898         (dir_name): Assert that there are no trailing slashes.
124900 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
124902         * lib/mbswidth.h (mbswidth): Add a flags argument.
124903         (mbswidth): New declaration.
124904         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
124905         * lib/mbswidth.c (mbswidth): Add a flags argument.
124906         (mbsnwidth): New function.
124908 2000-07-24  Jim Meyering  <meyering@lucent.com>
124910         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
124912 2000-07-23  Paul Eggert  <eggert@twinsun.com>
124914         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
124916 2000-07-23  Paul Eggert  <eggert@twinsun.com>
124918         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
124919         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
124920         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
124921         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
124922         invoke multibyte primitives.
124924 2000-07-23  Paul Eggert  <eggert@twinsun.com>
124926         * lib/quotearg.c:
124927         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
124928         so that mbstate_t is always defined.
124930         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
124931         be 1 in at least one GCC installation, and this configuration
124932         error is likely to be common.  Ignoring MB_LEN_MAX hurts
124933         performance on hosts that have mbrtowc but have only unibyte
124934         locales, but I assume these hosts are rare.
124936 2000-07-23  Paul Eggert  <eggert@twinsun.com>
124938         * lib/mbswidth.c (_XOPEN_SOURCE):
124939         Don't define; this causes problems on Solaris 7.
124940         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
124942 2000-07-23  Jim Meyering  <meyering@lucent.com>
124944         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
124945         too: getgrgid, getpwuid, getuid.
124947 2000-07-23  Jim Meyering  <meyering@lucent.com>
124949         * lib/basename.c (base_name): Add an assertion.
124951 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
124953         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
124954         shadow its mbsinit function.
124956 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
124958         * lib/mbswidth.h: New file.
124959         * lib/mbswidth.c: New file.
124960         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
124961         (noinst_HEADERS): Add mbswidth.h.
124963 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
124965         * lib/config.charset: Add support for FreeBSD. Improve support for
124966         HP-UX and IRIX 6.
124968 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
124970         * m4/mbswidth.m4: New file.
124971         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
124973 2000-07-15  Jim Meyering  <meyering@lucent.com>
124975         * lib/makepath.c: Include quote.h.
124976         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
124977         corresponding argument in a `quote (...)' call.
124978         Give better diagnostics.
124980         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
124981         (noinst_HEADERS): Add quote.h.
124983         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
124984         from tar's src/misc.c.
124985         * lib/quote.h: New file.  Prototypes for same.
124987 2000-07-14  Paul Eggert  <eggert@twinsun.com>
124989         From a suggestion by Bruno Haible.
124990         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
124991         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
124992         to decide whether to define the BeOS workaround macro;
124993         this adjusts to the change to AC_MBSTATE_T.
124995 2000-07-14  Jim Meyering  <meyering@lucent.com>
124997         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
124998         jm_AC_TYPE_UINTMAX_T.
125000 2000-07-13  Paul Eggert  <eggert@twinsun.com>
125002         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
125004         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
125005         quotearg_buffer_restyled): Add support for
125006         clocale_quoting_style.  Undo previous change to
125007         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
125008         and "{RIGHT QUOTATION MARK}" msgids.
125010 2000-07-10  Paul Eggert  <eggert@twinsun.com>
125012         From a suggestion by Bruno Haible.
125013         * m4/mbstate_t.m4 (AC_MBSTATE_T):
125014         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
125015         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
125016         and mbstate_t, to a single-part test that simply defines mbstate_t.
125017         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
125018         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
125020 2000-07-10  Jim Meyering  <meyering@lucent.com>
125022         * m4/strerror_r.m4: Mirror the correction made in autoconf.
125024         * m4/gnu-source.m4: Output to confdefs.h directly.
125025         Suggestion from Akim Demaille.
125027 2000-07-09  Paul Eggert  <eggert@twinsun.com>
125029         The old behavior of quoting `like this' doesn't look good with
125030         newer, ISO-style fonts.  See:
125031         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
125033         Instead, quote "like this" by default.  Let the translator
125034         tailor the locale-specific quoting behavior by providing
125035         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
125037         * lib/quotearg.c (N_): New macro.
125038         (gettext_default): New function.
125039         (quotearg_buffer_restyled): Use
125040         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
125041         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
125043 2000-07-09  Jim Meyering  <meyering@lucent.com>
125045         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
125046         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
125048         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
125049         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
125051 2000-07-09  Jim Meyering  <meyering@lucent.com>
125053         * lib/Most files: Update copyright dates to include 2000.
125055 2000-07-08  Jim Meyering  <meyering@lucent.com>
125057         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
125058         if not defined.
125059         (xgethostname): Remove now-unnecessary #ifdef.
125060         Move declaration of `err' into loop where it's used.
125062 2000-07-05  Paul Eggert  <eggert@twinsun.com>
125063         and Bruno Haible  <haible@clisp.cons.org>
125065         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
125066         only if the test for an object-type mbstate_t fails.  This
125067         prevents us from mistakenly reporting that mbstate_t is a
125068         system object type after we "#define mbstate_t int" to work
125069         around its lack.
125071 2000-07-05  Paul Eggert  <eggert@twinsun.com>
125072         and Bruno Haible  <haible@clisp.cons.org>
125074         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
125076 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
125078         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
125079         to strerror_r.
125080         Include <ctype.h> for use of isalpha.
125082 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
125084         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
125085         by allocating a larger buffer. Test the gethostname return value for
125086         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
125087         returns an error and ENAMETOOLONG isn't defined.
125089 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
125091         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
125092         dimension.
125094 2000-07-04  Jim Meyering  <meyering@lucent.com>
125096         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
125097         of the deprecated AC_CHECKING.
125099 2000-07-04  Jim Meyering  <meyering@lucent.com>
125101         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
125102         Reported by Bruno Haible.
125104 2000-07-04  Jim Meyering  <meyering@lucent.com>
125106         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
125107         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
125108         lacks mbrtowc.
125110 2000-07-03  Paul Eggert  <eggert@twinsun.com>
125112         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
125113         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
125115 2000-07-03  Paul Eggert  <eggert@twinsun.com>
125116         and Bruno Haible  <haible@clisp.cons.org>
125118         * lib/quotearg.c (mbrtowc):
125119         Assign to *pwc, and return 1 only if result is nonzero.
125120         (iswprint): Use ISPRINT when substituting our own mbrtowc.
125122 2000-07-03  Jim Meyering  <meyering@lucent.com>
125124         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
125126 2000-07-03  Jim Meyering  <meyering@lucent.com>
125128         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
125129         This is necessary to get a definition of e.g., UTMP_FILE on
125130         HP-UX 10.20.
125131         From Bob Proulx.
125133 2000-07-02  Jim Meyering  <meyering@lucent.com>
125135         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
125137         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
125138         AC_LIBOBJ(function_name).
125139         * m4/chown.m4: Likewise.
125140         * m4/fnmatch.m4: Likewise.
125141         * m4/ftruncate.m4: Likewise.
125142         * m4/getgroups.m4: Likewise.
125143         * m4/getline.m4: Likewise.
125144         * m4/group-member.m4: Likewise.
125145         * m4/jm-macros.m4: Likewise.
125146         * m4/lstat.m4: Likewise.
125147         * m4/malloc.m4: Likewise.
125148         * m4/memcmp.m4: Likewise.
125149         * m4/nanosleep.m4: Likewise.
125150         * m4/putenv.m4: Likewise.
125151         * m4/realloc.m4: Likewise.
125152         * m4/regex.m4: Likewise.
125153         * m4/stat.m4: Likewise.
125154         * m4/strftime.m4: Likewise.
125156 2000-07-02  Jim Meyering  <meyering@lucent.com>
125158         * lib/quotearg.c (mbstate_t): Don't define here.
125160 2000-07-02  Jim Meyering  <meyering@lucent.com>
125162         * lib/nanosleep.c (SIGCONT): Define if not already defined.
125164 2000-07-01  Jim Meyering  <meyering@lucent.com>
125166         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
125168 2000-07-01  Jim Meyering  <meyering@lucent.com>
125170         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
125171         problem.
125173 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
125175         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
125176         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
125178 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
125180         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
125181         per change in ../m4/ls-mntd-fs.m4.
125182         (read_filesystem_list): Ignore symbolic links.
125184 2000-06-29  Jim Meyering  <meyering@lucent.com>
125186         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
125187         for declaration of strcmp.
125189         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
125191         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
125192         Avoid warning by casting result to `char *' to remove `const'.
125194 2000-06-28  Jim Meyering  <meyering@lucent.com>
125196         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
125197         included by quotearg.c, for which we perform this test.  From
125198         Bruno Haible.
125200 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
125202         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
125203         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
125204         <utmpx.h> exists, put readutmp.o into LIBOBJS.
125206 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
125208         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
125210 2000-06-26  Paul Eggert  <eggert@twinsun.com>
125212         savedir now sets errno on failure and invokes xmalloc to get memory.
125213         Fix a couple of other minor bugs while we're at it.
125215         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
125216         (NAMLEN): Remove macro.
125217         (malloc, realloc): Remove decls.
125218         (stpcpy): Likewise.
125219         ("xalloc.h"): Include.
125220         (NAME_SIZE_DEFAULT): New macro.
125221         (savedir): Use xmalloc / xrealloc to allocate memory.
125222         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
125223         Skip "" directory entries.
125224         Use strlen to calculate directory entry length, since the old method
125225         is rarely used these days and isn't worth supporting.
125226         Don't use a pointer after freeing it.
125227         Check for integer overflow when calculating allocation size.
125228         Use memcpy to copy entries, instead of stpcpy.
125229         Set errno properly when returning NULL.
125230         Check for readdir error.
125232 2000-06-26  Jim Meyering  <meyering@lucent.com>
125234         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
125236 2000-06-25  Jim Meyering  <meyering@lucent.com>
125238         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
125239         Linux header bug when _XOPEN_SOURCE is defined to 500.
125241 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
125243         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
125244         deficiency.
125246 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
125248         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
125249         Include xalloc.h.
125250         Don't include <stdlib.h>.  Don't declare malloc, realloc.
125252 2000-06-24  Jim Meyering  <meyering@lucent.com>
125254         * m4/strerror_r.m4: Revive this file -- to try out an experimental
125255         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
125256         for which strerror does return char*, but which lacks a conveniently
125257         accessible declaration of the function.  If the compile-test says
125258         strerror_r doesn't work, then resort to a `run'-test that works on
125259         BeOS and segfaults on DEC Unix.
125261 2000-06-24  Jim Meyering  <meyering@lucent.com>
125263         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
125265 2000-06-23  Paul Eggert  <eggert@twinsun.com>
125267         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
125268         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
125270 2000-06-23  Paul Eggert  <eggert@twinsun.com>
125272         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
125273         (mbrtowc, mbstate_t): Define substitutes if
125274         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
125275         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
125276         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
125278 2000-06-23  Jim Meyering  <meyering@lucent.com>
125280         * m4/afs.m4: Add missing AC_MSG_RESULT.
125281         Reported by Bruno Haible.
125283         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
125284         Suggestion from Bruno Haible.
125286 2000-06-23  Jim Meyering  <meyering@lucent.com>
125288         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
125290 2000-06-21  Jim Meyering  <meyering@lucent.com>
125292         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
125294 2000-06-21  Jim Meyering  <meyering@lucent.com>
125296         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
125297         (noinst_HEADERS): Add getstr.h.
125299         * lib/getline.c (getstr): Move into a separate file.
125300         * lib/getstr.c (getstr): New file, extracted from getline.c, with
125301         the following changes: new parameter, delim2; both delim[12]
125302         parameters have type `int', not `char'.  The latter would lose
125303         with 8-bit delimiters.
125304         * lib/getstr.h: New file.
125306 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
125308         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
125309         than 1024, return a memory chunk of least possible size, instead
125310         of size PATH_MAX + 2. In the loop, increment the size proportionally.
125311         Use free/xmalloc instead of xrealloc to avoid copying for very long
125312         paths.
125314 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
125316         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
125317         the empty string.
125319 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
125321         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
125322         address, not strdup.  Include <stdlib.h> and don't declare free().
125324 2000-06-19  Jim Meyering  <meyering@lucent.com>
125326         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
125328 2000-06-18  Jim Meyering  <meyering@lucent.com>
125330         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
125332         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
125333         `checking whether...' message to be consistent with that of the
125334         lstat test.
125336 2000-06-18  Jim Meyering  <meyering@lucent.com>
125338         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
125339         Besides, these days every porting target provides a mkdir function.
125341         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
125342         needed. (this snippet comes from src/system.h).
125344 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
125346         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
125348 2000-06-15  Paul Eggert  <eggert@twinsun.com>
125350         * lib/human.c (adjust_value): New function.
125351         (human_readable_inexact): Apply rounding style even when
125352         printing approximate values.
125354 2000-06-14  Paul Eggert  <eggert@twinsun.com>
125356         * lib/human.c (human_readable_inexact): Allow an input block
125357         size that is not a multiple of the output block size, and vice versa.
125358         Reported by Piergiorgio Sartor.
125360 2000-06-14  Paul Eggert  <eggert@twinsun.com>
125362         * lib/getdate.y (get_date): Apply relative times after time
125363         zone indicator, not before.  Reported by Todd A. Jacobs.
125365 2000-06-13  Jim Meyering  <meyering@lucent.com>
125367         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
125369         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
125371 2000-06-12  Paul Eggert  <eggert@twinsun.com>
125373         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
125375 2000-06-12  Jim Meyering  <meyering@lucent.com>
125377         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
125378         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
125379         optional argument.
125380         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
125381         the optional argument, `lib'.
125383 2000-06-08  Jim Meyering  <meyering@lucent.com>
125385         * m4/largefile.m4: Remove file (now that it's part of autoconf).
125387 2000-06-04  Paul Eggert  <eggert@twinsun.com>
125389         Rewrite largefile configuration so that we don't need to run
125390         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
125391         AC_CANONICAL_HOST in configure.in -- jmm]
125393         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
125394         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
125395         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
125396         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
125397         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
125398         All uses changed.
125399         Instead of inspecting the output of getconf, try to compile the
125400         test program without and with the macro definition.
125401         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
125402         for getconf.  Instead, check for the needed flags by compiling
125403         test programs.
125405 2000-06-04  Paul Eggert  <eggert@twinsun.com>
125407         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
125409 2000-06-04  Jim Meyering  <meyering@lucent.com>
125411         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
125412         SunOS 4.1.4 for which gid_t is an unsigned type.
125414 2000-06-03  Jim Meyering  <meyering@lucent.com>
125416         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
125417         now that autoconf requires that.
125419         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
125420         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
125421         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
125423 2000-06-03  Jim Meyering  <meyering@lucent.com>
125425         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
125427 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
125429         * m4/glibc21.m4: New file.
125430         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
125432 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
125434         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
125435         newer, don't install charset.alias.
125436         * lib/config.charset: Change the Linux/glibc rules so they become empty
125437         on glibc-2.1 or newer.
125439 2000-06-02  Jim Meyering  <meyering@lucent.com>
125441         * lib/mountlist.c: Back out last change.  Instead, do this...
125442         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
125443         me_dummy member using the same `ignore'-testing code.
125444         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
125445         fs_type strings.
125446         From Mark D. Roth.
125448 2000-05-29  Jim Meyering  <meyering@lucent.com>
125450         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
125451         mounts with the `ignore' attribute.  Based on a patch from
125452         Mark D. Roth.
125454 2000-05-28  Jim Meyering  <meyering@lucent.com>
125456         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
125457         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
125458         * m4/stat.m4: Likewise.
125459         * m4/lstat.m4: Likewise.
125460         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
125462         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
125463         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
125465 2000-05-26  Jim Meyering  <meyering@lucent.com>
125467         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
125469 2000-05-24  Jim Meyering  <meyering@lucent.com>
125471         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
125472         autoconf requires that.
125473         * m4/lib-check.m4: Likewise.
125474         * m4/jm-macros.m4: Likewise.
125475         * m4/strftime.m4: Likewise.
125477         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
125478         AC_CHECK_DECLS, now that autoconf requires that.
125480 2000-05-22  Jim Meyering  <meyering@lucent.com>
125482         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
125483         * m4/lstat.m4: Likewise.
125485 2000-05-22  Jim Meyering  <meyering@lucent.com>
125487         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
125489 2000-05-20  Jim Meyering  <meyering@lucent.com>
125491         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
125492         (jm_PREREQ): Use it.
125494 2000-05-18  Jim Meyering  <meyering@lucent.com>
125496         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
125497         back, too, since it may have been modified by allocate_entry.
125498         (hash_delete): Rewrite to use neither the assignment operator
125499         nor the comma operator in an if-expression.
125501 2000-05-15  Paul Eggert  <eggert@twinsun.com>
125503         * lib/closeout.c:
125504         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
125505         Remove; no longer needed.
125506         "quotearg.h": Add include.
125507         (file_name): Do not bother to explicitly initialize to NULL; it's less
125508         efficient on some hosts.
125509         (close_stdout_status): Remove test as to whether stdout was already
125510         closed; it breaks for the case "echo x | sort >&-".
125511         Quote file name colons.
125512         Do not assume that _("write error") lacks format strings.
125514 2000-05-15  Jim Meyering  <meyering@lucent.com>
125516         * lib/version-etc.c (version_etc_copyright): Update the copyright
125517         string used in all --version output.
125519 2000-05-14  Jim Meyering  <meyering@lucent.com>
125521         * lib/closeout.c (close_stdout_set_file_name): New function.
125522         (close_stdout_status): Use new file-scoped global.
125523         Return right away if fstat says the stdout file descriptor is invalid.
125524         * lib/closeout.h (close_stdout_set_file_name): Declare.
125526 2000-05-10  Jim Meyering  <meyering@lucent.com>
125528         * lib/closeout.c [default_exit_status]: New file-scoped variable.
125529         (close_stdout_set_status): New function.
125530         * lib/closeout.h (close_stdout_set_status): Declare.
125532 2000-05-09  Jim Meyering  <meyering@lucent.com>
125534         * m4/gettext.m4: Rename this...
125535         * m4/libintl.m4: ...to this.
125537 2000-05-08  Jim Meyering  <meyering@lucent.com>
125539         * lib/long-options.c: Don't include closeout.h.
125540         (parse_long_options): Don't call close_stdout for --version.
125542 2000-05-06  Paul Eggert  <eggert@twinsun.com>
125544         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
125545         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
125546         2.1.3 bug.  This avoids a clash when files like regex.c define
125547         _GNU_SOURCE.
125549 2000-05-06  Jim Meyering  <meyering@lucent.com>
125551         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
125552         (AC_REPLACE_FUNCS): Add strnlen.
125554         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
125555         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
125557         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
125558         AC_SEARCH_LIBS call for nanosleep.
125559         (LIB_NANOSLEEP): Set and AC_SUBST.
125561 2000-05-06  Jim Meyering  <meyering@lucent.com>
125563         * lib/strnlen.c: Undefine __strnlen and strnlen.
125564         [!weak_alias]: Define __strnlen to strnlen.
125566         * lib/atexit.c: New file, from libiberty.
125568 2000-05-06  Jim Meyering  <meyering@lucent.com>
125570         * lib/closeout.c (close_stdout_status): Also check for errors on the
125571         stderr stream.
125573 2000-05-05  Jim Meyering  <meyering@lucent.com>
125575         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
125576         AC_SEARCH_LIBS call for clock_gettime.
125577         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
125579         * m4/search-libs.m4: Update from autoconf.
125581         su doesn't work on Solaris 2.6.
125582         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
125583         <shadow.h>.  Reported by Dragos Harabor.
125585 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
125587         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
125588         memcpy instead of xmalloc, xrealloc, path_concat.
125589         (locale_charset): Treat empty environment variables as absent.
125590         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
125592 2000-05-04  Jim Meyering  <meyering@lucent.com>
125594         * lib/getopt.c: Update from glibc.
125595         * lib/obstack.c: Likewise.
125596         * lib/obstack.h: Likewise.
125597         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
125598         file
125600         * lib/regex.h: Likewise.
125601         * lib/strndup.c: Likewise.
125602         * lib/strnlen.c: New file, from glibc.
125604 2000-05-03  Jim Meyering  <meyering@lucent.com>
125606         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
125608 2000-05-02  Paul Eggert  <eggert@twinsun.com>
125610         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
125611         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
125612         compile-time test, rather than inspecting host and OS, to
125613         decide whether to define _LARGEFILE_SOURCE.
125615 2000-05-01  Jim Meyering  <meyering@lucent.com>
125617         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
125619         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
125620         Based on a patch from Bruno Haible.
125622 2000-05-01  Jim Meyering  <meyering@lucent.com>
125624         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
125626 2000-04-29  Jim Meyering  <meyering@lucent.com>
125628         * lib/path-concat.c: Declare strdup only if it's not defined.
125629         * lib/canon-host.c: Likewise.
125631 2000-04-28  Jim Meyering  <meyering@lucent.com>
125633         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
125634         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
125635         is included first, then limits.h is included by locale.h by libintl.h.
125636         From John David Anglin.
125638 2000-04-25  Jim Meyering  <meyering@lucent.com>
125640         * lib/makepath.c (S_IRWXUGO): Define.
125641         (make_path): Always perform explicit chmod if MODE specifies any
125642         of the `special' permission bits.  Prompted by a bug report against
125643         install from Mate Wierdl and Joost van Baal.
125645 2000-04-18  Jim Meyering  <meyering@lucent.com>
125647         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
125648         (jm_PREREQ): Use it.
125650 2000-04-18  Jim Meyering  <meyering@lucent.com>
125652         * lib/README: New file.
125654         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
125655         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
125657 2000-04-17  Jim Meyering  <meyering@lucent.com>
125659         Get it right :-)
125660         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
125661         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
125662         Suggestion from Akim Demaille.
125664 2000-04-17  Jim Meyering  <meyering@lucent.com>
125666         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
125667         the definition of it to rpl_strftime also defined-away the system's
125668         declaration.
125670 2000-04-15  Jim Meyering  <meyering@lucent.com>
125672         Use `C' to denote so-called `contiguous' files, the same way
125673         that tar does.
125674         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
125675         (ftypelet): Use S_ISCTG.
125676         From Michael Deutschmann.
125678 2000-04-14  Jim Meyering  <meyering@lucent.com>
125680         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
125681         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
125682         clobbered.
125684 2000-04-14  Jim Meyering  <meyering@lucent.com>
125686         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
125688 2000-04-13  Jim Meyering  <meyering@lucent.com>
125690         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
125691         AH_VERBATIM to insert required #ifndef into config.h.in.
125692         Suggestion from Akim Demaille.
125694 2000-04-12  Jim Meyering  <meyering@lucent.com>
125696         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
125697         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
125698         Christian Krackowizer.
125700         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
125701         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
125702         (AC_SYS_LARGEFILE): Require.
125703         (AM_C_PROTOTYPES): Require.
125705 2000-04-08  Jim Meyering  <meyering@lucent.com>
125707         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
125708         names don't conflict.  Reported by Eli Zaretskii.
125710 2000-04-07  Jim Meyering  <meyering@lucent.com>
125712         * lib/putenv.c: Move inclusion of errno.h so it follows that of
125713         sys/types.h, to work around system header problems on AIX 3.2.5.
125714         From Bruno Haible.
125716 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
125718         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
125719         bug.  Deal with the different error behavior of Irix iconv.
125721 2000-04-05  Paul Eggert  <eggert@twinsun.com>
125723         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
125724         IRIX if the installer said otherwise.
125726 2000-04-05  Jim Meyering  <meyering@lucent.com>
125728         Portability tweaks required for ultrix4.3.
125729         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
125730         (jm_CHECK_DECLS): Add getutent to the list of functions.
125731         (_jm_DECL_HEADERS): Add utmpx.h.
125732         From John David Anglin.
125734         * m4/strftime.m4: Back out the 2000-04-02 change.
125735         Instead of that change, simply undefine putenv in the test program.
125737 2000-04-05  Jim Meyering  <meyering@lucent.com>
125739         Portability tweaks required for ultrix4.3.
125740         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
125741         getutent.
125742         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
125743         * lib/canon-host.c: Declare strdup.
125744         * lib/path-concat.c: Likewise.
125745         From John David Anglin.
125747 2000-04-04  Jim Meyering  <meyering@lucent.com>
125749         Be more DOS 8.3-friendly.
125750         * lib/ref-add.sin: Renamed from ref-add.sed.in.
125751         * lib/ref-del.sin: Renamed from ref-del.sed.in.
125752         * lib/Makefile.am: Reflect renaming.
125753         Reported by Eli Zaretskii.
125755         Use a temporary file name that won't clash with `charset.alias'
125756         in the DOS 8.3 name space.
125757         * lib/Makefile.am (charset_tmp): Define.
125758         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
125759         (uninstall-local): Likewise.
125760         Reported by Eli Zaretskii.
125762 2000-04-03  Jim Meyering  <meyering@lucent.com>
125764         * m4/gettext.m4: Fix typo in comment.
125766         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
125767         textutils/configure.in).  Suggestion from Paul Eggert.
125768         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
125770 2000-04-02  Paul Eggert  <eggert@twinsun.com>
125772         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
125773         variable in the shell rather than using putenv, which isn't
125774         portable.  This avoids the configure-time inter-test dependency
125775         on the potentially-renamed putenv function.
125777 2000-03-30  Paul Eggert  <eggert@twinsun.com>
125779         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
125780         before checking struct stat.st_blksize, so that
125781         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
125783 2000-03-29  Paul Eggert  <eggert@twinsun.com>
125785         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
125786         since strftime.c uses HAVE_STRFTIME to decide whether to use
125787         the underlying strftime.
125789 2000-03-29  Paul Eggert  <eggert@twinsun.com>
125791         * lib/time/strftime.c (my_strftime): Make sure we call the system
125792         strftime, not ourselves, when invoking the underlying strftime.
125794 2000-03-24  Jim Meyering  <meyering@lucent.com>
125796         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
125797         (charset_alias): Define.
125798         (install-exec-local): Factor out common code.
125799         (uninstall-local): Split lines longer than 80.
125800         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
125801         (SUFFIXES): Define.
125802         (.sed.in.sed): New rule.  Don't redirect directly to $@.
125803         (CLEANFILES): Add ref-add.sed and ref-del.sed.
125805 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
125807         * lib/config.charset: Output a line containing "Packages using this
125808         file".
125809         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
125810         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
125811         ref-del.sed): New rules.
125813 2000-03-17  Jim Meyering  <meyering@lucent.com>
125815         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
125816         Otherwise, include <strings.h>
125818 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
125820         * lib/unicodeio.c (utf8_wctomb): New function.
125821         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
125822         format instead of in UCS-4 with platform dependent endianness.
125824 2000-03-10  Jim Meyering  <meyering@lucent.com>
125826         * m4/lib-check.m4: Look for getspnam in -lgen, too.
125827         From Marco Franzen.
125829 2000-03-07  Paul Eggert  <eggert@twinsun.com>
125831         * lib/savedir.c (savedir): Work even if directory size is
125832         negative; this can happen with some screwy NFS configurations.
125834 2000-03-06  Jim Meyering  <meyering@lucent.com>
125836         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
125837         if it's NULL (because we ran out of memory).  From Bruno Haible.
125839 2000-03-05  Jim Meyering  <meyering@lucent.com>
125841         * lib/localcharset.c ("path-concat.h"): Include.
125842         (get_charset_aliases): Use path_concat instead of ANSI string
125843         concatenation.
125845         * lib/unicodeio.h (PARAMS): Define.
125846         Use it to guard prototype.
125848 2000-03-04  Jim Meyering  <meyering@lucent.com>
125850         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
125851         for lib/localcharset.c.
125853 2000-03-04  Jim Meyering  <meyering@lucent.com>
125855         * lib/Makefile.am (install-exec-local): Create $(libdir) before
125856         installing into it.
125857         (uninstall-local): Uncomment this rule so `make distcheck' works
125858         once again.
125860         * lib/unicodeio.c (<errno.h>): Include it.
125861         (errno): Declare if not defined.
125863         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
125865         * lib/config.charset: New version, incorporating remarks from a linux
125866         i18n mailing list.  From Bruno Haible.
125868 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
125870         * m4/codeset.m4: New file.
125871         * m4/iconv.m4: New file.
125872         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
125874 2000-03-03  Jim Meyering  <meyering@lucent.com>
125876         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
125878 2000-03-02  Jim Meyering  <meyering@lucent.com>
125880         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
125881         the messages come out on separate lines.
125883         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
125884         rather than jm_CHECK_DECLARATIONS.
125885         * m4/decl.m4: Remove now-unused file.
125887         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
125888         geteuid.
125890 2000-03-02  Jim Meyering  <meyering@lucent.com>
125892         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
125894 2000-03-01  Jim Meyering  <meyering@lucent.com>
125896         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
125897         * lib/unicodeio.c: Likewise.
125899 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
125901         * lib/config.charset: New file.
125902         * lib/localcharset.c: New file.
125903         * lib/unicodeio.h, lib/unicodeio.c: New files.
125904         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
125905         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
125906         (noinst_HEADERS): Add unicodeio.h.
125907         (all-local, install-exec-local, charset.alias): New targets.
125909 2000-02-28  Paul Eggert  <eggert@twinsun.com>
125911         * lib/quotearg.c (ALERT_CHAR): New macro.
125912         (quotearg_buffer_restyled): Use it.
125914 2000-02-27  Jim Meyering  <meyering@lucent.com>
125916         * m4/check-decl.m4: Add getenv to the list.
125918 2000-02-27  Jim Meyering  <meyering@lucent.com>
125920         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
125921         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
125923         * lib/backupfile.c: Guard inclusion of stdlib.h with
125924         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
125925         Declare malloc if needed.
125927         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
125928         `#ifndef HAVE_DECL..'
125929         now that autoconf always defines the HAVE_DECL_ symbols.
125930         * lib/human.c: Likewise.
125931         * lib/same.c: Likewise.
125932         * lib/strtoumax.c: Likewise.
125934         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
125935         declaration check was not run.
125936         * lib/hash.c: Likewise.
125937         * lib/human.c: Likewise.
125938         * lib/same.c: Likewise.
125939         * lib/strtoumax.c: Likewise.
125941         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
125942         `.', then first look up the entire `.'-containing string as a login
125943         name.
125945 2000-02-23  Jim Meyering  <meyering@lucent.com>
125947         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
125948         in place of my hack.
125950 2000-02-18  Paul Eggert  <eggert@twinsun.com>
125952         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
125953         (textint): New typedef.
125954         (parser_control): Member year changed from int to textint.
125955         All uses changed.
125956         (YYSTYPE): Removed; replaced by %union with int and textint members.
125957         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
125958         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
125959         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
125960         (tSNUMBER, tUNUMBER): Now of type <textintval>.
125961         (date, number, to_year): Use width of number in digits, not its value,
125962         to determine whether it's a 2-digit year, or a 2-digit time.
125963         (yylex): Store number of digits of numeric tokens.
125964         Reported by John Kendall.
125966         (parser_control): Changed from struct parser_control to typedef (for
125967         consistency).  All uses changed.
125969         (tID): Removed; not used.
125970         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
125972 2000-02-14  Paul Eggert  <eggert@twinsun.com>
125974         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
125975         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
125977 2000-02-12  Jim Meyering  <meyering@lucent.com>
125979         * lib/userspec.c (ISDIGIT): Define it.
125980         (isdigit): Remove definition.
125981         (is_number): Use ISDIGIT, not isdigit.
125982         <libintl.h>: Include.
125983         (_ and N_): Define.
125984         (parse_user_spec): Mark translatable strings.
125986 2000-02-10  Jim Meyering  <meyering@lucent.com>
125988         With these changes, nanosleep.[ch] are finally enough like the other
125989         lib/* replacement files to compile on a few more losing systems.
125991         * lib/nanosleep.h: Don't include config.h.
125992         Remove prototype from declaration of nanosleep.
125993         (PARAMS): Remove now-unneeded definition.
125994         * lib/nanosleep.c: #undef nanosleep.
125995         (rpl_nanosleep): Rename from nanosleep.
125997 2000-02-10  Jim Meyering  <meyering@lucent.com>
125999         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
126000         gnu_nanosleep to rpl_nanosleep.
126002 2000-02-09  Jim Meyering  <meyering@lucent.com>
126004         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
126005         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
126007 2000-02-08  Akim Demaille  <akim@epita.fr>
126009         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
126010         `[' and `]' and remove uses of `changequote'.
126011         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
126012         (AC_SYS_LARGEFILE): Likewise.
126013         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
126014         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
126015         of changequote.
126016         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
126017         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
126018         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
126019         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
126021 2000-02-05  Jim Meyering  <meyering@lucent.com>
126023         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
126024         Remove explicit use of AC_HEADER_TIME.  It is required by
126025         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
126026         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
126027         in autoconf whereby the expansion of the latter ended up preceding
126028         the expansion of its prerequisite, AC_HEADER_TIME.
126029         Reported by Volker Borchert.
126031 2000-02-03  Jim Meyering  <meyering@lucent.com>
126033         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
126035 2000-02-03  Jim Meyering  <meyering@lucent.com>
126037         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
126038         rather than with `#if HAVE_UTMPNAME'.
126040 2000-02-02  Jim Meyering  <meyering@lucent.com>
126042         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
126043         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
126044         Reported by Eli Zaretskii.
126046 2000-02-01  Jim Meyering  <meyering@lucent.com>
126048         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
126050 2000-01-31  Jim Meyering  <meyering@lucent.com>
126052         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
126053         functions.  Add the time.h and sys/time.h headers along with the
126054         AC_REQUIRE'ment of AC_HEADER_TIME.
126056 2000-01-31  Jim Meyering  <meyering@lucent.com>
126058         * lib/nanosleep.h (nanosleep): Guard declaration with
126059         `#if ! HAVE_DECL_NANOSLEEP'.
126060         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
126061         the declaration in that vendor's sys/timers.h.
126062         Reported by Christian Krackowizer.
126064         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
126065         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
126066         (ISPRINT): Likewise.
126067         Reported by Tom Tromey.
126069 2000-01-30  Jim Meyering  <meyering@lucent.com>
126071         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
126073         * m4/prereq.m4 (utmp_includes): Define.
126074         Check for ut_user and ut_name members in both struct utmpx
126075         and struct utmp.
126077 2000-01-30  Jim Meyering  <meyering@lucent.com>
126079         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
126080         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
126081         header files where only utmpx.ut_user is declared.
126083         * lib/readutmp.h (UT_USER): Define.
126085 2000-01-29  Jim Meyering  <meyering@lucent.com>
126087         * m4/lib-check.m4: New file containing library-related checks from
126088         fileutils and sh-utils (textutils had none).
126090 2000-01-28  Jim Meyering  <meyering@lucent.com>
126092         * m4/perl.m4: Change format of warning message to look more like that
126093         from the missing script.  Suggestion from François Pinard.
126095 2000-01-25  Jim Meyering  <meyering@lucent.com>
126097         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
126098         well as time.h in the compile check.
126099         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
126100         Fix typo in cross-compiling case: s/yes/no/.
126102 2000-01-23  Jim Meyering  <meyering@lucent.com>
126104         * m4/jm-macros.m4: Move df-related tests here from
126105         fileutils/configure.in
126107         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
126108         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
126110         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
126111         s/space/ac_fsusage_space/.
126112         (jm_FILE_SYSTEM_USAGE): Take two parameters.
126114         * m4/ftruncate.m4: New file (derived from part of
126115         fileutils/configure.in).
126116         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
126117         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
126119         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
126120         AC_SUBST these here, rather than just in sh-util/configure.in, so
126121         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
126122         all the same.
126123         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
126124         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
126125         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
126126         (AC_SUBST(POW_LIBM)): Likewise.
126127         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
126129 2000-01-23  Jim Meyering  <meyering@lucent.com>
126131         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
126132         obstack.c.
126134 2000-01-22  Jim Meyering  <meyering@lucent.com>
126136         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
126138         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
126140         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
126141         configure.in
126142         (AC_CHECK_HEADERS): Likewise for sh-utils.
126143         (AC_CHECK_HEADERS): Likewise for textutils.
126144         Merge the three lists of headers.
126146         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
126147         from fileutils' configure.in.
126149         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
126150         code. Moved tests into their own function (_jm_DECL_HEADERS) in
126151         check-decl.m4.
126153         * m4/check-decl.m4: Use #if rather than #ifdef.
126154         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
126155         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
126156         (_jm_DECL_HEADERS): Define new function.
126157         (jm_CHECK_DECLARATIONS): Require it.
126159 2000-01-22  Jim Meyering  <meyering@lucent.com>
126161         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
126162         [! HAVE_DECL_STRTOULL]: Declare strtoull.
126163         Required for some AIX systems.  Reported by Christian Krackowizer.
126164         [TESTING] (main): New function.
126166         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
126167         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
126168         letters.
126170         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
126171         iswprint.
126173         * lib/strverscmp.c (ISDIGIT): Define.
126174         (strverscmp): Use ISDIGIT, not isdigit.
126176 2000-01-19  Jim Meyering  <meyering@lucent.com>
126178         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
126179         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
126180         defines `struct timespec' in <sys/time.h>
126182         * m4/c-bs-a.m4: Remove uses of changequote altogether.
126183         Thanks to Akim for explaining.
126185 2000-01-17  Paul Eggert  <eggert@twinsun.com>
126187         * lib/nanosleep.c (nanosleep):
126188         Don't use SA_INTERRUPT to decide whether to call sigaction, as
126189         POSIX.1 doesn't require SA_INTERRUPT and some systems
126190         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
126191         it's been part of POSIX.1 since day 1 (in 1988).
126193 2000-01-17  Jim Meyering  <meyering@lucent.com>
126195         * lib/interlock: Remove unused file.  Reported by François Pinard.
126197 2000-01-16  Paul Eggert  <eggert@twinsun.com>
126199         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
126200         alert, backslash, formfeed, and vertical tab unnecessarily in
126201         shell quoting style.
126203 2000-01-16  Jim Meyering  <meyering@lucent.com>
126205         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
126206         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
126207         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
126208         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
126210 2000-01-16  Jim Meyering  <meyering@lucent.com>
126212         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
126213         because the latter didn't work.
126215 2000-01-15  Jim Meyering  <meyering@lucent.com>
126217         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
126218         (AC_REPLACE_FUNCS): Add memcpy and memset.
126219         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
126220         Add strpbrk.
126221         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
126223 2000-01-12  Jim Meyering  <meyering@lucent.com>
126225         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
126226         (jm_PREREQ): Use it.
126227         (jm_PREREQ_READUTMP): New macro.
126228         (jm_PREREQ): Use it.
126230 2000-01-11  Paul Eggert  <eggert@twinsun.com>
126232         Quote multibyte characters correctly.
126233         * m4/c-bs-a.m4: New file.
126234         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
126235         (jm_PREREQ): Use it.
126237 2000-01-11  Paul Eggert  <eggert@twinsun.com>
126239         * m4/uintmax_t.m4: Port to autoconf 2.13.
126241 2000-01-08  Jim Meyering  <meyering@ascend.com>
126243         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
126244         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
126246 2000-01-04  Jim Meyering  <meyering@ascend.com>
126248         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
126249         jm_STRUCT_DIRENT_D_TYPE.
126250         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
126251         jm_STRUCT_DIRENT_D_INO.
126252         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
126253         jm_STRUCT_UTIMBUF.
126254         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
126255         renamings.
126256         * m4/utime.m4: Likewise.
126258         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
126259         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
126261 2000-01-03  Paul Eggert  <eggert@twinsun.com>
126263         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
126264         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
126266 2000-01-02  Jim Meyering  <meyering@ascend.com>
126268         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
126269         remember if this is necessary.
126271 1999-12-26  Jim Meyering  <meyering@ascend.com>
126273         * m4/jm-macros.m4: Use it here.
126274         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
126276 1999-12-23  Jim Meyering  <meyering@ascend.com>
126278         * m4/jm-macros.m4: Check for clock_gettime (moved from
126279         fileutils/configure.in)
126280         Check for gettimeofday.
126282 1999-12-20  Jim Meyering  <meyering@ascend.com>
126284         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
126285         autoconf-2.14a-1999-12-20.
126287 1999-12-19  Jim Meyering  <meyering@ascend.com>
126289         * m4/lstat-slash.m4: New file.
126290         * m4/jm-macros.m4: Use the new macro:
126291         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
126293 1999-12-07  Jim Meyering  <meyering@ascend.com>
126295         * m4/perl.m4: Require that File::Compare be available, too.
126296         Too many systems seem to lack it.
126298         * m4/strftime.m4: Add checks for most of the cpp macros tested in
126299         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
126301 1999-11-18  Paul Eggert  <eggert@twinsun.com>
126303         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
126304         problem with the QNX 4.25 shell, which doesn't propagate exit
126305         status of failed commands inside shell assignments.
126307 1999-11-17  Jim Meyering  <meyering@ascend.com>
126309         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
126311 1999-11-07  Jim Meyering  <meyering@ascend.com>
126313         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
126315 1999-11-06  Jim Meyering  <meyering@ascend.com>
126317         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
126318         * m4/jm-macros.m4 (jm_MACROS): Use it here.
126320 1999-11-05  Jim Meyering  <meyering@ascend.com>
126322         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
126323         configure.in of textutils, fileutils, and sh-utils into this one
126324         (shared between those packages) file.
126325         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
126326         AC_STRUCT_ST_BLKSIZE.
126328 1999-11-03  Jim Meyering  <meyering@ascend.com>
126330         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
126331         of AC_CHECK_TYPE checks includes unistd.h.
126332         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
126333         Suggestion from Akim Demaille.
126335 1999-10-30  Jim Meyering  <meyering@ascend.com>
126337         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
126338         m4-quoted string.
126339         * m4/ls-mntd-fs.m4: Likewise.
126340         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
126341         * m4/jm-winsz1.m4: Likewise.
126343         * m4/const.m4: Remove file, since the fix made it into the experimental
126344         version of autoconf.
126345         * m4/mktime.m4: Likewise.
126347         * m4/check-type.m4: Remove file, now that the latest version of
126348         AC_CHECK_TYPE takes a third arg to specify additional #includes.
126350         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
126351         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
126352         AC_CHECK_TYPE.
126354 1999-10-04  Jim Meyering  <meyering@ascend.com>
126356         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
126358 1999-09-22  Paul Eggert  <eggert@twinsun.com>
126360         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
126361         2.95.1 bug with HP-UX 10.20.
126363 1999-09-17  Jim Meyering  <meyering@ascend.com>
126365         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
126366         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
126367         due to missing strdup (against sh-utils-2.0).
126369 1999-08-29  Jim Meyering  <meyering@ascend.com>
126371         * m4/jm-macros.m4: Require jm_BISON.
126372         * m4/bison.m4: New file.
126374 1999-08-17  Paul Eggert  <eggert@twinsun.com>
126376         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
126377         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
126379 1999-08-05  Jim Meyering  <meyering@ascend.com>
126381         * m4/getline.m4: Rename test file from conftestdata to conftest.data
126382         to avoid conflicts with `conftest' on 8+3 filesystems.
126383         Suggestion from Eli Zaretskii.
126385 1999-08-04  Jim Meyering  <meyering@ascend.com>
126387         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
126388         fileutils and sh-utils (textutils's getline test was inadequate).
126389         (AM_FUNC_GETLINE): Run this test.
126390         (AC_CHECK_FUNCS): Check for getdelim.
126391         Reported by Bob Proulx.
126393 1999-08-02  Jim Meyering  <meyering@ascend.com>
126395         * m4/jm-macros.m4: Add a comment.
126397 1999-08-01  Paul Eggert  <eggert@twinsun.com>
126399         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
126400         <inttypes.h> defines strtoumax as a macro (and not as a
126401         function).
126403 1999-08-01  Paul Eggert  <eggert@twinsun.com>
126405         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
126406         that we can shift, multiply and divide unsigned long long
126407         values; Ultrix cc can't do it.
126409 1999-08-01  Paul Eggert  <eggert@twinsun.com>
126411         * m4/mktime.m4: New file, which is a preview of what should appear
126412         in the next public autoconf release.
126414 1999-08-01  Paul Eggert  <eggert@twinsun.com>
126416         * m4/lfs.m4: Remove this file.
126417         * m4/largefile.m4: New file.  It contains the old contents of
126418         lfs.m4, except that all names with prefix AC_LFS have been
126419         changed to use the prefix AC_SYS_LARGEFILE instead, to be
126420         compatible with future autoconf versions.  Also, some minor m4
126421         quoting problems have been fixed.
126423 1999-08-01  Paul Eggert  <eggert@twinsun.com>
126425         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
126426         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
126427         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
126428         and simplify the shell code.
126430 1999-08-01  Jim Meyering  <meyering@ascend.com>
126432         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
126433         m4.
126435 1999-07-20  Jim Meyering  <meyering@ascend.com>
126437         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
126439 1999-07-15  Jim Meyering  <meyering@ascend.com>
126441         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
126443 1999-05-22  Jim Meyering  <meyering@ascend.com>
126445         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
126447 1999-05-20  Jim Meyering  <meyering@ascend.com>
126449         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
126450         Add a colon after each `then' in case $4 is empty.
126452 1999-05-16  Jim Meyering  <meyering@ascend.com>
126454         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
126456 1999-05-10  Jim Meyering  <meyering@ascend.com>
126458         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
126460         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
126461         AC_FUNC_MKTIME.
126463 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
126465         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
126467 1999-05-04  Paul Eggert  <eggert@twinsun.com>
126469         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
126470         not CPPFLAGS, so that linking works correctly in IRIX.
126472 1999-04-30  Paul Eggert  <eggert@twinsun.com>
126474         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
126476 1999-04-20  Paul Eggert  <eggert@twinsun.com>
126478         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
126479         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
126480         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
126481         jm_AC_TYPE_UNSIGNED_LONG_LONG.
126482         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
126484         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
126486 1999-04-20  Jim Meyering  <meyering@ascend.com>
126488         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
126489         AC_REPLACE xstroull if necessary.  From Paul Eggert.
126490         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
126492 1999-04-18  Jim Meyering  <meyering@ascend.com>
126494         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
126495         * m4/jm-macros.m4: Use it.
126497 1999-04-06  Jim Meyering  <meyering@ascend.com>
126499         * m4/strftime.m4: Remove test for %f.
126501 1999-03-29  Jim Meyering  <meyering@ascend.com>
126503         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
126504         superset of the AC_TYPE_* checks in the textutils, fileutils,
126505         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
126506         AC_TYPE_PID_T.
126508 1999-03-28  Jim Meyering  <meyering@ascend.com>
126510         * m4/jm-macros.m4: Define GNU_PACKAGE here.
126511         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
126512         replaced e.g., in the *.sh files of the sh-utils.
126514 1999-03-20  Jim Meyering  <meyering@ascend.com>
126516         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
126517         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
126518         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
126520 1999-03-19  Jim Meyering  <meyering@ascend.com>
126522         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
126524 1999-03-12  Jim Meyering  <meyering@ascend.com>
126526         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
126528 1999-03-07  Jim Meyering  <meyering@ascend.com>
126530         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
126531         declared.
126533 1999-02-17  Jim Meyering  <meyering@ascend.com>
126535         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
126536         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
126538 1999-02-07  Jim Meyering  <meyering@ascend.com>
126540         * m4/group-member.m4: New file -- extracted from sh-utils'
126541         configure.in.
126543         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
126544         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
126546 1999-02-06  Jim Meyering  <meyering@ascend.com>
126548         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
126549         * m4/fnmatch.m4: Likewise.
126550         * m4/getgroups.m4: Likewise.
126551         * m4/lstat.m4: Likewise.
126552         * m4/malloc.m4: Likewise.
126553         * m4/putenv.m4: Likewise.
126554         * m4/realloc.m4: Likewise.
126555         * m4/regex.m4: Likewise.
126556         * m4/stat.m4: Likewise.
126557         * m4/strftime.m4: Likewise.
126558         Suggestion from Alain Magloire.
126560         * m4/chown.m4: Use `.$ac_objext', not `.o'.
126561         * m4/fnmatch.m4: Likewise.
126562         * m4/getgroups.m4: Likewise.
126563         * m4/getline.m4: Likewise.
126564         * m4/lstat.m4: Likewise.
126565         * m4/malloc.m4: Likewise.
126566         * m4/memcmp.m4: Likewise.
126567         * m4/putenv.m4: Likewise.
126568         * m4/realloc.m4: Likewise.
126569         * m4/regex.m4: Likewise.
126570         * m4/stat.m4: Likewise.
126571         * m4/strftime.m4: Likewise.
126572         Suggestion from Alain Magloire.
126574         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
126575         an argument.
126577         * m4/regex.m4: Add a run-time Test for proper operation of
126578         re_compile_pattern.
126580 1999-01-31  Jim Meyering  <meyering@ascend.com>
126582         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
126584 1999-01-30  Jim Meyering  <meyering@ascend.com>
126586         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
126588         * m4/jm-mktime.m4: Make this a wrapper around the official
126589         AM_FUNC_MKTIME rather than my private copy, now that the official one
126590         is up to date.
126591         * m4/mktime.m4: Remove file.
126593         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
126594         * m4/uptime.m4: Likewise.
126595         * m4/uintmax_t.m4: Likewise.
126597 1999-01-28  Jim Meyering  <meyering@ascend.com>
126599         * m4/jm-macros.m4: Use jm_AFS.
126600         * m4/afs.m4: New file (from fileutils' configure.in).
126602         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
126603         * m4/chown.m4: Likewise.
126604         * m4/d-ino.m4: Likewise.
126605         * m4/d-type.m4: Likewise.
126606         * m4/fnmatch.m4: Likewise.
126607         * m4/getgroups.m4: Likewise.
126608         * m4/gettext.m4: Likewise.
126609         * m4/jm-mktime.m4: Likewise.
126610         * m4/jm-winsz2.m4: Likewise.
126611         * m4/lcmessage.m4: Likewise.
126612         * m4/ls-mntd-fs.m4: Likewise.
126613         * m4/malloc.m4: Likewise.
126614         * m4/memcmp.m4: Likewise.
126615         * m4/putenv.m4: Likewise.
126616         * m4/realloc.m4: Likewise.
126617         * m4/st_mtim.m4: Likewise.
126618         * m4/strftime.m4: Likewise.
126620 1999-01-16  Jim Meyering  <meyering@ascend.com>
126622         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
126623         (ARGMATCH_DIE_DECL): Define.
126625 1999-01-12  Jim Meyering  <meyering@ascend.com>
126627         * m4/Makefile.am.in: Rewrite to avoid using fmt.
126628         Reported by Lars Hecking.
126630 1999-01-10  Jim Meyering  <meyering@ascend.com>
126632         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
126633         gross kludge.
126634         * m4/inttypes_h.m4: Likewise.
126635         * m4/lstat.m4: Likewise.
126636         * m4/malloc.m4: Likewise.
126637         * m4/readdir.m4: Likewise.
126638         * m4/realloc.m4: Likewise.
126639         * m4/st_dm_mode.m4: Likewise.
126640         * m4/stat.m4: Likewise.
126641         * m4/utimbuf.m4: Likewise.
126642         * m4/utimes.m4: Likewise.
126644         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
126645         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
126646         comments in config.h.in are meaningful.
126648         * m4/jm-macros.m4: Require autoconf-2.13 here.
126650         * m4/regex.m4: By default, don't use the included regex.c on systems
126651         with glibc 2.  Suggestion from Uli Drepper.
126653 1999-01-02  Jim Meyering  <meyering@ascend.com>
126655         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
126657 1998-12-18  Jim Meyering  <meyering@ascend.com>
126659         * m4/Makefile.am.in (Makefile.am): Simplify rule.
126660         Based on a suggestion from Lars Hecking.
126662 1998-11-16  Paul Eggert  <eggert@twinsun.com>
126664         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
126666 1998-11-16  Jim Meyering  <meyering@ascend.com>
126668         * m4/lfs.m4: Double-quote the `uname...` expression.
126670 1998-11-14  Jim Meyering  <meyering@ascend.com>
126672         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
126673         * m4/stat.m4: Likewise.
126675 1998-11-03  Jim Meyering  <meyering@ascend.com>
126677         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
126678         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
126680 1998-10-18  Jim Meyering  <meyering@ascend.com>
126682         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
126684 1998-10-17  Jim Meyering  <meyering@ascend.com>
126686         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
126687         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
126688         calls for those previously hard-coded headers.  Instead, take a new
126689         parameter.
126690         (jm_CHECK_DECLARATIONS): Reflect interface change.
126691         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
126692         (jm_CHECK_DECL_LOCALTIME_R): New macro.
126694         * m4/mktime.m4: Test for spring-forward gap before long-running test.
126696 1998-10-14  Jim Meyering  <meyering@ascend.com>
126698         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
126699         instead of "TZ=America/Vancouver".  From Paul Eggert.
126701 1998-10-11  Jim Meyering  <meyering@ascend.com>
126703         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
126704         This adds a test for a recently added compatibility fix for mktime.c.
126705         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
126707 1998-09-27  Jim Meyering  <meyering@ascend.com>
126709         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
126711         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
126712         ../configure.in, including a change from Gordon Matzigkeit to allow
126713         cross-compiling for the Hurd.
126715         * m4/glibc.m4: New file/macro to test for the GNU C Library
126716         versions 1 and 2.  From Gordon Matzigkeit.
126717         Indent.
126719 1998-09-21  Jim Meyering  <meyering@ascend.com>
126721         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
126723 1998-08-18  Paul Eggert  <eggert@twinsun.com>
126725         Port nanosecond-resolution times to UnixWare 2.1.2 and
126726         pedantic Solaris 2.6.
126728         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
126729         AC_STRUCT_ST_MTIM.
126730         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
126731         Generate name of ns member, instead of just 1 or undef.
126732         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
126734 1998-08-15  Jim Meyering  <meyering@ascend.com>
126736         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
126737         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
126738         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
126739         instead of jm_TYPE_SSIZE_T.
126741 1998-08-12  Jim Meyering  <meyering@ascend.com>
126743         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
126745 1998-08-02  Jim Meyering  <meyering@ascend.com>
126747         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
126748         in acconfig.h manually.
126750 1998-07-31  Paul Eggert  <eggert@twinsun.com>
126752         * m4/st_mtim.m4: New file.
126754 1998-07-28  Jim Meyering  <meyering@ascend.com>
126756         * m4/utimes.m4: Undef stat.
126758 1998-07-25  Jim Meyering  <meyering@ascend.com>
126760         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
126761         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
126763 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
126765         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
126766         uid and gid actually remain unchanged.
126768 1998-07-07  Jim Meyering  <meyering@ascend.com>
126770         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
126772 1998-07-04  Jim Meyering  <meyering@ascend.com>
126774         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
126775         to prove that this macro can be used in packages without regex.c.
126777 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
126779         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
126780         is to be used.
126782 1998-07-03  Jim Meyering  <meyering@ascend.com>
126784         * m4/gettext.m4: Add -lintl if it's found to be necessary.
126786         * m4/gettext.m4: New file -- from gettext-0.10.35.
126787         * m4/lcmessage.m4: Likewise.
126788         * m4/progtest.m4: Likewise.
126790         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
126791         * m4/jm-macros.m4: Require the new macro.
126793 1998-06-29  Jim Meyering  <meyering@ascend.com>
126795         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
126796         for the definition of NGROUPS (used in a system header included
126797         by sys/mount.h).
126799 1998-06-28  Jim Meyering  <meyering@ascend.com>
126801         * m4/ls-mntd-fs.m4: New file.
126802         * m4/fstypename.m4: New file.
126804         * m4/jm-macros.m4: Require the new macro.
126805         * m4/jm-glibc-io.m4: New file.
126807 1998-05-19  Jim Meyering  <meyering@ascend.com>
126809         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
126810         * m4/lchown.m4: New file.
126812         * m4/Makefile.am.in: New file.
126813         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
126815 1998-05-14  Jim Meyering  <meyering@ascend.com>
126817         * m4/Makefile.am (EXTRA_DIST): Add them.
126818         * m4/jm-macros.m4: New file.
126819         * m4/utimbuf.m4: New file.
126821 1998-05-12  Jim Meyering  <meyering@ascend.com>
126823         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
126825 1998-05-11  Jim Meyering  <meyering@ascend.com>
126827         * m4/isc-posix.m4: New file.
126829 1998-05-10  Jim Meyering  <meyering@ascend.com>
126831         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
126833 1998-05-09  Jim Meyering  <meyering@ascend.com>
126835         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
126836         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
126837         with automake.
126839         * m4/ssize_t.m4: New file.
126840         * m4/mktime.m4: Remove file -- the new automake has this now.
126842 1998-04-26  Jim Meyering  <meyering@ascend.com>
126844         * m4/assert.m4: New file.
126845         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
126847 1998-04-05  Jim Meyering  <meyering@ascend.com>
126849         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
126850         (jm_PREREQ): Use it here.
126852 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
126854         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
126855         in acconfig.h.
126857 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
126859         * m4/prereq.m4: New file.
126860         * m4/error.m4: New file.
126861         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
126863 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
126865         * m4/getline.m4: Don't set am_cv_func_working_getline before the
126866         cache-check for the same variable -- that defeated the purpose of
126867         the test; the test program was never run.  This was a problem only
126868         on systems with losing getline functions -- HP-UX 10.20 is one.
126869         Reported by Bjorn Helgaas.
126871 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
126873         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
126875 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
126877         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
126879         * m4/const.m4: New file.  Use an initializer in this declaration
126880         typedef int charset[2]; const charset x;
126881         Reported by Bob Glickstein.
126883 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
126885         * m4/chown.m4: Fix reversed types on -1 args to chown.
126886         From Kaveh Ghazi.
126888 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
126890         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
126891         Add lseek and memchr.
126893         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
126894         T.E.Dickey <dickey@clark.net> said that some older preprocessors
126895         have a 20-character limit on names.
126897 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
126899         * m4/inttypes_h.m4: New file.
126900         * m4/uintmax_t.m4: New file.
126901         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
126904         -----
126906         Local Variables:
126907         coding: utf-8
126908         End:
126910         Copyright (C) 1997-2020 Free Software Foundation, Inc.
126912         Copying and distribution of this file, with or without
126913         modification, are permitted provided the copyright notice
126914         and this notice are preserved.